This repository has been archived by the owner on May 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
storedetails.php
83 lines (79 loc) · 2.37 KB
/
storedetails.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
<?php
include("inner.tpl");
function ShowContent($title)
{
$id = $_GET['id'];
?>
<div id="content_area"><br />
<br />
<br />
<div class="tableouter">
<table width="90%" border="0" align="center" cellpadding="5" cellspacing="0" bordercolor="#557B24" style="border-collapse:collapse; margin-bottom:100px;">
<?php
$tyu=1;
$qry=mysql_query("select storename,address,phone,location,ownername,district from stores where id = '$id' ");
while($qrys=mysql_fetch_array($qry))
{
?>
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td width="173" align="left" valign="top"><strong>Name</strong></td>
<td width="1197" align="left" valign="top"><?php echo strtoupper($qrys['storename']); ?></td>
</tr>
<tr>
<td align="left" valign="top"><strong>Owner Name</strong></td>
<td align="left" valign="top"><?php echo strtoupper($qrys['ownername']); ?></td>
</tr>
<tr>
<td align="left" valign="top"><strong>Address</strong></td>
<td align="left" valign="top"><?php echo nl2br($qrys['address']); ?></td>
</tr>
<tr>
<td align="left" valign="top"><strong>Disrict </strong></td>
<td align="left" valign="top"><?php echo nl2br($qrys['district']); ?></td>
</tr>
<tr>
<td align="left" valign="top"><strong>Phone</strong></td>
<td align="left" valign="top"><?php echo $qrys['phone']; ?></td>
</tr>
<tr>
<td align="left" valign="top"><strong>Location</strong></td>
<td align="left" valign="top"><?php echo $qrys['location']; ?></td>
</tr>
<?php $tyu++; } ?>
</table>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
</div>
<?php
}
function getTitle()
{
$id = $_GET['id'];
$qry=mysql_query("select storename from stores where id = '$id' ");
while($qrys=mysql_fetch_array($qry))
{
$strname = $qrys['storename'];
}
return "Distribution Centers | ".$strname." | Reality Opportunity Club";
}
function showMeta()
{
$qry=mysql_query("select storename from stores where id <> 9 ");
while($qrys=mysql_fetch_array($qry))
{
$strname .= $qrys['storename'].', ';
}
$meta = '<meta name="description" content="Reality Opportunity Club '.$strname.'"/>
<meta name="keywords" content="Distribution Centers, Reality Opportunity Club, '.$strname.' "/>';
return $meta;
}
?>