forked from science-ation/science-ation
s/School Access/School Home
This commit is contained in:
parent
8e8f9f7c3b
commit
4c56a33d7c
@ -44,7 +44,9 @@ send_footer();
|
|||||||
|
|
||||||
// FIXME - this needs to be beautified
|
// FIXME - this needs to be beautified
|
||||||
function draw_dashboard(){
|
function draw_dashboard(){
|
||||||
send_header("School Access");
|
send_header("School Home",
|
||||||
|
array(),
|
||||||
|
"events_scheduling" );
|
||||||
global $config;
|
global $config;
|
||||||
global $conference;
|
global $conference;
|
||||||
echo "<ul>\n";
|
echo "<ul>\n";
|
||||||
@ -66,7 +68,7 @@ function draw_dashboard(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function draw_login(){
|
function draw_login(){
|
||||||
send_header("School Access");
|
send_header("School Home");
|
||||||
global $errormsg, $happymsg, $config;
|
global $errormsg, $happymsg, $config;
|
||||||
if($errormsg) echo "<font color=red><b>$errormsg</b></font>";
|
if($errormsg) echo "<font color=red><b>$errormsg</b></font>";
|
||||||
if($happymsg) echo happy($happymsg);
|
if($happymsg) echo happy($happymsg);
|
||||||
|
@ -6,7 +6,7 @@ require_once('user.inc.php');
|
|||||||
if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
|
if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
|
||||||
{
|
{
|
||||||
$title = i18n("Feedback / Questions");
|
$title = i18n("Feedback / Questions");
|
||||||
send_header($title, array("School Access" => "schoolaccess.php"));
|
send_header($title, array("School Home" => "schoolaccess.php"));
|
||||||
|
|
||||||
// load the school info
|
// load the school info
|
||||||
$q=mysql_query("SELECT * FROM schools WHERE id='".$_SESSION['schoolid']."' AND accesscode='".$_SESSION['schoolaccesscode']."' AND year='".$config['FAIRYEAR']."'");
|
$q=mysql_query("SELECT * FROM schools WHERE id='".$_SESSION['schoolid']."' AND accesscode='".$_SESSION['schoolaccesscode']."' AND year='".$config['FAIRYEAR']."'");
|
||||||
|
@ -6,7 +6,7 @@ require_once('user.inc.php');
|
|||||||
if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
|
if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
|
||||||
{
|
{
|
||||||
$title = i18n("School Information");
|
$title = i18n("School Information");
|
||||||
send_header($title, array("School Access" => "schoolaccess.php"));
|
send_header($title, array("School Home" => "schoolaccess.php"));
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM schools WHERE id='".$_SESSION['schoolid']."' AND accesscode='".$_SESSION['schoolaccesscode']."' AND year='".$config['FAIRYEAR']."'");
|
$q=mysql_query("SELECT * FROM schools WHERE id='".$_SESSION['schoolid']."' AND accesscode='".$_SESSION['schoolaccesscode']."' AND year='".$config['FAIRYEAR']."'");
|
||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
|
@ -143,9 +143,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode']){
|
|||||||
else {
|
else {
|
||||||
|
|
||||||
send_header("Event Registration",
|
send_header("Event Registration",
|
||||||
array('Committee Main' => 'committee_main.php',
|
array('School Home' => 'schoolaccess.php'),
|
||||||
'Administration' => 'admin/index.php',
|
|
||||||
'Events & Scheduling' => 'admin/eventsscheduling.php'),
|
|
||||||
"events_scheduling" );
|
"events_scheduling" );
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
?>
|
?>
|
||||||
|
@ -21,7 +21,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'] && $conference['type']
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$title = i18n("Manage Students");
|
$title = i18n("Manage Students");
|
||||||
send_header($title, array("School Access" => "schoolaccess.php"));
|
send_header($title, array("School Home" => "schoolaccess.php"));
|
||||||
draw_javascript();
|
draw_javascript();
|
||||||
draw_list();
|
draw_list();
|
||||||
send_footer();
|
send_footer();
|
||||||
|
@ -70,7 +70,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'] && $conference['type']
|
|||||||
function draw_page(){
|
function draw_page(){
|
||||||
global $conference;
|
global $conference;
|
||||||
$title = i18n("Manage Teams");
|
$title = i18n("Manage Teams");
|
||||||
send_header($title, array("School Access" => "schoolaccess.php"));
|
send_header($title, array("School Home" => "schoolaccess.php"));
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user