85 lines
4.0 KiB
PHP
85 lines
4.0 KiB
PHP
<?php
|
|
$width = "150";
|
|
$currUserNum = $_SESSION['UserInfo']['record_num'];
|
|
|
|
// Check for custom instruction document
|
|
include "parent-instructions.php";
|
|
|
|
?>
|
|
<ul>
|
|
<li id="home"><a href='/'><?php echo($spanOn) ?>HOME<?php echo($spanOff) ?></a></li>
|
|
<?php include "menu.submenus.php"; ?>
|
|
<li id="config"><a href=''><?php echo($spanOn) ?>REPORTS<?php echo($spanOff) ?></a>
|
|
<ul>
|
|
<li><a href='/?action=login-log'>View Login Log</a></li>
|
|
<li><a href='/?action=activity-log'>View Activity Log</a></li>
|
|
<li><a href='/class-list.print.php'>All Class Lists</a></li>
|
|
</ul>
|
|
</li>
|
|
<li id="config"><a href='/?action=content&naction=list'><?php echo($spanOn) ?>CONFIG<?php echo($spanOff) ?></a>
|
|
<ul>
|
|
<?php if ($school_record['display_staff_list'] == 'Y') { ?>
|
|
<li><a href='/?action=staff-list'>Staff List</a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
</li>
|
|
<li id="lunches"><a href='/?action=schedules&naction=list'><?php echo($spanOn) ?>VOLUNTEERS<?php echo($spanOff) ?></a>
|
|
<ul>
|
|
<li><a href='/?action=manage-volunteers'>Manage Volunteers</a></li>
|
|
<li><a href=''>Volunteer Reports</a>
|
|
<?php
|
|
// Get set of active schedules defined
|
|
$today = date("Y-m-d",time());
|
|
$query = "select * from hotlunch_schedules " .
|
|
"where school_num = $school_num " .
|
|
"and status not in ('Disabled','Deleted') " .
|
|
"and schedule_end_date >= '$today' " .
|
|
"order by $scheduleSortOrder";
|
|
$results = db_query($query);
|
|
if (db_num_rows($results)) {
|
|
echo(" <ul>\n");
|
|
$maxLength = 30;
|
|
while ($row = db_fetch_array($results)) {
|
|
$name = $row['schedule_name'];
|
|
if (strlen($name) > $maxLength) {
|
|
$words = explode(' ',$name);
|
|
$name = $words[0];
|
|
for ($i = 1; $i < count($words); $i++) {
|
|
if (strlen($name) + strlen($words[$i]) + 1 > $maxLength) break;
|
|
$name .= ' ' . $words[$i];
|
|
}
|
|
$name .= "...";
|
|
}
|
|
|
|
$snum = $row['record_num'];
|
|
echo(" <li><a href='/?action=volunteer-print&schedule_num=$snum'>$name</a></li>\n");
|
|
}
|
|
echo(" </ul>\n");
|
|
}
|
|
?>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<?php if ($school_record['email_system'] == 'Y') { ?>
|
|
<li id="email"><a href='/?action=emails'><?php echo($spanOn) ?>EMAIL SYSTEM<?php echo($spanOff) ?></a>
|
|
<ul>
|
|
<li><a href='/?action=email-messages'>Edit Email Messages</a></li>
|
|
<li><a href='/?action=email-flag-recipients'>Flag Email Recipients</a></li>
|
|
<li><a href='/?action=email-parents'>Send Emails to Parents</a></li>
|
|
<li><a href='/?action=email-logs'>View Email Logs</a></li>
|
|
</ul>
|
|
</li>
|
|
<?php } ?>
|
|
<li id="help"><a href='/?action=view-faqs'><?php echo($spanOn) ?>HELP<?php echo($spanOff) ?></a>
|
|
<ul>
|
|
<li><a href='/?action=view-how-to-guides'><?php displayLanguageText('TEXT-HOW-TO-GUIDES'); ?></a></li>
|
|
<li><a href='/?action=support-policy'>Support Policy</a></li>
|
|
<li><a href='/?action=view-faqs'>FAQ's</a></li>
|
|
<li><a href='/?action=view-support-log'>Support Requests</a></li>
|
|
<li><a href='/?action=help-definitions-view'>Terms and Definitions</a></li>
|
|
</ul>
|
|
</li>
|
|
<li id="password"><a href='/?action=change-password'><?php echo($spanOn) ?><?php displayLanguageText('MENUTAB-PASSWORD'); ?><?php echo($spanOff) ?></a></li>
|
|
<li id="logout"><a href='/?action=logout'><?php echo($spanOn) ?>LOGOUT<?php echo($spanOff) ?></a></li>
|
|
</ul>
|