<!-- Main content -->
<section class="content">
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">CASH HANDOVER</h3>
            <h4 style="float: right;height: 3px;"><b id="time"></b></h4>
        </div>
        <form role="form" class="form-horizontal">
            <div class="box-body">
                <div class="form-group">
                    <a onclick="new_inv();" class="btn btn-default">
                        <span class="fa fa-user-plus"></span> &nbsp; New
                    </a>
                    
                     <?php 
				$sql_userp="select * from view_userpermission where username='".$_SESSION["UserName"]."' and docname='CASH HAND OVER' and grp='Data Capture' ";
            	$result_userp = $conn->query($sql_userp);
                if ($row_userp = $result_userp->fetch()) {
            	    
            	    if($row_userp['doc_feed']==1){
            	       echo" <a onclick='save_inv();' class='btn btn-success btn-sm'>
                            <span class='fa fa-save'></span> &nbsp; Save
                        </a> ";
            	    } 
            	    if($row_userp['doc_view']==1){
            	       echo" <a onclick=\"NewWindow('cash_handover_search.php', 'mywin', '800', '700', 'yes', 'center'); return false\" class='btn btn-info btn-sm'>
                            <span class='fa fa-search'></span> &nbsp; Search
                        </a> ";
            	    } 
            	    
            	     if($row_userp['doc_print']==1){
            	       echo" <a onclick='print_inv();' class='btn btn-default btn-sm'>
                            <span class='fa fa-print'></span> &nbsp; Print
                        </a> ";
            	    }
            	    
            	    if($row_userp['doc_cancel']==1){
            	       echo" <a onclick='cancel_inv();' class='btn btn-danger btn-sm'>
                            <span class='fa fa-trash'></span> &nbsp; Cancel
                        </a> ";
            	    }
            	     
			    										
                }
            	?>	
            	
            	
            	
                   
                    
                </div>

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

                <div id="msg_box"  class="span12 text-center"  >  </div>

            </div>

            <div class="form-group">
                <label class="col-sm-1 control-label" for="txt_usernm">REF NO</label>
                <div class="col-sm-2">
                    <input type="text" placeholder="REF NO" id="refno" disabled class="form-control">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-1 control-label" for="txt_usernm">DATE</label>
                <div class="col-sm-2">
                    <input type="date" placeholder="DATE" id="sdate" value="<?php echo date('Y-m-d')?>"  class="form-control  " >
                </div> 
            </div>

            <div class="form-group"> 
                <label class="col-sm-1 control-label" for="txt_usernm">AMOUNT</label>
                <div class="col-sm-2">
                    <input type="number" placeholder="AMOUNT" id="amount"   class="form-control  ">
                </div>     
            </div>
            
            <div class="form-group"> 
                <label class="col-sm-1 control-label" for="txt_usernm">REMARK</label>
                <div class="col-sm-2">
                    <textarea type="text"  class="form-control  " id="remark" name="remark" row="6"></textarea>
                </div>     
            </div>


<div class="form-group"></div>

</form>
</div>

</section>

<script src="js/cash_handover.js"></script>
<script>new_inv();</script>