EVOLUTION-NINJA
Edit File: reg_supervisor_view.php
<?php echo $this->load->view('includes/region_header');?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <!-- <h1 class="page-header"> Dashboard <small>Statistics Overview</small> </h1> <ol class="breadcrumb"> <li class="active"> <i class="fa fa-user" aria-hidden="true"></i> Manage Users </li> </ol>--> </div> </div> <!-- /.row --> <!-- <div class="row"> --> <!--<section class="row">--> <!-- <div class="col-sm-8">--> <!-- <h1 style="margin-left:15%;">--> <!-- Supervisor --> <!-- </h1> --> <!-- </div>--> <!-- <div class="col-sm-2"></div>--> <!-- </section>--> <!--<div class="row">--> <!--<div class="col-sm-12">--> <!-- <div id = "jaytab" style="width: 1000px; margin-top:3%;margin-left:5%;">--> <!-- <p>Last Updated Date and Time is : <?php if(empty($time)) { echo "Data not found"; }else{ echo $time->createdate; } ?></p>--> <!-- <table id="list2"></table>--> <!-- <div id="pager2"></div>--> <!-- <div id="dialogSelectRow" title="Warning" style="display:none">--> <!-- <p>Please select row</p>--> <!-- </div> --> <!-- </div>--> <!-- <div class="row" style="padding-bottom:20px;"></div>--> <!-- </div> --> <!-- </div>--> <!-- </div>--> <section class="admin_heading"> <div class="col-sm-12"> <h3>Supervisor</h3> </div> <div class="col-sm-12"> <div id = "jaytab" style="width: 100%; margin-top:1%;"> <p>Last Updated Date and Time is : <?php if(empty($time)) { echo "Data not found"; }else{ echo $time->createdate; } ?></p> <table id="list2"></table> <div id="pager2"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> </section> <?php $ci =& get_instance(); $base_url = base_url(); ?> <!-- /.row end--> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> <!-- /#wrapper --> <!-- jQuery <script src="<?php echo base_url('admin_assets/js/jquery.js');?>"></script> <!-- Bootstrap Core JavaScript <script src="<?php echo base_url('admin_assets/js/bootstrap.min.js');?>"></script> <!-- Morris Charts JavaScript <script src="<?php echo base_url('admin_assets/js/plugins/morris/raphael.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/morris.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/morris-data.js');?>"></script>--> <?php echo $this->load->view('includes/region_footer');?> <script> $(document).ready(function (){ //$("#pager2_left").hide(); $('.ui-pg-div').hide(); //alert(l); jQuery("#list2").jqGrid({ url:"<?php echo site_url('controller/reg_supervisor_view_insert');?>", mtype : "post", datatype: "json", colNames:['Id','Usercode','Username','Email','Password','Phone','Department','Role'], colModel:[ {name:'id',index:'id', width:100, align:'center',key:true,editable:true,hidden:true}, {name:'usercode', index:'usercode', align:'center',editable:true, width:100}, //{name:'region', index:'region', align:'center',editable:true, width:100,formatter: 'select'}, {name:'username', index:'username', width:150, align:'center', sortable:false,editable:true,edittype:'text'}, {name:'email', index:'email', width:100, align:'center',editable:true,edittype:'text'}, {name:'password', index:'password', width:100, align:'center', sortable:false,editable:true,edittype:'text'}, {name:'phone', index:'phone', width:100, align:'center', sortable:false,editable:true,edittype:'text'}, {name:'department', index:'department', width:100, align:'center', sortable:false,formatter: 'select',editable:true, edittype:'select',editoptions:{value:{<?php foreach($supervisor as $sup){ ?> <?php echo $sup->id;?>:'<?php echo $sup->role;?>',<?php } ?>} } }, {name:'role', index:'role', width:100, align:'center',formatter: 'select', sortable:false,editable:true,edittype:'select',editoptions:{value:{<?php foreach($supervisor as $sup){ ?> <?php echo $sup->id;?>:'<?php echo $sup->role;?>',<?php } ?>} } } ], rowNum:50, rowTotal: 2000, rowList : [50,100,500,1000], rownumbers: true, rownumWidth: 40, pager:"#pager2", sortname:'id', viewrecords: true, loadonce:true, gridview: true, autowidth: true, sortorder:"desc", caption:"supervisor" }); $("#list2").jqGrid('filterToolbar',{searchOperators : false});//for multisearch code,remove if not required }); </script> <!-- Bootstrap Core JavaScript --> <script src="<?php echo base_url('admin_assets/js/bootstrap.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/raphael.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/morris.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/morris-data.js');?>"></script>