whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
menu
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/menu/menu_edit.php
<style> #contentLeft ul { margin: 0; } #contentWrap { width: 700px; margin: 0 auto; height: auto; overflow: hidden; } #contentTop { width: 600px; padding: 10px; margin-left: 30px; } #contentLeft { float: left; width: 600px; } #contentLeft li { list-style: none; margin: 0 0 4px 0; padding: 10px; background-color:#fff; border: #CCCCCC solid 1px; color:#000; } #contentRight { float: right; width: 260px; padding:10px; background-color:#336600; color:#FFFFFF; } </style> <!DOCTYPE html> <html lang="en"> <body> <div id="wrapper"> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> <?php if (!isset($view)) {?> <?php echo "Add User Data"; ?> <?php }else{?> <?php echo "Edit Navigation Data"; ?> <?php }?> </h1> <ol class="breadcrumb"> <li> <i class="fa fa-home"></i> <a href="<?php echo site_url('admin/Welcome')?>">Home</a> </li> <li> <i class="fa fa-bars"></i> <a href="<?php echo site_url('admin/menumanagement')?>"> Navigation Management</a> </li> <li class="active"> <i class="fa fa-edit"></i> <?php if (!isset($view)) {?> <?php echo "Add User "; ?> <?php }else{?> <?php echo "Edit ";} ?> </li> </ol> </div> </div> <!-- /.row --> <!-- /.Form data --> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <div class="row"> <div class="col-lg-12"> <?php $attributes = array('class' =>'defaultForm','data-bv-message'=>'This value is not valid', 'data-bv-feedbackicons-validating'=>'glyphicon glyphicon-refresh'); if (!isset($view)) {?> <?php echo form_open("admin/usermanagement/adduser",$attributes); ?> <?php }else{?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($view[0]['menu_id']); $encrypted_cont_id = $this->model->encryptdata($view[0]['menu_content']); echo form_open("admin/menumanagement/editMenuData/{$encrypted_id}",$attributes); ?> <?php }?> <div class="col-lg-6"> <div class="form-group"> <label>Navigation Name</label> <input type="text" class="form-control" value="<?php if(isset($view)){echo $view[0]['menu_name'];}?>" name="menuname" required data-bv-notempty-message="The Menu Name is required and cannot be empty" > </div> <div class="form-group"> <label>Navigation Display Title</label> <input type="text" class="form-control" value="<?php if(isset($view)){echo $view[0]['menu_displayname'];}?>" name="menudisplayname" required data-bv-notempty-message="The Menu Name is required and cannot be empty" > </div> <div class="form-group"> <label>Navigation Position</label> <input type="text" class="form-control" readonly="" value="<?php if(isset($view)){echo $view[0]['menu_position'];}?>" required data-bv-notempty-message="The Menu Name is required and cannot be empty" > </div> <div class="form-group"> <label>Content Title <a href="../../contentmanagement/editContentData/<?php echo $encrypted_cont_id; ?>" target="_blank"><strong style="text-decoration: underline !important;">Show Content</strong></a></label> <input type="text" class="form-control" readonly="" value="<?php if(isset($view)){echo $view[0]['content_title'];}?>" required data-bv-notempty-message="The Menu Name is required and cannot be empty" /> </div> <button class="btn btn-info" name="save" value="save" type="submit">Save</button> <button class="btn btn-primary" name="reset" type="reset">Reset</button> </div> <?php echo form_close(); ?> <div class="col-lg-6"> <div id="contentLeft"> <ul> <?php $i=1; foreach($submenu as $key) {?> <li id="recordsArray_<?php echo $key['menu_id']?>"><?php echo $key['menu_displayname'] ?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($key['menu_id']); ?> <div style="float: right;"> <a href="<?php echo base_url(); ?>admin/menumanagement/editMenuData/<?php echo $encrypted_id; ?>" class="btn btn-primary" href=""><i class="glyphicon glyphicon-edit text-center"></i></a> <a href="<?php echo base_url(); ?>admin/menumanagement/deleteMenuData/<?php echo $encrypted_id; ?>" class="btn btn-danger" href=""><i class="fa fa-trash"></i></a> </div> </li> <input type="hidden" id="id_<?php echo $key['menu_id']?>" /> <?php $i++; } ?> </ul> </div> </div> </div> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> </div> <!-- /#wrapper --> </body> </html> <script type="text/javascript"> $(document).ready(function(){ $(function() { $url='<?php echo base_url();?>'+'menumanagement/menupostion'; $("#contentLeft ul").sortable({ opacity: 0.6, cursor: 'move', update: function() { var order = $(this).sortable("serialize") + '&action=updateRecordsListings'; $.post($url, order, function(theResponse){ $("#contentRight").html(theResponse); }); } }); }); }); </script>
Copyright ©2021 || Defacer Indonesia