Example #1
0
@session_start();
if (isset($_GET['section_id'])) {
    $section_id = $_GET['section_id'];
}
include "actions/time_intervals.php";
//include the aray $times[]
include "actions/class_functions.php";
include "actions/sched_functions.php";
include "actions/subject_functions.php";
include "actions/load_schedule.php";
//to pre-load schedule on the time table.
if (!isset($_GET['sy_id'])) {
    load_sched($_GET['section_id'], get_active_sy());
    $school_yr = get_active_sy();
} else {
    load_sched($_GET['section_id'], $_GET['sy_id']);
    $school_yr = $_GET['sy_id'];
}
?>

<html lang="en"><!-- InstanceBegin template="/Templates/sched_template.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
  <?php 
@session_start();
include "../db/db.php";
include "../actions/user_privileges.php";
if (!isset($_SESSION['username'])) {
    header("Location: ../restrict.php");
}
$developer = is_privileged($_SESSION['account_no'], 1);
$super_admin = is_privileged($_SESSION['account_no'], 2);
Example #2
0
<!DOCTYPE html>
<?php 
@session_start();
//echo "<br><br><br><br><br>";
require_once "../db/db.php";
include "actions/time_intervals.php";
//include the aray $times[]
include "actions/class_functions.php";
include "actions/sched_functions.php";
include "actions/subject_functions.php";
include "actions/load_schedule.php";
//to pre-load schedule on the time table.
if (!isset($_POST['add_load']) && !isset($_POST['edit_load'])) {
    load_sched($_GET['section_id'], get_active_sy());
    // to load/reload schedule and mount it to a temporary database
}
if (isset($_POST['add_load'])) {
    $load_id = '';
    $class_id = $_POST['class_menu'];
    $s_time_index = $_POST['s_time_menu'];
    $e_time_index = $_POST['e_time_menu'];
    $days_check = isset($_POST['day_menu']) ? $_POST['day_menu'] : NULL;
    //$subject_code = $_POST['subject_menu'];
    //$room_no = $_POST['room_menu'];
    //$emp_id = $_POST['teacher_menu'];
    if (isset($_POST['day_menu'])) {
        //$days = array($_POST['day_menu']);
        $start_time = $times[$s_time_index];
        $end_time = $times[$e_time_index];
        if (strtotime($start_time) < strtotime($end_time)) {
            //$start_time<$end_time