-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
155 lines (149 loc) · 4.65 KB
/
profile.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
session_start ();
if(!(isset($_SESSION['user']))){
header('location: index.php');
}
include_once 'database/database_infos.php';
include_once 'database/Database.php';
?>
<!DOCTYPE html>
<html>
<head>
<?php include_once 'includes/head.php'; ?>
</head>
<body>
<?php
include_once 'resources/form_controller.php';
include_once 'resources/navigation.php';
?>
<div class="container">
<div class="col-md-12">
<h1>Dein Profil</h1>
<hr>
</div>
<div class="col-md-8">
<form method="post" id="profile-form" action=#>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="inputUsername">Username</label> <input type="text"
class="form-control" id="inputUsername" name="usernameUpdate"
placeholder="Username"
value=<?php echo $user->__GET('username')?>>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="inputFirstname">Vorname</label> <input type="text"
class="form-control" id="inputFirstname" name="firstnameUpdate"
placeholder="Vorname"
value=<?php echo $user->__GET('firstname')?>>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputName">Nachname</label> <input type="text"
class="form-control" id="inputName" name="lastnameUpdate"
placeholder="Nachname"
value=<?php echo $user->__GET('lastname')?>>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="inputEmail">Email</label> <input type="text"
class="form-control" id="inputEmail" name="emailUpdate"
placeholder="Email" value=<?php echo $user->__GET('email')?>>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#resetPasswordModal" class="btn btn-default"
data-toggle="modal">Passwort ändern</a>
<button type="submit" class="btn btn-default">Ändern</button>
</div>
</form>
</div>
<div class="col-md-4">
<img src="<?php echo $user->__GET('profile_img'); ?>"
alt="Profilbild" width="304" height="236">
</div>
<div class="col-md-12">
<hr />
<h2>Konto löschen</h2>
</div>
<div class="col-md-7">
<div class="alert alert-danger">
<form action="<?php $_SERVER['PHP_SELF']?>" method="POST">
<div class="row">
<div class="col-md-12">
<label for="inputDelete">Möchtest du dein Profil wirklich
löschen? Gebe dafür in das untere Felde Ja ein.</label>
</div>
<div class="col-md-8">
<input class="form-control" name="delete" type="text"
placeholder="Ja">
</div>
<div class="col-md-4">
<button class="btn btn-danger" type="submit">Löschen!</button>
</div>
</div>
</form>
</div>
</div>
</div>
<hr />
<?php include_once 'resources/footer.php';?>
<div class="container">
<div class="modal fade" id="resetPasswordModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">
<i class="fa fa-times"></i>
</button>
<h4 class="modal-title">
<i class="fa fa-key"></i> Passwort ändern
</h4>
</div>
<div class="container"></div>
<form method="POST" id="passwordChange-form"
action=<?php $_SERVER['PHP_SELF']?>>
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="inputUsername">Passwort</label> <input
type="password" class="form-control" id="passwordOneUpdate"
name="passwordOneUpdate" placeholder="Passwort">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="inputPassword">Passwort bestätigen</label><input
type="password" class="form-control" name="passwordTwoUpdate"
id="passwordTwoUpdate" placeholder="Passwort wiederholen">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Abbrechen</a>
<button type="submit" class="btn btn-default">Passwort
ändern</button>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>