forked from davidgeorgiev/DYH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
curriculum.php
56 lines (51 loc) · 1.46 KB
/
curriculum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
session_start();
echo '<html lang="en" class="no-js">';
include "head.php";
include "config.php";
CheckFriendShipByNameAndKickOut($_GET["user"], Get_Logged_users_id());
?>
<?php
include "start_check.php";
// if ($_SESSION['page'] != 'check_width'){
// header('Location: check_width_and_send_to.php?user='.$username.'&page='.$current_page_is) and exit;
// }
$_SESSION['page'] = "other";
?>
<body>
<?php include "main_menu.php";include "some_external_phps/checkIfHaveToShowOtherWeek.php";include "some_external_phps/ReturnUserIDByUserName.php";?>
<?php
$eoweek = 0;
$ddate = date("Y-m-d");
$date = new DateTime($ddate);
$week = $date->format("W");
?>
<div class="page-header">
<h1>Учебната програма <small id = "smalltag" style = "color:#d2c9c6;">
<?php
if($week&1) {
$eoweek = "OddWeekID";
$Label = 'Седмицата е нечетна';
} else {
$eoweek = "EvenWeekID";
$Label = 'Седмицата е четна';
}
//$eoweek = "OtherWeekID";
if (CheckIfHaveToShowOtherWeek(ReturnUserIdByUserName($username)) == 1) {
$eoweek = "OtherWeekID";
$Label = 'Седмицата е извънредна';
}
echo $Label;
?>
</small></h1>
</div>
<?php
include "some_external_phps/print_curriculum.php";
for ($day = 1; $day <= 7; $day++) {
echo '<div id = "Curriculum">';
PrintCurriculum($_GET["user"], $eoweek, $day, "");
echo '</div>';
}
?>
</body>
</html>