EVOLUTION-NINJA
Edit File: supplier_details.php
<script> function displaysupplierdata(str) { $.ajax({ type:"post", url:"<?php echo base_url(); ?>display_data/testingsupply", 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"> Supplier Details </h3> <?php $this->load->view('templates/nav_menu'); ?> <!-- END PAGE HEADER--> <!-- BEGIN DASHBOARD STATS --> <?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/supplier_master " 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/supplier_master" method="post" class="form-horizontal"> <b>To insert data click here:</b> <input type="submit" name="Insert" value="Insert" /><br><br> </form>--> <?php echo $this->session->flashdata('flash_message'); ?> <?php echo $this->load->view('import_module/suppliermaster_display'); ?> <div class="portlet box blue-madison"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-globe"></i>Supplier details</div> <div class="tools"> <!--<?php //echo $this->load->view('templates/download_types'); ?>--> <!--<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> Import File No. </th> <th> Supplier Type </th> <th> Supplier Name </th> <th> Address </th> <th> Country </th> <!-- <th> Mobile </th> <th> Phone </th> <th> Fax </th> <th> E-mail </th> <th> Website </th>--> <th> Contact Person </th> <th> Banker Name </th> <th> Banker Address </th> <th> Since From </th> <th> Purchase Type </th> <?php if(empty($access_row)){ } else { if($access_row->edit_id == '1' ) { ?> <th style="width:1000em"> Action </th> <?php }} ?> </tr> </thead> <tbody> <?php $count=1; foreach($getalldata as $results) { $countryname=mysql_query("SELECT * FROM country WHERE id='".$results->country."'"); $country_result=mysql_fetch_array($countryname); ?> <tr> <td><?php echo $count++; ?></td> <td><a id="<?php echo $results->id; ?>" onclick="displaysupplierdata(this.id)" href="#" data-reveal-id="<?php echo $this->uri->segment(2); ?>" data-animation="fade"><?php echo $results->import_fileno; ?></a></td> <td><?php echo strtoupper($results->customer_type); ?></td> <td><?php echo strtoupper($results->customer_name); ?></td> <td><?php echo $results->address; ?></td> <!-- <td><?php echo $country_result['country']; ?></td>--> <td><?php echo $results->country; ?></td> <!-- <td><?php //echo $results->mobile; ?></td> <td><?php //echo $results->phone; ?></td> <td><?php //echo $results->fax; ?></td> <td><?php //echo $results->email; ?></td> <td><?php //echo $results->website; ?></td>--> <td><?php echo $results->contact_person; ?></td> <td><?php echo $results->banker_name; ?></td> <td><?php echo $results->banker_address; ?></td> <td><?php echo date('d/m/Y',strtotime($results->since_from)); ?></td> <td><?php echo $results->purchase_type; ?></td> <?php if(empty($access_row)){ } else { if($access_row->edit_id == '1' ) { ?> <td> <!--<a href="<?php echo base_url(); ?>import/edit_supplier_master/<?php echo $results->id; ?>">Edit</a>--> <a class="btn btn-circle btn-icon-only btn-default tooltips" data-original-title="Modify Record" href="<?php echo base_url(); ?>import/edit_supplier_master/<?php echo $results->id; ?>"> <i class="icon-pencil"></i> </a> <!-- <a class="btn btn-circle btn-icon-only btn-default tooltips" data-original-title="Delete Record" href="#"> <i class="icon-trash"></i> </a>--> </td> <?php } } ?> </tr> <?php }?> </tbody> </table> </div> </div> <!-- END DASHBOARD STATS --> </div> </div> </div> <!-- End BEGIN CONTAINER --> <!-- BEGIN FOOTER --> <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%; margin-bottom: 20px; } <!-- .reveal-modal { visibility: hidden; top: auto; left:86% !important; margin-left: 0px; width: 340px !important; height: 700px; position: absolute; z-index: 101; }--> #dynamicdatamster{ overflow-x:auto !important; } } </style>