<!DOCTYPE HTML>
<?php 
include('config.php');

$pagename 	= "Jurnal - Biaya";
$tabid 		= "1";

$fdate = "01/".date('m/Y'); 
$tdate = date('d/m/Y');
?>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo $pagename?></title>
    <?php include('../../common/script_css.php');?>
    
</head>
<body onLoad="full_screen()">
<form id="iform">
    <div class="wrapper">
        <!-- Sidebar  -->
		<?php include('../../sys/sidenav.php');?>

        <!-- Page Content  -->
        <div id="content_wrapper" class="mt-0">
			<?php include('../../sys/top_menu.php')?>
            <div class="px-3">
				<div id="tabheader">
				<?php include('tabheader.php')?>
                </div>
                
			    <div class=" tl div_button py-2">
					<div class="row pt-1">
						<div class="col-sm-12 py-3">
							<select id="outlet" name="outlet" class="form-control form-control-sm">
								<?php
								
                                $sql = "select * from mst_outlet order by outlet_name";
								$dcon = $conn->query($sql) or die($sql);
								while($rst = $dcon->fetch_assoc()){
								?>
                                <option value="<?php echo $rst['outlet_autoid']?>"><?php echo $rst['outlet_name']?></option>
								<?php } ?>
							</select>
						</div>
                    	<div class="col-sm-6">
				Periode  : 
				
				
                <select name="bulan" class="input">
				<?php 
				$sql = "select * from setupmonth order by monthcode2";
				$dcon = $conn->query($sql) or die($sql);
				while($rs = $dcon->fetch_assoc()){
				?>
					<option <?php if(date('m')==$rs['monthcode2']){echo 'selected="selected"';}?> 
                    value="<?php echo ($rs['month_code'])?>"><?php echo ($rs['month_name'])?></option>
				<?php } ?>
                </select>
                
                &nbsp;
                
                <select name="tahun" id="tahun" class="input">
				<?php 
				for($i=2024;$i<($thn+1);$i++){
				?>
				<option <?php if($tahun==$i){echo 'selected="selected"';}?> 
                value="<?php echo ($i)?>"><?php echo ($i)?></option>
				<?php } ?>
                </select>
                            <input type="button" class="btn btn-primary btn-sm" value="View" onclick="dosubmit2('print_neraca')">
						</div>
                        <div class="col-sm-6 tl">
						</div>
                	</div>
			    </div>

                <div id="output" class="bg_white pb-2" style="height:400px;overflow-y:scroll">

                </div>
            </div>
        </div>
        
    </div><!-- end wrapper -->
</form>
</body>

</html>