-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.html
60 lines (54 loc) · 1.58 KB
/
report.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Timesheet</title><meta name="generator" content="Studio 3 http://aptana.com/"><meta name="author" content="Anonymous">
<!-- Date: 2011-05-04 -->
<script type="text/javascript " src="functions.js">
</script>
<script type="text/javascript">
function setDefaults(){
var v = document.getElementById('price');
if( v.value ==""){
v.value = "0";
}
}
function getProj() {
getData('read.php');
}
function getReport(url, project, price)
{
var url2 = url+"?project="+project+"&price="+price;
getData(url2);
}
</script>
</head>
<body onLoad="setDefaults();">
<h1>Reports and stats:</h1>
<form>
<div>
Project:
<select name="Project" id="curProj" onchange="getReport('report.php', curProj.value, price.value)">
<option>***Choose Project***</option>
<script type="text/javascript">
getProj();
</script>
</select>
</div>
<div>
Price per hour:
<input type="text" id="price" onkeyup="getReport('report.php', curProj.value, price.value)"/>
</div>
</form>
<p>
<div id='report'>
</div>
<br>
<h3>Navigation menu:</h3>
<form>
<input type="button" value="Index" onclick="action1('index.html')"/>
<input type="button" value="Register" onclick="action1('register.html')"/>
<input type="button" value="Stats" onclick="action1('stats.html')"/>
</form>
</body>
</html>