<?php
include_once(IncludeFile . '/libs/Smarty.class.php');
$tpl = new Smarty();
$tpl->caching = false; // 關閉快取
$tpl->compile_check = true; // 檢查模板更新
$tpl->template_dir = IncludeFile . '/templates/' . Isite_tpl . '/';
$tpl->compile_dir = IncludeFile . '/templates_c/';
$tpl->config_dir = IncludeFile . '/configs/';
$tpl->cache_dir = IncludeFile . '/cache/';
$tpl->left_delimiter = '<{';
$tpl->right_delimiter = '}>';
?>
<{foreach key=key item=MMSPAN from=$TSortUrl}>
<td align="left" valign="bottom" height="25">
<{if $mysort eq $key}>
<img src="images/sort_<{$key}>_1.gif" height="25" border="0" />
<{else}>
<a href="<{$MMSPAN}>"><img src="images/sort_<{$key}>.gif" height="25" border="0" /></a>
<{/if}>
</td>
<{/foreach}>
如使用者登入資訊,建議透過 JavaScript 非同步載入,避免快取導致顯示異常。
<{include file="SiteAllTop.html" mysort="0"}><{if $MMSPAN[0] eq $smarty.get.s}>selected<{/if}><{$OReDetail[6]|strip_tags}>{* Smarty 註解 *}{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"}{$smarty.now|date_format:"%Y-%m-%d"}{$articleTitle|regex_replace:"/[\r\t\n]/":" "}<{if $smarty.now|date_format:"%Y-%m-%d" eq $MMSPAN[4]|date_format:"%Y-%m-%d"}><img src="images/newh.gif" /><{/if}>template_exists($f):檢查模板是否存在。fetch():取得已指派模板的輸出內容,適合產生靜態頁面。