forked from sarahdoi/Oun-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparentprofile.php
140 lines (105 loc) · 4.6 KB
/
parentprofile.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
<?php
session_start() ;
include("connection.php");
include("functions.php");
$user_data = check_loginParent($con);
$errors = array() ;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="images/png" href="images/logo.png" >
<link rel="stylesheet" href="Registerforms.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="styleB.css">
<link rel="stylesheet" href="BabyProfile.css">
<title>My Profile</title>
<!--import google fonts -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<header>
<a href="#" class="logo"><img src="images/logo.png" alt="logo icon"></a>
<nav class="navbar">
<ul>
<li> <a onclick="window.history.back()" style="pointer:cursor;"> < Back </a> </li>
<li><a href="mprofile.php"> Home </a></li>
<li> <a href="#"> Menu </a>
<ul class="inner"> <!-- your menu here\\\\\\-->
<li class="first"><a href="parentrequests.php"> My Pending Requests </a></li>
<li><a href="viewOffers.php"> Babysitter Offers </a></li></ul>
<li> <a href="#"> Settings </a>
<ul class="inner">
<li class="first"><a href="parentprofile.php"> view profile</a></li>
<li><a href="index.php"> Sign out </a></li>
</ul>
</li>
</ul>
</nav>
</header>
<form action="phandleview.php?parent_id=<?php echo $user_data['parent_id']?>" method="post"> <!-- handleview.php is not ready, did not push it yet -->
<h1>My Profile </h1>
<fieldset>
<legend><span class="number">1</span>Personal Info</legend>
<label for="pname">Parent FullName *</label>
<input type="text" id="pname" name="parentname" value="<?php echo $user_data['name'] ?> " disabled>
<label for="phone" >Phone number *</label>
<input type="tel" id="phone" name="phone" value="<?php echo $user_data['phoneNo'] ?> " disabled >
<label for="mail" >Email *</label>
<input type="email" id="mail" name="userEmail" value="<?php echo $user_data['email'] ?> " disabled>
<label for="password" >Password *</label>
<input type="password" id="password" name="userPassword" value="<?php echo md5($user_data['password']) ?> " disabled >
<label for="image" >Profile image </label>
<?php
echo "<img src='images/".$user_data['parent_image']."' alt='img'>"
?>
<!-- <input type="file" name="image" id="image" value="" disabled > -->
</fieldset>
<fieldset>
<legend><span class="number">2</span>Address Info</legend>
<label for="city" >City *</label>
<input type="text" id="city" name="city" value="<?php echo $user_data['city'] ?> " disabled >
<label>district*</label>
<input type="text" id="district" name="district" value="<?php echo $user_data['district'] ?> " disabled >
<label>street*</label>
<input type="text" id="street" name="street" value="<?php echo $user_data['street'] ?> " disabled >
<label>buildingNo*</label>
<input type="text" id="buildingNo" name="BuildingNo" value="<?php echo $user_data['buildingNo'] ?> " disabled >
</fieldset>
<button name="edit" type="submit" >Edit Profile</button>
<div class="danger" style="width:100%; height:70%;" ><button type="submit" name="delete" onclick="return confirm('Are you sure you want to delete your account?');">Delete Account</button></div>
</form>
<footer class="footer-distributed">
<div class="footer-left">
<img class="logo" src="images/logo.png" alt="Ouun">
<p class="footer-links">
<a href="mprofile.php" class="link-1">Home</a>
<a href="mailto:support@Ouun.com">Contact</a>
</p>
<p class="footer-company-name">Oun © 2022</p>
</div>
<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p><span>12534 AlOlaya st.</span> Riyadh , Saudi Arabia</p>
</div>
<div>
<i class="fa fa-phone"></i>
<p>+9669200000834</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p><a href="mailto:support@Ouun.com">support@Oun.com</a></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about">
<span>About us</span>
Oun is an online platform that helps mothers find babysitters anytime and anywhere.
</p>
</div>
</footer>
</body>
</html>