?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/draft/application/views/Customer/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sgms/draft/application/views/Customer/single_customer.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('customer','viewincustomersearch','search_customer','view_customer','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Customer Details</span> <span class="heading-right"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('customer','edit_customer','<?=$customer->customer_id;?>','customer','customer_id','edit_customer')" alt="" /> </span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); ?> <input type="hidden" name='customer_id' value="<?=$customer->customer_id ?>"/> <input type="hidden" name='customer_type' value="<?=$customer->customer_type ?>"/> <ul> <li> <table class="sortnew"> <tr><th colspan='2' style="text-align: center">Customer Details</th></tr> <tr> <td>Customer ID</td> <td style="width:65%"> <?php echo $customer->customer_no; ?> </td> </tr> <tr> <td> Customer Name </td> <td style="width:65%"> <?php echo $customer->customer_name; ?> </td> </tr> <tr> <td> Address </td> <td style="width:65%"> <?php echo $customer->customer_address; ?> </td> </tr> <tr> <td> P.O Box </td> <td style="width:65%"> <?php echo $customer->customer_pobox; ?> </td> </tr> <tr> <td> City </td> <td style="width:65%"> <?php echo $customer->customer_city; ?> </td> </tr> <tr> <td> State </td> <td style="width:65%"> <?php echo $customer->customer_state; ?> </td> </tr> <tr> <td> Country </td> <td style="width:65%"> <?php echo $customer->customer_country; ?> </td> </tr> <tr> <td> Contact No </td> <td style="width:65%"> <?php echo $customer->customer_contact_no; ?> </td> </tr> <tr> <td> Fax </td> <td style="width:65%"> <?php echo $customer->customer_fax; ?> </td> </tr> <tr> <td> Email </td> <td style="width:65%"> <?php echo $customer->customer_email; ?> </td> </tr> <tr> <td> Status </td> <td style="width:65%"> <?php echo $customer->customer_status;?> </td> </tr> </table> <table class="sortnew"> <tr><th colspan="2" style="text-align: center">Customer Reference Information</th></tr> <tr> <td>Employee Name</td> <td> <?=$this->mastermodel->getSingleFieldValue('employee','employee_name','employee_id',$customer_reference->employee_id);?> </td> </tr> <tr> <td>Date</td> <td> <?=$this->mastermodel->convertdatenormalformat($customer_reference->customer_allocation_date);?> </td> </tr> <tr> <td>Description</td> <td> <?=$customer_reference->description;?> </td> </tr> </table> <?php if($customer->customer_type==1) { ?> <table class="sortnew"> <tr><th colspan="2" style="text-align: center">Customer Personal Information</th></tr> <tr> <td>Customer D.O.B</td> <td> <?php echo $customer_personal->customer_dob; ?> </td> </tr> <tr> <td>Gender</td> <td> <?php echo $customer_personal->customer_gender;?> </td> </tr> <tr> <td>Profession</td> <td> <?php echo $customer_personal->customer_profession; ?> </td> </tr> <tr> <td>Marital Status</td> <td> <?php echo $customer_personal->customer_marital_status;?> </td> </tr> </table> <?php } if(sizeof($customer_corporate)>0) { ?> <table class="sortnew"> <tr><th colspan="2" style="text-align: center">Customer Corporate Information</th></tr> <tr> <td>Group Name</td> <td> <?php echo $customer_corporate->customer_group_name; ?> </td> </tr> <tr> <td>Business Activity</td> <td> <?php echo $customer_corporate->customer_business_activity; ?> </td> </tr> <tr> <td>Web site:</td> <td> <?php echo $customer_corporate->customer_website; ?> </td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Contact Name</th> <th>Designation</th> <th>Mobile</th> <th>Phone</th> <th>Email</th> </tr> <?php $i=1; foreach($customer_corporate_contacts as $k=>$row) { echo '<tr>'; echo '<td>'. $row['contact_name'] .'</td>'; echo '<td>'. $row['contact_designation'] .'</td>'; echo '<td>'. $row['contact_mobile'] .'</td>'; echo '<td>'. $row['contact_phone'] .'</td>'; echo '<td>'. $row['contact_email'] .'</td></tr>'; $i++; } ?> </table> <?php } ?> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <caption>Customer Files</caption> <tr> <th>S.No</th> <th style="width: 79%">File Name</th> <th style="width: 13%">Operation</th> </tr> <?php $i=1; $customer_file=$this->mastermodel->get_data('customer_file',$customer->customer_id,'customer_id'); foreach ($customer_file as $file) { echo '<tr>'; echo '<td>'. $i .'</td>'; echo '<td>'. $file['file_name'] .'</td>'; echo '<td>'; ?> <div id="console_fronticons"> <div class="fronticons"> <a href="<?=base_url().$file['file_location'];?>"><img src="<?=base_url()?>assets/images/downarrow.png" title="Download" alt="Download" width="20" height="20"/></a> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('customer_file',<?=$file['id'];?>,'id','customer','viewincustomersearch','search_customer','view_customer','','')" alt="Delete" align = "center"/> </div> </div> <?php echo '</td>'; $i++; } ?> </table> </li> <br/> <br/> </ul> <?php echo form_close();?> </fieldset>