forked from edrabbit/biologger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity.php
53 lines (47 loc) · 1.58 KB
/
activity.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
<?php
include_once('fxns.php');
$activities = load_activities(ACTIVITIES_FILE);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />
<link href="iwebkit/css/style.css" rel="stylesheet" media="screen" type="text/css" />
<script src="iwebkit/javascript/functions.js" type="text/javascript"></script>
<title>Biologger</title>
</head>
<body>
<div id="topbar" class="black"><div id="title">Biologger</div></div>
<div id="content">
<form method="post" action="count.php">
<span class="graytitle">Activity</span>
<ul class="pageitem">
<li class="select">
<select name="activity">
<?php
$selected = False;
foreach ($activities as $act) {
if (!$selected) {
print '<option value="'.$act.'" selected="selected">'.$act.'</option>';
$selected = True;
} else {
print '<option value="'.$act.'">'.$act.'</option>';
}
}
?>
</select>
</li>
</ul>
<ul class="pageitem">
<li class="bigfield"><input placeholder="Count" name="count" type="tel" /></li>
</ul>
<ul class="pageitem">
<li class="button"><input name="Submit" type="submit" value="Submit" /></li>
</ul>
</form>
</div>
<div id="footer"></div>
</body>
</html>