-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrack.php
More file actions
128 lines (124 loc) · 4.64 KB
/
track.php
File metadata and controls
128 lines (124 loc) · 4.64 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!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">
<head>
<?php
require_once('./conf.php');
/*------------------------------------------------------------------------*
* © 2010 University of Limerick. All rights reserved. This material may *
* not be reproduced, displayed, modified or distributed without the *
* express prior written permission of the copyright holder. *
*------------------------------------------------------------------------*/
;?>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title><?php print BASE_TITLE ;?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link type="text/css"
href="css/ui-lightness/jquery-ui-1.8.4.custom.css"
rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript"
src="js/jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#status").load("status.php?id=<?php print $_GET['id'];?>");
$("#workflow").load("workflow.php?id=<?php print $_GET['id'];?>");
$("#log").load("log.php?id=<?php print $_GET['id'];?>");
$("#log-feedback").load("log-feedback.php?id=<?php print $_GET['id'];?>");
$("#log-metadata").load("log-metadata.php?id=<?php print $_GET['id'];?>");
var refreshId = setInterval(function() {
$("#status").load("status.php?id=<?php print $_GET['id'];?>");
$("#workflow").load("workflow.php?id=<?php print $_GET['id'];?>");
$("#log").load("log.php?id=<?php print $_GET['id'];?>");
$("#log-feedback").load("log-feedback.php?id=<?php print $_GET['id'];?>");
$("#log-metadata").load("log-metadata.php?id=<?php print $_GET['id'];?>");
}, 9000);
});
</script>
</head>
<body>
<div id="wrapper">
<div id="content">
<div id="header"> <h4 class="lang"><?php $i=0; foreach($languages as $code => $svrpath) { $i++; print '<a href="'.$svrpath.'/'.curPageName().'" >'.$code.'</a>';
if ($i<count($languages)) print " | "; }; ?> </h4>
<div id="logo">
<h1><?php print BASE_LOCCONNECT;?></h1>
<h4><?php print BASE_MOTO;?></h4>
</div>
<div id="links">
<ul>
<li> <a href="./index.php"><?php print BASE_HOME;?></a> </li>
<li> <a href="./prompt.php"><?php print BASE_NEW_PROJECT;?></a> </li>
<li> <a href="./trackproj.php"><?php print BASE_TRACK_PROJECTS;?></a></li>
<li> <a href="./about.php"><?php print BASE_ABOUT;?></a> </li>
</ul>
</div>
</div>
<div id="mainimg">
<h3><?php print BASE_H1;?></h3>
<h4><?php print BASE_H2;?></h4>
</div>
<div id="contentarea">
<div class="txt">
<?php
$id=$_GET["id"];
$db = new PDO('sqlite:'.BASE_DB_URL.'locTemp.sqlite');
$res = $db->query('select * from Project where ID="'.$id.'"');
$c=0;
foreach($res as $row)
{
$c=$c+1;
$currentstep=(int)$row['CurrentStep'];
$finishdate=$row['FinishDate'];
$pname=$row['PName'];
$pdesc=$row['Desc'];
}
if ($c>0)
{
print "<h2>".$pname."</h2>\n";
print "<p>".$pdesc."</p><br/>\n";
} else
{
die('<h2>Project Not Found.</h2><br/>');
}
$db=NULL;
;?>
</div>
<h2><?php print BASE_T_STATUS;?></h2>
<div id="status">
<p><?php print BASE_T_LOADING;?></p>
</div>
<br/>
<h2><?php print BASE_T_WORKFLOW;?></h2>
<div id="workflow">
<p><?php print BASE_T_LOADING;?></p>
</div>
<br/>
<div id="log">
<p><?php print BASE_T_LOADING;?></p>
</div>
<br/>
<div id="log-feedback">
<p><?php print BASE_T_LOADING;?></p>
</div>
<br/>
<div id="log-metadata">
<p><?php print BASE_T_LOADING;?></p>
</div>
<div id="notice"></div>
</div>
<div id="bottom">
<div id="email"><a href="mailto:<?php print BASE_EMAIL;?>"><?php print BASE_EMAIL;?></a></div>
<div id="validtext">
<p>Valid
<a href="http://validator.w3.org/check?uri=referer">
XHTML</a>|
<a href="http://jigsaw.w3.org/css-validator/check/referer">
CSS</a></p>
</div>
</div>
</div>
</div>
</body>
</html>