网站全站栏目调用方法[ ]
<!--loop顶级目录-->
<a href="{$base_url}/">网站首页</a>
{loop type() $t}
<h2><a href="{$t[url]}" {if isset($topid) && $topid==$t[typeid]}class="current"{/if}>{$t[typename]}</a></h2>
<!--loop一级目录-->
{loop type($t) $t1}
<h3><a href="{$t1[url]}" {if isset($typeid) && $typeid==$t1[typeid]}class="current"{/if}>{$t1[typename]}</a></h3>
<!--loop二级目录...-->
{loop type($t1) $t2}
<h4><a href="{$t2[url]}" {if isset($typeid) && $typeid==$t2[typeid]}class="current"{/if}>{$t2[typename]}</a></h4>
<!--loop三级目录...-->
{loop type($t2) $t3}
<h5><a href="{$t3[url]}" {if isset($typeid) && $typeid==$t3[typeid]}class="current"{/if}>{$t3[typename]}</a></h5>
{/loop}
{/loop}
{/loop}
{/loop}
全站搜索调用方法[ ]
<script>
function search_check()
{
word=dojo.byId('keyword').value;
if(!word)
{
alert('请输入查询信息!');
return false;
}
else return true;
}
</script>
<form name='search_form' action="<?php echo url('archive/search');?>" onsubmit="search_check();" method="post">
搜索:
<span class="greencu">关键字:</span>
<input id="keyword" name="keyword" type="text" />
<input type="submit" name='submit' value="搜索" />
</form>
参考来源[ ]