whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
webapp
/
office_user
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/webapp/office_user/edit_journal.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; } .effect{ margin: -12px; border: none; } </style> <!-- 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 echo $stage; ?> 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> </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 $encrypted_id = $this->model->encryptdata($form[0]['fid']); echo form_open("webapp/office/update_journal/".$encrypted_id); ?> <input type="hidden" name="stage" value="<?php echo $stage; ?>"> <input type="hidden" name="cid" value="<?php echo $customer_id; ?>"> <input type="hidden" name="path" value="<?php echo $path; ?>"> <?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" <?php if($form[0]['trans_type'] == 'bank'){echo 'checked';} ?> 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"<?php if($form[0]['trans_type'] == 'cash'){echo 'checked';} ?>> <label class="custom-control-label" for="diposit" > Cash</label> </div> </div> </div> */ ?> <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" value="<?php echo date('d-m-Y', strtotime($form[0]['m_date'])); ?>" 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 $form[0]['voucher_no']; ?>" readonly required> </div> </div> <div class="col-sm-5"> <div class="form-group"> <label>Party Ledger Name <a href="#"> (Master)</a></label> <select class="form-control multiselect" name="ledger_name_main" required> <option value="">--SELECT--</option> <?php $mln = $form[0]['m_ledger_name']; foreach ($ledger as $led) { ?> <option value="<?php echo $led['lid']; ?>" <?php if($mln == $led['lid']){echo "selected";} ?>><?php echo $led['l_name']; ?></option> <?php } ?> </select> </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" value="<?php echo $form[0]['narration']; ?>" required=""> </div> </div> </div> <?php $me = $form[0]['m_effect']; $mse = $form[0]['ms_effect']; ?> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label>Ledger Name <a href="#"> (Master)</a></label> <div class="input-group"> <div class="input-group-addon"> <?php /*<select class="effect" name="m_effect" disabled=""> <option value="dr" <?php if($me == 'dr'){echo "selected";} ?>>Dr</option> <option value="cr" <?php if($me == 'cr'){echo "selected";} ?>>Cr</option> </select> */ ?> <input type="hidden" name="m_effect" value="dr"> <label>Dr</label> </div> <select class="form-control multiselect" name="ms_ledger" required> <option value="">--SELECT--</option> <?php $ml = $form[0]['ms_ledger']; foreach ($ledger as $led) { ?> <option value="<?php echo $led['lid']; ?>" <?php if($led['lid'] == $ml){echo "selected";} ?>><?php echo $led['l_name']; ?></option> <?php } ?> </select> </div> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label>Ledger Name <a href="#"> (Master)</a></label> <div class="input-group"> <div class="input-group-addon"> <?php /* <select class="effect" name="ms_effect"> <option value="dr" <?php if($mse == 'dr'){echo "selected";} ?>>Dr</option> <option value="cr" <?php if($mse == 'cr'){echo "selected";} ?>>Cr</option> </select> */ ?> <input type="hidden" name="ms_effect" value="cr"> <label>Cr</label> </div> <select class="form-control multiselect" name="ms_ledger_two" required> <option value="">--SELECT--</option> <?php $mlt = $form[0]['ms_ledger_two']; foreach ($ledger as $led) { ?> <option value="<?php echo $led['lid']; ?>" <?php if($led['lid'] == $mlt){echo "selected";} ?> ><?php echo $led['l_name']; ?></option> <?php } ?> </select> </div> </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');" value="<?php echo $form[0]['amt_gross']; ?>" required> </div> </div> <?php /* //if($form[0]['trans_type'] == 'bank'){ ?> <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" value="<?php echo $form[0]['check_no']; ?>" 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" value="<?php echo date('d-m-Y', strtotime($form[0]['check_date'])); ?>" required> </div> </div> </div> <?php //} */?> </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');?> <?php if($form[0]['trans_type'] == 'cash'){ ?> <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); } } </script> <?php }else{ ?> <script type="text/javascript"> function hide(obj){ if (obj.prop("checked")) { $('.cheque').hide(); } } function show(obj){ if (obj.prop("checked")) { $('.cheque').show(); $(".empty").prop('required',true); } } </script> <?php } ?> <?php if($form[0]['trans_type'] == 'cash'){ ?> <script type="text/javascript"> $('.cheque').hide(); $('.empty').val(''); $(".empty").prop('required',false); </script> <?php } ?>
Copyright ©2021 || Defacer Indonesia