<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
            <tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">&nbsp;</td>
            </tr>
			<tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">
<!--内容开始-->
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="860" align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
      <tr>
        <td height="28" bgcolor="#F9F9F9">&nbsp;<B>函数调用方式</B></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="28" class="bottomline" width="200">&nbsp;PHP函数原型</td>
    <td height="28" class="bottomline">
	函数名(参数1,参数2,参数3,参数4)	</td>
  </tr>
  <tr>
    <td height="28" class="bottomline" width="200">&nbsp;</td>
    <td height="28" class="bottomline">
	<b>调用示例1：</b>函数名(参数1,参数2,参数3,参数4)<br>
	<b>适用范围1：</b>网站安装目录/index/*Action.php<br><br>
	<b>调用示例2：</b>参数1|函数名:参数2:参数3:参数4<br>
	<b>适用范围2：</b>网站安装目录/templates/default/index/*.php<br>
	</td>
  </tr>
</table>
	</td>
   </tr>
</table>
 <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td></td>
	</tr>
 </table>
 <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5"> 
  <tr>
    <td height="28" bgcolor="#F9F9F9">&nbsp;<B>系统自带函数说明</B></td>
  </tr>
  <tr>
    <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;弹出提示框</td>
        <td height="28" class="bottomline"> MessageBox($string) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例1：</b><br>
		$jsstring='Dialog.alert("提示:返回上一页",function(){history.back(-1);});';<br>
		MessageBox($jsstring);<br>
		<b>说明：</b>弹出提示信息,并返回到上一页。<br>
		<b>调用示例2：</b><br>
		$jsstring='Dialog.alert(\'详细提示内容\',function(){window.location.href="'.MICE_URL.'/index.php";window.event.returnValue = false;},300,100,"提示标题");';<br>
		MessageBox($jsstring);<br>
		<b>说明：</b>弹出提示信息,并跳转到指定页面。<br>
		MessageBox($string = "测试弹出",$url = "http://www.baidu.com")<br>
              <b>适用范围：</b>网站安装目录/index/*Action.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
        </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取文章列表</td>
        <td height="28" class="bottomline"> ArticleList($micefun,$subsql,$nrows,$offset) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ArticleList:$subsql:0:5<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $subsql:SQL条件语句,不可缺省<br>
		  $nrows:从第几条记录开始显示,记录下标从0开始,不可缺省<br>
		  $offset:共显示多少条记录,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取文章列表,page页面方式</td>
        <td height="28" class="bottomline"> ArticlePagerList($micefun,$subsql,$pages,$pagenum) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ArticlePagerList:$subsql:10:$PageId<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php(推荐在列表模板里使用)<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $subsql:SQL条件语句,不可缺省<br>
		  $pages:每页显示记录数,记录下标从0开始,不可缺省<br>
		  $pagenum:当前页数,从1开始,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取page导航条</td>
        <td height="28" class="bottomline"> ArticlePager($micefun,$subsql,$pages,$pagenum,$listnum,$cid) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ArticlePager:$subsql:10:$PageId:5:$cid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php(推荐在列表模板里使用)<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $subsql:SQL条件语句,不可缺省<br>
		  $pages:每页显示记录数,记录下标从0开始,不可缺省<br>
		  $pagenum:当前页数,从1开始,不可缺省<br>
		  $listnum:导航条里显示多少页,如$listnum=3,则显示$pagenum-1,$pagenum,$pagenum+1这3页的链接,不可缺省<br>
		  $cid:分类id<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取上一条文章信息</td>
        <td height="28" class="bottomline"> ArticlePrev($micefun,$CategoryId,$Createdat) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ArticlePrev:$CategoryId:$ArticleRS->getCreatedat()<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $CategoryId:分类id,不可缺省<br>
		  $Createdat:文章发表时间<br>
		  <b>返回结果：</b>&lta href="上一篇文章的URL">上一篇文章的标题&lt/a>
		  <br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取下一条文章信息
</td>
        <td height="28" class="bottomline"> ArticleNext($micefun,$CategoryId,$Createdat) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ArticleNext:$CategoryId:$ArticleRS->getCreatedat()<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $CategoryId:分类id,不可缺省<br>
		  $Createdat:文章发表时间<br>
		  <b>返回结果：</b>&lta href="下一篇文章的URL">下一篇文章的标题&lt/a>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取某一条文章信息</td>
        <td height="28" class="bottomline"> Article($micefun,$articleid) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|Article:$articleid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $CategoryId:分类id,不可缺省<br>
		  $Createdat:文章发表时间<br>
		  <b>返回结果：</b>一个记录集,里边包含一条文章记录的全部字段值
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取评论列表</td>
        <td height="28" class="bottomline"> FormList($micefun,$subsql,$nrows,$offset) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|FormList:$subsql:0:10<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $subsql:SQL条件语句,不可缺省<br>
		  $nrows:从第几条开始,从0开始,不可缺省<br>
		  $offset:共显示多少条,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取指定分类的子分类</td>
        <td height="28" class="bottomline"> CategoryList($micefun,$subsql,$nrows,$offset) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|CategoryList:$subsql:0:8<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $subsql:SQL条件语句,不可缺省<br>
		  $nrows:从第几条开始,从0开始,不可缺省<br>
		  $offset:共显示多少条,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取分类id</td>
        <td height="28" class="bottomline"> CategoryId($micefun,$str) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|CategoryId:$str<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $str:包含分类的id字符串,本系统支持一篇文章可发表到多个栏目,所以文章的栏目字段是一个特殊的字符串,此函数返回该文章所属的第一个栏目的id,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;面包屑路径</td>
        <td height="28" class="bottomline"> CategoryPath($micefun,$str,$splitstr) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|CategoryPath:$str:$splitstr<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $str:包含分类的id字符串,不可缺省<br>
		  $splitstr:表示多级路径中的分隔符,不可缺省<br>
		  <font color="red">注：</font>面包屑（或称为面包屑路径）是一种显示用户在网站或网络应用中的位置的二级导航方案。这个术语来自于神话故事《奇幻森林历险记》，故事的两个小主人公丢下一条面包屑路径，然后顺着这条路径回到了家中。就像这个故事一样，在现实世界的应用程序中，面包屑为用户提供一种追踪返回最初访问页面的方式。
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取友情链接列表</td>
        <td height="28" class="bottomline"> LinkList($micefun,$linktype,$categoryid,$nrows,$offset) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|LinkList:$linktype:$categoryid:$nrows:$offset<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $linktype:$linktype,0表示文字链接,1表示图片链接,2表示所有链接,不可缺省<br>
		  $categoryid:$categoryid,分类id,0表示全部分类<br>
		  $nrows:从第几条开始,从0开始,不可缺省<br>
		  $offset:共显示多少条,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取投票名称(标题)</td>
        <td height="28" class="bottomline"> PollTitle($micefun,$pollid) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|PollTitle:$pollid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $pollid:投票的id,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取可选投票的选项类型</td>
        <td height="28" class="bottomline"> PollChecks($micefun,$pollid) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|PollChecks:$pollid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $pollid:投票id,编辑投票选项时,可设置投票最多可选几项,返回值为radio或checkbox<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取投票列表</td>
        <td height="28" class="bottomline"> PollList($micefun,$pollid,$nrows,$offset) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|PollList:$pollid:$nrows:$offset<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $pollid:投票id,不可缺省<br>
		  $nrows:从第几条开始,从0开始,不可缺省<br>
		  $offset:共显示多少条,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;更新浏览次数</td>
        <td height="28" class="bottomline"> UpBrowses($micefun,$article_id) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|UpBrowses:$article_id<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php(推荐在内容模板里使用)<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $article_id:文章id,将指定id的文章的浏览数+1,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;整除</td>
        <td height="28" class="bottomline"> MiceDivisible($micefun,$num,$num2) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|MiceDivisible:$num:$num2<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $num:除数<br>
		  $num2:被除数<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;返回session</td>
        <td height="28" class="bottomline"> MiceSession($micefun,$info) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|MiceSession:$info<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/index.functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $info:session变量名,不可缺省,常用的有'userid':用户id'loginname':用户名<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;时间戳转换为时间</td>
        <td height="28" class="bottomline"> Num2Time($micefun,$num) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|Num2Time:$num<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $num:时间戳,不可缺省<br>
		  <b>返回格式：</b>年-月-日 时:分:秒<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;时间戳转换为日期</td>
        <td height="28" class="bottomline"> Num2Date($micefun,$num) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|Num2Date:$num<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $num:时间戳,不可缺省<br>
		  <b>返回格式：</b>年-月-日<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取系统配置的值</td>
        <td height="28" class="bottomline"> ConfigV($micefun,$tag) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ConfigV:$tag<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $tag:系统高级设置的标记字符串,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获取系统配置的附加值</td>
        <td height="28" class="bottomline"> ConfigA($micefun,$tag) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ConfigA:$tag<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $tag:系统高级设置的标记字符串,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;还原引号</td>
        <td height="28" class="bottomline"> MiceRestoreQuote($micefun,$str) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|MiceRestoreQuote:$str<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $str:被还原引号的字符串,保存文档内容时会将单引号,双引号替换成特殊的字符串,在显示时需要通过此函数恢复被替换的内容,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;清除html代码</td>
        <td height="28" class="bottomline"> MiceClearHTML($micefun,$str) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|MiceClearHTML:$str<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $str:被清除html代码的字符串,返回一个纯文本的字符串,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;字符串截取函数</td>
        <td height="28" class="bottomline"> MiceCutStr($micefun,$content,$maxlen=300,$str) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|MiceCutStr:$content:$maxlen:$str<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $content:被截取的内容,不可缺省<br>
		  $maxlen:截取的长度,字符和汉字都算一个字符,不可缺省<br>
		  $str:如果被截取的内容的长度超过$maxlen,在截取后的字符串后边加上$str字符串,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获得首页\链接列表\网站地图的URL</td>
        <td height="28" class="bottomline"> GetUrl($micefun,$type) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|GetUrl:$type<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $type:链接类型,不可缺省,值可为'index','link','map'，分别获得首页,友情链接列表,网站地图的URL<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获得分类列表的URL</td>
        <td height="28" class="bottomline"> ListUrl($micefun,$cid,$pid='1') </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ListUrl:$cid:$pid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $cid:分类id,不可缺省<br>
		  $pid:分类列表的页数,可缺省,缺省值为1<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获得分类封面的URL</td>
        <td height="28" class="bottomline"> ChannelUrl($micefun,$cid) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ChannelUrl:$cid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $cid:分类id,不可缺省<br>
        </td>
      </tr>
	  <tr>
        <td height="28" class="bottomline" width="200">&nbsp;获得文档的URL</td>
        <td height="28" class="bottomline"> ArticleUrl($micefun,$cid,$aid) </td>
      </tr>
      <tr>
        <td height="28" class="bottomline" width="200">&nbsp;</td>
        <td height="28" class="bottomline"><b>调用示例：</b>'micefun'|ArticleUrl:$cid:$aid<br>
              <b>适用范围：</b>网站安装目录/templates/default/index/*.php<br>
              <b>所在文件：</b>网站安装目录/includes/functions.php<br>
              <b>参数说明：</b><br>
          $micefun:系统函数标记,值为'micefun',不可缺省<br>
		  $cid:分类id,不可缺省<br>
		  $aid:文档id,不可缺省<br>
        </td>
      </tr>
    </table></td>
  </tr>
  </table>
  <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td></td>
	</tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr>
	  <td height="28" bgcolor="#F9F9F9">&nbsp;<B>自定义函数说明</B></td>
	</tr>
	<tr>
	  <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td height="28" class="bottomline" width="200">&nbsp; 获得分类的序号,用于改变导航条</td>
			<td height="28" class="bottomline"> GetDef($myfun,$path) </td>
		  </tr>
		  <tr>
			<td height="28" class="bottomline" width="200">&nbsp;</td>
			<td height="28" class="bottomline">
				<b>适用范围：</b>网站安装目录/index/*Action.php或网站安装目录/templates/default/index/*.php<br>
				<b>所在文件：</b>网站安装目录/plugins/my.functions.php<br>
				<b>使用说明：</b><br>
			  您可以根据您的需要自定义函数，函数体放在“网站安装目录/plugins/my.functions.php”，函数的定义格式可参考GetDef的示例<br>在网站安装目录/index/*Action.php里调用的方式：GetDef($myfun,$path)<br>在网站安装目录/templates/default/index/*.php里调用的方式：'myfun'|GetDef:$path<br>                </td>
		  </tr>

	  </table></td>
	</tr>
  </table>
<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
</table>
</body>
</html>

