?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/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/sgms/application/views/HR/view_weekly_holiday.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $holidays=$this->mastermodel->getdatas('timesheet_weekly_holiday'); $holidays_half=$this->mastermodel->getdatas('timesheet_weekly_holiday_half'); ?> <div class="select-bar"> <span class="heading">Weekly Holiday Settings</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/update_weekly_holiday/view_weekly_holiday/1',$attributes); $offday=array(); foreach($holidays as $holiday) { $offday[]=$holiday['weekly_holiday']; } $offday_half=array(); foreach($holidays_half as $holiday) { $offday_half[]=$holiday['weekly_holiday_half']; } ?> <ul> <li> <label for="data">Full Days</label> <select name="weekly_holiday[]" id="weekly_holiday" multiple> <option value="Sunday"<?php if(in_array("Sunday", $offday)){echo "selected";}?>>Sunday</option> <option value="Monday"<?php if(in_array("Monday", $offday)){echo "selected";}?>>Monday</option> <option value="Tuesday"<?php if(in_array("Tuesday", $offday)){echo "selected";}?>>Tuesday</option> <option value="Wednesday"<?php if(in_array("Wednesday", $offday)){echo "selected";}?>>Wednesday</option> <option value="Thursday"<?php if(in_array("Thursday", $offday)){echo "selected";}?>>Thursday</option> <option value="Friday"<?php if(in_array("Friday", $offday)){echo "selected";}?>>Friday</option> <option value="Saturday"<?php if(in_array("Saturday", $offday)){echo "selected";}?>>Saturday</option> </select> <input type="hidden" name="tab_name" value="weekly_holiday"/> <input type="hidden" name="resfunction" value="search_weekly_holiday"/> </li> <li> <label for="data">Half Days</label> <select name="weekly_holiday_half[]" id="weekly_holiday_half" multiple> <option value="Sunday"<?php if(in_array("Sunday", $offday_half)){echo "selected";}?>>Sunday</option> <option value="Monday"<?php if(in_array("Monday", $offday_half)){echo "selected";}?>>Monday</option> <option value="Tuesday"<?php if(in_array("Tuesday", $offday_half)){echo "selected";}?>>Tuesday</option> <option value="Wednesday"<?php if(in_array("Wednesday", $offday_half)){echo "selected";}?>>Wednesday</option> <option value="Thursday"<?php if(in_array("Thursday", $offday_half)){echo "selected";}?>>Thursday</option> <option value="Friday"<?php if(in_array("Friday", $offday_half)){echo "selected";}?>>Friday</option> <option value="Saturday"<?php if(in_array("Saturday", $offday_half)){echo "selected";}?>>Saturday</option> </select> </li> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>