forked from jitendra291/PHP-Online-Shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customerSettings.php
86 lines (73 loc) · 2.93 KB
/
customerSettings.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
<?php
session_start();
if(isset($_SESSION['gs_userid'])){
$uid = $_SESSION['gs_userid'];
}else{
header("location: index.php");
}
if(isset($_SESSION['pass_stat'])){
$ps = $_SESSION['pass_stat'];
unset($_SESSION['pass_stat']);
}else{
$ps = null;
}
require_once('funcs/functions.php');
//connectDB();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<title>Settings - grocStore</title>
<?php echo includeAllFiles(); ?>
<script>
<?php getJqueryDropdowns(); ?>
</script>
</head>
<body onload="init()">
<div class="mainArea">
<?php showHeader($uid,""); ?>
<div class="rest">
<div class="personalDetailsArea">
<div id="dialogRegister">
<div style="width: 100%; height: 40px; background: white; color: black; border-radius: 10px 10px 0px 0px; box-shadow: 0px 0px 10px 2px gray inset; text-align: center; font-size: 24px; font-weight: bold; padding-top: 5px;">
<?php echo getPageTitle("Settings",$_SERVER["PHP_SELF"]); ?>
</div>
<?php
if($uid){
?>
<form id="settingsForm1" method="post" action="changeSettings.php" onsubmit="return formValidate(this.id,'se',1,2,3);">
<div style="width: 450px; margin: 10px auto 10px auto; color: orange; background: white; box-shadow: 0px 0px 10px 2px gray; padding: 10px; border-radius: 10px;">
<?php if($ps){ echo getMessageDialog($ps); } ?>
<div style="padding: 5px; border-bottom: 1px solid silver;">
<div style="display: inline-block; width: 40%;">Current Password </div>
<div style="display: inline-block;"><input type="password" name="currpass" value"<?php ?>" class="inputEmail"/></div>
<div id="se1" class="errorMessages" style="">Field Empty!</div>
</div>
<div style="padding: 5px;">
<div style="display: inline-block; width: 40%;">New Password</div>
<div style="display: inline-block;"><input type="password" name="newpass" value"<?php ?>" class="inputEmail"/></div>
<div id="se2" class="errorMessages">Field Empty!</div>
</div>
<div style="padding: 5px; border-bottom: 1px solid silver;">
<div style="display: inline-block; width: 40%;">Re-Type New Password</div>
<div style="display: inline-block;"><input type="password" name="renewpass" value"<?php ?>" class="inputEmail"/></div>
<div id="se3" class="errorMessages">Field Empty!</div>
</div>
<div style="text-align: center; margin-top: 10px;">
<div style="display: inline-block;"><input type="submit" value="Change" class="styledButton"/></div>
<div style="display: inline-block;"><input type="reset" value="Reset" class="styledButton"/></div>
</div>
</div>
</form>
<?php
}
?>
<div style="width: 100%; height: 100px; background: white; box-shadow: 0px 0px 10px 2px gray inset; border-radius: 0px 0px 10px 10px; margin-top: 10px;">
<?php echo showFooter(); ?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>