?
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/editleaveallocation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php foreach($viewinfo as $updata) { $staffid=$updata['staffid']; $year = $updata['year']; $leaveallocationid = $updata['id']; } $leav=$this->mastermodel->get_data('leaveallocationdetails',$leaveallocationid,'leaveallocationid'); $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadleaveallocation('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Leave Allocated</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/editleaveallocation',$attributes); echo form_hidden('leaveallocationid',$leaveallocationid); ?> <ul> <li> </li> <li> <label for="date">Employee Name</label> <input type="text" id="staffname" size="20" value="<?=$stf->name;?>"> <input type="hidden" name="staffid" id="staffid" value="<?=$staffid;?>"> <img id="inliexample1" src="<?=base_url()?>/assets/images/button-search.png" title="Search" class="clickimage" onclick="showstaffdiv()" > <span id="staffnameInfo" class="red_bold">*</span> </li> <?php $stfper=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $stfemp=$this->mastermodel->get_data_srow('staffemployeedetails',$staffid,'staffid'); $desg = $this->mastermodel->get_data_srow('designation',$stfemp->designationid,'id'); $dept= $this->mastermodel->get_data_srow('department',$stfemp->deptid,'id'); ?> <li id="stfinfodet"> <fieldset><ul><li><label>Employee No</label><label><?=$stfper->employeeid;?></label></li> <li><label>Designation</label><label><?=$desg->designation;?></label></li> <li><label>Department</label><label><?=$dept->departmentname;?></label></li> </ul> </fieldset> </li> <li> <label for="date">Year</label><select name="year"><?php for ($i=date("Y"); $i>2008; $i--) { echo "<option value='$i'"; if($i == $year) { echo "selected = selected"; } echo ">$i</option>\n"; }?> </select> <li> <table class="sort" cellpadding="0" cellspacing="0" align="left" > <thead><tr> <th>Leave Type</th> <th>No. of Days</th> </tr> <?php $i=1; foreach($leav as $leavdet) { $data = array( 'name' => 'noofdays_'.$i, 'id' => 'noofdays_'.$i, 'style' => 'width:80%', 'value' => $leavdet['noofdays'], ); $lea=$this->mastermodel->get_data_srow('leavetype',$leavdet['leavetypeid'],'id'); ?> <tr> <td width="200px"><?=$lea->leavename;?><input type="hidden" value ="<?= $leavdet['leavetypeid'];?>" name="leavetypeid_<?=$i;?>"> </td><td width="100px"> <?php echo form_input($data).form_error($data); ?></td> </tr> <?php $i++; } ?> </table> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return validateform('staffname');">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>