whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
master
/
item
/
Upload File:
files >> //proc/self/root/home/papecmvm/public_html/application/views/webapp/master/item/add_item.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php');?> <style type="text/css"> .select2-container .select2-selection--single{ height:34px; } .select2-container--default .select2-selection--single{ border-radius: 0px; } .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height: 31px; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php if(isset($item)){ ?> Edit Item <?php }else{ ?> Add Item <?php } ?> </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"><?php if(isset($item)){ ?> Edit Item <?php }else{ ?> Add Item <?php } ?></li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('id' => 'formid'); if(isset($item)){ echo form_open("webapp/master/item/edit/".$item[0]['id'],$attributes); }else{ echo form_open("webapp/master/item/add",$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"> <div class="form-group"> <label>Select Group</label> <select name="gid" class="form-control multiselect" required=""> <option value="">--Select Group--</option> <?php foreach ($group as $g) { ?> <option value="<?php echo $g['gid']; ?>" <?php if(isset($item)){ if($item[0]['gid'] == $g['gid']){ echo "selected"; } }?> ><?php echo $g['gname']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label>Select Item Category</label> <select name="cid" class="form-control multiselect" required=""> <option value="">--Select Item Category--</option> <?php foreach ($cat as $c) { ?> <option value="<?php echo $c['cid']; ?>" <?php if(isset($item)){ if($item[0]['cid'] == $c['cid']){ echo "selected"; } }?> ><?php echo $c['cname']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-2"> <div class="form-group"> <label>Select Unit</label> <select name="uid" class="form-control multiselect" required=""> <option value="">--Select Item Unit--</option> <?php foreach ($unit as $u) { ?> <option value="<?php echo $u['uid']; ?>" <?php if(isset($item)){ if($item[0]['uid'] == $u['uid']){ echo "selected"; } }?> ><?php echo $u['name']; ?></option> <?php } ?> </select> </div> </div> <div class="col-sm-2"> <label>Item Name</label> <div class="form-group"> <input type="text" class="form-control" name="item_name" value="<?php if(isset($item)){echo $item[0]['item_name'];}?>" placeholder="Item Name" required=""> </div> </div> <div class="col-sm-2"> <label>HSN Code</label> <div class="form-group"> <input type="text" class="form-control" name="hsn" value="<?php if(isset($item)){echo $item[0]['hsn'];}?>" placeholder="HSN Code" required=""> </div> </div> <div class="col-sm-12"> <input type="submit" name="save" value="save" class="btn btn-primary"> <a class="btn btn-info" href="<?php echo base_url().'webapp/master/item' ?>">Back</a> </div> </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