-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
39 lines (38 loc) · 2.09 KB
/
home.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
<?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" />
</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="diseases.php" accesskey="1">Diseases Data Input <img name="accounts" src="images/arrow.png" width="8" height="13" alt="" align="right" /></a></div>
<!--<div class="fb3"><a href="labWeekly.php" accesskey="3">Lab Weekly Malaria Info <img src="images/arrow.png" width="8" height="13" alt="" align="right" /></a></div>-->
<div class="fb3"><a href="moreInfo.php" accesskey="3">More Information <img src="images/arrow.png" width="8" height="13" alt="" align="right" /></a></div>
<div class="fb3"><a href="summary.php" accesskey="3">Summary<img src="images/arrow.png" width="8" height="13" alt="" align="right" /></a></div>
<div class="fb3"><a href="epiSelection.php" accesskey="3">Facility/Epiweek selection<img src="images/larrow.png" width="8" height="13" alt="" align="right" /></a></div>
<div class="fb3"><a href="index.php" accesskey="3"><font color="#ff0000">Log Out</font><img src="images/larrow.png" width="8" height="13" alt="" align="right" /></a></div>
</body>
</html>
<?php
}
else{
header('location:index.php');
}
//echo "session:".$sess;
?>