-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit-user.php
50 lines (44 loc) · 1.99 KB
/
edit-user.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
<?php
include('header.php');
?>
<title>Επεξεργασία Προφίλ | Τεχνολογίες Διαδικτύου | Διαδικτυακή Κοινότητα </title>
<body style="background-color:<?php echo $background?>">
<?php
include('header-navbar.php');
?>
<main class="edit-user-main">
<div class="edit-user-container" style="background:<?php echo $insidecolor?>">
<h1 class="main-title">Επεξεργασία</h1>
<form action="includes/edit_includes.php" method="post">
<label for="name">Όνομα:</label>
<input type="text" name="name" value="<?php echo $_SESSION["user_name"]?>">
<label for="surname">Επώνυμο</label>
<input type="text" name="surname" value="<?php echo $_SESSION["user_surname"]?>">
<label for="username">Username:</label>
<input type="text" name="username" value="<?php echo $_SESSION["userud"]?>">
<label for="password">Password:</label>
<input type="password" name="password" value="*****">
<label for="email">Email:</label>
<input for="text" name="email" value="<?php echo $_SESSION["user_email"]?>">
<div class="btn-container">
<input type="submit" name="submit" value="Confirm">
<button class="cancel-btn btn" type="button" onclick="window.location.href='user-profile.php'">Πίσω</button>
</div>
</form>
</div>
</main>
<script>
$("#theme-Picker").on('change',function(){
if($(this).is(':checked')) {
$(this).attr('value', 'true');
document.cookie = "theme=dark";
location.reload();
} else {
$(this).attr('value', 'false');
document.cookie = "theme=; Max-Age=0";
location.reload();
}
});
</script>
</body>
</html>