-
Notifications
You must be signed in to change notification settings - Fork 0
/
top_include.php
96 lines (76 loc) · 3.87 KB
/
top_include.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Group Target Setter V2</title>
<meta name="description" content="">
<meta name="author" content="">
<?php
include('settings.php');
require_once("../../config.php");
include('soap_connection.php');
global $CFG, $COURSE, $USER, $DB;
?>
<script type="text/javascript" src="./jquery2/jquery-1.7.1.min.js"></script>
<!-- <script type="text/javascript" src="./jquery2/jquery-ui-1.8.17.custom.min.js"></script>-->
<script type="text/javascript" src="./jquery2/DataTables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="./jquery2/DataTables/media/js/ColReorder.min.js"></script>
<script type="text/javascript" src="bootstrap2/js/bootstrap.min.js""></script>
<!-- <script type="text/javascript" src="./jquery2/ColReorder.min.js"></script>-->
<!-- <script type="text/javascript" src="./jquery2/ColVis.min.js"></script>-->
<script type="text/javascript" src="./jquery2/jquery.multi-open-accordion-1.0.1.js"></script>
<!-- Load the google chart api-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<link rel="stylesheet" href="bootstrap2/css/bootstrap.min.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="bootstrap2/css/dt_bootstrap.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="./jquery2/css/custom-theme/jquery-ui-1.8.17.custom.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="accordcss.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="styles_print2.css" type="text/css" media="print" charset="utf-8">
<link rel="stylesheet" href="styles2.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="bootstrap2/css/dt_bootstrap.css" type="text/css" media="screen"
charset="utf-8">
<script type="text/javascript" src="<?php $CFG->wwwroot; ?>/blocks/ilp/custom/bootstrap/datepicker/js/bootstrap-datepicker.js"></script>
<link href="<?php $CFG->wwwroot; ?>/blocks/ilp/custom/bootstrap/datepicker/css/datepicker.css" rel="stylesheet">
<?php
// $mysqli = new mysqli($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname);
// if ($mysqli->errno) {
// echo 'error connecting' . $mysqli->error;
// }
include'shared_functions2.php';
include('accord_functions2.php');
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head>
<!--[if lt IE 9]>
<script src="bootstrap2/html5.js"></script>
<![endif]-->
<!--<link href="../bootstrap2/js/bootstrap.min.css" rel="stylesheet">-->
<style type="text/css">
body {
padding-top: 60px;
}
</style>
<?php
// set session variables
// set the academic year if needed as a session varible
if (empty($_SESSION['academicYear'])) { $resultAtt = $client->__soapCall("getAcademicYear", array(''));
foreach ($resultAtt as $item) {
$_SESSION['academicYear'] = $item['academicyear'];
}
}
if (!empty($_GET['courseid'])) {
$_SESSION['course_code_session'] = $_GET['courseid'];
}
if (!empty($_GET['var1'])) {
$_SESSION['course_context_session'] = $_GET['var1'];
}
?>