/var/www/(Del)hsiaust.com.au/en/top_menu.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
            <?php //Site info
            
$result3 mysql_query("SELECT * FROM site_info ORDER BY siteinfoid ASC LIMIT 1 ");
            
$row3 mysql_fetch_array($result3,MYSQL_ASSOC);
            
$getsize07 getimagesize("../images/".$row3{'menulogo'});
            if(
$getsize07[0] > $getsize07[1]){ // 0=w 1=h        
                    
$pimgfile07 "width='250'";
            } else {
                    
$pimgfile07 "height='65'";
            }

            
?>
            <div class="header_title"><?=$row3{'menutext'.$langcode.''};?></div>
            <div class="header_logo"><a href="<?=$row3{'menulogolink'};?>"><img src="../images/<?=$row3{'menulogo'};?><?=$pimgfile07;?> alt="" /></a></div>
            
<!-- DD Menu -->
<link rel="stylesheet" type="text/css" href="../css/ddsmoothmenu.css" />
<script type="text/javascript" src="../js/ddsmoothmenu.js"></script>
<script type="text/javascript">
ddsmoothmenu.init({
    mainmenuid: "nav_menu", //menu DIV id
    orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    classname: 'ddsmoothmenu', //class added to menu's outer DIV
    method: 'hover', // set to 'hover' (default) or 'toggle'
    arrowswap: true, // enable rollover effect on menu arrow images?
    //customtheme: ["#1c5a80", "#18374a"],
    contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
</script>
<!-- End DD Menu -->

            <div id="nav_menu" class="ddsmoothmenu">
                <ul>
                <?php //DD Menu
                
$result7 mysql_query("SELECT * FROM menu WHERE menuid <> '1' AND menustatus = '1' ORDER BY menusort DESC ");
                while (
$row7 mysql_fetch_array($result7,MYSQL_ASSOC)){
                    echo 
"<li><a href='".$row7{'menulink'}."'";
                    if (
$row1{'menulink'} == $row7{'menulink'}){
                        echo 
" style='background-color: #FCB040;'";
                    }
                    echo
">".$row7{'menutitle'.$langcode.''}."</a>";
                    if (
$row7{'menuid'}==2) {
                        echo 
"<ul>";
                        
$result8 mysql_query("SELECT * FROM aboutus WHERE aboutusstatus = '1' ORDER BY aboutussort ASC ");
                        while (
$row8 mysql_fetch_array($result8,MYSQL_ASSOC)){
                        echo 
"<li><a href='".$row7{'menulink'}."?aboutusid=".$row8{'aboutusid'}."'>".$row8{'aboutustitle'.$langcode.''}."</a></li>";
                        }
                        echo 
"</ul>";
                    }
                    if (
$row7{'menuid'}==3) {
                        echo 
"<ul>";
                        
$result9 mysql_query("SELECT * FROM products_category WHERE parentid = '0' AND productscatstatus = '1' ORDER BY productscatsort ASC ");
                        while (
$row9 mysql_fetch_array($result9,MYSQL_ASSOC)){
                            echo 
"<li><a href='".$row7{'menulink'}."?productscatid=".$row9{'productscatid'}."'>".$row9{'productscatname'.$langcode.''}."</a>";
                            
$result10 mysql_query("SELECT * FROM products_category WHERE parentid = '".$row9{'productscatid'}."' AND productscatstatus = '1' ORDER BY productscatsort ASC ");
                            if (
mysql_num_rows ($result10) > ) {                                
                                echo 
"<ul>";
                                while (
$row10 mysql_fetch_array($result10,MYSQL_ASSOC)){
                                    echo 
"<li><a href='products_sub.php?parentid=".$row10{'parentid'}."&productscatid=".$row10{'productscatid'}."'>".$row10{'productscatname'.$langcode.''}."</a></li>";
                                }
                                echo 
"</ul>";
                            }
                            echo 
"</li>";
                        }
                        echo 
"</ul>";
                    }
                echo 
"</li>";
                }
?>
                </ul>
            </div>
    <div style="clear:both;"></div>