<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/channel_left.js"></script>
<script src="js/channel_conment.js"></script>
<body>




<table width="200" height="100%" border="0" cellpadding="0" cellspacing="0" background="images/bg_10.jpg">

        <tr>
          <td width="200" height="65" align="center" valign="top"><img src="images/bg_10 (4).jpg" width="200" height="65"></td>
        </tr>
        <tr> 
          <td height="25" align="center" valign="top"> 
{php}$i=0;{/php}<!--定义一个变量，用于设置表格的ID-->
{section name=channel_group_id loop=$channel_group}  <!--循环读取动态页中模板变量中的数据，输出频道组的数据-->      
{php}$i++;{/php}	<!--增加ID值-->
              <table width="85%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
<!--根据单元格的ID值，输出不同的图片-->
<td width="30%"><img src="images/bg_10 (1).jpg" id="images{php}echo $i;{/php}"></td>
<!--应用onclick事件调用自定义函数，实现树状菜单的折叠和展开-->                  
<td width="70%" align="left" height="24" class="STYLE12" onClick="javascript:open_close('id{php}echo $i;{/php}','images{php}echo $i;{/php}');" >{$channel_group[channel_group_id].tb_channel_group_name}</td>
                </tr>
              </table>
<!--定义表格的ID值，设置表格的样式--> 
<table width="85%" border="0" cellspacing="0" cellpadding="0" id="id{php}echo $i;{/php}" style="display:none;">
	
<!--通过section函数，循环输出指定频道组中频道的数据--> 
{section name=channel_id loop=$channel}
         {if $channel_group[channel_group_id].tb_channel_group_id==$channel[channel_id].tb_channel_group}
    <tr>
    	<td width="30%" align="center">-|</td>
<!--设置超级链接，通过onclick调用指定的函数，实现频道内容的输出--> 
        <td height="24" width="70%" align="left" class="STYLE12">
<a href="channel_content.php" target="mainwindow" onClick="return ReqXml('{$channel[channel_id].tb_channel_address}');">
				{$channel[channel_id].tb_channel_name}			</a>		</td>
    </tr>
{/if}             
	{/section}
    <tr><td height="2" colspan="2" align="right"></td></tr>
</table>
{/section}</td></tr>
<tr><td height="100%" background="images/bg_10.jpg"></td></tr>
</table>
</body>
</html>
