whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
office_user
/
Upload File:
files >> //proc/self/root/home/papecmvm/public_html/application/views/webapp/office_user/payment_form.php
<?php $CI = & get_instance(); $CI->load->model('app'); /*$tot_reg = $CI->alldata->getDatamodelCount('tbl_registration');*/ $userdata = $this->session->userdata('reg_info'); if(!isset($userdata)) { $base = base_url(); redirect($base); } $current_year = date('Y'); ?> <?php require_once(APPPATH.'views/webapp/header.php');?> <style type="text/css"> /*.remove{position: absolute;left: 5rem;bottom: 59px;}*/ hr{margin-bottom: 5px; margin-top: 5px;} .scroll-form{ height: 570px; overflow-y: auto; overflow-x: hidden; } .content-wrapper, .right-side, .main-footer{ margin-left: 0px; } .center{ display: table; margin: 0 auto; } .content{padding: 5px;} .box{margin-top: 5px;} hr{border-top: 1px solid #999;} .select2-container .select2-selection--single{ height:32px; } .select2-container--default .select2-selection--single{ border-radius: 0px; } .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height: 29px; } .custom-control-inline{ display: inline-flex; margin-right: 1rem; } </style> <!--To add master ledger name--> <form name="myform" class="m_ledger" action="#"> <div class="modal fade master_ledger" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"> <input type="hidden" name="rid" value="<?php echo $customer_id; ?>"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Add ledger</h4> </div> <div class="modal-body"> <div class="row"> <div class="row"> <div class="col-sm-12"> <div class="col-sm-3"> <div class="form-group"> <label>Ledger Name</label> <input id="Box1" type="text" class="form-control test" name="l_name" placeholder="Ledger Name" required=""> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Opening Balance</label> <div class="input-group"> <div class="input-group-addon" style="padding: 6px 6px;"> <select style="border: none" name="bal_type"> <option value="Dr">Dr</option> <option value="Cr">Cr</option> </select> </div> <input type="text" class="form-control" name="open_balance" placeholder="Opening Balance" required=""> </div> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Group</label> <select class="form-control gr" name="gid" required=""> <option value="">--Select--</option> <?php foreach ($group_all as $g){ ?> <option value="<?php echo $g['gid']; ?>"><?php echo $g['gname']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <div class="form-group"> <label>Sub Group</label> <select class="form-control sgr" name="sg_id"> <option value="0">--Select--</option> </select> </div> </div> </div> </div> <div class="col-sm-12"> <div class="col-sm-2"> <div class="form-group"> <label>State</label> <select class="form-control" name="state"> <option value="">--Select--</option> <option value="Gujarat">Gujarat</option> <option value="Rajasthan">Rajasthan</option> <option value="Maharastra">Maharastra</option> <option value="Asam">Asam</option> </select> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>City</label> <select class="form-control" name="city"> <option value="">--Select--</option> <option value="Gandhinagar">Gandhinagar</option> <option value="Udaipur">Udaipur</option> <option value="Mumbai">Mumbai</option> <option value="Guwahati">Guwahati</option> </select> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label>Address</label> <input type="text" name="address" value="<?php if(isset($ledger)){echo $ledger[0]['address'];}?>" class="form-control"> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>GST</label> <input type="text" name="gst" value="<?php if(isset($ledger)){echo $ledger[0]['gst'];}?>" class="form-control"> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>PAN</label> <input type="text" name="pan" value="<?php if(isset($ledger)){echo $ledger[0]['pan'];}?>" class="form-control"> </div> </div> </div><!--col-12--> </div> </div> </div> <div class="modal-footer"> <button class="btn btn-primary" name="Save" value="Save">Save</button> </div> </div> </div> </div> </form> <!--To add master ledger name--> <form name="myform" class="cr_ledger" action="#"> <?php if($stg == 'cheque_reg' || $stg == 'bank'){ ?> <input type="hidden" name="stage" value="<?php echo $voucher_type; ?>"> <?php }else{ ?> <input type="hidden" name="stage" value="<?php echo $stg; ?>"> <?php } ?> <div class="modal fade master_ledger_cr" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"> <input type="hidden" name="rid" value="<?php echo $customer_id; ?>"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">(Cr.)Add ledger</h4> </div> <div class="modal-body"> <div class="row"> <div class="row"> <div class="col-sm-12"> <div class="col-sm-3"> <div class="form-group"> <label>Ledger Name</label> <input id="Box1" type="text" class="form-control test" name="l_name" placeholder="Ledger Name" required=""> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Opening Balance</label> <div class="input-group"> <div class="input-group-addon" style="padding: 6px 6px;"> <select style="border: none" name="bal_type"> <option value="Dr">Dr</option> <option value="Cr">Cr</option> </select> </div> <input type="text" class="form-control" name="open_balance" placeholder="Opening Balance" required=""> </div> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Group</label> <select class="form-control gr" name="gid" required=""> <option value="">--Select--</option> <?php foreach ($group_all as $g){ ?> <option value="<?php echo $g['gid']; ?>"><?php echo $g['gname']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <div class="form-group"> <label>Sub Group</label> <select class="form-control sgr" name="sg_id"> <option value="0">--Select--</option> </select> </div> </div> </div> </div> <div class="col-sm-12"> <div class="col-sm-2"> <div class="form-group"> <label>State</label> <select class="form-control" name="state"> <option value="">--Select--</option> <option value="Gujarat">Gujarat</option> <option value="Rajasthan">Rajasthan</option> <option value="Maharastra">Maharastra</option> <option value="Asam">Asam</option> </select> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>City</label> <select class="form-control" name="city"> <option value="">--Select--</option> <option value="Gandhinagar">Gandhinagar</option> <option value="Udaipur">Udaipur</option> <option value="Mumbai">Mumbai</option> <option value="Guwahati">Guwahati</option> </select> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label>Address</label> <input type="text" name="address" value="<?php if(isset($ledger)){echo $ledger[0]['address'];}?>" class="form-control"> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>GST</label> <input type="text" name="gst" value="<?php if(isset($ledger)){echo $ledger[0]['gst'];}?>" class="form-control"> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>PAN</label> <input type="text" name="pan" value="<?php if(isset($ledger)){echo $ledger[0]['pan'];}?>" class="form-control"> </div> </div> </div><!--col-12--> </div> </div> </div> <div class="modal-footer"> <button class="btn btn-primary" name="Save" value="Save">Save</button> </div> </div> </div> </div> </form> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <strong class="pull-right text-danger text-capitalize" style="margin-right: 10px; margin-top: 8px;"> <?php if($stg == 'cheque_reg'){ echo 'Cheque Register'; }else{ echo $stg; } if(!empty($voucher_type)){ echo " - ".$voucher_type; } ?> Form</strong> <a href="javascript:history.go(-1)" class="btn btn-info center">Back</a> <!-- <a href="<?php echo base_url(); ?>webapp/office/export">Export</a> --> <div class="box box-primary"> <!-- <div class="box-header ui-sortable-handle"> <i class="fa fa-list"></i> <h3 class="box-title">Form</h3> </div> --> <div class="row"> <div class="col-sm-7"> <div class="col-xs-12 col-sm-12 col-md-12"> <?php /* $path2 = base_url().$path; $ext = pathinfo($path2, PATHINFO_EXTENSION); if($ext == 'pdf' || $ext == 'PDF'){ ?> <!-- 4:3 aspect ratio --> <div class="embed-responsive embed-responsive-4by3"> <embed class="embed-responsive-item" src="<?php echo base_url().$path; ?>"></embed> </div> <?php }else{ ?> <img src="<?php echo base_url().$path; ?>" class="img-responsive zoom"> <?php } */ ?> <div class="cust_file"> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <?php $exp_files = explode('|-|', $path); $c1 = 1; foreach ($exp_files as $key => $value) { ?> <li role="presentation" class="<?php if($c1 == 1){echo "active";} ?>"> <a class="text-danger" href="#<?php echo 'file'.$c1; ?>" aria-controls="home" role="tab" data-toggle="tab"> <strong><?php echo 'File'.$c1; ?></strong> </a> </li> <?php $c1++; } ?> </ul> <!-- Tab panes --> <div class="tab-content"> <?php $c2 = 1; foreach ($exp_files as $key2 => $value2) { ?> <div role="tabpanel" class="tab-pane <?php if($c2 == 1){echo "active";} ?>" id="<?php echo 'file'.$c2; ?>"> <?php $ext = pathinfo($value2, PATHINFO_EXTENSION); if($ext == 'pdf' || $ext == 'PDF'){ ?> <div class="embed-responsive embed-responsive-4by3"> <embed class="embed-responsive-item" src="<?php echo base_url().$value2; ?>"> </div> <?php }else{ ?> <div class="enlarge_pane_contain"> <div class="enlarge_pane"> <div class="enlarge"> <div class="enlarge_contain"> <img src="<?php echo base_url().$value2; ?>" srcset="<?php echo base_url().$value2; ?> 480w, <?php echo base_url().$value2; ?> 1200w, <?php echo base_url().$value2; ?> 2000w" sizes="100vw" alt="" id="test-img"> </div> <a href="<?php echo base_url().$value2; ?>" class="enlarge_btn" title="Toggle Zoom">Toggle Zoom</a> </div> </div> </div> <?php } ?> </div> <?php $c2++; } ?> </div> <?php /* $exp_files = explode('|-|', $path); foreach ($exp_files as $key => $value) { $ext = pathinfo($value, PATHINFO_EXTENSION); if($ext == 'pdf' || $ext == 'PDF'){ ?> <!-- 4:3 aspect ratio --> <div class="embed-responsive embed-responsive-4by3"> <embed class="embed-responsive-item" src="<?php echo base_url().$value; ?>"></embed> </div> <?php }else{ ?> <img src="<?php echo base_url().$value; ?>" class="img-responsive zoom"> <?php } ?> <?php } */ ?> </div> </div> </div> <div class="col-sm-5" style="padding-right: 0px;"> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="scroll-form"> <?php echo form_open("webapp/office/add_payment"); ?> <input type="hidden" name="stage" value="<?php echo $stg; ?>"> <input type="hidden" name="cid" value="<?php echo $customer_id; ?>"> <input type="hidden" name="path" value="<?php echo $path; ?>"> <input type="hidden" name="year" value="<?php echo $yr; ?>"> <input type="hidden" name="month" value="<?php echo $mn; ?>"> <?php if(isset($voucher_type)){ ?> <input type="hidden" name="voucher_type" value="<?php echo $voucher_type; ?>"> <?php } ?> <div class="row"> <div class="col-sm-12"> <div class="custom-control custom-radio custom-control-inline"> <input onchange="show($(this))" type="radio" id="fund_trans" name="trans_type" class="custom-control-input" value="bank" checked> <label class="custom-control-label" for="fund_trans" > Bank</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input onchange="hide($(this))" type="radio" id="diposit" name="trans_type" class="custom-control-input" value="cash"> <label class="custom-control-label" for="diposit" > Cash</label> </div> </div> </div> <br> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label>Date</label> <input type="text" name="date" class="form-control date-picker" required> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Voucher No</label> <?php $vn = mt_rand(100000, 999999); ?> <input type="text" name="voucher_no" class="form-control" value="<?php echo $vn; ?>" readonly required> </div> </div> <div class="col-sm-5"> <div class="form-group"> <label>Party Ledger Name <a href="#" onClick="openModal()"> (Master)</a></label> <span class="newLedger"> <select class="form-control multiselect" name="ledger_name_main" required> <option value="">--SELECT--</option> <?php foreach ($ledger as $led) { ?> <option value="<?php echo $led['lid']; ?>"><?php echo $led['l_name']; ?></option> <?php } ?> </select> </span> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="form-group"> <label>Narration</label> <input type="text" class="form-control" name="narration" required=""> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label>(Dr.) Ledger Name <a href="#" onClick="openModal()"> (Master)</a></label> <span class="newLedger"> <select class="form-control multiselect" name="ms_ledger_two" required> <option value="">--SELECT--</option> <?php foreach ($ledger as $led) { ?> <option value="<?php echo $led['lid']; ?>"><?php echo $led['l_name']; ?></option> <?php } ?> </select> </span> </div> </div> <?php $gid = explode('|', $group[0]['gid']); $new_ledger = $this->model->get_gl($gid, $customer_id); ?> <div class="col-sm-6"> <div class="form-group"> <label>(Cr.) Ledger Name <a href="#" onClick="openModalCr()"> (Master)</a></label> <span class="crLedger"> <select class="form-control multiselect" name="ms_ledger" required> <option value="">--SELECT--</option> <?php foreach ($rec_group as $led) { ?> <option value="<?php echo $led['lid']; ?>"><?php echo $led['l_name']; ?></option> <?php } ?> </select> </span> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label>Amount</label> <input type="text" name="amt_gross" class="form-control" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\..*)\./g, '$1');" required> </div> </div> <div class="cheque"> <div class="col-sm-4"> <div class="form-group"> <label>Cheque/Instrument No.</label> <input type="text" name="check_no" class="form-control empty" required> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label>Cheque Date</label> <input type="text" name="check_date" class="form-control date-picker empty" required> </div> </div> </div> </div> <div class="form-group"> <br> <input type="submit" name="save" value="Save" class="btn btn-primary"> </div> <?php echo form_close(); ?> </div> </div> </div> </div> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?> <script type="text/javascript"> function hide(obj){ if (obj.prop("checked")) { $('.cheque').hide(); $('.empty').val(''); $(".empty").prop('required',false); } } function show(obj){ if (obj.prop("checked")) { $('.cheque').show(); $(".empty").prop('required',true); } } $(".m_ledger").submit(function (event) { event.preventDefault(); //$('#loading_spinner').show(); var form_data = $(".m_ledger").serialize(); var controller = 'webapp/master/ledger'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ url: base_url + controller + '/add_ajax', type: 'POST', data: form_data, dataType: 'json', success: function (data) { $('.m_ledger')[0].reset(); $(".master_ledger").modal('hide'); $(".newLedger").html(data.html); $(".multiselect").select2(); //multi select dropdown //$(".form-div").load(" .form-div"); //window.location.reload(true); }, error: function () { alert("Something went wrong!"); //$('.errorLabel').show(); } }); }); $(".cr_ledger").submit(function (event) { event.preventDefault(); //$('#loading_spinner').show(); var form_data = $(".cr_ledger").serialize(); var controller = 'webapp/master/ledger'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ url: base_url + controller + '/add_ajax_two', type: 'POST', data: form_data, dataType: 'json', success: function (data) { $('.cr_ledger')[0].reset(); $(".master_ledger_cr").modal('hide'); $(".crLedger").html(data.html); $(".multiselect").select2(); //multi select dropdown //$(".form-div").load(" .form-div"); //window.location.reload(true); }, error: function () { alert("Something went wrong!"); //$('.errorLabel').show(); } }); }); function openModal(){ $(".master_ledger").modal('show'); $("#Box1").focus(); } function openModalCr(){ $(".master_ledger_cr").modal('show'); $("#Box1").focus(); } </script> <script type="text/javascript"> $('.gr').on('change', function(){ var gid = $(this).val(); var controller = 'webapp/master/ledger'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ url: base_url + controller + '/get_subgr/'+gid, type: 'POST', dataType: 'json', success: function (data) { $(".sgr").html(data.html); }, error: function () { alert("Something went wrong!"); //$('.errorLabel').show(); } }); }); </script>
Copyright ©2021 || Defacer Indonesia