PlacementExperience
mainpage.php
1 <?php
2 
3 include('server.php');
4 if(isset($_SESSION['loggedin']))
5 {
6 ?>
7 <!DOCTYPE html>
8 <html lang="en">
9  <head>
10  <title>Placement Experience</title>
11  <!-- Bootstrap -->
12  <meta charset="utf-8">
13  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
14  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
15  <!-- Bootstrap CSS -->
16  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.2/css/bootstrap.min.css'>
17  <!-- Font Awesome CSS -->
18  <link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.3.1/css/all.css'>
19  <!-- Google Font -->
20  <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">
21  <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@800&family=Roboto+Mono&display=swap" rel="stylesheet">
22  <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap" rel="stylesheet">
23  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
24  <link rel="stylesheet" type="text/css" href="css/style.css">
25  <link rel="stylesheet" type="text/css" href="css/style_login.css">
26 
27  <!-- topnav -->
28  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
29  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
30  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
31  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
32 
33  <script type="text/javascript">
37  function logcheck(){
38  var a = document.getElementById("email").value;
39  var b = document.getElementById("password").value;
40  if(!a){
41  document.getElementById('msg1').innerHTML="**Enter email";
42  return false;
43  }
44  if(!b){
45  document.getElementById('msg2').innerHTML="**Enter password";
46  return false;
47  }
48  }
49  </script>
50 
51  </head>
52 
53  <body>
54 
55  <nav class="navbar navbar-expand-md navbar-dark">
56  <a class="navbar-brand" href="#"><img id="nav_icon" src=img/logoo.png style="width=72px; height=48px;"></a>
57  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
58  <span class="navbar-toggler-icon"></span>
59  </button>
60  <div class="collapse navbar-collapse" id="collapsibleNavbar">
61  <ul class="navbar-nav">
62  <li class="nav-item">
63  <a class="nav-link" href="#">Home</a>
64  </li>
65  <li class="nav-item">
66  <a class="nav-link" href="posts.php">Posts</a>
67  </li>
68  <li class="nav-item">
69  <a class="nav-link" href="exp_form.php">Share</a>
70  </li>
71  </ul>
72  </div>
73  <div style="float:right">
74 
75  <button id="logout" type="button" class="btn btn-info btn-round" style="float:right; padding-top: 10px">
76  Logout
77  </button>
78  <a href="profile.php"><i class="fa fa-user-circle-o" style="font-size:36px; float:right; padding-right:10px;" ></i></a>
79  </div>
80  </nav>
81 
82 
83  <div class="banner">
84  <img src="img/banner.png" style="width:100%">
85  </div>
86 
87  <div class="container">
88  <div class="row ">
89  <div class="container col-sm-10 main whole">
90 
91  <div>
92 
93  <hr class="line" style="border-color: #e67f11">
94  <p id="para1">A single place where all the on-campus job interview experiences of students exits. Sort out the experiences according to company name. Share your own story with fellow students.</p><br>
95  <hr class="line" style="border-color: #e67f11">
96  <br><br>
97 
98  </div>
99  </div>
100  </div>
101 
102  <div class="row">
103  <div class="container col-md-6" style="text-align: center">
104  <a href="posts.php" id="postlink">
105  <h1><i class="fa fa-comments" aria-hidden="true"></i></h1>
106  <h2 style="color: #FF5733">See the Posts</h2><br>
107  <h5 style="color:#080814">Read the experiences shared by the seniors who have gone through the process.</h5>
108  </a>
109  </div>
110  <div class="container col-md-6" style="text-align: center">
111  <a href="exp_form.php" id="seniorlink">
112  <h1><i class="fa fa-pencil-square-o" aria-hidden="true"></i></h1>
113  <h2 style="color: #900C3F">Share your Experience</h2><br>
114  <h5 style="color:#080814">Share your experience of interview if you have gone through one.</h5>
115  </a>
116  </div>
117  </div>
118  </div>
119 
120  <br><br><br>
121 
122  <div class="footer">
123  <p style="color:#e88924">&#9400; Copyright@IITB</p>
124  </div>
125 
126 
127 
128  <!-- Bootstrap scripts -->
129 
130  <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
131  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
132  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
133 
134  <!-- Login popup scripts -->
135  <script src='https://code.jquery.com/jquery-3.3.1.slim.min.js'></script>
136  <script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js'></script>
137  <script src='https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js'></script>
138  <script src="js/script.js"></script>
139 
140  <script type="text/javascript">
141  document.getElementById("logout").onclick = function () {
142  location.href = "logout.php";
143  };
144  </script>
145 
146  <script>
147  function myFunction() {
148  var x = document.getElementById("myTopnav");
149  if (x.className === "topnav") {
150  x.className += " responsive";
151  } else {
152  x.className = "topnav";
153  }
154  }
155  </script>
156 
157 
158  </body>
159 </html>
160 
161 
162 <?php
163 }
164 else{
165  header("location: index.php");
166 }
167 ?>