<?php 
require_once(dirname(__FILE__)."/../config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>模板代码参考--文档模板标记</title>
<link href="../css_body.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style2 {color: #CC0000}
.style4 {color: #0000FF}
.style5 {color: #3300FF}
.style6 {
	color: #FF0000;
	font-weight: bold;
}
.style7 {color: #993300}
td{ padding-left:6px; }
-->
</style>
</head>
<body>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<tr>
    <td height="19"><b>模板代码参考--文档模板标记</b></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="top">
<table width="98%" border="0" cellspacing="2">
        <tr> 
          <td height="44" colspan="3" bgcolor="#FFFFFF">文档模板是指文档查看页的模板，即是 cmspath/templets/article_*.htm<br>
            <font color="#FF0000">编辑模板时，请在ＨＴＭＬ模式插入模板代码。 </font></td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#F9FBF0">１、文档当前位置<a name="1"></a></td>
        </tr>
        <tr> 
          <td height="46" colspan="3">{dede:field name='position'/}</td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#F9FBF0">２、文档字段值<a name="2"></a></td>
        </tr>
        <tr> 
          <td height="59" colspan="3">{dede:field name='字段名称'/} <br>
            字段名称是指 archives 表和所有附加表的字段信息。</td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#F9FBF0">３、引入计数器<a name="3"></a></td>
        </tr>
        <tr> 
          <td height="46" colspan="3">&lt;script src=&quot;{dede:field name='phpurl'/}/count.php?aid={dede:field 
            name='ID'/}&amp;mid={dede:field name='memberid'/}&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt; 
            &nbsp;<br>
            显示数字： <br>
            &lt;script src=&quot;{dede:field name='phpurl'/}/count.php?aid={dede:field 
            name='ID'/}&amp;mid={dede:field name='memberid'/}&amp;view=yes&quot; 
            language=&quot;javascript&quot;&gt;&lt;/script&gt; </td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#F9FBF0">４、引入最新评论<a name="4"></a></td>
        </tr>
        <tr> 
          <td height="45" colspan="3">&lt;script src=&quot;{dede:field name='phpurl'/}/feedback_js.php?arcID={dede:field 
            name='ID'/}&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt; 
          </td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#F9FBF0">５、引入推荐好友<a name="5"></a></td>
        </tr>
        <tr> 
          <td height="53" colspan="3">&lt;a href=&quot;{dede:field name='phpurl'/}/recommend.php?arcID={dede:field 
            name=ID/}&quot;&gt;&lt;img src=&quot;{dede:field name='phpurl'/}/img/menuarrow.gif&quot; 
            width=&quot;16&quot; height=&quot;15&quot; border=&quot;0&quot;&gt;推荐&lt;/a&gt;</td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#F9FBF0">６、引入加入收藏<a name="6"></a></td>
        </tr>
        <tr> 
          <td height="53" colspan="3">&lt;a href=&quot;{dede:field name='phpurl'/}/stow.php?arcID={dede:field 
            name=ID/}&quot;&gt;&lt;img src=&quot;{dede:field name='phpurl'/}/img/file_move.gif&quot; 
            width=&quot;17&quot; height=&quot;18&quot; border=&quot;0&quot;&gt;收藏&lt;/a&gt;</td>
        </tr>
        <tr>
          <td colspan="3" bgcolor="#F9FBF0">７、所有评论<a name="7" id="7"></a></td>
        </tr>
        <tr> 
          <td height="40" colspan="3">&lt;a href=&quot;{dede:field name='phpurl'/}/feedback.php?arcID={dede:field 
            name=&quot;id&quot;/}&quot;&gt;所有评论&lt;/a&gt;</td>
        </tr>
      </table> </td>
</tr>
</table>
</body>
</html>