?
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/add_customer.php |
<script type="text/javascript"> function show_customer_details(val) { divid1='customer_personal'; divid2='customer_corporate'; divid3='corporate_contact'; if(val=="Corporate") { $('#'+divid1).hide(); $('#'+divid2).show(); $('#'+divid3).show(); } else { $('#'+divid1).show(); $('#'+divid2).hide(); $('#'+divid3).hide(); } if(val!= "") { $.ajax({ type: "POST", url: "<?= site_url('customer/get_customer_no/') ?>/"+val, success: function(msg){ $("#customer_no").val(msg); } }) } else { $("#customer_no").val(""); } } </script> <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $location=$this->mastermodel->getdatas('location','location_id','asc','location_id'); $status=$this->mastermodel->getenumvalues('customer', 'customer_status'); ?> <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>Creating new Customer</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('customer/addincustomer/insert_customer/view_customer/1',$attributes); ?> <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> <select class="chzn-done required" name="customer_type" id="customer_type" onchange="show_customer_details(this.value)"> <option value="">--Select-- </option> <option value="Corporate">Corporate</option> <option value="Individual">Individual</option> </select> </div> </div> <div class="section _100"> <label>Customer Number </label> <div> <input name="customer_no" id="customer_no" class="required" type="text" readonly="true"> </div> </div> <div class="section _100"> <label>Customer Name </label> <div> <input name="customer_name" id="customer_name" class="required" type="text" > </div> </div> <div class="section _100"> <label> Contact Number </label> <div> <input name="customer_contact_no" id="customer_contact_no" type="text" class="required" > </div> </div> <div class="section _100"> <label> Fax </label> <div> <input name="customer_fax" id="customer_fax" class="" type="text" > </div> </div> <div class="section _100"> <label> E Mail </label> <div> <input name="customer_email" id="e_mail" class="" type="text" > </div> </div> <div class="section _100"> <label> Status </label> <div> <select name="customer_status" class="chzn-done required"> <option value="">Select </option> <?php foreach($status['val'] as $row) { ?> <option value="<?=$row?>"><?=$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"></textarea> </div> </div> <div class="section _100"> <label>P.O Box </label> <div> <input name="customer_pobox" id="customer_pobox" class="" type="text" > </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']?>"><?=$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" > </div> </div> </div> </div> </div> <div id="customer_personal" style="display:none"> <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" > </div> </div> <div class="section _100"> <label>Gender </label> <div> <select name="customer_gender" class="chzn-done"> <option value="">--Select-- </option> <option value="Male">Male</option> <option value="Female">Female</option> </select> </div> </div> <div class="section _100"> <label> Profession </label> <div> <input type="text" name="customer_profession" id="customer_profession"> </div> </div> <div class="section _100"> <label>Marital Status </label> <div> <select name="customer_marital_status" class="chzn-done"> <option value="">Select </option> <option value="Married">Married</option> <option value="Single">Single</option> </select> </div> </div> </div> </div> </div> </div> <div id="customer_corporate" style="display:none"> <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"> </div> </div> <div class="section _100"> <label> Business Activity </label> <div> <input type="text" name="customer_business_activity" id="customer_business_activity"> </div> </div> <div class="section _100"> <label> Customer Website </label> <div> <input type="text" name="customer_website" id="customer_website"> </div> </div> </div> </div> </div> </div> <div id="corporate_contact" style="display:none"> <div class="grid_12"> <div class="box"> <div class="header main"> Contact Details </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> <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> <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"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> <?php echo form_close();?> </div> </div>