<form action="{?$jieqi_url?}/admin/blockfiles.php?module={?$module|urlencode?}&filename={?$filename|urlencode?}" method="post">
<table class="grid" width="95%" align="center">
  <caption>
  “{?$blockfile['caption']?}”区块配置管理  &nbsp; [<a href="{?$jieqi_url?}/admin/blockfiles.php?act=files">返回区块配置文件列表</a>]
  </caption>
  <tr>
    <td align="center">区块名称</td>
	<td align="center">所属模块</td>
	<td align="center">显示位置</td>
	<td align="center">序号</td>
	<td align="center">区块参数</td>
    <td align="center">操作</td>
  </tr>
{?section name=i loop=$blocks?}
  <tr>
    <td align="center">{?$blocks[i].blockname?}</td>
	<td align="center">{?$blocks[i].modname?}</td>
	<td align="center">{?$blocks[i].sidename?}</td>
<td align="center"><input class="text" type="text" name="key[{?$i.key?}]" id="key[{?$i.key?}]" size="4" value="{?$i.key?}" maxlength="8"></td>
<td align="center">{?if $blocks[i].hasvars > 0?}<input class="text" type="text" name="vars[{?$i.key?}]" id="vars[{?$i.key?}]" value="{?$blocks[i].vars?}" size="30">{?else?}无参数{?/if?}</td>
    <td align="center"> <a href="{?$jieqi_url?}/admin/blockfiles.php?act=edit&module={?$module|urlencode?}&filename={?$filename|urlencode?}&key={?$i.key|urlencode?}">修改参数</a> | <a href="{?$jieqi_url?}/admin/blockupdate.php?module={?$module|urlencode?}&filename={?$filename|urlencode?}&key={?$i.key?}" target="_blank">刷新缓存</a></td>
  </tr>
{?/section?}
 <tr>
    <td colspan="8" align="center">
	  <input type="hidden" name="act" value="updatelist" />{?$jieqi_token_input?}
      <button type="submit" class="button" name="Submit">批量更新参数设置</button>
	  <p>说明：序号为大于零的整数，不同区块不可重复。模板中调用一个区块内容用 &#123;&#63;$jieqi_pageblocks['XXX']['content']&#63;&#125; ，区块标题用 &#123;&#63;$jieqi_pageblocks['XXX']['title']&#63;&#125;，这里的XXX就是“序号”的值。</p>
    </td>
  </tr>
</table>
</form>