-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditUser.php
135 lines (133 loc) · 5 KB
/
EditUser.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
<!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">
<head>
<title>Online Cloth Shopping</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style9 {font-size: 95%; font-weight: bold; color: #003300; font-family: Verdana, Arial, Helvetica, sans-serif; }
.style10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; color: #FFFFFF; }
.style11 {color: #192666}
.style8 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; }
-->
</style>
<script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style12 {color: #FFFFFF}
-->
</style>
</head>
<body>
<div id="wrapper">
<?php
include "Header.php";
?>
<div id="content">
<h2><span style="color:#003300"> Welcome Administrator </span></h2>
<table width="100%" height="209" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="33" bgcolor="#003300"><span class="style10 style11 style12">Edit Record</span></td>
</tr>
<tr>
<td><?php
$Id=$_GET['AdminId'];
// Establish Connection with Database
$con = mysql_connect("localhost","root");
// Select Database
mysql_select_db("shopping", $con);
// Specify the query to execute
$sql = "select * from Admin_Master where AdminId=".$Id."";
// Execute query
$result = mysql_query($sql,$con);
// Loop through each records
while($row = mysql_fetch_array($result))
{
$Id=$row['AdminId'];
$Name=$row['UserName'];
$Password=$row['Password'];
}
?>
<form method="post" action="UpdateUser.php">
<table width="100%" border="0">
<tr>
<td height="32"><span class="style8">User Id</span></td>
<td><span id="sprytextfield1">
<label>
<input name="txtUserId" type="text" id="txtUserId" value="<?php echo $Id;?>" />
</label>
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td height="36"><span class="style8">User Name:</span></td>
<td><span id="sprytextfield2">
<label>
<input name="txtUserName" type="text" id="txtUserName" value="<?php echo $Name;?>" />
</label>
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td height="36"><span class="style8">Password:</span></td>
<td><span id="sprytextfield3">
<label>
<input name="txtPass" type="password" id="txtPass" value="<?php echo $Password;?>" />
</label>
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="Update Record" /></td>
</tr>
</table>
</form>
<?php
// Close the connection
mysql_close($con);
?>
<form method="post" action="UpdateUser.php">
<table width="100%" border="0">
</table>
</form></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<p align="justify"> </p>
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><p><img src="img/Jeans.jpg" alt="box" width="100" height="100" hspace="10" align="left" class="imgleft" title="box" /></p></td>
<td><p><img src="img/asd.jpg" alt="box" width="100" height="100" hspace="10" align="left" class="imgleft" title="box" /></p></td>
<td><p><img src="img/images.jpg" alt="box" width="100" height="100" hspace="10" align="left" class="imgleft" title="box" /></p></td>
</tr>
<tr>
<td height="26" bgcolor="#BCE0A8"><div align="center" class="style9">Jeans</div></td>
<td bgcolor="#BCE0A8"><div align="center" class="style9">Bleasures</div></td>
<td bgcolor="#BCE0A8"><div align="center" class="style9">T-Shirts</div></td>
</tr>
</table>
<p> </p>
</div>
<?php
include "Right.php";
?>
<div style="clear:both;"></div>
<?php
include "Footer.php";
?>
</div>
<script type="text/javascript">
<!--
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
//-->
</script>
</body>
</html>