-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·67 lines (43 loc) · 1.43 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
<?php
$fancyheader = 1;
require_once("header.php");
$mysqli = new mysqli("localhost","sampurce_admin","kamehameha1","sampurce_dental");
//if it didn't work, throw error
if($mysqli->connect_errno) {
echo $mysqli->connect_error;
exit();
}
$condition = "edentulism";
?>
<div data-role="content">
<!--pass along the original condition (edentulism to start)-->
<form method="GET" action="step3.php" >
<h3>Case:</h3>
<fieldset data-role="controlgroup" data-submission="step2.php" data-condition=<?php echo "'" . $condition . "'"; ?>>
<input type="hidden" value=<?php echo "'" . $condition . "'" ?> name="condition" />
<?php
$results = $mysqli->query("select * from edentulism where parent_id = '11'");
while($row = $results->fetch_assoc()) {
foreach($row as $k=>$v) {
if($k == "id") {
$id = $v;
echo "\t\t\t\t\t<input type = 'radio' name = 'case' id = '" .
$v;
}
else if ($k == "name") {
$name = $v;
echo "' value = '" . $id . "' />";
}
}
echo "<label for='" . $id . "' >" . $name . "</label>\n";
}
?> </fieldset>
<div class="ajaxContent"></div>
<div data-role="controlgroup" data-type="horizontal" style="text-align:right" >
<a data-role="button" data-theme="b" style="display: none;" id="continue" >Continue</a>
</div>
</form>
</div>
<?php
require_once("footer.php");
?>