<?php
session_start();
include './connection_sql.php';
if ($_SESSION["CURRENT_USER"] == "") { 
    exit('Please Logging Again..');
}
if ($_SESSION["company"] == "") { 
    exit('Please Logging Again..');
}
?>

<section class="content">
    <div class="box box-primary">
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <div class="box-header with-border">
            <h3 class="box-title">Pending Cheque Report</h3>
        </div>

        <form role="form" name='form1' action="pending_cheque_print.php" target="_blank" method="GET" class="form-horizontal">
            <div class="box-body">


                <div class="form-group" >
                    <label class="col-sm-1 control-label" for="from">From</label> 
                    <div class="col-sm-2">
                        <input type="date" value="<?php echo date('Y-m-d'); ?>" placeholder="From" id="dtfrom" name="dtfrom"  class="form-control  ">
                    </div>
                    <label class="col-sm-1 control-label" for="from">To</label> 
                    <div class="col-sm-2">
                        <input type="date" value="<?php echo date('Y-m-d'); ?>" placeholder="To" id="dtto" name = "dtto" class="form-control  ">
                    </div>
                    <div class="col-sm-2">
                        <input type="checkbox" id="chk_date" name = "chk_date" class="input-sm" checked>
                    </div>
                </div>

 


<table class="table table-striped" style="width:650px;">
                    
                    <tr class='info'> 
                        <th style="width: 120px;">Supplier Code</th>
                        <th style="width: 520px;">Supplier Name</th>
                        <th style="width: 10px;"></th>
                    </tr>

<tr>

                        <td>
                        <input type="text" placeholder="Code"  onclick="NewWindow('serach_customer.php', 'mywin', '800', '700', 'yes', 'center');
                                return false" id="c_code" name="c_code" class="form-control  input-sm">
                    </td>
                   <td>
                        <input type="text" placeholder="Name" disabled id="c_name" name="c_name" class="form-control  input-sm">
                    </td>
                    <td>
                        <a onfocus="this.blur()" onclick="NewWindow('serach_customer.php', 'mywin', '800', '700', 'yes', 'center');
                                return false" href="">
                            <input type="button" class="btn btn-default btn-sm" value="..." id="searchcust" name="searchcust">
                        </a>
                    </td>
                     </tr>
                </table>
                <div class="form-group">
                    
                     <input type="submit" class="btn btn-default fa fa-print" value="View">
                </div>






            </div>
        </form>
    </div>       
</div>
</section>