?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/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/rms/application/views/customer/edit_customer.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $status=$this->mastermodel->getenumvalues('customer', 'customer_status'); $type=array('Corporate','Individual'); $gender=array('Male','Female'); $marital=array('Single','Married'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('customer','viewincustomersearch','search_customer','view_customer','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Customer</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('customer/addincustomer/update_customer/view_customer/1',$attributes); $location=$this->mastermodel->getdatas('location','location_id','asc','location_id'); ?> <div class="grid_6"> <div class="box"> <div class="header"> <h3>Customer Details</h3> </div> <div class="content no-padding"> <div class="section _100"> <label>Customer Type </label> <div style="margin-top: 15"> <?=$viewinfo->customer_type?> </div> </div> <div class="section _100"> <label>Customer Number </label> <div class="single_page"> <?=$viewinfo->customer_no?> </div> </div> <div class="section _100"> <label>Customer Name </label> <div> <input name="customer_name" id="customer_name" class="required" type="text" value="<?=$viewinfo->customer_name?>"> </div> </div> <div class="section _100"> <label> Contact Number </label> <div> <input name="customer_contact_no" id="customer_contact_no" class="required" type="text" value="<?=$viewinfo->customer_contact_no?>" > </div> </div> <div class="section _100"> <label> Fax </label> <div> <input name="customer_fax" id="customer_fax" class="" type="text" value="<?=$viewinfo->customer_fax?>"> </div> </div> <div class="section _100"> <label> E Mail </label> <div> <input name="customer_email" id="e_mail" class="" type="text" value="<?=$viewinfo->customer_email?>" /> </div> </div> <div class="section _100"> <label> Status </label> <div> <select name="customer_status" class="chzn-done"> <option>Select </option> <?php foreach($status['val'] as $row) { ?> <option value="<?=$row?>" <?php if($row==$viewinfo->customer_status){ echo 'selected'; } ?>><?=$row?></option> <?php } ?> </select> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header"> <h3>Contact Details</h3> </div> <div class="content no-padding"> <div class="section _100"> <label>Address </label> <div> <textarea name="customer_address" id="customer_address" class="required" type="text"><?=$viewinfo->customer_address?></textarea> </div> </div> <div class="section _100"> <label>P.O Box </label> <div> <input name="customer_pobox" id="customer_pobox" class="" type="text" value="<?=$viewinfo->customer_pobox?>"> </div> </div> <div class="section _100"> <label>Location </label> <div style="margin-top: 6px;"> <select name="customer_location_id" class="required" id="customer_location_id"> <option value="">--Select--</option> <?php foreach ($location as $list) { ?> <option value="<?=$list['location_id']?>" <?php if($list['location_id']==$viewinfo->customer_location_id){echo "selected";}?>><?=$list['location_name']?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Country </label> <div> <input name="customer_country" id="customer_country" class="" type="text" value="<?=$viewinfo->customer_country?>" > </div> </div> </div> </div> </div> <?php if(!empty($personal)) { ?> <div id="customer_personal"> <div class="grid_6"> <div class="box"> <div class="header"> <h3>Customer Personal Information</h3> </div> <div class="content no-padding"> <div class="section _100"> <label> D.O.B </label> <div> <input name="customer_dob" id="date" type="dateonly" value="<?=$personal->customer_dob?>"> </div> </div> <div class="section _100"> <label>Gender </label> <div> <select name="customer_gender"> <option>Select </option> <?php foreach($gender as $item) { ?> <option value="<?=$item?>" <?php if($personal->customer_gender==$item){ echo 'selected'; } ?>><?=$item?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label> Profession </label> <div> <input type="text" name="customer_profession" id="customer_profession" value="<?=$personal->customer_profession?>"> </div> </div> <div class="section _100"> <label>Marital Status </label> <div> <select name="customer_marital_status"> <option>Select </option> <?php foreach($marital as $item) { ?> <option value="<?=$item?>" <?php if($item==$personal->customer_marital_status){ echo 'selected'; } ?>><?=$item?></option> <?php } ?> </select> </div> </div> </div> </div> </div> </div> <?php } ?> <?php if(!empty($corporate)) { ?> <div id="customer_corporate" > <div class="grid_6"> <div class="box"> <div class="header"> <h3>Customer Corporate Information</h3> </div> <div class="content no-padding"> <div class="section _100"> <label> Group Name </label> <div> <input type="text" name="customer_group_name" id="customer_group_name" value="<?=$corporate->customer_group_name?>"> </div> </div> <div class="section _100"> <label> Business Activity </label> <div> <input type="text" name="customer_business_activity" id="customer_business_activity" value="<?=$corporate->customer_business_activity?>"> </div> </div> <div class="section _100"> <label> Customer Website </label> <div> <input type="text" name="customer_website" id="customer_website" value="<?=$corporate->customer_website?>"> </div> </div> </div> </div> </div> </div> <?php } if(!empty($corporate_details)) { ?> <div id="corporate_contact"> <div class="grid_12"> <div class="box"> <div class="header main"> </div> <div class="content no-padding"> <table class="table"> <tr> <th>Contact Name</th> <th>Mobile</th> <th>Phone</th> <th>Email</th> <th>Designation</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php foreach($corporate_details as $row) { ?> <tr> <td><input class="w_90" type="text" name="contact_name" id="contact_name" value="<?=$row['contact_name']?>"/></td> <td><input class="w_90" type="text" name="contact_mobile" id="contact_mobile" value="<?=$row['contact_mobile']?>"/></td> <td><input class="w_90" type="text" name="contact_phone" id="contact_phone" value="<?=$row['contact_phone']?>"/></td> <td><input class="w_90" type="text" name="contact_email" id="contact_email" value="<?=$row['contact_email']?>"/></td> <td><input class="w_90" type="text" name="contact_designation" id="contact_designation" value="<?=$row['contact_designation']?>"/></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> <?php } ?> <tr> <td><input class="w_90" type="text" name="contact_name" id="contact_name"/></td> <td><input class="w_90" type="text" name="contact_mobile" id="contact_mobile"/></td> <td><input class="w_90" type="text" name="contact_phone" id="contact_phone"/></td> <td><input class="w_90" type="text" name="contact_email" id="contact_email"/></td> <td><input class="w_90" type="text" name="contact_designation" id="contact_designation"/></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> </div> </div> </div> </div> <?php } ?> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" value="search_customer"/> <input type="hidden" name="customer_type" value="<?=$viewinfo->customer_type?>"/> <input type="hidden" name="customer_id" value="<?=$viewinfo->customer_id?>"/> <input type="hidden" name="customer_no" value="<?=$viewinfo->customer_no?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> <?php echo form_close();?> </div> </div>