<?php
ini_set('session.gc_maxlifetime', 30 * 60 * 60 * 60);
session_start(); 
if ($_SESSION["UserName"] == "") {
    echo "Please Login..";
    exit();
}
 
include './connection_sql.php';
?>

<!-- Main content -->
<section class="content">

    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">Dag Report</h3>
        </div>
         <form role="form" name="form1" action="dag_report_view.php" target="_blank" method="get"  class="form-horizontal">
            <div class="box-body">

                <input type="hidden" id="tmpno" class="form-control">

                <input type="hidden" id="item_count" class="form-control">
                <input type="hidden" id="sizeId" class="form-control input-sm">
                <div class="form-group">

                     

                </div>

                <div id="msg_box"  class="span12 text-center"  ></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="invdate">from</label>
                    <div class="col-sm-2">
                        <input type="text"  placeholder="Date" id="from" name="from" value="<?php echo date('Y-m-d'); ?>" class="form-control dt input-sm">
                    </div>
                    <label class="col-sm-1 control-label" for="invdate">To</label>
                    <div class="col-sm-2">
                        <input type="text"  placeholder="Date" id="to"  name="to" value="<?php echo date('Y-m-d'); ?>" class="form-control dt input-sm">
                    </div>
                    <input type="checkbox"   id="datecheck" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date Wise
                </div>

                <div class="form-group">
                    <label class="col-sm-1 control-label" for="c_code">Customer</label>
                    <div class="col-sm-2">
                        <input type="text" placeholder="Code" disabled name="c_code" id="c_code" class="form-control  input-sm">
                    </div>
                    <div class="col-sm-3">
                        <input type="text" placeholder="Name" disabled name = "c_name" id="c_name" class="form-control input-sm">
                    </div>
                    <div class="col-sm-1">


                        <a onfocus="this.blur()" onclick="NewWindow('serach_customer.php?stname=inv', 'mywin', '800', '700', 'yes', 'center');
                                return false" href="">
                            <input type="button" class="btn btn-default" value="..." id="searchcust" name="searchcust">
                        </a>
                    </div>
                     
                </div> 

                <div class="form-group">
                    <label class="col-sm-1 control-label" for="invno">Process Type</label>

                    <div class="col-sm-2">
                        <select id="type" name="type" class="form-control input-sm" >
                            <option value="All">All</option>
                             <option value="0">Collected</option>
                              <option value="1">Transfer</option>
                               <option value="2">Rejected</option>
                               <option value="3">Completed</option>
                        </select>
                    </div> 
                </div> 
                
                <button onclick="view_dett();" class="btn btn-primary">View</button>
            </div>
        </form>
    </div>

</section>
  