?
Current Path : /home1/savoy/public_html/savoyglobal.net/horeitia/application/views/Payroll/ |
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/horeitia/application/views/Payroll/view_weekly_holiday.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $holidays=$this->mastermodel->getdatas('payroll_weekly_holiday'); ?> <div class="select-bar"> <span class="heading">Weekly Holiday Settings</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('payroll/addinpayroll/update_weekly_holiday/view_weekly_holiday/1',$attributes); $offday=array(); foreach($holidays as $holiday) { $offday[]=$holiday['payroll_weekly_holiday']; } ?> <ul> <li> <label for="data">Select 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="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>