-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
78 lines (71 loc) · 3.54 KB
/
index.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
<?php
include "config/settings.php";
include "includes/db_connect.php";
include "includes/utils.php";
include "includes/test_login_user.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Timesheet</title>
<!-- CSS -->
<link rel="stylesheet" href="slickgrid/css/smoothness/jquery-ui-1.8.5.custom.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="slickgrid/examples/examples.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/sg_timesheet.css" type="text/css" />
<link rel="stylesheet" href="config/override.css" type="text/css" />
<!-- Slickgrid CSS -->
<link href="slickgrid/slick.grid.css" media="screen" rel="stylesheet" type="text/css" />
<link href="slickgrid/slick.columnpicker.css" media="screen" rel="stylesheet" type="text/css" />
<!-- jQuery -->
<script src="slickgrid/lib/jquery-1.4.4.js" type="text/javascript"></script>
<script src="slickgrid/lib/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>
<!-- Slickgrid JS -->
<script src="slickgrid/lib/jquery.event.drag-2.0.custom.js" type="text/javascript"></script>
<script src="slickgrid/lib/jquery.cookie-1.0.js" type="text/javascript"></script>
<script src="slickgrid/lib/jquery.json-2.2.min.js" type="text/javascript"></script>
<script src="slickgrid/slick.grid.js" type="text/javascript"></script>
<script src="slickgrid/slick.columnpicker.js" type="text/javascript"></script>
<script src="slickgrid/slick.session.js" type="text/javascript"></script>
<script src="slickgrid/slick.filter.js" type="text/javascript"></script>
<script src="slickgrid/slick.editors.js" language="JavaScript"></script>
<script src="slickgrid/init.js" type="text/javascript"></script>
<!-- Downloadify JS -->
<script type="text/javascript" src="downloadify/js/swfobject.js"></script>
<script type="text/javascript" src="downloadify/js/downloadify.min.js"></script>
<!-- Timesheet JS -->
<script type="text/javascript">
var loggedInUser = '<?php echo $_SESSION["username"]; ?>',
isAdmin = '<?php echo $_SESSION["level"]=="administrator"; ?>';
</script>
<script src="js/sg_timesheet.js" type="text/javascript"></script>
</head>
<body>
<div id="toolbar">
<div id="toolbar_lhs">
<div id="logOutBtn" class="pseudo-button"> Log out </div>
<div id="exportBtn" class="pseudo-button"><div id="downloadify"></div></div>
<div id="undoBtn" class="pseudo-button"> ↩ Undo cell edit </div>
</div>
<div id="toolbar_mid">
<div class="els">
<select id="numRowsSelect">
<option value="500">Num rows: 500</option>
<option value="5000">Num rows: 5000</option>
<option value="1000000000">Num rows: All</option>
</select>
<div id="showDltdRows" class="checkBoxWrapper"><input id="showDltdRowsChx" type="checkbox" class="checkBox" />Show deleted rows</div>
<div id="autoEdit" class="checkBoxWrapper"><input id="autoEditChx" type="checkbox" class="checkBox" />Auto Edit</div>
<div id="autoSave" class="checkBoxWrapper"><input id="autoSaveChx" type="checkbox" class="checkBox" />Auto Save</div>
</div>
</div>
<div id="toolbar_rhs">
<div id="saveBtn" class="pseudo-button"> SAVE » </div>
<div id="addRowBtn" class="pseudo-button"> + New row </div>
<div class="clearFloats"></div>
</div>
<div class="clearFloats"></div>
</div>
<div id="gridWrapper" class="slickgrid" style="width: 100%; height: 500px;"></div>
</body>
</html>