<include file="header.html" />


<div id="left">
<include file="search_box.html"/>

<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c">
<h2>本類最新</h2>
<CMS action="LIST" return="List" NodeID="{$NodeInfo.NodeID}"  where="co.TableID=1" num="10" Cache="1" />
<!--調用新聞系統模型(TableID=1)最新發佈10條記錄-->
<LOOP name="List" var="var" key="key"> 
<ul>
<li>
<a href="[$var.URL]" target="_blank" title="[$var.Title]" >[@CsubStr($var.Title, 0, 21)] </a></li>
</ul>
</LOOP> 

</div>
<div class="box_s_b">&nbsp;</div>
</div>

<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c"><h4>本類熱點</h4>
<CMS action="LIST" return="List" NodeID="{$NodeInfo.NodeID}"  where="co.TableID=1" orderby="Hits_Total" num="10" Cache="1" />
<!--調用新聞系統模型(TableID=1)最熱總點擊前10條記錄-->
<LOOP name="List" var="var" key="key">
<ul>
<li>
<a href=" [$var.URL] " target="_blank" title=" [$var.Title] " >[@CsubStr($var.Title, 0, 20)] </a>
<span class="process">(<font color="#FF6600">[$var.Hits_Total]</font>)</span>
<br />
</li>
</ul>
</LOOP>


</div>
<div class="box_s_b">&nbsp;</div>
</div>

<include file="../copyright.html" />


</div>

<div id="right">
<div class="box_l">
<div class="box_l_t">&nbsp;</div>
<div class="box_l_c">
<h1 id="articlename">[$Title]</h1>
<div id="atc_info">
<ul>
<li>
<if test="!empty($Author)">
作者：[$Author] &nbsp;&nbsp;&nbsp;
</if>
<if test="!empty($FromSite)">
來源：[$FromSite] &nbsp;&nbsp;&nbsp;
</if>
日期：[@date('Y-m-d H:i', $PublishDate)] 
&nbsp;&nbsp;&nbsp;
點擊：<script src="[$PUBLISH_URL]counter.php?o=display_counter&Id=[$IndexID]"></script>

 </li>
 
</ul>
</div>
<div id="select_font">
<ul>
<li id="size_how">
<script type="text/javascript">function doZoom(size){var zoom=document.all?document.all['Zoom']:document.getElementById('Zoom');zoom.style.fontSize=size+'px';}
</script>
字體大小:
</li>
<li id="s"><a href="javascript:doZoom(12)">小</a></li>
<li id="m"><a href="javascript:doZoom(14)">中</a></li>
<li id="l"><a href="javascript:doZoom(16)">大</a></li>
</ul>
</div>
<div class="content" id="Zoom">
<BR>
<if test="!empty($PageNav)">
	<if test="!empty($PageNav.1.Title) && $PageNav.1.Title != ' ' ">
	<B>子標題：</B><I>
	<if test="$PageTitle=='CONTENT_HEADER'">
	前言
	<else>
	[$PageTitle]
	</if>
	</I><br>
	<select name="sNavigate" style=font-size:9pt  onchange=javascript:window.location=(this.options[this.selectedIndex].value)>
	<loop name="PageNav" key="key" var="var">
	<op exp="$PageKey = $key+1 " />
	<if test="$var.Title=='CONTENT_HEADER'">
		<op exp="$showTitle = ' 前言' " />
	<else>
		<op exp="$showTitle = $var.Title " />
	</if>
	<if test="$PageTitle == $var.Title">
 
	<option value="[$var.URL]" selected>第[$PageKey]頁：[$showTitle]</option>
	<else>
 	<option value="[$var.URL]" >第[$PageKey]頁：[$showTitle]</option>
	</if>
	</loop>
	</select>

	</if>
</if>

[$Content]
<p class="pageview">

<B>[$PageList]</B>

</p>
</div><!--Zoom end -->


<div id="correlative_s">
<h5>其他文章</h5>
<ul>
<!--使用SEARCH調用獲取相關文章列表-->
<!--相關文章顯示-->
<CMS action="LIST" return="List" NodeID="{$NodeID}" Num="1" where="i.PublishDate < {$PublishDate} " />
<LOOP name="List" var="var" key="key"> 
<li>
下一篇：<a href=[$var.URL]>[$var.Title]</a>&nbsp;&nbsp;[[@date('Y-m-d H:m:s', $var.PublishDate)]] <br>
</li>
</LOOP> 

<CMS action="LIST" return="List" NodeID="{$NodeID}" Num="1" where="i.PublishDate > {$PublishDate}" orderby="i.PublishDate ASC"/>
<LOOP name="List" var="var" key="key"> 
<li>
上一篇：<a href=[$var.URL]>[$var.Title]</a>&nbsp;&nbsp;[[@date('Y-m-d H:m:s', $var.PublishDate)]] <br>
</li>
</LOOP> 
</ul>
</div>

<div id="correlative_a">
<h5>相關文章</h5>
<ul>
<!--如果存在自定義相關文章，則調用之-->
<if test="!empty($CustomLinks)">
<CMS action="CONTENT" return="List" IndexID="{$CustomLinks}" />
<else>
<!--自定義相關文章為空，則使用SEARCH調用根據文章設置的關鍵字自動獲取相關文章列表-->
<CMS action="SEARCH" return="List" NodeID="{$NodeID}" Field="Keywords" Keywords="{$Keywords}" Num="10" Separator="," IgnoreContentID="{$ContentID}" />
</if>

<!--開始顯示相關文章-->
<loop name="List" var="var" key="key" > 
<li>
·<a href="[$var.URL]" title="[$var.Title]">[@CsubStr($var.Title, 0, 25)]</a>
</li>
</LOOP> 
</ul>
</div>
<BR/>
<!--評論調用-->
<script type="text/javascript" src="[$PUBLISH_URL]js.php?id=comment&IndexID=[$IndexID]"></script>

                  <TABLE cellSpacing=1 cellPadding=3 width="95%"  border=0 align="center">
                    <FORM name="myform" action="[$PUBLISH_URL]comment.php?o=post&IndexID=[$IndexID]" method="post">
                      <TR> 
                        <TD class=title12 bgColor=#dcdcdc> <table width="100%" border="0" cellspacing="3">
                            <tr> 
                              <td>發表評論：</td>
                              <td> <INPUT name="anonymous" type=checkbox value=1 checked>
                                匿名發表</td>
                              <td>用戶名: 
                                <INPUT size=16 name=username>
                                　　</td>
                              <td><a href="[$PUBLISH_URL]comment.php?o=display&Id=[$IndexID]">查看評論</a></td>
                            </tr>
                          </table></TD>
                      </TR>
                      <TR> 
                        <TD class=title12 align=middle bgColor=#edf0f5> <center><TEXTAREA class=g name=content rows=6 cols=70></TEXTAREA> </center>
                        </TD>
                      </TR>
                    </FORM>
                    <TR> 
                      <TD class=title12 align=middle bgColor=#edf0f5> <center><INPUT onclick='javascript:check(this);' type='submit' value='  發送  ' name='submit'> </center>
                      </TD>
                    </TR>
									  <tr>
				  	<td  bgcolor=#ffffff>· 您將承擔一切因您的行為、言論而直接或間接導致的民事或刑事法律責任<br>· 留言板管理人員有權保留或刪除其管轄留言中的任意內容<br>· 本站提醒：不要進行人身攻擊。謝謝配合。</td>
				  </tr>

                  </TABLE><br>
				  </DIV>


<!--//評論顯示結束-->
</div><!--box_l_c end -->
<div class="box_l_b">&nbsp;</div>
</div>

</div><span class="cls"></span><!--right end-->
</div>
<include  file="../footer.html" />
<script>
function check(obj) {
	if(document.myform.content.value=='') { 
		alert('請輸入評論內容');
		document.myform.content.focus();
		return false;
	} else if(document.myform.content.value.length > 2000) { 
		alert('評論內容太長，字數不成超過2000');
		document.myform.content.focus();
		return false;
	}

	obj.disabled=true; 
	document.myform.submit();
}
</script>

</body>
</html>