/var/www/chingyingtkd.club/index.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
172
173
174
175
176
177
178
179
180
181
182
<?php 
require("configure.php");
?>
<!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" />
<title>精英跆拳道會(武藝道場)</title>
<meta name="description" content="精英跆拳道會 ( 以下簡稱本會 ) 直屬於韓國跆拳道青濤 (Taekwondo ChungDoKwan, Korea ;創立於 1944 ,現代跆拳道九大門派之一 ) ;並為香港跆拳道協會 ( 中國香港奧委會屬下的唯一全港性跆拳道總會 ) 成員之一">
<meta name="keywords" content="跆拳道,Taekwondo,親子,兒童,青少年,沙田賽馬會公眾壁球場,沙田體育會,跆拳道,精英跆拳道會,武藝,武藝道場,香港跆拳道協會">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/ddlevelsmenu-base.css" />
<link rel="stylesheet" type="text/css" href="css/ddlevelsmenu-topbar.css" />
<script type="text/javascript" src="css/ddlevelsmenu.js"></script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" background="images/main_bg.jpg" style="background-repeat:repeat-x">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- Menu -->
  <tr>
    <td height="55" background="images/menubg.jpg" style="background-repeat:no-repeat">
    
    <div id="ddtopmenubar" class="mattblackmenu">
    <ul>
    <?
        load
(00);

        function 
load($p$space)
        {
            
$sql "SELECT * ";
            
$sql .= "FROM template left outer join categories ";
            
$sql .= "ON template.templateid = categories.templateid ";
            
$sql .= "where parentid = $p ";
            
$sql .= "order by sortby";
//            echo $sql;
            
$result1 mysql_query($sql);
            
$n=1;
            
$count mysql_num_rows($result1); 

            while (
$row mysql_fetch_array($result1,MYSQL_ASSOC))
            {
                    if (
$space <> && $n == 1)
                    echo 
"<ul id='"$row{'parentid'} ."' class='ddsubmenustyle'>";

                    if(
$row{'templateid'} == '1') {
                        
$str "<li><a ";
                    } else {
                        
$str "<li><a href='"$row{'templatename'} .".php?&pid=".$row{'catid'}."&catid="$row{'catid'} ."'";
                    }    
                        
$sql2 " select * from categories where parentid = ".$row{'catid'};
                        
$res2 mysql_query($sql2);
                        if (
mysql_num_rows($res2) > 0)        
                            
$str .= "rel='"$row{'catid'} ."' ";
                        
$str .= ">"$row{'catname'} . "</a>";                        
                        echo 
$str;                        

                
$n++;
                
load($row{'catid'}, $space+1);
                echo 
"</li>";
                if (
$space <> && $count $n)
                    echo 
"</ul>";

            }

        }
?>
    </ul>
    </div>
    
    <script type="text/javascript">
    ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
    </script>
    
    </td>
  </tr>
<!-- Menu End -->
  <tr>
    <td height="265" background="images/mainheaderbg.jpg" style="background-repeat:no-repeat">&nbsp;</td>
  </tr>
<!-- Content -->
  <tr>
    <td height="400" align="left" valign="top" background="images/contentbg.jpg" bgcolor="#FFFFFF" style="background-repeat:no-repeat"><table width="1000" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="20">&nbsp;</td>
        <td width="670" align="left" valign="top"><table width="650" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left" valign="bottom"><table width="650" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="maintitletxtred"><br>最新課程</td>
                <td align="right" valign="bottom" class="more"><a href="course.php">&gt;&gt; 更多課程 </a></td>
              </tr>
            </table>            </td>
          </tr>
          <tr>
            <td align="left" valign="top"><hr />
              &nbsp;</td>
          </tr>
          <tr>
            <td align="left" valign="top"><table width="650" border="0" cellpadding="0" cellspacing="0">
              <?  $sql "SELECT * ";
                  
$sql .= "FROM course ";
                  
$sql .= "ORDER BY coursedate desc ";
                  
$sql .= "LIMIT 3";
                  
$result mysql_query($sql);
                  while (
$row mysql_fetch_array($result,MYSQL_ASSOC))
                    {
             
?>
              <tr>
                <td class="coursetitle"><a href="course.php#<? echo $row{'courseid'?>"><? echo $row{'coursetitle'?></a></td>
              </tr>
              <tr>
                <td class="coursedate"><strong><? echo $row{'coursedate'?></strong></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            <? ?>
            </table></td>
          </tr>
          <tr>
            <td height="320" align="center" valign="top" background="images/mainaboutbg.jpg" style="background-repeat:no-repeat"><table width="620" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" valign="top" class="maintitletxtred"><br>
                  精英會簡介</td>
                </tr>
              <tr>
                <td align="left" valign="top" class="txt"><p><img src="images/aboutus.jpg" width="156" height="117" align="left" hspace="5" vspace="5"/>精英跆拳道會 ( 以下簡稱本會 ) 直屬於韓國跆拳道青濤 (Taekwondo ChungDoKwan, Korea ;創立於 1944 ,現代跆拳道九大門派之一 ) ;並為香港跆拳道協會 ( 中國香港奧委會屬下的唯一全港性跆拳道總會 ) 成員之一。 </p>
                  <p>本會現時擁有四十多個跆拳道道場,遍佈全港,分別以租用體育館或合辦 ( 與社區中心、學校、團體、屋苑 ) 形式開設。顏色帶晉升試則每月安排在不同道場舉行,黑帶升段試期則定於每年之三月及九月份舉行。此外,每月之第二個星期五舉行黑帶之課堂,以便各教練更新各種技術及交流資訊和經驗。而本會之搏擊隊亦於 2003 年改組,並維持定期之全方位操練,藉以提昇會員之搏擊技術水平。<br />
                  </p></td>
                </tr>
              <tr>
                <td align="right" valign="top" class="more"><a href="#">&gt;&gt;更多</a></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="290" align="center" valign="top" bgcolor="#FFFFFF"><table width="276" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="40" align="left" valign="top" background="images/newtitlebg.jpg" class="maintitletxtw">最新資訊</td>
          </tr>
           <?  $sql "SELECT * ";
              
$sql .= "FROM news ";
              
$sql .= "ORDER BY newsdate desc ";
              
$sql .= "LIMIT 3";
              
$result mysql_query($sql);
              while (
$row mysql_fetch_array($result,MYSQL_ASSOC))
                {
             
?>
          <tr>
            <td height="50" align="left" valign="middle" class="txt"><strong><? echo $row{'newsdate'?></strong></td>
          </tr>
          <tr>
            <td align="left" valign="top" class="txt"><? echo $row{'newsdesc'?></td>
          </tr>
          <tr>
            <td height="30" align="right" valign="top" class="more spanline"><a href="news.php?&pid=<?=$pid?>&catid=<?=$catid?>#<? echo $row{'newsid'?>">&gt;&gt;更多</a></td>
          </tr>
            <? }  ?>

          <tr>
            <td align="left" valign="top"><img src="images/adv.jpg" width="276" height="80" /></td>
          </tr>
        </table></td>
        <td width="20">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <!-- Content End -->
  <!-- page span -->
  <tr>
    <td height="30" align="left" valign="top">&nbsp;</td>
  </tr>
  <!-- page span End -->
</table>
<!-- Footer -->
    <div id="footer"><br />
      <p align="center" class="footer-menu">&copy; Copyright 2009 Ching Ying Taekwondo Union. All Rights Reserved &nbsp;| &nbsp;Powered by <a href="http://www.onesolution.com.hk" target="_blank">One Solution Limited <br />
      <img src="images/webicon.png" width="89" height="15" border="0" /></a></p>
</div>
<!-- Footer End -->

</html>