-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha_wizard_2.php
More file actions
56 lines (49 loc) · 1.67 KB
/
Copy patha_wizard_2.php
File metadata and controls
56 lines (49 loc) · 1.67 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
<?php
/**
* Clinican+
* @version v2.0
* @author ArvindSA, Anoop Toffy
*/
require('inc/sql.php');
//Process checkbox
if(isset($_POST['c'])){
$c=$_POST['c'];
$c2=array();
foreach($c as $k=>$v){
$c2[]=$k;
}
$c2=implode(',',$c2);
//$q=query('SELECT * FROM symptom where cat IN ('.$c2.')');
}else{
$sql='SELECT * FROM symptom where sym_index=\'a\' ORDER BY symptom ASC LIMIT 200';
//die($sql);
$sql=mysql_query($sql);
}
?>
<?php
$str='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$count=strlen($str);
echo '<div class="lex" id="lexbind">';
for($i=0;$i<$count;$i++){
echo '<a href="ajax_getindex_sym.php?index='.$str[$i].'" class="lex_call">'.$str[$i].'</a>';
}
echo '</div>'
?><form action="a_wizard_3.php" method="post">
<table width="100%" border="0">
<tr>
<td style="width:50%"><h2>Available symptoms</h2><select name="available" size="30" id="available" style="width:100%">
<?php while($row=mysql_fetch_assoc($sql)){
echo '<option value="'.$row['id'].'">'.$row['symptom'].'</option>';
}?>
</select></td>
<td><h2>Selected symptoms</h2>
<select name="selected[]" size="30" id="selected" style="width:100%" multiple="multiple">
</select><input name="age" type="hidden" value="<?php echo $_POST['age'];?>" />
<input name="sex" type="hidden" value="<?php echo $_POST['sex'];?>" />
</td>
</tr>
</table> <div class="center">
<input type="submit" name="submit" id="submit" value="Submit" class="buttonblue" />
</div></form>
<p> </p><script>bind_slist();bind_form();lex_call();</script>
<div class="clear"></div>