{include file="head.html"}
{include file="plus/ke_plus.html"}
<div id="jywrap">
  <div id="maincontent">
    <div class="wrap">
      <div class="crumbs"> <a href="__APP__/index/home">{lang='栏目管理'}</a> <a href="#">{lang='栏目设置'}</a> </div>
      <hr />
      <br />
      <form action="__URL__/edit" method="post">
        <div class="infobox">
          <h3>{lang='编辑单页面'}</h3>
          <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100">{lang='所属栏目'}：</td>
              <td><select name="pid" id="pid">
                  <?php if($info['pid']==0){ ?>
                  <option value="0" selected="selected">{lang='无上级栏目'}</option>
                  <?php }?>
                  <?php if($info['pid']<>0){ ?>
                  <option value="0" selected="selected">{lang='顶级栏目'}</option>
                  <?php }?>
                  <?php if(!empty($cat)) { foreach($cat as $vo){ ?>
                  <?php if($vo['id']==$info['pid']){ ?>
                  <option value="{$vo['id']}" selected="selected">{$vo['cname']}</option>
                  <?php } else{?>
                  <option value="{$vo['id']}">{$vo['cname']}</option>
                  <?php } ?>
                  <?php }} ?>
                </select></td>
            </tr>
            <tr>
              <td>{lang='栏目名称'}：</td>
              <td><input  name="name" type='text' class="regular-text" id="name" value="{$info['name']}" /></td>
            </tr>
            <tr>
              <td>{lang='栏目URL名'}：</td>
              <td><input name="pinyin" type='text' class="regular-text" id="pinyin" value="{$info['pinyin']}" />
                &nbsp;&nbsp;&nbsp;{lang='只允许英文数字下划线留空则将标题自动转换成拼音'}</td>
            </tr>
            <tr>
              <td>{lang='栏目SEO名称'}：</td>
              <td><input  name="seoname" type='text' class="regular-text" id="seoname" value="{$info['seoname']}" /></td>
            </tr>
            <tr>
              <td>{lang='栏目关键字'}：</td>
              <td><input name="keywords" type='text' class="regular-text" id="keywords" value="{$info['keywords']}" /></td>
            </tr>
            <tr>
              <td>{lang='栏目描述'}：</td>
              <td><textarea name="description" id="description" cols="0" rows="5" class="regular-textarea" style="width:320px;">{$info['description']}</textarea></td>
            </tr>
            <tr>
              <td>{lang='栏目形象图'}：</td>
              <td><div>
                  <input name="pic" class="regular-text" id="pic" style="width:250px" value="{$info['pic']}" />
                  &nbsp;<a id="loadimage" href="javascript:openimage()" >{lang='预览'}</a></div>
                <iframe scrolling="no"; frameborder="0" src="__APP__/upload/file.html?inputName=pic" style="width:300px; height:35px;"></iframe></td>
            </tr>
            <tr>
              <td>{lang='栏目状态'}：</td>
              <td>{lang='菜单'}
                <select name="hide" id="hide" >
                  <option value="0" <?php if($info['hide']==0) { ?> selected="selected" <?php } ?> >{lang='显示'}</option>
                  <option value="1" <?php if($info['hide']==1) { ?> selected="selected" <?php } ?> >{lang='隐藏'}</option>
                </select>
                &nbsp;&nbsp;&nbsp;&nbsp;{lang='排序'}
                <input  name="sorter" id="sorter" type='text' class="regular-text" style="width:30px;" value="{$info['sorter']}" /></td>
            </tr>
            <tr>
              <td>{lang='页面模板'}：</td>
              <td><input name="tpl_list" type='text' id="tpl_list" class="regular-text" value="{$info['tpl_list']}" />
                <select id="classselect" onchange="$('#tpl_list').val($(this).val())">
                  <option value="">{lang='选择栏目模板'}</option>
                  <?php if(!empty($tpl_dir['files'])) foreach($tpl_dir['files'] as $vo){?>
                  <option value="<?php echo current(explode('.', $vo)) ?>">{$vo}</option>
                  <?php } ?>
                </select></td>
            </tr>
            <tr>
              <td>{lang='资料上传'}：</td>
              <td><div id="sapload" style="float:left"></div></td>
            </tr>
            <tr>
              <td>{lang='增强功能'}：</td>
              <td>{include file="plus/editor_plus.html"}</td>
            </tr>
            <tr>
              <td colspan="2"><textarea id="editor" name="content" cols="0" style="width:100%; height:400px;" rows="5" class="regular-textarea" >{$content}</textarea></td>
            </tr>
            <tr>
              <td>{lang='附加功能'}：</td>
              <td><input name="picoff" type="checkbox" id="picoff" value="1"<?php if($model_info['default_picoff']==1){ ?> checked="checked"<?php } ?> />
                {lang='远程抓图'}</td>
            </tr>
            <?php module('common')->plus_hook_tpl('channel','edit',$info) ?>
          </table>
        </div>
        <div class="submit_body">
          <input name="psot_do" id="psot_do" type="hidden" value="yes" />
          <input name="id" id="id" type="hidden" value="{$info['id']}">
          <button class="regular-button" type="submit" >{lang='编辑'}</button>
        </div>
      </form>
    </div>
  </div>
</div>
{include file="plus/upload.html"}
{include file="plus/pic_view.html"}
</body></html>