forked from yongri/heliosinformatika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu_left.php
36 lines (31 loc) · 1.56 KB
/
menu_left.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
<div id='cssmenu'>
<ul>
<li class='has-sub'><a href='http://<?php echo BASE_URL; ?>/product_server.php'><span>HP Servers</span></a>
<ul>
<li class="active"><a href="http://<?php echo BASE_URL; ?>/product_server.php"><span>All Product Servers</span></a></li>
<?php
$sql1="SELECT * FROM product WHERE Category_id='1' ORDER BY Product_id DESC";
$query1=mysql_query($sql1);
while($data1=mysql_fetch_array($query1))
{
?>
<li><a href="http://<?php echo BASE_URL; ?>/product_server_detail.php?id=<?php echo $data1['Product_id']; ?>"><span><?php echo $data1['Product_name']; ?></span></a></li>
<?php } ?>
</ul>
</li>
<li class='has-sub'><a href='http://<?php echo BASE_URL; ?>/product_storage.php'><span>HP Storages</span></a>
<ul>
<li class="active"><a href="http://<?php echo BASE_URL; ?>/product_storage.php"><span>All Product Storages</span></a></li>
<?php
$sql2="SELECT * FROM product WHERE Category_id='2' ORDER BY Product_id DESC";
$query2=mysql_query($sql2);
while($data2=mysql_fetch_array($query2))
{
?>
<li><a href="http://<?php echo BASE_URL; ?>/product_storage_detail.php?id=<?php echo $data2['Product_id']; ?>"><span><?php echo $data2['Product_name']; ?></span></a></li>
<?php } ?>
</ul>
</li>
<li class='last'><a href='http://<?php echo BASE_URL; ?>/product_service.php'><span>Helios Service</span></a></li>
</ul>
</div>