<table class="sgrid" width="100%" align="center">
  <tr>
    <td class="odd">
		自定义区块模板调用方式：<span class="blue">&#123;?block classname="BlockSystemCustom" bid="bid"?}</span><br>
		自定义SQL区块模板调用方式：<span class="blue">&#123;?block classname="BlockSystemSql" sql="sql语句" pagenum="10" page="1" template="template.html"?}</span><br>
		文件区块模板调用方式：<span class="blue">&#123;?block classname="BlockArticleList" filename="block_artilelist" vars="vars" template="template.html"?}</span><br>
		各个参数含义为：'<span class="red">bid</span>' - 自定义区块的序号， '<span class="red">sql</span>' - 自定义SQL语句， '<span class="red">pagenum</span>' - 显示记录数，可省略，默认10， '<span class="red">page</span>' - 显示第几页，可省略，默认1， '<span class="red">filename</span>' - 区块处理文件名称，不含后缀， '<span class="red">classname</span>' - 区块类的名称， '<span class="red">vars</span>' - 区块的参数， '<span class="red">template</span>' - 区块的模板文件名</td>
  </tr>
</table><br />
<div class="gridtop">
</div>
<table class="grid" width="100%" align="center">
  <caption>自定义区块管理</caption>
  <tr>
    <th>序号</th>
    <th>区块名</th>
    <th>内容类型</th>
    <th>模板调用语句</th>
    <th>操作</th>
  </tr>
  {?section name=i loop=$blocks?}
  <tr class="rowbg">
    <td>{?$blocks[i].bid?}</td>
    <td>{?$blocks[i].blockname?}</td>
    <td>{?$blocks[i].contenttype?}</td>
    <td><input class="text" type="text" size="60" value='{?$blocks[i].temptext?}' onFocus="this.select()"></td>
    <td>{?$blocks[i].action?}</td>
  </tr>
  {?/section?}
  <tr>
    <td colspan="9" class="foot">&nbsp;</td>
  </tr>
</table>
<br /><a name="addblock"></a>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">{?$form_addblock?}</td>
  </tr>
</table>
