?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/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/drafthr/system/application/views/Customer/corporatecustform.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> $(document).ready(function(){ $('.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"> 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> <script src="<?php echo base_url(); ?>assets/js/jquery.MultiFile.min.js" type="text/javascript" language="javascript"></script> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.form.js"></script> <?php $attributes = array('id' => '123CorpCustForm1' ,'class'=>'customForm'); echo form_open_multipart('customer/InsertCorprateCustomerDetails',$attributes); ?> <div id="viewmsg"></div> <fieldset><legend align="left">Add Customers</legend> <fieldset class="leftalign"> <table class="sort" > <tr><th colspan="2" style="text-align: center">Corporate Information</th></tr> <tr> <td>Group Name </td> <td><?php echo form_input(array('name'=>'groupname','title'=>'GroupName', 'id'=>'groupname','value'=>'')) ?></td> </tr> <tr> <td>Insured * </td> <td><?php echo form_input(array('name'=>'txtCustname','title'=>'Insured Name','id'=>'txtCustname','value'=>'')) ?></td> </tr> <tr> <td>Business activity </td> <td><?php echo form_input(array('name'=>'businessactivity','title'=>'Business Activity','id'=>'businessactivity')) ?></td> </tr> <tr> <td>Annual Turnover </td> <td><?php echo form_input(array('name'=>'anualturnover','id'=>'anualturnover')) ?></td> </tr> </table> </fieldset> <fieldset class="rightalign" style="vertical-align: top;"> <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> <fieldset class="rightalign"> <table class="sort" > <tr><th colspan="2" style="text-align: center">Contact Information</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','id'=>'PO')) ?> </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','onblur'=>'validateform(' . "'officeph'". ')','onfocus'=>'RemoveWaterMark(' . "'officeph'". ')','title'=>'Office Phone','id'=>'officeph')) ?></td> </tr> <tr> <td>Fax</td> <td><?php echo form_input(array('name'=>'fax','id'=>'fax')) ?></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> </table> </fieldset> <fieldset class="leftalign"> <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 class="one" readonly="readonly" class="inputDate" 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><legend>Contact Person Details</legend> <ul> <li> <input name="addRows" value="Add More" onclick="addRowToTable();" title="Add more contact person details." type="button"> <input name="deleteRows" value="Remove" onclick="removeRowFromTable();" title="Delete the last contact person details." type="button"> </li> <li> <table id="addrow" class="sort" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody> <tr class="red_bold" align="left" valign="top"> <th width="25%">Name</th> <th width="15%">Designation</th> <th width="18%">Mobile</th> <th width="18%">Phone</th> <th width="24%">Email</th> <th></th> </tr> <tr class="bold_black" align="left" valign="top"> <td><input name="txt_conName_1" id="txt_conName_1" style="width: 150px;" type="text"></td> <td><input name="txt_conDesig_1" id="txt_conDesig_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_conPho_1" id="txt_conPho_1" style="width: 100px;" type="text"></td> <td><input name="txt_conEmail_1" id="txt_conEmail_1" style="width: 150px;" type="text"> </td> <td> <input name="hid_conCnthid_1" id="hid_conCnthid_1" value="secret" type="hidden"></td> </tr> </tbody> </table> </li> </ul> </fieldset> <ul> <li> <button type="submit" id="submit" class="clickimage" onclick="return Insert_Corprate_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()?>