-
Notifications
You must be signed in to change notification settings - Fork 0
/
signin.php
131 lines (111 loc) · 3.67 KB
/
signin.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/angelus/styles/main.css">
<link rel="stylesheet" href="/angelus/styles/css/font-awesome.min.css">
</head>
<body>
<?php include('sql.php') ?>
<div class="nav">
<div class="topmenucontainer">
<ul class="mainmenu">
<li>
<div class = "topmenuoption firstmenuoption">
<a href="index.html">Angelus</a>
</div>
</li>
<li>
<div class = "topmenuoption midmenuoption">
<a href="javascript:void(0)">About Us</a>
</div>
</li>
<li>
<div class = "topmenuoption midmenuoption">
<a href="javascript:void(0)">Pre-order now</a>
</div>
</li>
<li>
<div class = "topmenuoption midmenuoption">
<a href="signin.php">Manage your Angelus</a>
</div>
</li>
<li>
<div class="topmenuoption midmenuoption">
<a href="">Log out</a>
<div>
</li>
</ul>
</div>
</div>
<div class = "aboutmesignin">
<center>
<img class="angelhalo" src ="/angelus/images/angelhalo.png" />
<p class = "subtitle"> Always there for you.</>
</center>
<hr>
</div>
<div class = "aboutme">
<div class = "container">
<center>
<?php
$result = $connect->query("SELECT nickname FROM cores WHERE userId = 1 ORDER BY nickname; ");
while ($row = $result->fetch_row()) {
echo "<h1 style='padding-bottom: 1em'>Hello, " . $row[0]. ".</h1>";
}
?>
<h2 class = "contactsheader">Caregiver Information</h2>
<?php
$result =$connect->query("SELECT * FROM coreUsers WHERE coreID ='53ff69066667574820252067' ORDER BY nickname ASC ;");
$resultval =mysqli_num_rows ($result);
echo "<h3>You currently have " . $resultval . " contacts listed for assistance. </h3>" ;
?>
<i class = "fa fa-users fa-2x experienceicon"></i>
</center>
<center>
<form class ="bestform" method="POST" action="updatedcontacts.php" id = "form1">
<table class ="contactstable" >
<tr>
<th>Name</th>
<th>Phone number</th>
</tr>
<?php
$result =$connect->query("SELECT * FROM coreUsers WHERE coreID ='53ff69066667574820252067' ORDER BY nickname ASC ;");
$j=1;
while($row = $result->fetch_row()) {
echo "<tr><td><i class = 'fa fa-user'></i><input type= 'text' name='name" . $j . "' value = '" . $row[2] . "'></td><td><i class = 'fa fa-phone'></i><input type ='text' name='phonenumber" . $j . "' value = '" . $row[1] . "'></td></tr>";
$j++;
}
for($i = ($result->num_rows + 1); $i<=5 ; $i++) {
echo "<tr><td><i class = 'fa fa-user'></i><input type='text' name ='name" . $i . "'></td><td><i class = 'fa fa-phone'></i><input type='text' name='phonenumber" . $i . "'></td></tr>";
}
?>
</table>
</form>
</center>
<center>
<button class = "resumebutton" type="submit" form = "form1" value="Submit">Update contacts</button>
</center>
</div>
</div>
<div class = "footer">
<div class = "container">
<div class = "linkstablecontainer">
<table class ="linkstable">
<tr>
<td><a href="https://www.facebook.com/nayak.ketan"><i class = "fa fa-facebook-square fa-lg"></i></a></td>
<td><a href="https://twitter.com/KetanNayak"><i class = "fa fa-twitter-square fa-lg"></i></a></td>
<td><a href="javascript:void(0)"><i class = "fa fa-android fa-lg"></i></a></td>
<td><a href="javascript:void(0)"><i class = "fa fa-apple fa-lg"></i></a></td>
<td><a href="javascript:void(0)"><i class = "fa fa-windows fa-lg"></i></a></td>
</tr>
</table>
</div>
<center>
<p>
Copyright © Angelus 2015. All rights reserved
</p>
</center>
</div>
</div>
</body>
</html>