EVOLUTION-NINJA
Edit File: designmaster_details.php
<div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Design Master Details </h3> <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/design_master_list'); ?>" > design Master </a></li> </ul> </div> <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_designmaster" 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>Design 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> Prefix</th> <th> Design #</th> <th> Vertical Repeat(Cms)</th> <th> Horizontal Repeat(Cms)</th> <th> Description</th> <th> Design Type</th> <th> Comment</th> <th> Rate/mt</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->prefixes; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->designmp; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->verticle_rep; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->horizontal_rep; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->description; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->design_type; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->comment; ?></td> <td style="text-transform: uppercase !important"><?php echo $results->rate; ?></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_designmaster?id=<?php echo $results->id;?>"><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_design_master?id=<?php echo $results->id; ?>"><i class="fa fa-trash-o" aria-hidden="true"></i> DELETE</a></td> <?php } } ?> <?php if(empty($access_row)){ } else { if($access_row->preview_id== '1' ) { ?> <td><a href="<?php echo base_url(); ?>planning/preview_designmaster?id=<?php echo $results->id;?>"><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 --> <!-- BEGIN FOOTER --><script> function removedata(b) { //alert(b); $.ajax({ type:'post', url:'<?php echo base_url("planning/delete_design_master"); ?>', data:{'as':b}, async:false, success:function() { window.location.reload(); } }); } </script>