/var/www/hkosl.com/litedemo/en/contactus.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php require_once('../webadmin/configure.php');?>
<?php 
//Menu 
    
$result1 mysql_query("SELECT * FROM menu WHERE menulink = '".basename($_SERVER['SCRIPT_NAME'])."' AND menustatus = '1' ");
    
$row1 mysql_fetch_array($result1,MYSQL_ASSOC);
    
//Header And Footer 
    
$result2 mysql_query("SELECT * FROM headandfoot WHERE hafid = '1' ");
    
$row2 mysql_fetch_array($result2,MYSQL_ASSOC);
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?=$row1{'seotitleen'};?></title>
<meta name="keywords" content="<?=$row1{'seokeyen'};?>" />
<meta name="description" content="<?=$row1{'seodescen'};?>" />
<link rel=stylesheet type="text/css" href="../css/style.css">
<?=html_entity_decode($row2{'hafgoogleana'}, ENT_QUOTES);?>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
        fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    });
});
</script>
<script type="text/javascript" src="../inc/check_form.js"></script>
</head>
<body id="pagebg">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="110" align="left" valign="top" style="padding-top:5px"><table width="900" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="400" align="left" valign="top"><a href="../index.php?langcode=en"><img src="../images/<?=$row2{'haflogoen'};?>" width="400" height="110" /></a></td>
        <td align="right" valign="top"><div class="langarea"><?php if ($row2{'haffblink'} <> '') { ?><a href="<?=$row2{'haffblink'};?>" target="_blank"><img src="../images/icon_fb.png" width="20" height="20" align="absmiddle" /></a><?php ?>
        <?php // Language
        
$result3 mysql_query("SELECT * FROM lang WHERE langstatus = '1' ORDER BY langsort ASC, langid ASC ");
        if (
mysql_num_rows($result3)>0) { ?>
            <select name="lang" onchange="MM_jumpMenu('parent',this,0)" class="langselect">
            <?php while ($row3 mysql_fetch_array($result3,MYSQL_ASSOC)){ ?>
                <option value="../<?=$row3{'langcode'};?>/<?=basename($_SERVER['SCRIPT_NAME']);?>?langcode=<?=$row3{'langcode'};?>&id=<?=$_GET['id'];?><?php if ($_GET['langcode'] == $row3{'langcode'}) echo 'selected="selected"';?> ><?=$row3{'langname'};?></option>
            <?php ?>
            </select>
        <?php }?></div>
        <div class="mainmenu">
        <ul><?php // Main Menu
        
$result3 mysql_query("SELECT * FROM menu WHERE menustatus = '1' AND headerorfooter = '1' ORDER BY menusort ASC ");
        while (
$row3 mysql_fetch_array($result3,MYSQL_ASSOC)){
            echo 
"<li><a href='".$row3{'menulink'}."?langcode=en'>".$row3{'menutitleen'}."</a></li>\n";
        }
?></ul>
        </div>        
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="135" align="left" valign="top" style="padding-top:5px"><div class="slideshow"><?php // Banner
        
$result4 mysql_query("SELECT * FROM banner WHERE menuid = '".$row1{'menuid'}."' AND bannerstatus = '1' ORDER BY bannersort ASC ");
        while (
$row4 mysql_fetch_array($result4,MYSQL_ASSOC)){ 
            if (
$row4{'bannerlinken'} <> '') {
                echo 
"<a href='".$row4{'bannerlinken'}."' target='".$row4{'bannertarget'}."'><img src='../banner/".$row4{'bannerimageen'}."' width='900' height='130' /></a>";
            } else{
                echo 
"<img src='../banner/".$row4{'bannerimageen'}."' width='900' height='130' />";
            } 
        }
?></div></td>
  </tr>
  <tr>
    <td height="300" align="left" valign="top" style="padding:30px 0px;"><table width="900" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="200" align="left" valign="top"><div class="pagetitle"><?=$row1{'menutitleen'};?></div>
        <div id="ddsubmenu">
        <ul><?php // Submenu
        
$result6 mysql_query("SELECT * FROM contactus WHERE contactusstatus = '1' ORDER BY contactussort ASC ");
        while (
$row6 mysql_fetch_array($result6,MYSQL_ASSOC)){
            echo 
"<li><a href='".$row1{'menulink'}."?langcode=en&id=".$row6{'contactusid'}."'>".$row6{'contactustitleen'}."</a></li>\n";
        }
?></ul>        
        </div>
        <div class="adarea"><?php // AD
        
$result5 mysql_query("SELECT * FROM ad WHERE adstatus = '1' ORDER BY adsort ASC ");
        while (
$row5 mysql_fetch_array($result5,MYSQL_ASSOC)){ 
            if (
$row5{'adlinken'} <> '') {
                echo 
"<a href='".$row5{'adlinken'}."' target='".$row5{'adtarget'}."'><img src='../ad/".$row5{'adimageen'}."' width='200' /></a>";
            } else {
                echo 
"<img src='../ad/".$row5{'adimageen'}."' width='200' />";
            }
        }
?></div>
        </td>
        <td width="50" align="left" valign="top">&nbsp;</td>
        <td width="650" align="left" valign="top"><?php // Contact Us
        
if(empty($_GET["id"])){
            
$result7 mysql_query("SELECT * FROM contactus WHERE contactusstatus = '1' ORDER BY contactussort ASC ");
        } else {
            
$result7 mysql_query("SELECT * FROM contactus WHERE contactusstatus = '1' AND contactusid = ".$_GET["id"]." ");
        }
        
$row7 mysql_fetch_array($result7,MYSQL_ASSOC);?><table width="650" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="left" valign="top" class="pagetitle"><?=$row7{'contactustitleen'};?></td>
          </tr>
          <tr>
            <td align="left" valign="top" class="txt12"><?=$row7{'contactusdescen'};?>
            <?php if ($row7{'contactusmailto'} <> '') { ?><br />
              <br />
              <form action="../inc/mail.php" method="post" name="contactus" id="contactus" onsubmit="return validate_form(this)">
                <input type="hidden" name="lang" value="en" />
                <input type="hidden" name="contactemail" value="<?=$row7{'contactusmailto'};?>" />
              <table width="600" border="0">
                <tr>
                  <td height="25" colspan="2" align="left" valign="bottom" class="remark">* Mandatory field </td>
                  </tr>
                <tr>
                  <td width="100" height="25" align="left" valign="top" class="contactustxt">*Name:</td>
                  <td align="left" valign="top" class="contactustxt"><input name="gender" type="radio" value="Mr." />
                    Mr.
                    <input name="gender" type="radio" value="Miss" />
                    Miss
                    <input name="name" type="text" style="width:356px;" class="contactustxtinput"/></td>
                </tr>
                <tr>
                  <td height="25" align="left" valign="top" class="contactustxt">*E-mail:</td>
                  <td align="left" valign="top" class="contactustxt"><input name="email" type="text" style="width:450px;" class="contactustxtinput"/></td>
                </tr>
                <tr>
                  <td height="25" align="left" valign="top" class="contactustxt">Phone:</td>
                  <td align="left" valign="top" class="contactustxt"><input name="tel" type="text" style="width:450px;" class="contactustxtinput" /></td>
                </tr>
                <tr>
                  <td height="25" align="left" valign="top" class="contactustxt">*Subject:</td>
                  <td align="left" valign="top" class="enquirytxt"><input name="subject" type="text" style="width:450px;" class="contactustxtinput" /></td>
                  </tr>
                <tr>
                  <td height="25" align="left" valign="top" class="contactustxt">*Message:</td>
                  <td align="left" valign="top" class="contactustxt"><textarea name="msg" style="width:450px;" rows="8" class="contactustxtinput"></textarea></td>
                </tr>
                <tr>
                  <td height="25" align="left" valign="top" class="contactustxt">&nbsp;</td>
                  <td align="left" valign="top" class="contactustxt"><input type="submit" name="Submit" value="Submit" />
                    <input name="Reset" type="reset" id="Reset" value="Clear" /></td>
                </tr>
              </table></form><?php ?>
            </td>
          </tr>

        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="55" align="right" valign="middle" class="footer"><div style="float:left;"><?php // Footer page
        
$result3 mysql_query("SELECT * FROM footpage WHERE footpagestatus = '1' ORDER BY footpagesort ASC ");
        
$i=0;
        while (
$row3 mysql_fetch_array($result3,MYSQL_ASSOC)){
        if (
$i>0) {
            echo 
' | ';
        }
        
$i++;
            echo 
"<a href='fpage.php?langcode=en&id=".$row3{'footpageid'}."'>".$row3{'footpagetitleen'}."</a>";
        }
?></div><div style="float:right;"><?=$row2{'hafcopyrighten'};?></div></td>
  </tr>
</table>
</body>
</html>
<?php mysql_close($dbh);?>