session_start(); if (!session_is_registered(myusername)) { $url = "http://" . $_SERVER['HTTP_HOST'] . "/"; die('<script type="text/javascript">window.location=\'' . $url . '\';</script>'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="rtl" lang="he"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="styles.css"> <title>מערכת מעקב נוכחות טסט - מרכז "בני ברוך" פתח גהגה תקוה</title> <?php include "class_lib.php"; ?> </head> <body> <?php include 'top_menu.html'; $theDateFrom = isset($_REQUEST["date3"]) ? $_REQUEST["date3"] : ""; $theDateTo = isset($_REQUEST["date4"]) ? $_REQUEST["date4"] : ""; $surname = isset($_REQUEST["surname"]) ? $_REQUEST["surname"] : ""; $_SESSION['surname'] = $surname; $main_id = $surname; $statistics = new statistics(); echo '<p>דוח נוכחות מתאריך ' . $theDateFrom . ' עד תאריך ' . $theDateTo . '</p>'; $stat_select = $statistics->selectstat($theDateFrom, $theDateTo, $main_id); include 'stat_disp.php';