-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·63 lines (61 loc) · 1.53 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php session_start();
if(!file_exists("./config.inc.php"))
{
header("Location: ./install.php");
}
if(!isset($_SESSION['admin'])) {
//header("Location: ./login.php");
}
require "config.inc.php";
require "functions.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Hostel Allotment - <?php echo $glInstitute; ?></title>
<link rel="stylesheet" href="mainp.css" type="text/css" media="print" />
<link rel="stylesheet" href="main.css" type="text/css" media="screen" />
<script language="javascript" src="script.js" type="text/javascript" ></script>
</head>
<body>
<div id="header" class="hideP">
<?php include "./includes/header.php"; ?>
</div>
<div align="center">
<h2 class="hideP" id="instituteName"><?php
echo $glInstitute; ?></h2>
<h2 class="hideP">Hostel Allotment</h2>
<div align="left" id="wrapper">
<?php
if(isset($_GET['v'])) {
switch($_GET['v'])
{
case "hostel":
displayHTInfo();
//include "hostel.php";
break;
case "list":
include "list.php";
break;
case "application":
include "register.php";
break;
case "register":
include "record.php";
break;
case "dashboard":
header("Location: dashboard.php");
break;
case "about":
include "about.php";
break;
}
}
else {
displayCourseList();
}
?>
</div></div>
</body>
</html>