?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/drafthr/system/application/views/HR/editassignleave.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); $('.two').datepick({dateFormat: 'dd-mm-yyyy'}); }); </script> <?php foreach($viewinfo as $updata) { $staffid=$updata['staffid']; $fromdate = $updata['fromdate']; $todate = $updata['todate']; $remarks = $updata['remarks']; $assignleaveid=$updata['id']; $type1=$updata['type']; } $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $type=$this->mastermodel->get_data_srow('leavetype',$type1,'id'); $fromdate=$this->mastermodel->convdatformat($fromdate); $todate=$this->mastermodel->convdatformat($todate); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadassignleave('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Leave Applied</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/editassignleave',$attributes); echo form_hidden('assignleaveid',$assignleaveid); ?> <ul> <li> </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'); if(!isset($desg)) $designation=""; else $designation=$desg->designation; if(!isset($dept)) $department=""; else $department=$dept->departmentname; ?> <li id="stfinfodet"> <fieldset><ul><li><label>Employee No</label><label><?=$stfper->employeeid;?></label></li> <li><label>Designation</label><label><?=$designation;?></label></li> <li><label>Department</label><label><?=$department;?></label></li> </ul> </fieldset> </li> <li> <label>From Date</label> <input class="one" name="fromdate" id="fromdate" value="<?=$fromdate;?>" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="fromdateInfo" class="red_bold">*</span> </li> <li> <label>To Date</label> <input class="two" name="todate" id="todate" readonly="true" value="<?=$todate;?>" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="todateInfo" class="red_bold">*</span> </li> <li> <?php $leavetype=$this->mastermodel->getdatas('leavetype'); ?> <label>Leave Type</label> <select name='type' style='width:100px' id='type'><option>Select</option>"; <?php foreach($leavetype as $type) { echo '<option value="'.$type['id'].'"'; if($type['id']==$type1) {echo "selected"; }echo '>'.$type['leavename'].'</option>'; } ?> </select> </li> <li><label>Remarks</label><textarea name="remarks"><?=$remarks;?></textarea></li> <li><label for="submit"> </label> <button type="submit" id="submit" onclick="return validateform('fromdate','todate')">Update</button> </li> </ul> <?php echo form_close();?> </fieldset>