EVOLUTION-NINJA
Edit File: incentive_schemes_details.php
<script> function displayincentiveschemes(str) { $.ajax({ type:"post", url:"<?php echo base_url(); ?>display_data/testingscheem", 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"> Incentive Schemes Details </h3> <?php $this->load->view('templates/nav_menu'); ?> <?php if(empty($access_row)) { } else { if($access_row->insert_id == '1') { ?> <div style="text-align: left; padding:0px; margin-bottom: 15px;"> <a href="<?php echo base_url(); ?>import/incentive_schemes " class="btn btn-sm green"><i class="fa fa-plus"></i> To Insert Data Click Here </a> </div> <?php } else { ?> <?php } }?> <!-- <form action="<?php echo base_url(); ?>import/incentive_schemes" method="post" class="form-horizontal"> <b>To insert data click here:</b> <input type="submit" name="Insert" value="Insert" /><br><br> </form> --> <?php $this->load->view('import_module/incentive_scheme_display'); ?> <!-- 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>Incentive Schemes Details</div> <div class="tools"> <?php //echo $this->load->view('templates/download_types'); ?> <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> <!--<a href="javascript:;" class="reload"> </a>--> </div> </div> <div class="portlet-body"> <table class="table table-striped table-bordered table-hover" id="sample_1"> <thead> <tr> <th>S.No</th> <th> Scheme No. </th> <th> Date </th> <th> Duty Credit ₹</th> <th> Balance Availaible </th> <th> Reference </th> <!--<th> Action </th>--> </tr> </thead> <tbody> <?php $count=1; foreach($getalldata as $results) { ?> <tr> <td><?php echo $count++; ?></td> <td><a id="<?php echo $results->id; ?>" onclick="displayincentiveschemes(this.id)" href="#" data-reveal-id="<?php echo $this->uri->segment(2); ?>" data-animation="fade"><?php echo $results->scheme_no; ?></a></td> <td><?php echo date('d/m/Y', strtotime($results->date)); ?></td> <td><?php echo "₹ ".$results->duty_credit; ?></td> <td><?php echo $results->balance_availaible; ?></td> <td><?php echo $results->reference; ?></td> <!--<td><a href="<?php echo base_url(); ?>import/edit_incentive_scheem/<?php echo $results->id; ?>">Edit</a></td>--> </tr> <?php }?> </tbody> </table> </div> </div> <!-- END DASHBOARD STATS --> </div> </div> </div> <!-- End BEGIN CONTAINER --> <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>