-
Notifications
You must be signed in to change notification settings - Fork 0
/
diseases.php
49 lines (48 loc) · 1.84 KB
/
diseases.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
<?php
session_start();
include 'connection/config.php';
if(isset($_SESSION['session'])){
$epiweek=$_SESSION['epiweek'] ;
$facilitycode=$_SESSION['facilitycode'] ;
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>IDSR</title>
<link href="css/idsr.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="scripts/jquery-1.6.1.min.js"></script>
<script>
$(".fb3").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
</script>
</head>
<body>
<div class="fb1" align="center"><img name="accounts" src="images/naslogo.jpg" alt="" align="center" /><br><font color="#3B5998" >Integrated Disease Surveillance and Response<br></font>
<?php
$sql="SELECT name FROM facilitys WHERE facilitycode=$facilitycode";
$rs=mysql_query($sql);
$value=mysql_fetch_array($rs);
$facilitycode=$value['name'];
echo "Epiweek:<font color=\"#008000\" ><u>".$epiweek."</u></font> Facility:<font color=\"#008000\" ><u>".$facilitycode."</u></font>";
?>
</div>
<div class="fb3"><a href="home.php"><img src="images/larrow.png" width="10" height="15" alt="" /> Back</a> </div>
<?php
$sql="SELECT id,name FROM diseases WHERE flag=1";
$rs=mysql_query($sql);
while($value=mysql_fetch_array($rs)){
$disease_id=$value["id"];
$disease_name=$value["name"];
$_SESSION['disease']=$disease_id;
echo "<div class=\"fb3\"><a href=\"dataEntry.php?diseaseid=$disease_id\" accesskey=\"2\">$disease_name <img src=\"images/arrow.png\" width=\"8\" height=\"13\" alt=\"\" align=\"right\" /></a></div>";
}
}
else{
header('location:index.php');
}
?>
</body>
</html>