-
Notifications
You must be signed in to change notification settings - Fork 0
/
SelectTasks.php
72 lines (69 loc) · 2.03 KB
/
SelectTasks.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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Arial, Verdana, sans-serif;
color: #333333;
padding: 5% 20%;
text-align: center;
}
table {
margin: auto;
width: 50%;
padding: 10px;
}
tr { height: 4em;}
button {font-size: 1.2em; height: 2em; width: 10em;}
</style>
</head>
<body>
<?php
/**
* Created by PhpStorm.
* User: Andi Zhou
* Date: 2018/1/18
* Time: 22:57
*/
if (isset($_GET['pid'])) {
$pid = $_GET['pid'];
echo '<h1>Participant #' . $pid . '</h1>';
?>
<table>
<form id="participant" method="GET" action="BingSearch.php">
<input type="hidden" name="pid" value="<?php echo $pid; ?>">
<tr>
<td>
<button form="participant" type="submit" name="tid" value="t1" formtarget="_blank">
Task 1
</button>
</td>
</tr>
<tr>
<td>
<button form="participant" type="submit" name="tid" value="t2" formtarget="_blank">
Task 2
</button>
</td>
</tr>
<tr>
<td>
<button form="participant" type="submit" name="tid" value="t3" formtarget="_blank">
Task 3
</button>
</td>
</tr>
<tr>
<td>
<button form="participant" type="submit" name="tid" value="t4" formtarget="_blank">
Task 4
</button>
</td>
</tr>
</form>
</table>
</body>
</html>
<?php
}
?>