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

    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">Received</h3>
        </div>
        <form name= "form1" role="form" class="form-horizontal">
            <div class="box-body">
                <input type="hidden" id="tmpno" class="form-control">
                <input type="hidden" id="item_count" class="form-control">

                <div class="form-group">
                    <a onclick="new_inv();" class="btn btn-default btn-sm">
                        <span class="fa fa-user-plus"></span> &nbsp; New
                    </a>
                    <a onclick="save_inv();" class="btn btn-success btn-sm">
                        <span class="fa fa-save"></span> &nbsp; Save
                    </a>

                     <a onclick="print_inv();" class="btn btn-primary btn-sm">
                        <span class="glyphicon glyphicon-print"></span> &nbsp; PRINT
                    </a>
                 	

                    <a onclick="sess_chk('cancel', 'crn');" class="btn btn-danger btn-sm">
                        <span class="fa fa-trash-o"></span> &nbsp; Cancel
                    </a>

                </div>
                <div id="msg_box"  class="span12 text-center"  ></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="invno">Received No</label>
                    <div class="col-sm-2">
                        <input type="text" placeholder="Received No" id="Received_No" class="form-control  input-sm">
                    </div>
                    <div class="col-sm-1">
                        <a onfocus="this.blur()" onclick="NewWindow('serach_received.php', 'mywin', '800', '700', 'yes', 'center');
                                return false" href="">
                            <input type="button" class="btn btn-default" value="..." id="searchcust" name="searchcust">
                        </a>
                    </div>
                    <label class="col-sm-2 control-label" for="invdate">Date</label>
                    <div class="col-sm-2">
                        <input type="text" placeholder="Date" id="invdate"  class="form-control dt input-sm">
                    </div>
                </div>

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


                        <a onfocus="this.blur()" onclick="NewWindow('serach_dag_received_sup.php', '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="cus_address">Contact</label>
                    <div class="col-sm-5">
                        <input type="text" placeholder="Contact" id="con" class="form-control input-sm">
                    </div>
                    
                </div>

                <div class="form-group">
                    <label class="col-sm-1 control-label" for="txt_remarks">Remark</label>
                    <div class="col-sm-5">
                        <input type="text" placeholder="Remarks" id="Remark" class="form-control input-sm">
                    </div>

                    <div class="col-sm-1">
                        &nbsp;
                    </div>

                </div>



                <div class="form-group">
                    <label class="col-sm-10 control-label" for="cus_address">Limit</label>
                    <div class="col-sm-2">
                        <input type="text" placeholder="limit" id="limit" value="300" onkeyup="view();" class="form-control input-sm">
                    </div>
                   
                </div>





                <div>
                    <table class="table"  style="width:100%;" >
                        <tr>
                            <th style="width:5%;" class="info">Item</td>
                            <th style="width:15%;"  class="info">Description</td>
                            <th style="width:12%;"  class="info">Brand</th>
                            <th style="width:7%;"  class="info">Serial Number</th>
                            <th style="width:8%;"  class="info">Rate</th>
                            <th style="width:10%;"  class="info">Service Charge</th>
                            <th style="width:10%;"  class="info">Choose</th>

                        </tr>
                        <tr>
                            <td><input class="form-control input-sm" type="text" id="Item" onkeyup="view();"></td>
                            <td><input class="form-control input-sm" type="text" id="Description" onkeyup="view();" ></td>
                            <td><input class="form-control input-sm" type="text" id="Brand" onkeyup="view();" ></td>
                            <td><input class="form-control input-sm" type="text" id="SerialN" onkeyup="view();" ></td>
                            <td><input class="form-control input-sm" type="text" id="Rate" onkeyup="view();" ></td>

                        </tr>



                    </table>
                    <div id="itemdetails" >

                    </div>
                    <table id='subtotal' class="table">
                    <tr>
                        <td></td>
                        <td></td>
                        <th>Sub Total</th>

                        <td></td>                        
                        <td style="width: 175px;"><input type="text" placeholder="Sub Total" id="subtot" class="form-control input-sm"></td>
                    </tr>
                </table>
                </div>


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

</section>
<script src="js/received.js"></script>
<script>

new_inv();

</script>
<script>view();</script>
<?php
include 'login.php';
include './cancell.php';
?>