<?php

 

// Inialize session

session_start();

// Check, if username session is NOT set then this page will jump to login page

if (!isset($_SESSION['username'])) {

	session_destroy();

header('Location:index.php');

}





include("database.php");  

$query="select * from input_form";

 $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="style.css" />

<script src="menuscript.js" language="javascript" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="menustyle.css" media="screen, print" /></head>



<body>

<form name="fileupload" action="upload_file1.php" method="post" enctype="multipart/form-data">

    	<table border="1"  align="center" width="30%" 



style="margin-right:450px;margin-left:450px;border-color:#2a4a73;border-coll



apse:collapse;margin-top:200px;">

        	<tr>

                <td bgcolor="#a9c1de" class="f" > Upload Database File To 



Server  </td>

             </tr>

             <tr>

            	<td>  

                	<table width="70%" align="center" height="130px">

                    	<tr>

                        	<td class="c"> Select File </td>

                    		<td > <input type="file" name="file" 



id="file" style="border: 1px solid #2a4a73"/> </td>

                        </tr>

                         

                        

                    </table>

                </td>

            </tr>

        </table>

        <br />

        <table align="center" width="30%" bordercolor="#2a4a73" 



style="margin-right:450px;margin-left:450px;border-color:#2a4a73;border-coll



apse:collapse;">

        <tr>

        <td bgcolor="#a9c1de" class="f"align="right"><a href="index_grid.php " style="text-decoration:none"/><input type="submit" name="submit" id="submit"value="Submit" class="button_c"><a href="index_grid.php " style="text-decoration:none"><input type="button" value = "Skip" class="button_c" /></a></td>

        </tr>

        </table>

    </form>

</body>

</html>