?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/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/sibs_draft/system/application/views/Customer/indcustform.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> $(document).ready(function(){ // $('input.one').simpleDatepicker({ startdate: 1930, enddate: 2030 }); $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); checkacc_setting(); suggestemployee(); }); function checkacc_setting() { $.ajax({ type: "POST", url: "<?= site_url('accounting/checkaccountsetting/') ?>", success: function(msg){ if(msg==0) { $("#viewmsg").fadeIn(900,0); $("#viewmsg").html("<div style=\"border:2px solid red;padding-top:4px;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"red\" >Sub Account Settings not Set</font></div>"); $('input[type=submit]#button1').attr('disabled', 'disabled'); } } }); } </script> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.form.js"></script> <script> function FillValues(empid,empname,desg) { /* FUNCTION TO GET VALUES FROM PICK EMPLOYEE COLOR BOX AND FILL THE VALUES IN THE TEXT BOXES. */ document.getElementById('empno').value=empid; document.getElementById('ename').value=empname; document.getElementById('desg').value=desg; $.fn.colorbox.close(); } 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='<li><label>Employee No : </label><label>' + eid + '</label></li><li><label>Designation : </label><label>'+ desg +'</label></li>' ; document.getElementById('ename').value=empname; document.getElementById('empno').value=empid; $.fn.colorbox.close(); } </script> <div id="viewmsg"></div> <?php $attributes = array('id' => 'new' ,'class'=>'customForm'); echo form_open_multipart('customer/InsertIndividualCustomesControler',$attributes);?> <fieldset> <legend >Add Customers</legend> <fieldset class="leftalign" > <table class="sort"> <tr> <th colspan="2" style="text-align: center">Personal Information</th> </tr> <tr> <td><?php echo form_input($hidfield) ;?>Insured</td> <td><?php echo form_input(array('name'=>'txtCustname','title'=>'Customer Name','id'=>'txtCustname','value'=>'')) ?></td> </tr> <tr> <td>Date Of Birth</td> <td><input readonly="readonly" class="one" id="inputDate" name="dob" value="<?php echo date("d-m-Y"); ?>"/></td> </tr> <tr> <td>Marital status</td> <td><?php echo form_input(array('name'=>'MaritalStatus','id'=>'MaritalStatus')) ?></td> </tr> <tr> <td>Gender</td> <td> <table><tr><td><input type="radio" name="R1" value="MALE" checked="checked"/><label style="padding-left: 5px; width: 50%;">Male</label></td> <td><input type="radio" name="R1" value="FEMALE" /> <label style="padding-left: 5px; 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 form_input(array('name'=>'ename','id'=>'ename','readonly'=>'readonly')) ?> <!-- <input type="button" value="pick" class='pickEmp' onclick="showEmpPick()" /> <span id="liid" style="display:none"> <div id="empdet" name="empdet"></div> <input type="hidden" id="empno" name="empno"> </span>--> <input type="text" id="employee" size="35"> <input type="hidden" name="employee_id" id="employee_id"> <span id="staffidInfo" class="red_bold">*</span> </td> </tr> <tr> <td>Date</td> <td><input readonly="readonly" class="one" id="date" name="date" value="<?php echo date("d-m-Y"); ?>"/></td> </tr> <tr> <td>Branch</td> <td><?php echo "<select name='branch' id='branch'>"; $stati=$this->mastermodel->getdatas('ourbranch'); foreach($stati as $sta) { echo "<option value='". $sta['id'] . "'>" . $sta['branchname'] . "</option>"; } echo "</select>"; ?> </td> </tr> <tr> <td>Comments</td> <td><?php $data4 = array( 'name' => 'comment', 'id' => 'comment', 'rows' => '5', 'cols' => '5', 'style' => 'width:58%;', ); echo form_textarea($data4) ?></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:58%', ); ?> <?php echo form_textarea($data3).form_error($data3); ?> </td> </tr> <tr> <td>Po Box </td> <td> <?php echo form_input('lpobox'); ?> </td> </tr> <tr> <td>Country </td> <td> <?php echo form_input('lcountry'); ?> </td> </tr> <tr> <td>City </td> <td> <?php echo form_input('lcity'); ?> </td> </tr> <tr> <td>Phone No </td> <td> <?php echo form_input('lphone'); ?> </td> </tr> <tr> <td>Mobile </td> <td> <?php echo form_input('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:58%;', ); echo form_textarea($data5) ?> </td> </tr> <tr> <td>P.O. BOX </td> <td><?php echo form_input(array('name'=>'PO','title'=>'Post Office')) ?></td> </tr> <tr> <td>Country</td> <td><?php echo "<select name='ctry' id='ctry' onchange=\"loadcity(this.value)\">"; echo "<option value='0'>Select Country</option>"; $country=$this->mastermodel->getdatas('country'); if (count($country)) { foreach ($country as $key => $list) { 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 echo "<select name='cty_id' id='cty_id' >"; echo "<option value='0'>Select City</option></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')) ?></td> </tr> <tr> <td>Residence Phone</td> <td><?php echo form_input(array('name'=>'resph','id'=>'resph')) ?></td> </tr> <tr> <td>Mobile</td> <td><?php echo form_input(array('name'=>'mobile','id'=>'mobile','value'=>'')) ?></td> </tr> <tr> <td>E-Mail</td> <td><?php echo form_input(array('name'=>'email','id'=>'email')) ?></td> </tr> <tr> <td>Fax</td> <td><?php echo form_input(array('name'=>'fax','id'=>'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">Prospective</option> <option value="Active">Active</option> <option value="Inactive">Inactive</option> </select> </td> </tr> </table> </fieldset> <ul> <li> <button type="submit" id="submit" class="clickimage" onclick="return Insert_Individual_customer_details()" >Save</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(); ?>