-
Notifications
You must be signed in to change notification settings - Fork 0
/
Detail.php
125 lines (112 loc) · 4.54 KB
/
Detail.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
<?php require_once('../Connections/shop.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['CustomerId'])) {
$colname_Recordset1 = $_GET['CustomerId'];
}
mysql_select_db($database_shop, $shop);
$query_Recordset1 = sprintf("SELECT CustomerName, Address, City, Email, Mobile, Gender FROM customer_registration WHERE CustomerId = %s", GetSQLValueString($colname_Recordset1, "int"));
$Recordset1 = mysql_query($query_Recordset1, $shop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?><!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-size: 14px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div id="wrapper">
<?php
include "Header.php";
?>
<div id="content">
<h2><span style="color:#003300"> Welcome Administrator </span></h2>
<p align="justify" class="style10">Shipping Address Detail</p>
<table width="100%" border="0">
</tr>
<?php do { ?>
<tr>
<td bgcolor="#BDE0A8"><strong>CustomerName</strong></td>
<td bgcolor="#BDE0A8"><?php echo $row_Recordset1['CustomerName']; ?></td></tr>
<tr> <td bgcolor="#E3F2DB"><strong>Address</strong></td>
<td bgcolor="#E3F2DB"><?php echo $row_Recordset1['Address']; ?></td></tr>
<tr> <td bgcolor="#BDE0A8"><strong>City</strong></td>
<td bgcolor="#BDE0A8"><?php echo $row_Recordset1['City']; ?></td></tr>
<tr> <td bgcolor="#E3F2DB"><strong>Email</strong></td>
<td bgcolor="#E3F2DB"><?php echo $row_Recordset1['Email']; ?></td></tr>
<tr> <td bgcolor="#BDE0A8"><strong>Mobile</strong></td>
<td bgcolor="#BDE0A8"><?php echo $row_Recordset1['Mobile']; ?></td></tr>
<tr> <td bgcolor="#E3F2DB"><strong>Gender</strong></td>
<td bgcolor="#E3F2DB"><?php echo $row_Recordset1['Gender']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<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>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>