<?php session_start();
include ('../inc/dbcon.php');
include ('../inc/functions.php');
include ('../inc/invfunctions.php');
include ('../inc/repfunctions.php');
if(isset($_SESSION["axeslogin"]) && $_SESSION["axeslogin"] == true){
$_SESSION['cuPages']='rep_salesovrview.php';   
$cuPage='rep_salesovrview.php';    
$aid=$_SESSION['uid'];
$uty=$_SESSION['utype'];    
$brid=$_SESSION['abrid'];     
}else{
header('Location:../index.php');
exit;    
}
$mhead='report';
$menuh='Report';
$phead='report';
$page='Sales Overview';
$ractive='F';
$print='print';
$today = strftime("%Y-%m-%d", time());
$dtnow = date("Y-m-d h:i:s", time());
$oavno='REP'.date("dmy", strtotime($today)).'SOWR';
?>
<?php
include('../layout/head.php');
include('../layout/header.php');
include('../layout/side_nav.php');
?>

<div class="content-wrapper">
<?php include('../layout/page_head.php'); ?>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="col-md-3">    
<div class="box box-solid">

<div class="box-body">
<div class="col-md-12">    
<div class="row">    
<div class="roles-menu">   
<ul class="nav">
<li <?php if($ractive=='A'){echo 'class="active"';}?>><a href="rep_salesinvrec.php"><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Sales Record (Invoice)';}else{echo ' বিক্রয়ের প্রতিবেদন চালান অনুযায়ী';}?></a></li>
<li <?php if($ractive=='B'){echo 'class="active"';}?>><a href="rep_salesreturnrec.php"><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Return Record (Invoice)';}else{echo ' বিক্রয় ফেরত প্রতিবেদন চালান অনুযায়ী';}?></a></li>
<li <?php if($ractive=='C'){echo 'class="active"';}?>><a href="rep_salescuswise.php"><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Customer Wise (Invoice)';}else{echo ' বিক্রয়  প্রতিবেদন গ্রাহক অনুযায়ী';}?></a></li>
<li <?php if($ractive=='G'){echo 'class="active"';}?>><a href="rep_salesitm.php"><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Item Wise';}else{echo ' ক্রয় প্রতিবেদন পদ অনুযায়ী';}?></a></li>        
<li <?php if($ractive=='D'){echo 'class="active"';}?>><a href="rep_salesitmst.php"><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Item Statement';}else{echo ' বিক্রয় পদ প্রতিবেদন';}?></a></li>
<li <?php if($ractive=='E'){echo 'class="active"';}?>><a href="rep_salesperiod.php"><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Periodic Sales Record';}else{echo ' পর্যায়ক্রমিক বিক্রয় প্রতিবেদন';}?></a></li>
<li <?php if($ractive=='F'){echo 'class="active"';}?>><a href="rep_salesovrview.php" ><?php if(get_fild_data('tbl_setting','1','sval')==0){echo ' Overview';}else{echo ' সামগ্রিক অবস্থা (ওভারভিউ)';}?></a></li>
</ul>
</div>
</div>
<hr>    
<form action="rep_salesovrview.php" onsubmit="return validate()" enctype="multipart/form-data" method="post" accept-charset="utf-8">
<!--From Data-->
    
<!--End From Data-->    
<div class="clearfix" ></div>
<div class="col-md-12 nopadding widgets_area"></div>    
<div class="row"style="margin-top: 15px" >
<div class="col-md-4"></div>
<div class="col-md-8 text-right" >
<input type="submit" name="filter_submit" id="submit" class="btn btn-flat bg-purple btn-sm " value="Submit"/> <a href="axe_report.php" class="btn btn-flat bg-gray  ">Close</a>
</div> 
</div>     
</form>    
</div>
</div>
</div>  
</div>
<div class="col-md-9">
<div class="row">    
<div class="side-head"> 
<div class="col-md-12">    
<div class="col-md-4 text-left">
<button class="btn btn-flat bg-teal" id="print"><i class="fa fa-print"></i></button> 
<button class="btn btn-flat bg-blue"><i class="fa fa-envelope-o"></i></button> 
<button class="btn btn-flat bg-gray"><i class="fa fa-file-pdf-o"></i></button>     
</div>
<div class="col-md-7 text-center">
<select name="Page_resolution" id="resolution" onchange="setPrinterConfig()" style="width: 205px;height: 28px;border: 1px solid red;">
<option value="A4" selected="selected">A4 [210mm × 297mm]</option>   
<option value="A5">A5 [148mm × 210mm]</option>
<option value="Letter">US Letter [216mm × 279mm]</option>
<option value="Legal">US Legal [216mm × 356mm]</option>
</select>
<select name="Page_size" id="rotate" onchange="setPrinterConfig()" style="width: 120px;height: 28px;border: 1px solid red;">
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>    
</div>    
<div class="col-md-1 text-right">

</div>
</div>
</div>    
</div>
<div class="row">
<div class="invhold scrol-y" id="invhold">
<div class="printableArea">
    
</div>    
    
</div>
</div>
</div>
    
</div>    
</div>

<?php include('../layout/quick.php');?>    
</section>
<!-- /.main content -->    
</div>
<?php
include('../layout/footer.php');
?>
<!-- page script -->
<script type="text/javascript">
   
</script>    
<!-- /page script -->
</html>    