EVOLUTION-NINJA
Edit File: product_details.php
<script> function displayproduct(str) { $.ajax({ type:"post", url:"<?php echo base_url(); ?>display_data/testingproduct", data:"id="+str, success:function(data) { document.getElementById("dynamicdatamster").innerHTML=data; } }); } </script> <?php //include("menu.php"); ?> <!-- BEGIN CONTENT --> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Product Details </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li><i class="fa fa-home"></i> <a href="<?php echo base_url();?>dashboard">Home</a> <i class="fa fa-angle-right"></i> <a href="#" > Product Type Master </a></li> </ul> </div> <?php $this->load->view('import_module/incentive_scheme_display'); ?> <?php if(empty($access_row)) { } else { if($access_row->insert_id == '1') { ?> <form action="<?php echo base_url(); ?>marketing/add_product" 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>Product details </div> <div class="tools"> </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> Type</th> <th style=" width: 180px !important;padding-left: 20px !important;" > Product Code</th> <th style=" width: 180px !important;padding-left: 20px !important;"> Product Type</th> <th style=" width: 180px !important;padding-left: 20px !important;"> No OF Sides</th> <?php if(empty($access_row)){ } else { if($access_row->edit_id == '1' ) { ?> <th style="width: 55px !important;padding-left: 20px !important;">Edit</th> <?php } } ?> <?php if(empty($access_row)){ } else { if($access_row->delete_id == '1' ) { ?> <th style="width: 55px !important;padding-left: 20px !important;">Delete</th> <?php } } ?> <?php if(empty($access_row)){ } else { if($access_row->preview_id== '1' ) { ?> <th style="width: 55px !important;padding-left: 20px !important;">Preview</th> <?php } } ?> </tr> </thead> <tbody> <?php $count=1; foreach($getalldata as $getresult) { ?> <tr> <td><?php echo $count++; ?></td> <td><a id="<?php echo $getresult->productID; ?>" onclick="displayproduct(this.id)" href="#" data-reveal-id="<?php echo $this->uri->segment(2); ?>" data-animation="fade"><?php echo $getresult->type; ?></a></td> <td><?php echo $getresult->fabricCode; ?></td> <td><?php echo $getresult->fabricType; ?></td> <td><?php echo $getresult->sides; ?></td> <?php if(empty($access_row)){ } else { if($access_row->edit_id == '1' ) { ?> <td> <a class="btn btn-circle btn-icon-only btn-default tooltips" style="margin-left: 10px;" data-original-title="Modify Record" href="<?php echo base_url(); ?>marketing/edit_product_details/<?php echo $getresult->productID; ?>"><i class="icon-pencil"></i> </a> </td> <?php }} ?> <?php if(empty($access_row)){ } else { if($access_row->delete_id == '1' ) { ?> <td> <a style="margin-left: 10px;" class="btn btn-circle btn-icon-only btn-default tooltips" data-original-title="Modify Record" href="<?php echo base_url(); ?>marketing/delete_product_details/<?php echo $getresult->productID; ?>"> <i class="fa fa-trash-o"></i> </a> </td> <?php }} ?> <?php if(empty($access_row)){ } else { if($access_row->preview_id == '1' ) { ?> <td> <a class="btn btn-circle btn-icon-only btn-default tooltips" style="margin-left: 10px;" data-original-title="Modify Record" href="<?php echo base_url(); ?>marketing/preview_product_details/<?php echo $getresult->productID; ?>"><i class="fa fa-eye"></i> </a> </td> <?php }} ?> </tr> <?php }?> </tbody> </table> </div> </div> <!-- END DASHBOARD STATS --> </div> </div> </div> <!-- End BEGIN CONTAINER --> <!-- BEGIN FOOTER --><style> th, table.table-bordered tbody td { border-left-width: 0; border-bottom-width: 0; text-align: center !important; } </style> <style> @media only screen and (min-width:320px) and (max-width:640px) { .dataTables_wrapper .dataTables_filter .form-control { width: 120px !important; } .reveal-modal { left: 86%; width: 94%; height: auto !important; } } </style>