?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibs_draft/system/application/views/HR/ |
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/sibs_draft/system/application/views/HR/addstaffsalary.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <script type="text/javascript" src="<?= base_url() ?>/assets/js/autonumeric.js"></script> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); $("input.autop").autoNumeric({ mNum: 2, mDec: 0 }); $("input.auto").autoNumeric(); //suggestpayment(); suggestemployee(); showpaydetails(); }); function ticketdesc() { var notick = document.getElementById('nooftickets').value; var ticksatlast = "<table class='sort' width='60%'><tbody><tr class='red_bold' align='left' valign='top'> <th width='60%'>Description</th><th width='40%'>Name</th></tr>"; for (i=1;i<=notick;i++) { var desc = 'desc_'+i; var name = 'name_'+i; ticksatlast = ticksatlast+"<tr><td><input type='text' style='width:400px;' name='"+desc+"'/></td><td><input type='text' name='"+name+"'/></td></tr>"; } ticksatlast = ticksatlast+"</table>"; document.getElementById('rendet').innerHTML = ticksatlast; } function hideRows() { document.getElementById('netbankdetails').style.display="none"; document.getElementById('bankdetails').style.display="none"; // document.getElementById('modepayment').style.display="none"; // document.getElementById('labelDDNo').style.display="none"; document.getElementById('labelDDNo1').style.display="none"; } function showpaydetails() { var mode=document.getElementById('paymethod').value; if (mode=='bank') { // if(mode=='bank') // { // hideRows(); // document.getElementById('bankdetails').style.display="block"; // document.getElementById('labelDDNo').style.display="block"; // // // } // else // { hideRows(); document.getElementById('netbankdetails').style.display="block"; document.getElementById('bankdetails').style.display="block"; document.getElementById('labelDDNo1').style.display="block"; // } } else if (mode=='credit') { hideRows(); document.getElementById('modepayment').style.display="block"; } else { hideRows(); } } </script> <div class="select-bar"> <label> <img src="<?= base_url() ?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadstaffsalary('<?= $_SESSION['pagenum'] ?>','<?= $_SESSION['searchoption'] ?>','<?= $_SESSION['searchtxt'] ?>')" alt="Back" align = "center" width="25" height="25"/></label> </div> <fieldset> <legend>Add Staff-Salary</legend> <?php $attributes = array('id' => 'customForm', 'name' => 'myform'); echo form_open('hr/addstaffsalary', $attributes); ?> <ul> <li> </li> <li> <label for="date">Employee Name</label> <input type="text" id="employee" size="35"> <input type="hidden" name="employee_id" id="employee_id"> <span id="staffnameInfo" class="red_bold">*</span> </li> <li id="stfinfodet"></li> <li> <label>Date</label> <input class="one" name="date" id="date" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="dateInfo" class="red_bold">*</span> </li> <li> </li> <li> <label>Basic Salary</label><input type="text" id="basicsalary" onblur="changebasicsalary(this.value)" name="basicsalary" class="auto" size="20"> <select name="currencytype" id="currencytype" > <option value="" selected >Select Currency</option> <?php $currency_type = $this->mastermodel->getdatas('country'); $defcurrency = $this->mastermodel->defaultcurrency(); foreach ($currency_type as $key => $list) { echo "<option value='" . $list['id'] . "' "; if ($list['id'] == $defcurrency) { echo "selected"; } echo ">" . $list['currencycode'] . "</option>"; } ?> </select><span id="currencytypeInfo" class="red_bold">*</span> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" align="left" > <caption>Allowance/Deduction Details</caption> <thead> <tr> <th>Title</th> <th>Mode</th> <th>Amount/Percentage</th> <th>Sub Total</th> <th>Type</th> </tr> </thead> <tbody> <?php $i = 1; $dept = $this->mastermodel->get_data('allowdeduc', 'Allowance', 'allowdeductype'); foreach ($dept as $dep) { if ($dep['mode'] == 1) { $mode = "Direct Amount"; } else { $mode = "Percentage"; } ?> <tr> <td><?= $dep['allowdeducname']; ?><input type="hidden" value ="<?= $dep['id']; ?>" name="coverid_<?= $i; ?>"/> </td> <td><?= $mode ?></td> <td> <input type="text" onblur="calculteallowancetotal(this.value,<?= $dep['mode'] ?>,<?= $i ?>)" name="newpolicy_<?= $i ?>" id="newpolicy_<?= $i ?>" style="width:80%" <?php if ($dep['mode'] == 1) { ?> class="auto" <?php } else { ?> class="autop" <?php } ?> /> <?php if ($dep['mode'] == 0) { echo '%'; } ?> </td> <td><input type="text" name="alltotal_<?= $i ?>" id="alltotal_<?= $i ?>" value="" readonly /></td> <td> Allowance </td> </tr> <?php $i++; } ?> <input type="hidden" name="allowcount" id="allowcount" value="<?= $i ?>" /> <?php $i = 1; $dept = $this->mastermodel->get_data('allowdeduc', 'Deduction', 'allowdeductype'); foreach ($dept as $dep) { if ($dep['mode'] == 1) { $mode = "Direct Amount"; } else { $mode = "Percentage"; } ?> <tr> <td><?= $dep['allowdeducname']; ?><input type="hidden" value ="<?= $dep['id']; ?>" name="coverid1_<?= $i; ?>"/></td> <td><?= $mode ?></td> <td><input type="text" onblur="calcultedeductiontotal(this.value,<?= $dep['mode'] ?>,<?= $i ?>)" name="newpolicy1_<?= $i ?>" id="newpolicy1_<?= $i ?>" style="width:80%" <?php if ($dep['mode'] == 1) { ?> class="auto" <?php } else { ?> class="autop" <?php } ?> /> <?php if ($dep['mode'] == 0) { echo '%'; } ?> </td> <td><input type="text" name="dedtotal_<?= $i ?>" id="dedtotal_<?= $i ?>" value="" readonly /></td> <td> Deduction </td> </tr> <?php $i++; } ?> <input type="hidden" name="dedcount" id="dedcount" value="<?= $i ?>" /> </tbody> </table> </li> <li> <li> <table class="sort" cellpadding="0" cellspacing="0" align="left" > <caption>Salary Details</caption> <tr> <th>Allowance</th> <th>Deduction</th> </tr> <tr> <td><input type="text" readonly style="width:80%" name="allowance" id="allowance" value="0"></td> <td><input type="text" style="width:80%" readonly name="deduction" id="deduction" value="0"></td> </tr> <tr> <th> Gross Salary </th> <th> Net Salary </th> </tr> <tr> <td><input type="text" readonly style="width:80%" name="grosssalary" id="grosssalary" value="0"></td> <td><input type="text" style="width:80%" readonly name="netsalary" id="netsalary" value="0"></td> </tr> </table> </li> <li> <!--label>Commission</label--> <input type="hidden" id="hiddencomm" name="hiddencomm" value="0"/> <!--input type="checkbox" id="comdiv" name="commission" onclick="showpremdiv()" --> </li> <li id="premiumdiv" style="display:none"> <label>Premium Target</label> <input type="text" id="premiumtarget" name="premiumtarget" size="20"> </li> <li> <div id="paydiv" style="float: left;width:50%"> <table> <tr id="payment_meth"> <td> <label style="color:#000;">Payment Method</label> <select id="paymethod" name="paymethod" onchange="showpaydetails()"> <?php foreach ($methods as $meth) { if ($meth['method'] != 'credit') { echo "<option value=" . $meth['method'] . " >" . $meth['methods'] . "</option>"; } } ?> </select> <span id="paymethodInfo" class="red_bold">*</span> <td> </tr> <tr><td></td></tr> <tr style="display:none" id="bankdetails" > <td> <label id="labelDDNo1" style="color:#000;">Account Holder</label> <input type="text" id="acc_holder" value="<? //=$che_no.$che_no1 ?>" name='acc_holder'> </td> <td> <label style="color:#000;">Bank Name</label> <input type="text" value="<? //=$b_name.$b_name1 ?>" id="bank_name" name='bank_name'> </td> </tr> <tr style="display:none" id="netbankdetails" > <td> <label style="color:#000;">Account Number</label> <input type="text" value="" id="acc_no" name='acc_no' > </td> <td> <label style="color:#000;">Branch Name</label> <input type="text" value="<? //=$acc_holder ?>" id="branch_name" name='branch_name'> </td> </tr> </table> </div> </li> <li></li> <fieldset> <legend>Medical Insurance Settings</legend> <li> <input name="addRows" value="Add More" onclick="addRowToTableMedical();" title="Add more ." type="button"> <input name="deleteRows" value="Remove" onclick="removeRowFromTableMedical();" title="Delete last" type="button"> </li> <li></li> <table class="sort" id="addmed" border="0" cellpadding="0" cellspacing="0" width="60%"> <tbody><tr class="red_bold" align="left" valign="top"> <th width="10%">Type Of Insurance</th> <th width="20%">Insurance Company</th> <th width="18%">Policy No</th> <th width="12%">Plan Name</th> <th width="12%">Sum Insured</th> </tr> <tr class="bold_black" align="left" valign="top"> <td><input name="txt_conType_1" id="txt_conType_1" style="width: 100px;" type="text"> <input name="hid_conCnt" id="hid_conCnt" value="3" type="hidden"></td> <td><input name="txt_conIns_1" id="txt_conIns_1" style="width: 150px;" type="text"></td> <td><input name="txt_conPol_1" id="txt_conPol_1" style="width: 80px;" type="text"></td> <td><input name="txt_conPlan_1" id="txt_conPlan_1" style="width: 200px;" type="text"></td> <td><input name="txt_conSum_1" id="txt_conSum_1" style="width: 100px;" type="text"></td> </tr> </tbody></table> </fieldset> <li></li> <fieldset> <legend>Annual Ticket Settings</legend> <ul><li><label>FROM : </label><input type="text" name="fromticket"><label> - To : </label><input type="text" name="toticket"><label> Return Ticket </label><?php echo form_checkbox('returnticket', '1', TRUE); ?> </li> <li><label>No of Tickets</label><input type="text" name="nooftickets" id="nooftickets" onchange="ticketdesc()"></li></ul> <li id="rendet"></li> </fieldset> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return doallthetwo();">Save</button> </li> </ul> <?php echo form_close(); ?> </fieldset>