<!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=utf-8" />
<title>单页管理</title>
<link href="<{$css_root}>images/admincp.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$web_url}>include/js/jquery.js"></script>
<script type="text/javascript" src="<{$web_url}>include/editor/xheditor.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$('#elm1').xheditor(true,{tools:'full',upImgUrl:"<{$web_url}>admin/include/upload.php",upImgExt:"jpg,jpeg,gif,png"});
}
</script>
</head>
<body>
<div id="append_parent"/>
<div id="cpcontainer" class="container">
  <div class="itemtitle">
    <h3>单页管理</h3>
    <ul class="tab1">
      <li> <a href="single.php?act=show"> <span>单页列表</span> </a> </li>
      <li> <a href="single.php?act=add"> <span>添加单页</span> </a> </li>
    </ul>
  </div>
 <form id="form" action="single.php?act=editok" method="post" name="form">
 <input type="hidden" value="<{$sing_id}>" name="sing[id]" />
    <table class="tb tb2">
      <tbody>
        <tr>
          <td class="td27" colspan="2">单页名称:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="<{$sing_title}>" name="sing[title]"/>          </td>
          <td class="vtop tips2"></td>
        </tr>
        <tr>
          <td class="td27" colspan="2">所属分类:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><select name="sing[catid]">
              <{section name=cates loop=$singcatelist}>
              <option 
              <{if $singcatelist[cates].catid eq $sing_catid}>
              selected="selected" <{/if}>
              value="<{$singcatelist[cates].catid}>"><{$singcatelist[cates].name}>
              </option>
              <{/section}>
            </select>      </td>
          <td class="vtop tips2">选择单页所属的分类，单页默认按分类显示，不同分类的单页无法在同一页面中显示标题</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">自定义模板:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="<{$sing_tpl}>" name="sing[template]"/>          </td>
          <td class="vtop tips2">设置自定义模板，所属页面将按照自定义的模板显示</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">链接地址:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="<{$sing_url}>" name="sing[url]"/>          </td>
          <td class="vtop tips2">可以使用外部地址，外部地址必须于 HTTP 开头，站内地址只用填写相对地址即可</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">是否在新窗口中打开:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><ul>
          <{if $sing_target eq 1}>
             <li> <input class="radio" type="radio" checked="" value="1" name="sing[target]"/>
              新窗口
              </li>
              <li>
                <input class="radio" type="radio" value="0" name="sing[target]"/>
                原窗口 </li>
            <{else}>
            <li> <input class="radio" type="radio" value="1" name="sing[target]"/>
              新窗口
              </li>
              <li>
                <input class="radio" type="radio" checked="" value="0" name="sing[target]"/>
                原窗口 </li>
            <{/if}>
            </ul></td>
          <td class="vtop tips2">外链导航建议使用新窗口</td>
        </tr>
        
        <tr>
          <td class="td27" colspan="2">显示顺序:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="<{$sing_disp}>" name="sing[displayorder]"/>          </td>
          <td class="vtop tips2">数值越大越往后，建议不要超过250</td>
        </tr>
        
        <tr>
        <td class="td27" colspan="2">单页内容:</td>
      </tr>
      <tr class="noborder">
        <td colspan="2" ><textarea name="sing[content]" id="elm1" rows="25" cols="80"><{$sing_cont}></textarea>
        </td>
        </tr>
        <tr>
          <td colspan="2"><input class="btn" type="submit" value="提交" name="submit"/>          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
</body>
</html>
