EVOLUTION-NINJA
Edit File: fabric_routing_details.php
<div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Fabric Process Master Details </h3> <?php // echo $this->load->view('templates/nav_menu'); ?> <div class="page-bar"> <ul class="page-breadcrumb"> <li><i class="fa fa-home"></i> <a href="<?php echo base_url();?>dashboard/dashboard_fun">Home</a> <i class="fa fa-angle-right"></i> <a href="<?php echo base_url('planning/fabric_routing_details'); ?>" > Fabric Process Master </a></li> </ul> </div> <?php //echo $this->load->view('import_module/masters_data_display'); ?> <div id="articledatadisplay" class="reveal-mastermoduledata" style=" width: 84%; height: 95%;overflow: scroll;"> <div id="container" style="height: 200px; margin: 0 auto; float:left"></div> <br><div id="tablesdatadisplay" style=""></div> <a class="close-reveal-modal">×</a> </div> <?php if(empty($access_row)) { } else { if($access_row->insert_id == '1') { ?> <form action="<?php echo base_url(); ?>planning/add_fabricmaster" method="post" class="form-horizontal"> <b>To insert data click here:</b> <input type="submit" name="Insert" value="Insert" /><br><br> </form> <?php } else { ?> <?php } }?> <!-- END PAGE HEADER--> <!-- BEGIN DASHBOARD STATS --> <div class="portlet box blue-madison"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-globe"></i>Fabric Process Master Details </div> <div class="tools"> <!--<a href="javascript:;" class="reload"> </a> <a href="#" style="color: #fff;"> <i class="fa fa-file-pdf-o tooltips" data-container="body" data-placement="top" data-original-title="Export PDF" style="font-size: 20px;"></i> </a> <a href="#" style="color: #fff;"> <i class="fa fa-file-excel-o tooltips" data-container="body" data-placement="top" data-original-title="Export Excel" style="font-size: 20px;"></i> </a> <a href="#" style="color: #fff;"> <i class="fa fa-print tooltips" data-container="body" data-placement="top" data-original-title="Take Print" style="font-size: 20px;"></i> </a>--> </div> </div> <div class="portlet-body"> <table class="table table-striped table-bordered table-hover" id="sample_1"> <thead> <tr> <th> Sr.No.</th> <th> Fabric Process Flow</th> <th> Process Description</th> <th> Created_by</th> <?php if(empty($access_row)){ } else { if($access_row->edit_id == '1' ) { ?> <th> Edit </th> <?php }} ?> <?php if(empty($access_row)){ } else { if($access_row->delete_id == '1' ) { ?> <th> Delete </th> <?php }} ?> <?php if(empty($access_row)){ } else { if($access_row->preview_id== '1' ) { ?> <th> Preview </th> <?php }} ?> </tr> </thead> <tbody> <?php $counts=1; foreach($getresult as $results) { ?> <tr> <td><?php echo $counts; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->fabricType; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->description; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->created_by; ?></td> <?php if(empty($access_row)){ } else { if($access_row->edit_id == '1' ) { ?> <td><a href="<?php echo base_url(); ?>planning/edit_fabricmaster?id=<?php echo $results->fabricID;?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> EDIT</a></td> <?php } } ?> <?php if(empty($access_row)){ } else { if($access_row->delete_id == '1' ) { ?> <td><a href="<?php echo base_url(); ?>planning/delete_fabric?id=<?php echo $results->fabricID;?>"><i class="fa fa-trash-o" aria-hidden="true"></i> DELETE <!--<a><input onclick="removedata(<?php echo $results->fabricID; ?>)" type="button" style="border: 0px !important; background: none !important; color:rgb(81,149,205);" value="Delete">--> </a></td> </th> <?php } } ?> <?php if(empty($access_row)){ } else { if($access_row->preview_id== '1' ) { ?> <td><a href="<?php echo base_url(); ?>planning/preview_fabricmaster?id=<?php echo $results->fabricID;?>"><i class="fa fa-eye" aria-hidden="true"></i> PREVIEW</a></td> <?php } } ?> </tr> <?php $counts++; }?> </tbody> </table> </div> </div> <!-- END DASHBOARD STATS --> </div> </div> </div> <!-- End BEGIN CONTAINER --> <script> function removedata(b) { //alert(b); $.ajax({ type:'post', url:'<?php echo base_url("planning/delete_fabric"); ?>', data:{'as':b}, async:false, success:function() { window.location.reload(); } }); } </script> <!-- BEGIN FOOTER -->