unset($_SESSION['_REQUEST_vars']['search_modfunc']); */ } //if($_REQUEST['staff_id']=='new') if (optional_param('staff_id', '', PARAM_ALPHANUM) == 'new') { unset($_SESSION['miss_attn']); unset($_SESSION['staff_id']); unset($_SESSION['_REQUEST_vars']['staff_id']); unset($_SESSION['_REQUEST_vars']['search_modfunc']); echo "<script language=javascript>parent.body.location='" . str_replace('&', '&', PreparePHP_SELF($_SESSION['_REQUEST_vars'])) . "';</script>"; } unset($_REQUEST['modfunc']); echo "\n<HTML>\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n\t\t<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\n\t\t<link rel=stylesheet type=\"text/css\" href=\"assets/stylesheet.css\">\n\t\t<script language=\"JavaScript\" type=\"text/javascript\">\n\t\t\n\t\t</script>\n\t\t<title>" . Config('TITLE') . "</title>\n\t</head>\n\t<BODY background=assets/themes/" . Preferences('THEME') . "/bg.jpg leftmargin=6 marginwidth=4 topmargin=0 " . (clean_param($_REQUEST['modcat'], PARAM_NOTAGS) ? "onload=openMenu('" . clean_param($_REQUEST['modcat'], PARAM_NOTAGS) . "');" : '') . ">"; // User Information echo "<TABLE border=0 cellpadding=0 cellspacing=0 width=100%><TR><TD height=30>"; echo '<A HREF=index.php target=_top>' . DrawPNG('themes/' . Preferences('THEME') . '/logo.png', 'border=0 width=160') . '</A>'; echo "</TD></TR><TR>"; echo "<TD class=BoxContents style='border: inset #C9C9C9 2px; background-image:url(\"assets/bg.gif\")' width=100% valign=top>\n\t<FORM action=Side.php?modfunc=update method=POST>\n\t<INPUT type=hidden name=modcat value='' id=modcat_input>\n\t<b>" . User('NAME') . "</b>\n\t<BR>" . date('l F j, Y') . "\n\t<BR>"; if (User('PROFILE') == 'admin') { $schools = substr(str_replace(",", "','", User('SCHOOLS')), 2, -2); $QI = DBQuery("SELECT ID,TITLE FROM schools" . ($schools ? " WHERE ID IN ({$schools})" : '')); $RET = DBGet($QI); // if(!UserSchool()) // { // $_SESSION['UserSchool'] = $RET[1]['ID']; // DBQuery("UPDATE staff SET CURRENT_SCHOOL_ID='".UserSchool()."' WHERE STAFF_ID='".User('STAFF_ID')."'"); // } echo "<SELECT name=school onChange='document.forms[0].submit();' style='width:150;'>"; foreach ($RET as $school) { echo "<OPTION value={$school['ID']}" . (UserSchool() == $school['ID'] ? ' SELECTED' : '') . ">" . $school['TITLE'] . "</OPTION>"; }
Warehouse('header'); echo "<BODY leftmargin=2 marginwidth=2 background=assets/bg.gif onLoad='document.loginform.USERNAME.focus()'>"; echo "<br><br>"; PopTable("header", _('Centre Login'), "width=55%", "5"); echo '<CENTER>'; if (isset($_REQUEST['reason'])) { $note[] = _('You must have javascript enabled to use Centre.'); } if (isset($error)) { echo ErrorMessage($error, _('Error')); } if (isset($note)) { echo ErrorMessage($note, _('Note')); } echo '</CENTER>'; echo "<table border=0>\n\t<tr>\n\t<td align=right>" . DrawPNG('themes/' . Preferences('THEME') . '/logo.png', 'border=0 width=160') . "</td>\n\t<td align=center><form name=loginform method='post' action='index.php'>\n\t<h4>" . Config('TITLE') . " </h4>\n <table border='0' cellspacing='0' cellpadding='2'>"; // ng - choose language if (sizeof($CentreLocales) > 1) { echo "<tr><td align='right'><b>" . _('Language') . "</b></td>"; echo "<td align='left'>"; foreach ($CentreLocales as $loc) { echo "<A href={$_SERVER['PHP_SELF']}?locale={$loc}><IMG src=assets/flags/{$loc}.png height=20px width=20px border=0 /></A> "; } echo "</td>"; } echo "<tr>\n\t\t<td align='right'><b>" . _('Username') . "</b></td>\n\t\t<td align='left'><input type='text' name='USERNAME' size='25' maxlength='25' /></td>\n\t</tr>\n\t<tr>\n\t\t<td align='right'><b>" . _('Password') . "</b></td>\n\t\t<td align='left'><input type='password' name='PASSWORD' size='25' maxlength='25' /></td>\n\t</tr>\n\t</table>\n\t<p>\n\t<INPUT type=submit value='" . _('Login') . "'></p>"; if ($ShowCreateAccount) { echo "<center><font size=-1>[ <A HREF=index.php?modfunc=create_account>" . _('Create Account') . "</A> ]</font></center>"; } echo "</form>\n\t</td></tr>\n\t"; // System disclaimer.