-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome.php
212 lines (170 loc) · 4.82 KB
/
welcome.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<style>
body
{
background-image: url('workout_plan.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
}
::-webkit-scrollbar
{
width: 10px;
}
::-webkit-scrollbar-track
{
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #888;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
table {
border: 1px solid black;
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #ddd;
}
th, td {
text-align: left;
padding: 16px;
}
tr:nth-child(even) {
background-color: BlanchedAlmond;
}
tr:nth-child(odd) {
background-color: BurlyWood;
}
table.center {
margin-left: auto;
margin-right: auto;
}
input[type=text], select {
margin-left: auto;
margin-right: auto;
width: 30%;
text-align: center;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=number], select {
margin-left: auto;
margin-right: auto;
width: 30%;
text-align: center;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=password], select {
width: 30%;
text-align: center;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 30%;
text-align: center;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
.center1 {
display: flex;
justify-content: center;
align-items: center;
height: 100px;
color:LightGray;
}
</style>
<body>
<form >
<b>
<div class="center1">
<h1 >Welcome to FIT-ME</h1>
</div>
<div class="center1">
<h2 >Introduction:</h1>
</div>
<br><br>
<div class="center1" style="color:white;" >
<h3 style="font-family:courier;" >In these modern days when people all over the world have become so much concerned
about their health and diet, it is obvious that they continually seek out for a<br>
Workout/Gym platform.This FIT-ME management system is an easy way to use gym and health membership system.
It can help to keep the records of registered <br> members, guidance which exercise and muscle
groups to work out together, how much weight loss is required, their diet plans, logs of calories,
daily <br>targets to achieve.<br><br>
</div>
</h3>
</b>
</form>
<?php
$db_sid =
"(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Talha)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)"; // Your oracle SID, can be found in tnsnames.ora ((oraclebase)\app\Your_username\product\11.2.0\dbhome_1\NETWORK\ADMIN)
$db_user = "system"; // Oracle username e.g "scott"
$db_pass = "1234"; // Password for user e.g "1234"
$conn = oci_connect($db_user,$db_pass,$db_sid);
if($conn)
{
//echo nl2br("Connection Successful.\n ");
}
else
{ die('Could not connect to Oracle: '); }
if(isset($_POST['button']))
{
$uemail=$_POST['uemail'];//USER EMAIL
$UserPassword=$_POST['psw'];//USER Password
$sql_Check="SELECT EMAIL FROM USERS WHERE EMAIL = '$uemail' AND PWD = '$UserPassword' ";
$query_id1 = oci_parse($conn, $sql_Check);
oci_execute($query_id1);
$_SESSION["uemail"] =$uemail;
$row = oci_fetch($query_id1);
if($row)
{
echo "<form action='/proj_index.html' method='post'>";
echo "<div class='center1'><h3>Account exists </h3></div> \n";
echo " <div class='center1'><input type='submit' name='button' value='Proceed'> </div> \n";
echo "</form>";
}
else
{
echo "<form action='/registeration_form.php' method='post'>";
echo "<div class='center1'> <h3>Account doesn't exists</h3></div> \n";
echo "<div class='center1' ><input type='submit' name='register' value='register'> </div> \n";
echo "</form>";
}
}
?>
</body>
</html>