?
Current Path : /home1/savoy/www/savoyglobal.net/piadraft/system/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/www/savoyglobal.net/piadraft/system/application/views/Customer/editindcustform.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.form.js"></script> <script type="text/javascript"> $(document).ready(function(){ getfolderstructure('','',0); $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); }); function FillValues1(empid,empname,desg,eid) { /* FUNCTION TO GET VALUES FROM PICK EMPLOYEE COLOR BOX AND FILL THE VALUES IN THE TEXT BOXES. */ document.getElementById('liid').style.display='block'; document.getElementById('empdet').innerHTML='<label>Employee No : </label><label>' + eid + '</label><label>Designation : </label><label>'+ desg +'</label>' ; document.getElementById('ename').value=empname; document.getElementById('empno').value=empid; $.fn.colorbox.close(); } </script> <?php $row = $result->row(); $employees=$result2->row(); $dateodb=$this->mastermodel->convdatformat($row->dob); $date=$this->mastermodel->convdatformat($row->date); ?> <?php echo form_open_multipart('customer/UpdateIndividualCustomesControler',array('id'=>'customForm','class' =>'editIndcustom')); ?> <input name="EditCustId" type="hidden" value="<?php echo $row->id; ?>"/> <input name="customerid" id="customerid" type="hidden" value = "<?php echo $row->customer_id ?>" /> <fieldset style="padding-left: 0px;"><legend>Edit Customer Details</legend> <fieldset class="leftalign" > <table class="sort"> <tr> <th colspan="2" style="text-align: center">Personal Information</th> </tr> <tr> <td>Insured</td> <td><?php echo form_input(array('name'=>'txtCustname','id'=>'txtCustname','value'=> $row->insured));?></td> </tr> <?php $dateodb=$this->mastermodel->convdatformat($row->dob); ?> <tr> <td>Date Of Birth</td> <td><input class="one" readonly="readonly" id="inputDate" name="dob" value="<?php echo $dateodb; ?>"/></td> </tr> <tr> <td>Marital status</td> <td><?php echo form_input(array('name'=>'MaritalStatus','id'=>'MaritalStatus','value'=> $row->marital_status)); ?></td> </tr> <tr> <td>Gender</td> <td> <table><tr> <td><input type="radio" name="R1" id="m1" value="MALE" <?php if($row->gender == "MALE") {?>checked="checked" <?php }?>/><label style="padding: 0px; width: 50%;">Male</label> </td> <td><input type="radio" name="R1" id="m2" value="FEMALE" <?php if($row->gender == "FEMALE") {?>checked="checked" <?php }?> /> <label style="padding: 0px; width: 50%;">FeMale</label></td> </tr></table> </td> </tr> </table> </fieldset> <fieldset class="rightalign"> <table class="sort"> <tr> <th colspan="2" style="text-align: center">Reference Information</th> </tr> <tr> <td>Employee Name</td> <td><?php echo $employees->name; ?> <span id="liid" style="display:none"> <div id="empdet" name="empdet"></div> <input type="hidden" id="empno" name="empno" value="<?php echo $employees->employeeid; ?>"> </span> </td> </tr> <tr> <td>Date</td> <td><input readonly="readonly" id="date" name="date" value="<?php echo $date; ?>"/></td> </tr> <tr> <td>Branch</td> <td><?php echo "<select name='branch' id='branch'>"; $stat=$this->mastermodel->getdatas('ourbranch'); foreach($stat as $sta) { echo "<option value='". $sta['id']."'"; if($row->branch_id==$sta['id']) { echo "selected"; } echo ">". $sta['branchname'] . "</option>"; } echo "</select>"; ?> </td> </tr> <tr> <td>Comments</td> <td><textarea cols="" rows="" name="comment" id="comment" style="width:200px"><?php echo $row->description; ?></textarea></td> </tr> </table> </fieldset> <fieldset class="leftalign"> <table class="sort"> <tr> <th colspan="2" style="text-align: center">Permanent Address</th> </tr> <tr> <td>Address </td> <td> <?php $data3 = array( 'name' => 'laddress', 'id' => 'laddress', 'rows' => '5', 'cols' => '5', 'style' => 'width:200px', ); ?> <?php echo form_textarea($data3,$row->laddress).form_error($data3); ?> </td> </tr> <tr> <td>Po Box </td> <td> <?php echo form_input('lpobox',$row->lpobox); ?> </td> </tr> <tr> <td>Country </td> <td> <?php echo form_input('lcountry',$row->lcountry); ?> </td> </tr> <tr> <td>City </td> <td> <?php echo form_input('lcity',$row->lcity); ?> </td> </tr> <tr> <td>Phone No </td> <td> <?php echo form_input('lphone', $row->lphone); ?> </td> </tr> <tr> <td>Mobile </td> <td> <?php echo form_input('lmobile',$row->lmobile); ?> </td> </tr> </table> </fieldset> <fieldset class="rightalign"> <table class="sort"> <tr> <th colspan="2" style="text-align: center">Local Address</th> </tr> <tr> <td>Address</td> <td> <?php $data5 = array( 'name' => 'Address', 'id' => 'Address', 'rows' => '5', 'cols' => '5', 'style' => 'width:200px;', 'value'=> $row->address ); echo form_textarea($data5) ?> </td> </tr> <tr> <td>P.O. BOX </td> <td><?php echo form_input(array('name'=>'PO','title'=>'Post Office','value'=> $row->postbox)) ?></td> </tr> <tr> <td>Country</td> <td><?php $coun=$this->mastermodel->get_data_srow('country',$row->country,'id'); $city=$this->mastermodel->get_data_srow('city',$row->city,'id'); echo "<select name='ctry' id='ctry' onchange=\"loadcity(this.value)\">"; echo "<option value='". $coun->id . "' >".$coun->countryname."</option>"; $country=$this->mastermodel->getdatas('country'); if (count($country)) { foreach ($country as $key => $list) { if($list['countryname']!=$coun->countryname) echo "<option value='". $list['id'] . "' >" . $list['countryname'] . "</option>"; } echo "</select>"; } ?> <span id="ctryInfo" class="red_bold">*</span></td> </tr> <tr> <td>City</td> <td id="loadcitydiv"> <?php $citylist=$this->mastermodel->getdatas('city'); echo "<select name='cty_id' id='cty_id'>"; echo "<option value='". $city->id . "' >".$city->cityname."</option>"; if (count($citylist)) { foreach ($citylist as $key => $list) { if($list['cityname']!=$city->cityname) echo "<option value='". $list['id'] . "' >" . $list['cityyname'] . "</option>"; } } echo "</select>"; ?> <span id="cty_idInfo" class="red_bold">*</span></td> </tr> <tr> <td>Office Phone</td> <td><?php echo form_input(array('name'=>'officeph','id'=>'officeph','value'=> $row->phone_office)); ?></td> </tr> <tr> <td>Residence Phone</td> <td><?php echo form_input(array('name'=>'resph','id'=>'resph','value'=> $row->phone_res)) ;?></td> </tr> <tr> <td>Mobile *</td> <td><?php echo form_input(array('name'=>'mobile','id'=>'mobile','value'=> $row->mobile)); ?></td> </tr> <tr> <td>E-Mail *</td> <td><?php echo form_input(array('name'=>'email','id'=>'email','value'=> $row->email)); ?></td> </tr> <tr> <td>Fax</td> <td><?php echo form_input(array('name'=>'fax','id'=>'fax','value'=> $row->fax)); ?></td> </tr> </table> </fieldset> <fieldset class="leftalign"> <table class="sort"> <tr> <th colspan="2" style="text-align: center">Account Information</th> </tr> <tr> <td>Customer Account </td> <td> <select name="caccount" id="caccount"> <option value="prospective" <?php if($row->account=="Prospective"){ echo "selected" ;}?>>Prospective</option> <option value="Active" <?php if($row->account=="Active"){ echo "selected" ;}?>>Active</option> <option value="Inactive" <?php if($row->account=="Inactive"){ echo "selected" ;}?>>Inactive</option> </select> </td> </tr> </table> </fieldset> <ul> <li> <button type="submit" id="submit" class="clickimage" onclick="return edit_Individual_customer_details()">Update</button> </li> </ul> </fieldset> <div id="backgrounddiv"></div> <div style='display:none'> <div id='PickEmployee' style='padding:10px; background:#fff;'> <?php $this->load->view('Customer/pickemployee');?> </div> </div> <?php echo form_close(); ?>