?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Master/ |
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/Master/insurecompanyform.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.table.addrow.js"></script> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image $(".addRow").btnAddRow({inputBoxAutoNumber:true}); $(".delRow").btnDelRow(); showcovercommission(); checkacc_setting(); }); 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>"); $('button[type=submit]#button1').attr('disabled', 'disabled'); } } }); } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showinsurancecompany('<?=$_SESSION['searchoption']?>','<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <div id="viewmsg"></div> <fieldset> <legend>Add Insurance Company</legend> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('master/addinsurance',$attributes);?> <ul> <li> <label for="country">Company Name</label> <?php $data = array( 'name' => 'company_name', 'id' => 'company_name', 'value' => '', 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?><span id="company_nameInfo" class="red_bold">*</span> </li> <li> <label for="country">Company Code</label> <?php $code="INS".($norecords+100); $data = array( 'name' => 'company_code', 'id' => 'company_code', 'value' => $code, 'style' =>'width:250px;', 'readonly' => 'true' ); echo form_input($data).form_error($data); ?><span id="company_codeInfo" class="red_bold">*</span> </li> <li> <label for="country">Address</label> <?php $data = array( 'name' => 'address', 'id' => 'address', 'value' => '', 'style' =>'width:250px;' ); echo form_textarea($data); ?> </li> <li> <label for="country">P.O.Box</label> <?php $data = array( 'name' => 'po_box', 'id' => 'po_box', 'value' => '', 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?><span id="po_boxInfo" class="red_bold">*</span> </li> <li> <label for="country">Country</label> <?php echo "<select name='country_id' id='country_id' onchange=\"loadcity(this.value)\">"; echo "<option value='0'>Select Country</option>"; if (count($country)) { foreach ($country as $key => $list) { echo "<option value='". $list['id'] . "' >" . $list['countryname'] . "</option>"; } echo "</select>"; } ?> <span id="country_idInfo" class="red_bold">*</span> </li> <li id="loadcitydiv"> <label for="country">City</label> <?php echo "<select name='city_id' id='city_id' >"; echo "<option value='0'>Select City</option></select>"; ?> <span id="city_idInfo" class="red_bold">*</span> </li> <li> <label for="country">Office Phone</label> <?php $data = array( 'name' => 'office_phone', 'id' => 'office_phone', 'value' => '', 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?> <span id="office_phoneInfo" class="red_bold">*</span> </li> <li> <label for="country">Office Email</label> <?php $data = array( 'name' => 'office_email', 'id' => 'office_email', 'value' => '', 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?><span id="office_emailInfo" class="red_bold">*</span> </li> <li> <label for="country">Office Fax</label> <?php $data = array( 'name' => 'office_fax', 'id' => 'office_fax', 'value' => '', 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?> </li> <li></li> <fieldset> <legend>Contact Person Details</legend> <table class="sort" id="addrow" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody><tr class="red_bold" align="left" valign="top"> <th>Name</th> <th>Department</th> <th>Designation</th> <th>Direct Phone</th> <th>Mobile</th> <th>Email</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr class="bold_black" align="left" valign="top"> <td><input name="txt_conName_1" id="txt_conName_1" style="width:100px" type="text"> </td> <td><input name="txt_conDept_1" id="txt_conDept_1" style="width:100px" type="text"></td> <td><input name="txt_conDesig_1" id="txt_conDesig_1" style="width:100px" type="text"></td> <td><input name="txt_conPho_1" id="txt_conPho_1" style="width:100px" type="text"></td> <td><input name="txt_conMob_1" id="txt_conMob_1" style="width:100px" type="text"></td> <td><input name="txt_conEmail_1" id="txt_conEmail_1" style="width:100px" type="text"></td> <td><input name="hid_conCnt" id="hid_conCnt" value="3" type="hidden"> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </tbody> </table> </fieldset> <li></li> <li> <label for="country">Credential</label> <?php echo form_input('credential').form_error('credential'); ?> </li> <li></li> <fieldset> <legend>Commission Percentage</legend> <li> <div id="covercommision"></div> </li> </fieldset> <li></li> <fieldset> <legend>Gross Premium Details</legend> <table class="sort" id="CreTab" border="0" cellpadding="0" cellspacing="0" width="60%"> <tbody><tr class="red_bold"> <th width="26%">Year</th> <th width="74%"> Premium </th> <th><input type="button" id="button3" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td><input name="txt_CreYear_1" id="txt_CreYear_1" style="width: 100px;" type="text"></td> <td><input name="txt_CrePremium_1" id="txt_CrePremium_1" style="width: 150px;" type="text"> <input name="hid_CreCount" id="hid_CreCount" value="4" type="hidden"></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </tbody></table> </fieldset> <li></li> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="button1" onclick="return validateform('company_name','company_code','po_box','country_id','city_id','office_phone','office_email');">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>