-
Notifications
You must be signed in to change notification settings - Fork 2
/
contact.php
155 lines (120 loc) · 4.86 KB
/
contact.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
include_once 'include/db_connect.php';
include_once 'include/functions.php';
sec_session_start();
if (login_check($mysqli) == true) {
$logged = 'in';
} else {
$logged = 'out';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<title>About Fitness</title>
<!-- Bootstrap core CSS -->
<link href="boot/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="boot/css/main.css" rel="stylesheet">
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" text="text/css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<?php
if (isset($_GET['error'])) {
echo '<p class="error">Error Logging In!</p>';
}
?>
</div>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">About Fitness</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li> <a href="index.php">Home</a></li>
<li><a href="packages.php">Package</a></li>
<li><a href="facilities.php">Facilities</a></li>
<li><a href="about.php">About</a></li>
<li class="active" id="a"><a href="contact.php">Contact</a></li>
<?php
if(isset($_SESSION['username'])) {
echo '<li><a href="./profile/">Profile</a>
<li><a href="./workouts">Workouts</a>';
if(isset($_SESSION['admin'])) {
echo '<li><a href="att.php">Attendance</a>';
}
}
?>
</ul>
<?php
if(isset($_SESSION['username']))
{
echo '<form class="navbar-form navbar-right" role="form" action="include/logout.php">
<input type="submit" class="btn btn-success" value="Sign-out">';
}
else echo '
<form class="navbar-form navbar-right" role="form" method="post" action="include/process_login.php">
<div class="form-group">
<input type="text" placeholder="Email" class="form-control" name="email">
</div>
<div class="form-group">
<input type="password" placeholder="Password" class="form-control" name="password">
</div>
<input type="submit" class="btn btn-success" value="Sign in" onclick="formhash(this.form, this.form.password);">
</form>
'; ?>
</div><!--/.navbar-collapse -->
</div>
</div>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<ul style="list-style:none;">
<li>
<b><i>Ratik Chandna</i></b>
<li>
<b>Phone no</b>-9872851376
<li>
<b>Email</b>-navgag33@gmail.com
</ul>
</div>
<div class="container">
<!-- Example row of columns -->
</div>
<hr>
<footer>
<p>© Projectworlds.in</p>
</footer>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="boot/js/bootstrap.min.js"></script>
<SCRIPT TYPE="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></SCRIPT>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<SCRIPT src="boot/js/dialog.js" type="text/javascript"></SCRIPT>
<script type="text/JavaScript" src="boot/js/sha512.js"></script>
<script type="text/JavaScript" src="boot/js/forms.js"></script>
</script>
</body>
</html>