<?php
require_once ("connection_sql.php");
session_start(); 
$sql = "select * from  invpara where  COMCODE='".$_SESSION['company']."' "; 
$sql = $conn->query($sql);
if (!$row1 = $sql->fetch()) {
    exit('Network Error Please Login Again......!!!');
}
if($_SESSION["CURRENT_USER"]==""){ 
exit("Invalid Login");
}
if($_SESSION["company"]==""){
exit("Invalid Login");
}


ini_set('session.gc_maxlifetime', 30 * 60 * 60 * 60);
session_start();
$_SESSION["brand"] = "";
if ($_SESSION["dev"] == "") {
    echo "Invalid User Session";
    exit();
}
?>

<link rel="stylesheet" href="css/themes/redmond/jquery-ui-1.10.3.custom.css" />

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

    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">Creditor Current Status</h3>


            <form role="form" name ="form1" action="po_report_new_data.php"  target="_blank" method="GET" class="form-horizontal">

                <br>               
                <div style="margin-left: 10px;"class="form-group">
                    <a onclick="new_inv1();" class="btn btn-default">
                        <span class="fa fa-user-plus"></span> &nbsp; New

                    </a>
                    <!--                        <a onfocus="this.blur()" onclick="NewWindow('search_tourPlan.php', 'mywin', '800', '700', 'yes', 'center');
                                                    return false" href="">
                                                <input type="button" class="btn btn-find" value="Find" id="searchcust" name="searchcust">
                                            </a>-->

                </div>
                <div id="msg_box"  class="span12 text-center"  ></div>
                <div class="col-sm-12" >
                   <div> 
                
                    
                     <label class="col-sm-1 control-label" for="invno">Customer</label>
                    <div class="col-sm-1">
                        <input type="text" placeholder="Code" id="c_code" name="c_code" class="form-control  input-sm">
                    </div>
                    <div class="col-sm-3 nopadding">
                        <input type="text" placeholder="Name" id="c_name" class="form-control  input-sm">
                    </div>
                    <div class="col-sm-1">
                        <a onfocus="this.blur()" onclick="NewWindow('serach_customer_rep.php', 'mywin', '800', '700', 'yes', 'center');
                                return false" href="">
                            <input type="button" class="btn btn-default btn-sm" value="..." id="searchcust" name="searchcust">
                        </a>
                    </div>
                    <div >
                            <label><input type="checkbox" value="1" id="checked1" name="checked1"></label>
                        </div>
                    </div>
                    <div>
                     
                
                     </div>
                </div>
                <div class="col-sm-3 form-group-sm"><br></div>

                <div class="col-sm-12" >

                    <div>
                         <label class="col-sm-1 control-label" for="invdate">From</label>
                    <div class="col-sm-2">
                        <input type="text" value="<?php echo date('Y-m-d'); ?>" name="fromdt" id="fromdt" 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" value="<?php echo date('Y-m-d'); ?>" name="todt" id="todt" class="form-control dt input-sm-dt">  
                    </div> 
                    
                   
                    <div class="col-sm-3 form-group-sm">
                        
 <input type="checkbox" value="1" id="checked2" name="checked2"></label>
                                
                    </div>
                    </div>
                </div>




                <div class="col-sm-12" >

                    <label class="col-sm-1 control-label" for="invdate">Date</label>
                    <div class="col-sm-2">
                        <input type="text" value="<?php echo date('Y-m-d'); ?>" name="from_date" id="from_date" class="form-control dt input-sm">  
                    </div> 

                    <div><br></div>


                    <div  class='space' >
                        <br>&nbsp;

                    </div>
                    <input style="margin-left: 500px;" type="submit" name="button" id="button" value="View"   class="btn btn-primary">

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


