?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Timesheet/ |
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/application/views/Timesheet/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('timesheet','viewintimesheetsearch','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('timesheet/addintimesheet/update_customer/view_customer/1',$attributes); $status=$this->mastermodel->getenumvalues('payroll_customer', 'customer_status'); ?> <ul> <li> <table class="sortnew"> <tr><th colspan='2' style="text-align: center">Customer Details</th></tr> <tr> <td>Customer Code</td> <td style="width:65%"> <?php $data = array( 'name' => 'customer_code', 'id' => 'customer_code', 'class' =>'required', 'readonly' => true, 'value' => $viewinfo->customer_code ); 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' => $viewinfo->customer_name ); 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' => $viewinfo->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' => $viewinfo->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' => $viewinfo->customer_email ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Website:</td> <td> <?php $data = array( 'name' => 'customer_website', 'id' => 'customer_website', 'value' => $viewinfo->customer_website ); 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==$viewinfo->customer_status){echo "selected";} echo ">" . $method . "</option>"; } } ?> </select> </td> </tr> </table> <table class="sortnew"> <tr><th colspan="2" style="text-align:center;">Address Information</th></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' => $viewinfo->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' => $viewinfo->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' => $viewinfo->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' => $viewinfo->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' => $viewinfo->customer_country ); echo form_input($data).form_error($data); ?> </td> </tr> </table> <input type="hidden" name="tab_name" value="payroll_customer"/> <input type="hidden" name="resfunction" value="search_customer"/> <input type="hidden" name="customer_id" value="<?=$viewinfo->customer_id;?>"/> </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; $customer_contacts=$this->mastermodel->get_data('payroll_customer_contacts',$viewinfo->customer_id,'customer_id'); foreach($customer_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> </li> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>