EVOLUTION-NINJA
Edit File: customer_master_details.php
<?php //include("menu.php"); error_reporting(E_ALL); ?> <script> function displaycustomer(str) { $.ajax({ type:"post", url:"<?php echo base_url(); ?>display_data/testingcustomer", 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"> Customer Details </h3> <?php $this->load->view('templates/nav_menu'); ?> <?php $this->load->view('import_module/masters_data_display'); ?> <form action="<?php echo base_url(); ?>marketing/add_customer" method="post" class="form-horizontal"> <b>To insert data click here:</b> <input type="submit" name="Insert" value="Insert" /><br><br> </form> <!-- 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>Customer details </div> <div class="tools"> <!--<a href="javascript:;" class="reload"> </a>--> <?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> </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> Customer Name</th> <th> Product Type</th> <th> Customer ID</th> <th> Customer Address</th> <th> Country</th> <th> Mobile</th> <th> Phone No</th> <th> Email</th> <th> Website</th> <th> SinceFrom</th> <th>Action</th> </tr> </thead> <tbody> <?php $count=1; foreach($getalldata as $getresult) { $query = $this->db->query('SELECT country FROM country where id="' . $getresult->country . '"'); $res = $query->row(); ?> <tr> <td><?php echo $count++; ?></td> <td><a id="<?php echo $getresult->id; ?>" onclick="displaycustomer(this.id)" href="#" data-reveal-id="<?php echo $this->uri->segment(2); ?>" data-animation="fade"><?php echo $getresult->customerName; ?></a></td> <td><?php echo $getresult->productType; ?></td> <td><?php echo $getresult->customerID; ?></td> <td><?php echo $getresult->customerAddress; ?></td> <td><?php echo $res->country; ?></td> <td><?php echo $getresult->mobile; ?></td> <td><?php echo $getresult->phoneNo; ?></td> <td><?php echo $getresult->email; ?></td> <td><?php echo $getresult->website; ?></td> <td><?php echo date('d/m/Y',strtotime($getresult->agencyFromDate)); ?></td> <td> <!--<a href="<?php echo base_url(); ?>marketing/edit_customer_master_details/<?php echo $getresult->id; ?>">Edit</a>--> <a class="btn btn-circle btn-icon-only btn-default tooltips" data-original-title="Modify Record" href="<?php echo base_url(); ?>marketing/edit_customer_master_details/<?php echo $getresult->id; ?>"> <i class="icon-pencil"></i> </a> </td> </tr> <?php }?> </tbody> </table> </div> </div> <!-- END DASHBOARD STATS --> </div> </div> </div> <!-- End BEGIN CONTAINER --> <!-- BEGIN FOOTER -->