-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheditaccount.php
127 lines (116 loc) · 4.71 KB
/
editaccount.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
<?php include("includes/session.php"); ?>
<?php include_once("templates/header.php"); ?>
<div id="content">
<?php
/**
* User has submitted form without errors and user's
* account has been edited successfully.
*/
if($session->logged_in){
?>
<form id="editForm" action="process.php" method="POST">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="70"><?php echo(USERNAME);?></td>
<td width="30%"><?php echo $session->username; ?></td>
<td width="20%"><?php echo(EMAIL);?><?php echo $form->error("email"); ?></td>
<td width="30%"><div class="rahmen" style="mar">
<div class="rahmen-loch-oben"></div>
<div class="rahmen-loch-unten"></div>
<div class="rahmen-content" style="min-width: 100px; padding: 0;">
<input type="text" name="email" maxlength="50" value="<?php if($form->value("email") == ""){
echo($session->userinfo['email']);
}else{
echo($form->value("email"));
}
?>" class="ebook-input" />
</div>
</div></td>
</tr>
<tr>
<td height="70"><?php echo(FIRSTNAME);?> <?php echo $form->error("firstname"); ?></td>
<td><div class="rahmen" style="mar">
<div class="rahmen-loch-oben"></div>
<div class="rahmen-loch-unten"></div>
<div class="rahmen-content" style="min-width: 100px; padding: 0;">
<input type="text" name="firstname" maxlength="50" value="<?php if($form->value("firstname") == ""){
echo $session->userinfo['firstname'];
}else{
echo $form->value("firstname");
}
?>" class="ebook-input" />
</div>
</div></td>
<td><?php echo(SURNAME);?> <?php echo $form->error("surname"); ?></td>
<td><div class="rahmen" style="mar">
<div class="rahmen-loch-oben"></div>
<div class="rahmen-loch-unten"></div>
<div class="rahmen-content" style="min-width: 100px; padding: 0;">
<input type="text" name="surname" maxlength="50" value="<?php if($form->value("surname") == ""){
echo $session->userinfo['surname'];
}else{
echo $form->value("surname");
}
?>" class="ebook-input" />
</div>
</div></td>
</tr>
<tr>
<td height="70">Aktuelles Passwort <?php echo $form->error("curpass"); ?></td>
<td><div class="rahmen" style="mar">
<div class="rahmen-loch-oben"></div>
<div class="rahmen-loch-unten"></div>
<div class="rahmen-content" style="min-width: 100px; padding: 0;">
<input type="password" name="curpass" maxlength="30" value="<?php echo $form->value("curpass"); ?>" class="ebook-input" />
</div>
</div></td>
<td>Neues Passwort <?php echo $form->error("newpass"); ?></td>
<td><div class="rahmen" style="mar">
<div class="rahmen-loch-oben"></div>
<div class="rahmen-loch-unten"></div>
<div class="rahmen-content" style="min-width: 100px; padding: 0;">
<input type="password" name="newpass" maxlength="30" value="<?php echo $form->value("newpass"); ?>" class="ebook-input" />
</div>
</div></td>
</tr>
<tr>
<td> </td>
<td><em><?php echo(PASSWORD_LETTERS);?></em></td>
<td> </td>
<td><em><?php echo(PASSWORD_LETTERS);?></em></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Anmelden2" type="submit" value="Speichern"><input type="hidden" name="subedit" value="1"> <div id="ee-responseEdit"> </div></td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
<?php
}
?>
</div>
<?php include_once("templates/footer.php"); ?>
<script type="text/javascript">
/*jQuery(document).ready(function() {
jQuery('#editForm').ajaxForm({
// target identifies the element(s) to update with the server response
target: '#ee-responseEdit',
// success identifies the function to invoke when the server response
// has been received; here we apply a fade-in effect to the new content
success: function() {
jQuery('#ee-responseEdit').fadeIn('slow');
setTimeout(function(){ jQuery('#ee-responseEdit').html(' '); }, 2000);
}
});
});*/
</script>
</body>
</html>