Guest User

index.php

a guest
Sep 4th, 2014
237
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['sess_user_id']) || (trim($_SESSION['sess_user_id']) == '')) {
  4.     header("location: login.php");
  5.     exit();
  6. }
  7. ?>
  8. <!DOCTYPE html>
  9. <!--
  10. To change this license header, choose License Headers in Project Properties.
  11. To change this template file, choose Tools | Templates
  12. and open the template in the editor.
  13. -->
  14. <html>
  15.     <head>
  16.         <meta charset="UTF-8">
  17.         <title>Volunteer Database</title>
  18.         <script type="text/javascript" src="js/functions.js"> </script>
  19.         <link rel="stylesheet" href="css/bootstrap-theme.css" type="text/css" />
  20.         <link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
  21.         <link rel="stylesheet" href="css/styles.css" type="text/css">
  22.         <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  23.     </head>
  24.     <body>
  25.         <div class="sidebar">
  26.             <ul class="nav nav-pills nav-stacked">
  27.                 <li><span class="welcome" style="color:white;font-weight:Bold;font-size:20px;margin-left:5px;padding-left:5px;"> Welcome  <?php echo $_SESSION["sess_name"] ?></span></li>
  28.                 <li><a href="login.php" onclick="<?php session_destroy(); ?>" class="logout">Log out</a></li>
  29.                 <li class="active"><a href="index.php">Home</a><li>
  30.                 <li><a href="volunForm.php">Add Volunteer</a></li>
  31.                 <li><a href="search.php">Search/Report</a></li>
  32.                 <li><a href="allVolun.php">View Volunteers</a></li>
  33.                 <li><a href="updateVolunteer.php">Update Volunteer</a></li>
  34.                
  35.             </ul>
  36.         </div>
  37.         <div class="content">
  38.        
  39.         </div>
  40.     </body>
  41. </html>
RAW Paste Data