-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.inc.php
56 lines (52 loc) · 2.12 KB
/
footer.inc.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
<?
// ============================== authentication ===============================
//if (session_status() == PHP_SESSION_NONE) {
// session_start();
//}
//session_regenerate_id();
//if(!isset($_SESSION['user_email'])) { // if there is no valid session
// header("Location: index.php?notice=login_first");
//}
require_once "session_inc.php";
// ============================== authentication ===============================
?>
<!-- Included JS Files -->
<!-- template plugins -->
<!-- JavaScript -->
<script src="javascripts/jquery-1.11.0.min.js"></script>
<script src="javascripts/bootstrap.js"></script>
<!-- Page Specific Plugins -->
<!-- // <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> -->
<!-- // <script src="http://cdn.oesmith.co.uk/morris-0.4.3.min.js"></script> -->
<script src="javascripts/morris/chart-data-morris.js"></script>
<script src="javascripts/tablesorter/jquery.tablesorter.js"></script>
<script src="javascripts/tablesorter/tables.js"></script>
<script src="javascripts/modernizr.foundation.js"></script>
<script src="javascripts/foundation.js"></script>
<!-- // <script src="javascripts/app.js"></script> -->
<script src="javascripts/admin.js"></script>
<!-- js_objects -->
<script src="javascripts/js_objects.js" type="text/javascript"></script>
<script src="javascripts/ajax_handler.js" type="text/javascript"></script>
<script src="javascripts/notice.js" type="text/javascript"></script>
<script src="javascripts/main.js" type="text/javascript"></script>
<script src="javascripts/form.js" type="text/javascript"></script>
<!-- /template plugins -->
<script type="text/javascript">
$(function() {
var active = "<?= (string) $active ?>";
console.log(active);
$('.side-nav li a').each(function(key,item) {
if (item.text.indexOf(active) >= 0) {
// console.log(item);
$('.side-nav li.active').removeClass("active");
item.parentNode.classList.add("active");
}
})
// initiate js objects
Form.init();
Toggle.init();
});
</script>
</body>
</html>