/
index.php
31 lines (27 loc) · 1010 Bytes
/
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
<?php
define( '_VALID_DIR_', 1 );
require_once "config.php";
if (!ISSET($_SESSION['userid'])) { header("Location: login.php"); }
require_once "inc/head.php";
require_once "inc/menu_left.php";
?>
<body>
<div class="demo-wrapper" data-role="page">
<!-- panel 01 -->
<?php
echo DrawMenuLeft(array("index.php"=>"Home","signout.php"=>"Signout"));
echo DrawTitleBar();
?>
<div class="content" data-role="content">
Welcome, <?php echo $_SESSION['username'];?>
<input value="Browse Public Polls" data-icon="search" data-theme="c" type="button" onClick="document.location.href='poll_browse_public.php'">
<input value="Browse My Polls" data-icon="search" data-theme="c" type="button" onClick="document.location.href='browse_my_polls.php'">
<input value="Create Poll" data-icon="plus" data-theme="c" type="button" onClick="document.location.href='create.php'">
</div>
<!-- panel 02 -->
<?php
echo DrawMenuRight();
?>
</div>
</body>
</html>