{include file="head.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 />
      <form action="__URL__/edit" method="post">
      <div class="tab_menu" id="usual">
      <ul class="tab_menuul"> 
      <li><a href="#tab1" class="selected">{lang='站点设置'}</a></li> 
      <li><a href="#tab2">{lang='全局设置'}</a></li> 
      <li><a href="#tab3">{lang='模板设置'}</a></li> 
      <li><a href="#tab4">{lang='数据库设置'}</a></li> 
      <li><a href="#tab5">{lang='上传设置'}</a></li> 
      
      </ul>
      <div class="infobox"  id="tab1"  style="display:block; ">
        <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td width="100">{lang='站点名称'}：</td>
            <td width="350"><input id="sitename" class="regular-text" type='text' value="{$config['sitename']}" name="sitename" /></td>
            <td><span class="table_style_tip"><span>{</span>sys:sitename<span>}</span></span></td>
          </tr>
          <tr>
            <td>{lang='网站地址'}：</td>
            <td><input class="regular-text" type='text' value="{$config['siteurl']}" name="siteurl" id="siteurl" /></td>
            <td><span>{</span>sys:siteurl<span>}</span></span></td>
          </tr>
          <tr>
            <td>{lang='网站关键词'}：</td>
            <td><input class="regular-text" type='text' value="{$config['keywords']}" name="keywords" id="keywords" /></td>
            <td><span>{</span>sys:keywords<span>}</span></span></td>
          </tr>
          <tr>
            <td>{lang='网站描述'}：</td>
            <td><textarea name="description" id="description" cols="0" rows="5" class="regular-textarea" style="width:310px !important">{$config['description']}</textarea></td>
            <td><span>{</span>sys:description<span>}</span></span></td>
          </tr>
          <tr>
            <td>{lang='站长邮箱'}：</td>
            <td><input class="regular-text" type='text' value="{$config['masteremail']}" name="masteremail" id="masteremail" /></td>
            <td><span>{</span>sys:masteremail<span>}</span></span></td>
          </tr>
          <tr>
            <td>{lang='版权信息'}：</td>
            <td><input class="regular-text" type='text' value="{$config['copyright']}" name="copyright" id="copyright" /></td>
            <td><span>{</span>sys:copyright<span>}</span></span></td>
          </tr>
          <tr>
            <td>{lang='ICP备案号'}：</td>
            <td><input class="regular-text" type='text' value="{$config['icp']}" name="icp" id="icp" /></td>
            <td><span>{</span>sys:icp<span>}</span></span></td>
          </tr>
          
        </tbody>
      </table>
    
      </div>
      
      <div class="infobox" id="tab2"  style="display: none; ">
        <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td width="100">{lang='错误信息输出'}：</td>
            <td width="350"><?php if($config['DEBUG']){ ?>
              <input type="radio" name="DEBUG" id="DEBUG" value="true"  checked="checked" />
              {lang='开启'}
              <input type="radio" name="DEBUG" value="false"  />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio"  name="DEBUG" value="true" />
              {lang='开启'}
              <input type="radio"  name="DEBUG" id="DEBUG" value="false"  checked="checked"  />
              {lang='关闭'}
              <?php }?></td>
            <td>{lang='开启将会显示详细错误信息'}</td>
          </tr>
          <tr>
            <td width="100">{lang='DEBUG模式'}：</td>
            <td width="350"><?php if($config['ERROR_HANDLE']){ ?>
              <input type="radio" name="ERROR_HANDLE" id="ERROR_HANDLE" value="true"  checked="checked" />
              {lang='开启'}
              <input type="radio" name="ERROR_HANDLE" value="false"  />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio"  name="ERROR_HANDLE" value="true" />
              {lang='开启'}
              <input type="radio"  name="ERROR_HANDLE" id="ERROR_HANDLE" value="false"  checked="checked"  />
              {lang='关闭'}
              <?php }?></td>
            <td>{lang='开启DEBUG模式将会显示严格的调试信息，非开发者请勿开启。'}</td>
          </tr>
          <tr>
            <td>{lang='伪静态模式'}：</td>
            <td><?php if($config['URL_REWRITE_ON']){ ?>
              <input type="radio" name="URL_REWRITE_ON" id="URL_REWRITE_ON" value="true" checked="checked" />
              {lang='开启'}
              <input type="radio" name="URL_REWRITE_ON" value="false"  />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio" name="URL_REWRITE_ON" value="true" />
              {lang='开启'}
              <input type="radio" name="URL_REWRITE_ON" id="URL_REWRITE_ON" value="false"  checked="checked" />
              {lang='关闭'}
              <?php }?></td>
            <td>{lang='开启伪静态请先设置相应的伪静态规则'}</td>
          </tr>
          <tr>
            <td>{lang='静态缓存'}：</td>
            <td><?php if($config['HTML_CACHE_ON']){ ?>
              <input type="radio" name="HTML_CACHE_ON" id="HTML_CACHE_ON" value="true"   checked="checked"/>
              {lang='开启'}
              <input type="radio" name="HTML_CACHE_ON" value="false" />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio" name="HTML_CACHE_ON" value="true" />
              {lang='开启'}
              <input type="radio" name="HTML_CACHE_ON" id="HTML_CACHE_ON" value="false"  checked="checked" />
              {lang='关闭'}
              <?php }?></td>
            <td>
            {lang='开启静态缓存后更改模板与设置请先清除缓存'}
            </td>
          </tr>          
          <tr>
            <td>{lang='获取IP记录'}：</td>
            <td><select name="IP_STATUS" id="IP_STATUS">
                <option value="false" <?php if($config['IP_STATUS']==0){ ?> selected="selected" <?php } ?> >{lang='不获取'}</option>
                <option value="true" <?php if($config['IP_STATUS']==1){ ?> selected="selected" <?php } ?> >{lang='远程获取'}</option>
                <option value="2" <?php if($config['IP_STATUS']==2){ ?> selected="selected" <?php } ?> >{lang='本地获取'}</option>
              </select></td>
            <td>{lang='开启本地获取需要放置IP库'}</td>
          </tr>
          <tr>
            <td>{lang='目录优化'}：</td>
            <td><select name="URL_HTML_MODEL" id="URL_HTML_MODEL">
                <option value="true" <?php if($config['URL_HTML_MODEL']==1){ ?> selected="selected" <?php } ?>>{lang='短目录地址'}</option>
                <option value="2" <?php if($config['URL_HTML_MODEL']==2){ ?> selected="selected" <?php } ?>>{lang='多级目录地址'}</option>
              </select></td>
            <td>
            {lang='将改变所有通过标签调用的超链接地址'}<br />
{lang='短目录地址'}:http://127.0.0.1/list/1.html<br />
{lang='多级目录地址'}:http://127.0.0.1/channel/list/1.html
            </td>
          </tr>
          <tr>
            <td>{lang='多国语言'}：</td>
            <td><select name="LANG_OPEN" id="LANG_OPEN">
                <option value="true" <?php if($config['LANG_OPEN']==1){ ?> selected="selected" <?php } ?>>
                  {lang='开启'}</option>
                <option value="false" <?php if($config['LANG_OPEN']==0){ ?> selected="selected" <?php } ?>>
                  {lang='关闭'}</option>
              </select></td>
            <td>
            {lang='注意：开启多国语言后模板目录会有所变更，请自行修改。'}
            </td>
          </tr>
          
          <tr>
            <td>{lang='网站模式'}：</td>
            <td><select name="MOD_TYPE" id="MOD_TYPE">
                <option value="false" <?php if($config['MOD_TYPE']==0){ ?> selected="selected" <?php } ?>>{lang='CMS'}</option>
                <option value="true" <?php if($config['MOD_TYPE']==1){ ?> selected="selected" <?php } ?>>{lang='博客'}</option>
              </select></td>
            <td>
            {lang='开启博客模式会支持首页分页。'}
            </td>
          </tr>
          
          <tr>
            <td width="100">{lang='首页分页数'}</td>
            <td width="350"><input class="regular-text" type='text' value="{$config['BLOG_PAGE']}" name="BLOG_PAGE" id="BLOG_PAGE" /></td>
            <td><span class="table_style_tip">{lang='开启博客模式下才有效'}</td>
          </tr>
        </tbody>
      </table>
    
      </div>
      
      <div class="infobox" id="tab3"  style="display: none; ">
        <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td width="100">{lang='首页模板'}：</td>
            <td width="350"><input class="regular-text" type='text' value="{$config['TPL_TEMPLATE_INDEX']}" name="TPL_TEMPLATE_INDEX" id="TPL_TEMPLATE_INDEX" /></td>
            <td><span class="table_style_tip">{lang='请输入首页模板文件名不需要加后缀'}</td>
          </tr>
          <tr>
            <td width="100">{lang='模板目录'}：</td>
            <td width="350"><input class="regular-text" type='text' value="{$config['TPL_TEMPLATE_PATH']}" name="TPL_TEMPLATE_PATH" id="TPL_TEMPLATE_PATH" /></td>
            <td><span class="table_style_tip"><span>{</span>sys:TPL_TEMPLATE_PATH<span>}</span></span></td>
          </tr>

          <tr>
            <td>{lang='模板缓存'}：</td>
            <td><?php if($config['TPL_CACHE_ON']){ ?>
              <input type="radio" name="TPL_CACHE_ON" id="TPL_CACHE_ON" value="true" checked="checked" />
              {lang='开启'}
              <input type="radio" name="TPL_CACHE_ON" value="false" />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio" name="TPL_CACHE_ON" value="true"  />
              {lang='开启'}
              <input type="radio" name="TPL_CACHE_ON" id="TPL_CACHE_ON" value="false" checked="checked"  />
              {lang='关闭'}
              <?php }?></td>
            <td>{lang='更换修改模板请先清除缓存'}</td>
          </tr>
        </tbody>
      </table>
    
      </div>
      
      <div class="infobox" id="tab4"  style="display: none; ">
        <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td width="100">{lang='数据库缓存'}：</td>
            <td width="350"><?php if($config['DB_CACHE_ON']){ ?>
              <input type="radio" name="DB_CACHE_ON" id="DB_CACHE_ON" value="true"   checked="checked"/>
              {lang='开启'}
              <input type="radio" name="DB_CACHE_ON" value="false" />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio" name="DB_CACHE_ON" value="true" />
              {lang='开启'}
              <input type="radio" name="DB_CACHE_ON" id="DB_CACHE_ON" value="false"  checked="checked" />
              {lang='关闭'}
              <?php }?></td>
            <td>{lang='开启后修改添加内容请更新缓存'}</td>
          </tr>
          <tr>
            <td>{lang='缓存时间'}：</td>
            <td><input class="regular-text" type='text' value="{$config['DB_CACHE_TIME']}" name="DB_CACHE_TIME" id="DB_CACHE_TIME" /></td>
            <td>{lang='0为不缓存,-1为永久缓存'}</td>
          </tr>
        </tbody>
      </table>
    
      </div>
      
      <div class="infobox" id="tab5"  style="display: none; ">
        <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td width="100">{lang='上传大小'}：</td>
            <td width="350"><input class="regular-text" type='text' value="{$config['accessory_size']}" name="accessory_size" id="accessory_size" /></td>
            <td>{lang='单位:M'}</td>
          </tr>
          <tr>
            <td>{lang='批量上传数'}：</td>
            <td><input class="regular-text" type='text' value="{$config['accessory_num']}" name="accessory_num" id="accessory_num" /></td>
            <td></td>
          </tr>
          <tr>
            <td>{lang='上传格式'}：</td>
            <td><input name="accessory_type" type='text' class="regular-text" value="{$config['accessory_type']}" id="accessory_type" /></td>
            <td></td>
          </tr>
          <tr>
            <td>{lang='生成缩略图'}：</td>
            <td><?php if($config['thumbnail_switch']){ ?>
              <input type="radio" name="thumbnail_switch" id="thumbnail_switch" value="true"   checked="checked"/>
              {lang='开启'}
              <input type="radio" name="thumbnail_switch" value="false" />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio" name="thumbnail_switch" value="true" />
              {lang='开启'}
              <input type="radio" name="thumbnail_switch" id="thumbnail_switch" value="false"  checked="checked" />
              {lang='关闭'}
              <?php }?></td>
            <td></td>
          </tr>
          <tr>
            <td>{lang='缩图尺寸'}：</td>
            <td>{lang='最大宽度'}
              <input style="width:50px;" class="regular-text" type='text' value="{$config['thumbnail_maxwidth']}" name="thumbnail_maxwidth" id="thumbnail_maxwidth" />
              &nbsp;&nbsp;{lang='最大高度'}
              <input style="width:50px;" class="regular-text" type='text' value="{$config['thumbnail_maxhight']}" name="thumbnail_maxhight" id="thumbnail_maxhight" /></td>
            <td>{lang='单位:px'}</td>
          </tr>
          <tr>
            <td>{lang='是否加水印'}：</td>
            <td><?php if($config['watermark_switch']){ ?>
              <input type="radio"  id="watermark_switch" name="watermark_switch" value="true"   checked="checked"/>
              {lang='开启'}
              <input type="radio" name="watermark_switch" value="false" />
              {lang='关闭'}
              <?php }else{?>
              <input type="radio" name="watermark_switch" value="true" />
              {lang='开启'}
              <input type="radio"   id="watermark_switch" name="watermark_switch" value="false"  checked="checked" />
              {lang='关闭'}
              <?php }?></td>
            <td></td>
          </tr>
          <tr>
            <td>{lang='水印位置'}：</td>
            <td><select name="watermark_place" id="watermark_place">
                <option value="0" <?php if($config['watermark_place']==0){ ?> selected="selected" <?php } ?>>{lang='随机'}</option>
                <option value="1" <?php if($config['watermark_place']==1){ ?> selected="selected" <?php } ?> >{lang='左上'}</option>
                <option value="2" <?php if($config['watermark_place']==2){ ?> selected="selected" <?php } ?> >{lang='中上'}</option>
                <option value="3" <?php if($config['watermark_place']==3){ ?> selected="selected" <?php } ?>>{lang='右上'}</option>
                <option value="4" <?php if($config['watermark_place']==4){ ?> selected="selected" <?php } ?>>{lang='左中'}</option>
                <option value="5" <?php if($config['watermark_place']==5){ ?> selected="selected" <?php } ?>>{lang='正中'}</option>
                <option value="6" <?php if($config['watermark_place']==6){ ?> selected="selected" <?php } ?>>{lang='右中'}</option>
                <option value="7" <?php if($config['watermark_place']==7){ ?> selected="selected" <?php } ?>>{lang='左下'}</option>
                <option value="8" <?php if($config['watermark_place']==8){ ?> selected="selected" <?php } ?>>{lang='中下'}</option>
                <option value="9" <?php if($config['watermark_place']==9){ ?> selected="selected" <?php } ?>>{lang='右下'}</option>
              </select></td>
            <td></td>
          </tr>
          <tr>
            <td>{lang='水印图片'}：</td>
            <td><input class="regular-text" type='text' value="{$config['img_watermark_logo']}" name="img_watermark_logo" id="img_watermark_logo" /></td>
            <td></td>
          </tr>
        </tbody>
      </table>
    
      </div>
      
    </div>
    <div class="submit_body">
        <button class="regular-button" type="submit" >{lang='保存'}</button>
   </div>
    
    </form>
    <script type="text/javascript"> 
  $("#usual ul").idTabs(); 
   </script>
   
   
    
    </div>
      
  </div>
</div>
</body></html>