0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ACCOUNTS
/
[
Home
]
File: ac_edit_voucher_modal.php
<div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Project Code </label> <div class="col-md-6 col-sm-6 col-xs-12"> <select required="" data-parsley-minSelect="1" data-parsley-validate-if-empty="true" class="form-control col-md-7 col-xs-12 select2_single" name="project_id" id="project_id"> <?php if(!empty($project_details)) foreach ($project_details as $j=> $value) { ?> <option value="<?php echo $j; ?>"><?php echo $value[ 'project_code']; ?></option> <?php } ?> </select> </div> <div class="col-md-3 col-sm-3 col-xs-12" style="margin-bottom: -400px;background-color: #eee;" id="title"> <?php if(!empty($project_details)){ reset($project_details); $first_key=key($project_details); $var=$project_details[$first_key]; echo "<b>".$var[ 'project_code']. "</b><br>".$var[ 'project_title']; } ?> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Supplier Name </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" class="form-control col-md-7 col-xs-12" required="required" name="name" value="<?php if (isset($arr['name']) && $arr['name']!=" ") { echo $arr['name']; } ?>" /> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Debit Head </label> <div class="col-md-6 col-sm-6 col-xs-12"> <select class="form-control col-md-7 col-xs-12" required="" name="debit_head" id="debit_head"> <option value="">Please select</option> <?php if(!empty($debit_head_details)) foreach ($debit_head_details as $value) { ?> <option master_debit_id="<?php echo $value['master_debit']; ?>" value="<?php echo $value['id']; ?>"> <?php echo $value[ 'name']; ?> </option> <?php } ?> </select> <ul class="parsley-errors-list filled" id="parsley-id-5"> <li class="parsley-required"> <?php if(isset($error[ 'debit_head'])) { echo $error[ 'debit_head']; }?> </li> </ul> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Invoice Date </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input readonly type="text" class="form-control col-md-7 col-xs-12 date" name="invoice_date" id="invoice_date" value="<?php if (isset($arr['invoice_date']) && $arr['invoice_date']!="") { echo $arr['invoice_date']; } ?>" /> </div> <label class="control-label " id="reset_date"><i class="fa fa-repeat cursor" data-toggle="tooltip" data-placement="top" title="" data-original-title="Reset date" ></i></label> </div> <div class="form-group invoice"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Invoice Number </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" class="form-control col-md-7 col-xs-12" name="invoice_number" id="invoice_number" value="<?php if (isset($arr['invoice_number']) && $arr['invoice_number']!=" ") { echo $arr['invoice_number']; } ?>" /> </div> </div> <input readonly type="hidden" id="debit_master" class=" form-control col-md-7 col-xs-12 hide " required="required" name="debit_master" value="" /> <div class="form-group invoice"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Amount </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" data-parsley-pattern="^[\d.]+$" class="form-control col-md-7 col-xs-12" required name="amount" id="amount" value="<?php if (isset($arr['amount']) && $arr['amount']!=" ") { echo $arr['amount']; } ?>" /> </div> </div> <input type="hidden" name="id" value="<?php if(isset($arr['id']) ) echo $arr['id']; ?>"> <script type="text/javascript"> $(document).ready(function() { $(".date").daterangepicker({ singleDatePicker: true, calender_style: "picker_4", locale: { format: 'DD/M/YYYY', separator: ' - ', customRangeLabel: 'Custom', }, startDate: '<?php echo date("m-d-Y") ?> ', }, function(start, end, label) { console.log(start.toISOString(), end.toISOString(), label); }); $("#reset_date").click(function () { $('.date').val(""); }) }); </script>