whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
master
/
tax
/
Upload File:
files >> //proc/self/root/home/papecmvm/public_html/application/views/webapp/master/tax/add.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php');?> <style type="text/css"> .test .btn{ /*float: left;*/ } .remove{ } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Edit Tax </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('webapp/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">Edit Tax</li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('id' => 'formid'); echo form_open("webapp/master/tax/edit",$attributes); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <div class="text-left"> </div> </div><!-- /.box-header --> <div class="box-body"> <div class="col-sm-3"> <?php $exs = explode('|', $tax[0]['sgst']); $si = 1; for ($i=0; $i < count($exs); $i++) { ?> <div class="form-group"> <label>SGST <?php echo $si; ?></label> <input type="text" name="sgst[]" class="form-control" value="<?php echo $exs[$i]; ?>" required> </div> <?php $si++; } ?> </div> <div class="col-sm-3"> <?php $exc = explode('|', $tax[0]['cgst']); $ci = 1; for ($k=0; $k < count($exc); $k++) { ?> <div class="form-group"> <label>CGST <?php echo $ci; ?></label> <input type="text" name="cgst[]" class="form-control" value="<?php echo $exc[$k]; ?>" required> </div> <?php $ci++; } ?> </div> <div class="col-sm-3"> <?php $exu = explode('|', $tax[0]['ugst']); $ui = 1; for ($j=0; $j < count($exu); $j++) { ?> <div class="form-group"> <label>UGST <?php echo $ui; ?></label> <input type="text" name="ugst[]" class="form-control" value="<?php echo $exu[$j]; ?>" required> </div> <?php $ui++; } ?> </div> <div class="col-sm-3"> <?php $exi = explode('|', $tax[0]['igst']); $ii = 1; for ($v=0; $v < count($exi); $v++) { ?> <div class="form-group"> <label>IGST <?php echo $ii; ?></label> <input type="text" name="igst[]" class="form-control" value="<?php echo $exi[$v]; ?>" required> </div> <?php $ii++; } ?> </div> <span class="hide_block" style="display: none;"> <div class="col-sm-3"> <label>SGST </label> <input type="text" name="sgst[]" class="form-control" value=""> </div> <div class="col-sm-3"> <label>CGST </label> <input type="text" name="cgst[]" class="form-control" value=""> </div> <div class="col-sm-3"> <label>UGST </label> <input type="text" name="ugst[]" class="form-control" value=""> </div> <div class="col-sm-3"> <label>IGST </label> <input type="text" name="igst[]" class="form-control" value=""> </div> </span> <br> <div class="optionBox"> <div class="block"> </div> </div> <div class="col-sm-12"> <br> <span class="add"><a class="btn btn-info"><i class="fa fa-plus"></i></a></span> </div> <div class="col-sm-12"> <input type="submit" name="save" value="save" class="btn btn-primary"> </div> <script type="text/javascript"> $('.add').click(function() { var numItems = $('.block').length; var i=numItems; var html = $(".hide_block").html(); $('.block:last').before('<soan class="del'+i+'"><div class="block">'+html+'</div><div class="col-sm-12"><span class="test"><a class="btn btn-danger remove" onclick="remove_fun('+i+')"><i class="fa fa-minus"></i></a></span></div></div>'); }); function remove_fun(id){ $(".del"+id).remove(); } </script> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?> <script type="text/javascript"> $(document).ready(function(){ //---------------- delete message ------------------------------------- $('#deletedata').click(function() { var exists = $('input[type=checkbox][name^=ck]:checked').filter(':checked').length; if( !exists ) { alert('Please select at least 1 checkbox!'); return false; } else if(confirm('Are you sure you want to delete this Data?')) { var cct = $.cookie("<?php echo $this->config->item('csrf_cookie_name'); ?>"); var postData = $('input[type=checkbox][name^=ck]:checked').serialize(); $.post("postmanagement/deletepostselected",{ck: postData,'<?php echo $this->security->get_csrf_token_name(); ?>': cct}, function(data,status){ location.reload(); }); //$('#formid').submit(); } else { return false; } }); }); </script>
Copyright ©2021 || Defacer Indonesia