?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/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/www/savoyglobal.net/drafthr/system/application/views/HR/addleavetype.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" onclick="loadleavetype('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25"/></label> </div> <fieldset> <legend>Add Leave Type</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/addleavetype',$attributes); ?> <ul> <li> <?php $stf=$this->mastermodel->get_data_srow('leavetype',$norecords,'id'); if(isset($stf->leavecode)) { $num=substr($stf->leavecode, -3); $num++; } else $num=100; $options = array( 'Male' => 'Male', 'Female' => 'Female', 'Both' => 'Both', ); $data4 = array( 'name' => 'carryforward', 'id' => 'carryforward', 'value' => 'No', 'checked' => FALSE, 'style' => 'margin:5px', ); $data1 = array( 'name' => 'carryforward', 'id' => 'carryforward', 'value' => 'Yes', 'checked' => TRUE, 'style' => 'margin:5px', ); $data2 = array( 'name' => 'salaryrefund', 'id' => 'salaryrefund', 'value' => 'No', 'checked' => TRUE, 'style' => 'margin:5px', ); $data3 = array( 'name' => 'salaryrefund', 'id' => 'salaryrefund', 'value' => 'Yes', 'checked' => FALSE, 'style' => 'margin:5px', ); ?> <input type="hidden" name="leavecode" value="<?php echo "LEAV-".($num); ?>"> </li> <li> <?php $data = array( 'name' => 'leavename', 'id' => 'leavename', ); ?> <label for="name">Leave Type Name</label> <?php echo form_input($data).form_error($data); ?><span id="leavenameInfo" class="red_bold">*</span> </li> <li> <label for="type">Gender</label> <?php echo form_dropdown('gender', $options, 'Male'); ?> </li> <li> <label for="type">Carry Forward</label> <table align="left"><tr><td> <?php echo form_radio($data4); ?></td><td> No</td> <td> <?php echo form_radio($data1); ?></td><td> Yes</td></tr></table> </li> <li> <label for="type">Refundable</label> <td> <table align="left"><tr><td> <?php echo form_radio($data2); ?> </td><td> No </td> <td> <?php echo form_radio($data3); ?> </td><td>Yes </tr></table> <li><label for="submit"> </label> <button type="submit" id="submit" onclick="return validateform('leavename');">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>