<?php
include("session_start.php");
include("session_check.php");include("database.php");  
//echo "select * from master_ward order by wid asc"; exit;
$query="select * from master_ward order by wid asc";
 $rest=mysql_query($query);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Survey Application</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/page.css">
<link href="css/admincss.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js">
</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})



</script>
</head>

<body class="body">

<div id="wrap" >
  
  
  <div id="top">
    <?php include("header.php"); ?>
    <!--<div id="ban"><table width="1004" align="left"  >
  <tr>
    <td width="234"  align="left"  valign="top" ><img src="images/logoss.png" border="0" /></td>
    <td  valign="top" style="padding-top:5px;" width="758"  align="right" ><table align="left" width="707">
  <tr>
    <td width="386" align="left"><div ><a href="#" id="bantext1">REQUEST A DEMO</a></div></td>
    <td width="167" align="left"><div ><a href="#" id="bantext2">DOWNLOADS</a></div></td>
    <td width="138" align="left"><div ><a href="#" id="bantext2">DOWNLOADS</a></div></td>
  </tr>
  <tr>
    <td colspan="3" align="center" class="banquot">Be Smart and Survey Smartly </td>
  </tr>
</table></td>
    
    
  </tr>
</table>
    </div>-->
    
    </div>
    </div>
   <div id="menuholder"><?php include("adminmenu.php"); ?></div>
   <div id="contholder">
   
    
    <!--<div id="nav">
     <ul>
     <li><a href="adminhome.php" id="home_on">HOME</a></li>
        <li><a href="adminproducts.php" id="products_on">PRODUCTS</a></li>
		<li><a href="adminfeatures.php" id="features_on">FEATURES</a></li>
        <li><a href="adminadvantages.php" id="advantages_on">ADVANTAGES</a></li>
        <li><a href="adminhowitworks.php" id="howitworks_on">HOW IT WORKS</a></li>
        <li><a href="adminhelp.php" id="help_on">HELP</a></li>
        <li><a href="admincontactus.php" id="contactus_on">CONTACT US</a></li>
    
    </ul>
    
    </div>-->
    
    
    	<div id="contdata">
    <form action="" name="tree_grid" id="tree_grid" method="get">
<table border="1" align="center" width="60%"  bordercolor="#2a4a73">
	<tr>
	<td bgcolor="#a9c1de" class="f"> View Master ward Details </td>
    </tr>
    <tr>
    <td>
    <table width="100%">
    <br />
<tr> <td colspan="5" ><a href="master_ward_insert.php" style="text-decoration:none; color:#000"><font class="font4"><b>  + Add Details </b></font> </a></td> </tr>
    	<tr> 
        <td><table border="1" cellpadding="2" cellspacing="2" width="100%" align="center" bordercolor="#bcd5e7">
	<br />
    <tr>
    	<td align="left" width="15%"><font class="font4"><b>Edit</b></font></td>
        <td align="left"><font class="font4"><b>Del</b></font></td>
        <td align="left"><font class="font4"><b>Id</b></font></td>
        <td align="left"><font class="font4"><b>Ward Name</b></font></td>
        
     </tr>
     <?php
   while ($row =@mysql_fetch_object($rest)) 
{
	echo "<tr>";
	echo "<td align='left'>"."<a href='master_ward_update.php?id=$row->wid' ><font class='font4'>"."<img src='images/edit.png' border='0'>"."</font></div></td>";
echo "<td align='left'>"."<div align='left'>"."<a href='master_ward_delete.php?id=$row->wid' ><font class='font4'>"."<img src='images/delete.png' border='0'>"."</a></div></td>";			
echo "<td align='left'>"."<div align='left'>"."<font class='font4'>".$row->wid."</font></div></td>";
echo "<td  align='left'>"."<div align='left'>"."<font class='font4'>".$row->wvalue."</font></div></td>";
}
?>
</table></td>
        </tr>
    </table>
    
    
     </table>

</td>
<tr>

</table>
</form>
		
	<?php include("footer.php"); ?>	
    
   </div>
    

    	
   </div> 

<!--<div id="footer">Copyright © 2012.Smart Survey All Rights Reserved.Website Designed & Developed by Kalpak Solutions</div>-->





</body>
</html>