/var/www/chingyingtkd.club/course.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
<?php 
require("configure.php");
$catid = (int)$_GET['catid'];
$pid   = (int)$_GET['pid']; 
?>
<!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">
<a name="top" id="top"></a><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/headerbg.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="960" align="left" valign="top"><table width="960" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left" valign="bottom"><table width="960" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="960" class="maintitletxtred"><br>
                  最新課程</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td width="960" align="left" valign="top"><hr />&nbsp;</td>
          </tr>
          <tr>
            <td width="960" align="left" valign="top" class="txt"><table width="960" border="0" cellpadding="0" cellspacing="0">
            <?
              $sql 
"SELECT * ";
              
$sql .= "FROM course ";
              
$sql .= "ORDER BY coursedate desc ";

              
$result mysql_query($sql);
              while (
$row mysql_fetch_array($result,MYSQL_ASSOC))
                {
             
?>
             
          <tr>
            <td width="800" height="40" align="left" valign="top" class="txt"><a name="<? echo $row{'courseid'?>" id="<? echo $row{'courseid'?>"></a><strong><? echo $row{'coursetitle'?></strong></td>
            <td width="160" align="right" valign="top" class="txt"><strong><? echo $row{'coursedate'?></strong></td>
          </tr>
          <tr>
            <td colspan="2" align="left" valign="top" class="txt"><? echo $row{'coursedesc'?></td>
          </tr>
          <tr>
            <td colspan="2" align="left" valign="top" class="more spanline">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2" align="left" valign="top" class="txt">&nbsp;</td>
          </tr>
            <? }  ?>
            </table></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>