?
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/edit_customer.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"/> <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">Updating customer</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('customer/addincustomer/update_customer/view_customer',$attributes); $status=$this->mastermodel->getenumvalues('customer', 'customer_status'); ?> <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 $data = array( 'name' => 'customer_no', 'id' => 'customer_no', 'class' =>'required', 'value' => $customer->customer_no ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Customer Name </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_name', 'id' => 'customer_name', 'class' =>'required', 'value' => $customer->customer_name ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Address </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_address', 'id' => 'customer_address', 'rows' => '10', 'cols' => '5', 'style' => 'width:80%', 'value' => $customer->customer_address ); echo form_textarea($data).form_error($data); ?> </td> </tr> <tr> <td> P.O Box </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_pobox', 'id' => 'customer_pobox', 'value' => $customer->customer_pobox ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> City </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_city', 'id' => 'customer_city', 'value' => $customer->customer_city ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> State </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_state', 'id' => 'customer_state', 'value' => $customer->customer_state ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Country </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_country', 'id' => 'customer_country', 'value' => $customer->customer_country ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Contact No </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_contact_no', 'id' => 'customer_contact_no', 'class' =>'required', 'value' => $customer->customer_contact_no ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Fax </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_fax', 'id' => 'customer_fax', 'value' => $customer->customer_fax ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Email </td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_email', 'id' => 'customer_email', 'value' => $customer->customer_email ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td> Status </td> <td style="width:65%"> <select name="customer_status" id="customer_status" class="required" > <?php if(count($status['val'])>0) { foreach ($status['val'] as $method) { echo "<option value='".$method."'";if($method==$customer->customer_status){echo "selected";} echo ">" . $method . "</option>"; } } ?> </select> </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 $data = array( 'name' => 'customer_dob', 'id' => 'customer_dob', 'value' => $this->mastermodel->convertdatenormalformat($customer_personal->customer_dob) ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Gender</td> <td> <select name="customer_gender" id="customer_gender" > <option value="">Select</option> <option value="Male" <?php if($customer_personal->customer_gender=='Male'){echo 'selected';} ?>>Male</option> <option value="Female" <?php if($customer_personal->customer_gender=='Female'){echo 'selected';} ?>>Female</option> </select> </td> </tr> <tr> <td>Profession</td> <td> <?php $data = array( 'name' => 'customer_profession', 'id' => 'customer_profession', 'value' => $customer_personal->customer_profession ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Marital Status</td> <td> <select name="customer_marital_status" id="customer_marital_status"> <option value="">Select</option> <option value="Married" <?php if($customer_personal->customer_marital_status=='Married'){echo 'selected';} ?>>Married</option> <option value="Single" <?php if($customer_personal->customer_marital_status=='Single'){echo 'selected';} ?>>Un Married</option> </select> </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 $data = array( 'name' => 'customer_group_name', 'id' => 'customer_group_name', 'value' => $customer_corporate->customer_group_name ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Business Activity</td> <td> <?php $data = array( 'name' => 'customer_business_activity', 'id' => 'customer_business_activity', 'value' => $customer_corporate->customer_business_activity ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Web site:</td> <td> <?php $data = array( 'name' => 'customer_website', 'id' => 'customer_website', 'value' => $customer_corporate->customer_website ); echo form_input($data).form_error($data); ?> </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> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;" /></th> </tr> <?php $i=1; foreach($customer_corporate_contacts as $k=>$row) { echo '<tr>'; echo '<td><input style="width:100px;" type="text" name="contact_name'.$id .'" value="'. $row['contact_name'] .'"/></td>'; echo '<td><input style="width:100px;" type="text" name="contact_designation'.$id .'" value="'. $row['contact_designation'] .'"/></td>'; echo '<td><input style="width:100px;" type="text" name="contact_mobile'.$id .'" value="'. $row['contact_mobile'] .'"/></td>'; echo '<td><input style="width:100px;" type="text" name="contact_phone'.$id .'" value="'. $row['contact_phone'] .'"/></td>'; echo '<td><input style="width:100px;" type="text" name="contact_email'.$id .'" value="'. $row['contact_email'] .'"/></td>'; echo '<td><img style="float: right; vertical-align: top;" src="'.base_url().'assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/></td></tr>'; $i++; } ?> <tr> <td><input style="width:100px;" type="text" name="contact_name"/></td> <td><input style="width:100px;" type="text" name="contact_designation"/></td> <td><input style="width:100px;" type="text" name="contact_mobile"/></td> <td><input style="width:100px;" type="text" name="contact_phone"/></td> <td><input style="width:100px;" type="text" name="contact_email"/></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> <?php } ?> </li> <input type="hidden" name="tab_name" value="customer"/> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>