?
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/editallowdeduc.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); foreach ($viewinfo as $updata) { $allowdeduc = $updata['allowdeducname']; $allowdeduccode = $updata['allowdeduccode']; $allowdeducid = $updata['id']; $allowdeductype = $updata['allowdeductype']; $mode = $updata['mode']; $mainaccount = $updata['chartgroup_name']; } ?> <div class="select-bar"> <label> <img src="<?= base_url() ?>/assets/images/backbutton.png" title="Back" onclick="loadallowdeduc('<?= $_SESSION['pagenum'] ?>','<?= $_SESSION['searchoption'] ?>','<?= $_SESSION['searchtxt'] ?>')" alt="Back" align = "center" width="25" height="25" /> </label> </div> <fieldset> <legend>Update Allowance/Deduction</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/editallowdeduc', $attributes); echo form_hidden('allowdeducid', $allowdeducid); ?> <ul> <li> <label for="Code">Grade Code</label> <?php echo $allowdeduccode; ?> </li> <li> <?php $data = array( 'name' => 'allowdeducname', 'id' => 'allowdeducname', 'value' => $allowdeduc, ); ?> <label for="Name">Name</label> <?php echo form_input($data) . form_error($data); ?><span id="allowdeducnameInfo" class="red_bold">*</span> </li> <li> <label for="Name">Type</label> <select name="allowdeductype"><option value ="Allowance" <?php if ($allowdeductype == "Allowance") { ?> selected <?php } ?>>Allowance</option> <option value ="Deduction" <?php if ($allowdeductype == "Deduction") { ?> selected <?php } ?>>Deduction</option> </select> </li> <li> <label for="Name">Mode</label> <select name="mode"><option value ="1" <?php if ($mode == "1") { ?> selected <?php } ?>>Direct Amount</option> <option value ="0" <?php if ($mode == "0") { ?> selected <?php } ?>>Percentage</option> </select> </li> <li> <input name="chartgroup_name" type="hidden" id="chartgroup_name" value="<?= $mainaccount ?>" /> </li> <li><label for="submit"> </label> <button type="submit" id="submit" onclick="return validateform('allowdeducname','chartgroup_name');">Update</button> </li> </ul> <?php echo form_close(); ?> </fieldset>