forked from saakaifoundry/centreSIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Reminders.php
50 lines (44 loc) · 1.78 KB
/
Reminders.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
if($_REQUEST['type'])
$_SESSION['FSA_type'] = $_REQUEST['type'];
else
$_SESSION['_REQUEST_vars']['type'] = $_REQUEST['type'] = $_SESSION['FSA_type'];
if($_REQUEST['modfunc']!='save')
{
if($_REQUEST['type']=='staff')
{
$tabcolor_s = '#DFDFDF'; $textcolor_s = '#999999';
$tabcolor_u = Preferences('HEADER'); $textcolor_u = '#FFFFFF';
}
else
{
$tabcolor_s = Preferences('HEADER'); $textcolor_s = '#FFFFFF';
$tabcolor_u = '#DFDFDF'; $textcolor_u = '#999999';
}
$header = '<TABLE border=0 cellpadding=0 cellspacing=0 height=14><TR>';
$header .= '<TD width=10></TD><TD>'.DrawTab(_('Students'),"Modules.php?modname=$_REQUEST[modname]&type=student",$tabcolor_s,$textcolor_s,'_circle',array('tabcolor'=>Preferences('HEADER'),'textcolor'=>'FFFFFF')).'</TD>';
$header .= '<TD width=10></TD><TD>'.DrawTab(_('Users'), "Modules.php?modname=$_REQUEST[modname]&type=staff", $tabcolor_u,$textcolor_u,'_circle',array('tabcolor'=>Preferences('HEADER'),'textcolor'=>'FFFFFF')).'</TD>';
$header .= '<TD width=10></TD></TR></TABLE>';
DrawHeader(($_REQUEST['type']=='staff' ? _('User') : _('Student')).' '.ProgramTitle(),(User('PROFILE')=='student'?'':'<TABLE bgcolor=#ffffff><TR><TD>'.$header.'</TD></TR></TABLE>'));
}
include('modules/Food_Service/'.($_REQUEST['type']=='staff' ? 'Users' : 'Students').'/Reminders.php');
function _makeChooseCheckbox($value,$title)
{
global $THIS_RET;
return '<INPUT type=checkbox name=st_arr[] value='.$value.($THIS_RET['WARNING']||$THIS_RET['NEGATIVE']||$THIS_RET['MINIMUM']?' checked>':'');
}
function x($value)
{
if($value)
return isset($_REQUEST['_CENTRE_PDF']) ? '<B>X</B>' : '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>';
else
return ' ';
}
function red($value)
{
if($value<0)
return '<FONT color=red>'.$value.'</FONT>';
else
return $value;
}
?>