whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
office_user
/
Upload File:
files >> //home/papecmvm/public_html/application/views/webapp/office_user/edit_form_two.php
<style type="text/css"> .custom-control-inline{ display: inline-flex; margin-right: 1rem; } .form-two p{ margin-top:-10px; margin-bottom:0px; } </style> <?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; } .expremove{ position: absolute; top: 24px; z-index: 1; left: 22px; } .er{ position: absolute; top: 24px; z-index: 1; left: 22px; } .expadd{ margin-left: 16px; } .ea{ margin-left: 16px; } </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"> <div class="modal-dialog modal-sm" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Add ledger</h4> </div> <div class="modal-body"> <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="modal-footer"> <button class="btn btn-primary" name="Save" value="Save">Save</button> </div> </div> </div> </div> </form> <!--To add master ledger name--> <!-- 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"> <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="row"> <div class="col-sm-12"> <div class="col-sm-12"> <label>Without Inventory</label> </div> </div> </div><!--row--> <!--form without inventory--> <div class="col-xs-12 col-sm-12 col-md-12 form-two"> <div class="form-div"> <?php $atr = array("id" => "submin_form_one"); echo form_open("webapp/office/add_sales_two", $atr); ?> <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; ?>"> <input type="hidden" name="year" value="<?php echo $yr; ?>"> <input type="hidden" name="month" value="<?php echo $mn; ?>"> <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'])); ?>"> </div> </div> <div class="col-sm-4"> <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-4"> <div class="form-group"> <label>Ref No (Bill No)</label> <input type="text" name="ref_no" class="form-control" value="<?php echo $form[0]['ref_no']; ?>"> </div> </div> </div><!--row--> <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']; ?>"> </div> </div> </div><!--row--> <div class="row"> <div class="col-sm-8"> <div class="form-group"> <label>Cr. Ledger Name <a href="#"> (Master)</a></label> <select class="form-control multiselect" name="cr_ledger" required> <option value="">--SELECT--</option> <?php $lid = $form[0]['m_ledger_name'] ; foreach ($ledger as $led) { ?> <option <?php if($lid == $led['lid']){echo "selected";} ?> value="<?php echo $led['lid']; ?>"><?php echo $led['l_name']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label>Amount</label> <input type="text" name="cr_amt" class="cr_amt form-control" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\..*)\./g, '$1');" value="<?php echo $form[0]['amt_taxable']; ?>" required> </div> </div> </div><!--row--> <div class="row"> <div class="col-sm-3"> <div class="form-group"> <label>SGST</label> <select class="form-control sgst" name="sgst"> <option value="">--SELECT--</option> <?php $exs = explode('|', $tax[0]['sgst']); for ($i=0; $i < count($exs); $i++) { ?> <option value="<?php echo $exs[$i]; ?>" <?php if($form[0]['sgst'] == $exs[$i]){ echo "selected"; } ?>><?php echo $exs[$i]; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>CGST</label> <select class="form-control cgst" name="cgst"> <option value="">--SELECT--</option> <?php $exc = explode('|', $tax[0]['cgst']); for ($k=0; $k < count($exc); $k++) { ?> <option value="<?php echo $exc[$k]; ?>" <?php if($form[0]['cgst'] == $exc[$k]){ echo "selected"; } ?>><?php echo $exc[$k]; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>UGST</label> <select class="form-control ugst" name="ugst"> <option value="">--SELECT--</option> <?php $exu = explode('|', $tax[0]['ugst']); for ($j=0; $j < count($exu); $j++) { ?> <option value="<?php echo $exu[$j]; ?>" <?php if($form[0]['ugst'] == $exc[$j]){ echo "selected"; } ?>><?php echo $exu[$j]; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>IGST</label> <select class="form-control igst" name="igst"> <option value="">--SELECT--</option> <?php $exi = explode('|', $tax[0]['igst']); for ($v=0; $v < count($exi); $v++) { ?> <option value="<?php echo $exi[$v]; ?>" <?php if($form[0]['igst'] == $exi[$v]){ echo "selected"; } ?>><?php echo $exi[$v]; ?></option> <?php } ?> </select> </div> </div> </div><!--row--> <div class="row"> <div class="col-sm-3"> <div class="form-group"> <label>Tax AMT SGST</label> <p class="sgst_tax_amt">0</p> <input type="text" value="<?php echo $form[0]['s_aot']; ?>" name="sgst_tax_amt" class="form-control" > </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Tax AMT CGST</label> <p class="cgst_tax_amt">0</p> <input type="text" value="<?php echo $form[0]['c_aot']; ?>" name="cgst_tax_amt" class="form-control" > </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Tax AMT UGST</label> <p class="ugst_tax_amt">0</p> <input type="text" value="<?php echo $form[0]['u_aot']; ?>" name="ugst_tax_amt" class="form-control" > </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Tax AMT IGST</label> <p class="igst_tax_amt">0</p> <input type="text" value="<?php echo $form[0]['i_aot']; ?>" name="igst_tax_amt" class="form-control" > </div> </div> </div><!--row--> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label>Dr. Ledger Name <a href="#"> (Master)</a></label> <select class="form-control multiselect dr_ledger" name="dr_ledger" required> <option value="">--SELECT--</option> <?php $sid = $form[0]['s_ledger_name']; foreach ($ledger as $led) { ?> <option value="<?php echo $led['lid']; ?>" <?php if($sid == $led['lid']){echo "selected";} ?>><?php echo $led['l_name']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label>Amount Gross (<span class="amt_gross"></span>)</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 value="<?php echo $form[0]['amt_gross']; ?>"> </div> </div> </div><!--row--> <input type="submit" name="save" value="Save" class="btn btn-primary"> <?php echo form_close(); ?> </div> </div><!--form without inventory--> </div> </div> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?> <script> $(".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, success: function (data) { $('.m_ledger')[0].reset(); $(".master_ledger").modal('hide'); //$(".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(); } </script> <!-- script for form two--> <script type="text/javascript" src="<?php echo base_url(); ?>webapp/js/form_two.js"></script>
Copyright ©2021 || Defacer Indonesia