<!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 class="current"> <a href="single.php?act=add"> <span>添加单页</span> </a> </li>
    </ul>
  </div>
  <form id="form" action="single.php?act=addok" method="post" name="form">
    <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="" 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 
              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="" 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="" 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>
              <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>
            </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="" 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"><{$cate_note}></textarea>
        </td>
        </tr>
        <tr>
          <td colspan="2"><input class="btn" type="submit" value="提交" name="submit"/>          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
</body>
</html>
