<?php 
include('accesscheck2.php');
require_once('Connections/courier.php'); 
require_once 'functions/functions.php';

mysql_select_db($database_courier, $courier);

$branches = mysql_query("SELECT * FROM branches WHERE type='branch' ORDER BY branch_name");
$report_types = mysql_query("SELECT * FROM reports WHERE typeofrep='salesreport'");
?>
<div class="page-bar">
                        <ul class="page-breadcrumb">
                            <li>
                                <i class="icon-home"></i>
                                <a href="index.html">Home</a>
                                <i class="fa fa-angle-right"></i>
                            </li>
                            <li>
                                <span>Report Generation</span>
                                <i class="fa fa-angle-right"></i>
                            </li>
                            <li>
                                <span>Stock Report</span>
                            </li>
                        </ul>
                        <div class="page-toolbar">
                            <div class="btn-group pull-right">
                                <button type="button" class="btn btn-fit-height grey-salt dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"> Actions
                                    <i class="fa fa-angle-down"></i>
                                </button>
                                <ul class="dropdown-menu pull-right" role="menu">
                                    <li onclick="getstep('<?php echo $action; ?>');">
                                        <a href="#">
                                            <i class="icon-refresh"></i> Refresh</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
</div>

<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
        <div class="portlet light ">
            <div class="portlet-title">
                <div class="caption">
                    <span class="caption-subject bold uppercase font-dark"> STOCK REPORTS </span>
                </div>
            </div>
            <div class="portlet-body form">
                 <form role="form" class="form-horizontal">
                    <!-- <div class="form-body">
                      
                       
                        
                    </div> -->
                     <div class="form-actions">
                         <div class="row">
                             <div class="col-md-offset-1 col-md-11">
                                 <?php if( $_SESSION['security']=='admin'){ ?>
                                 <button type="submit" class="btn green" onclick="printReport2('reports/print_stock_report.php','master_stock_report');return false;">Master Detailed Stock Report <i class="fa fa-print"></i> </button>
                                 <button type="submit" class="btn green" onclick="printReport2('reports/print_stock_report.php','master_frames_range');return false;">Master Frame Range Stock Report <i class="fa fa-print"></i> </button>
                                    <?php } ?>
                                 <button type="submit" class="btn green" onclick="printReport2('reports/print_stock_report.php','branch_stock');return false;">Branch Detailed Stock Report <i class="fa fa-print"></i> </button>

                                  <button type="submit" class="btn green" onclick="printReport4('reports/processDownloadBranch.php','branch_stock');return false;">Branch Excel <i class="fa fa-print"></i> </button>

                                  <button type="submit" class="btn green" onclick="printReport4('reports/processDownloadStore.php','branch_stock');return false;">Stores Excel <i class="fa fa-print"></i> </button>
                             </div>
                         </div>
                     </div>
                 </form>
            </div>
        </div>
    </div>
</div>


