Go to the source code of this file.
Variables | |
| $permission = 4 | |
| $approver = user_permission($sit[2], 50) | |
| if ($approver) | |
| if ($user==$sit[2] OR $approver==TRUE) | |
| $sql = "SELECT * FROM `{$dbHolidays}` WHERE userid='{$user}' " | |
| $result = mysql_query($sql) | |
| if(mysql_error()) trigger_error("MySQL Query Error ".mysql_error() | E_USER_WARNING |
| $numwaiting = mysql_num_rows($result) | |
| $holidaytype [HOL_HOLIDAY] = $GLOBALS['strHoliday'] | |
| $holidaytype [HOL_SICKNESS] = $GLOBALS['strAbsentSick'] | |
| $holidaytype [HOL_WORKING_AWAY] = $GLOBALS['strWorkingAway'] | |
| $holidaytype [HOL_TRAINING] = $GLOBALS['strTraining'] | |
| $holidaytype [HOL_FREE] = $GLOBALS['strCompassionateLeave'] | |
| $totaltaken = 0 | |
| if ($user==$sit[2]) | |
| $approver = user_permission($sit[2], 50) |
Definition at line 22 of file holidays.php.
| $holidaytype[HOL_HOLIDAY] = $GLOBALS['strHoliday'] |
Definition at line 171 of file holidays.php.
| $holidaytype[HOL_SICKNESS] = $GLOBALS['strAbsentSick'] |
Definition at line 172 of file holidays.php.
| $holidaytype[HOL_WORKING_AWAY] = $GLOBALS['strWorkingAway'] |
Definition at line 173 of file holidays.php.
| $holidaytype[HOL_TRAINING] = $GLOBALS['strTraining'] |
Definition at line 174 of file holidays.php.
| $holidaytype[HOL_FREE] = $GLOBALS['strCompassionateLeave'] |
Definition at line 175 of file holidays.php.
| $numwaiting = mysql_num_rows($result) |
Definition at line 104 of file holidays.php.
| $permission = 4 |
Definition at line 14 of file holidays.php.
| $result = mysql_query($sql) |
Definition at line 102 of file holidays.php.
| $sql = "SELECT * FROM `{$dbHolidays}` WHERE userid='{$user}' " |
Definition at line 100 of file holidays.php.
| $totaltaken = 0 |
Definition at line 177 of file holidays.php.
| if (mysql_error()) trigger_error("MySQL Query Error ".mysql_error() E_USER_WARNING |
Definition at line 103 of file holidays.php.
| if($user==$sit[2]) |
Definition at line 234 of file holidays.php.
| foreach ($holidaytype AS $htypeid=> $htype) if($totaltaken< 1 AND $numwaiting< 1) |
Definition at line 49 of file holidays.php.
| if($user==$sit[2] OR $approver==TRUE) |
Definition at line 59 of file holidays.php.
For more help developing with SiT! see http://sitracker.org/wiki/DevelopmentHowTo