<!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="admin/admin/template/style/admin.css" rel="stylesheet" type="text/css" />
<script src="include/js/jquery.js" type="text/javascript"></script>
<script src="include/js/admin.js" type="text/javascript"></script>
</head>
<body>
<div class="maintop">当前位置：<?php echo $toptxt ?></div>
<div class="main">
  <?php if($a==''){ ?>
  <ul class="switchs">
    <li id="s1">基本设置</li>
    <li id="s2" class="c">上传设置</li>
    <li id="s3" class="c">其他设置</li>
    <li id="s4" class="c">伪静态</li>
	<li id="s5" class="c">统计代码</li>
  </ul>
  <script type="text/javascript">
  	$(function(){
  	 	$tab='<?php echo $show_tab ?>';
  	 	if($tab =="mobile")
  	 	{
  	 		$("#s6").removeClass("c");
  	 		$("#s1").addClass("c");
  	 		$("#infos1").hide();
  	 		$("#infos6").show();
  	 	}
  	}
  );
  </script>
  <div class="info">
    <form action="?c=ld_sys&run=1&d=<?php echo $show_tab; ?>" method="post">
      <div id="infos1"  >
        <dl style="border:0;">
          <dt>网站地址：</dt>
          <dd>
            <input name="http_path" type="text" class="int" value="<?php echo $d['http_path'] ?>" />
          </dd>
        </dl>
        <dl>
          <dt>网站名称：</dt>
          <dd>
            <input name="site_title" type="text" class="int" value="<?php echo $d['site_title'] ?>" />
          </dd>
        </dl>
        <dl>
          <dt>网站Logo：</dt>
          <dd>
            <input name="site_logo" id="site_logo" type="text" class="int" value="<?php echo $d['site_logo'] ?>" />
          </dd>
          <dd>
            <iframe frameborder="0" width="80" height="26" scrolling="No" id="flitpic" name="flitpic" src="admin.php?c=uploads&a=loadup&inputid=site_logo&fileExt=*.jpg;*.jpeg;*.gif;*.png&fileover=1"></iframe>          
            <dd class="t">推荐大小为：310像素*65像素</dd>
          </dd>
          
        </dl>
        
        <dl>
          <dt>后台Logo：</dt>
          <dd>
            <input name="login_logo" id="login_logo" type="text" class="int" value="<?php echo $d['login_logo'] ?>" />
          </dd>
          <dd>
            <iframe frameborder="0" width="80" height="26" scrolling="No" id="flitpic" name="flitpic" src="admin.php?c=uploads&a=loadup&inputid=login_logo&fileExt=*.jpg;*.jpeg;*.gif;*.png&fileover=1"></iframe>
            <dd class="t">推荐大小为：160像素*65像素</dd>
          </dd>
          
        </dl>
       
        <dl>
          <dt>首页关键词：</dt>
          <dd>
            <input name="site_keywords" type="text" class="int" value="<?php echo $d['site_keywords'] ?>" />
          </dd>
          <dd class="t">显示于首页 meta keywords</dd>
        </dl>
        <dl>
          <dt>首页简介：</dt>
          <dd>
            <textarea name="site_description" class="int" style="width:300px; height:50px;"><?php echo $d['site_description'] ?></textarea>
          </dd>
          <dd class="t">显示于首页 meta description</dd>
        </dl>
       
        <dl>
          <dt>调试模式：</dt>
          <dd>
            <label>
            <input type="radio" name="cache_auto" value="1" <?php if($d['cache_auto']==1)echo ' checked="checked"' ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="cache_auto" value="0" <?php if($d['cache_auto']==0)echo ' checked="checked"' ?> />
            关闭</label>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd class="t">开启调试模式将关闭模板缓存，便于调试模板。正式运行请关闭，关闭后提升效率约1倍</dd>
        </dl>
        <dl>
          <dt>PHP错误提示：</dt>
          <dd>
            <label>
            <input type="radio" name="mode" value="debug" <?php if($inc['mode']=='debug')echo ' checked="checked"' ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="mode" value="0" <?php if($inc['mode']!='debug')echo ' checked="checked"' ?> />
            关闭</label>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd class="t">如运行出现未知情况，可开启PHP错误提示查看详情，正式运行请关闭提示，提高安全性。</dd>
        </dl>
      </div>
      <div id="infos2" style="display: none;">
        <dl style="border:0;">
          <dt>允许上传类型：</dt>
          <dd>
            <input name="filetype" type="text" class="int" value="<?php echo $d['filetype'] ?>" style="width:300px;"/>
          </dd>
          <dd class="t">多个类型用,分割</dd>
        </dl>
        <dl>
          <dt>允许最大上传：</dt>
          <dd>
            <input name="filesize" type="text" class="int" value="<?php echo round($d['filesize']/1024) ?>" style="width:60px;"/>
            K</dd>
        </dl>
        <dl style="border:2px;">
          <dt>自动缩略图：</dt>
          <dd>
            <label>
            <input type="radio" name="imgcaling" value="1" <?php if($d['imgcaling']==1)echo ' checked="checked"' ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="imgcaling" value="0" <?php if($d['imgcaling']==0)echo ' checked="checked"' ?> />
            关闭</label>
          </dd>
          <dd class="t">开启后全站上传图片均会自动缩略</dd>
        </dl>
        <dl>
          <dt>缩略图大小：</dt>
          <dd>宽</dd>
          <dd>
            <input name="img_w" type="text" class="int" value="<?php echo $d['img_w'] ?>" style="width:30px;"/>
            px</dd>
          <dd>高</dd>
          <dd>
            <input name="img_h" type="text" class="int" value="<?php echo $d['img_h'] ?>" style="width:30px;"/>
            px</dd>
          <dd class="t">超过此大小图片自动缩略</dd>
        </dl>
        <dl style="border:2px;">
          <dt>自动水印：</dt>
          <dd>
            <label>
            <input type="radio" name="imgwater" value="1" <?php if($d['imgwater']==1)echo ' checked="checked"' ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="imgwater" value="0" <?php if($d['imgwater']==0)echo ' checked="checked"' ?> />
            关闭</label>
          </dd>
        </dl>
         <dl style="border:2px;">
          <dt>文字水印：</dt>
          <dd>
            <label>
            <input type="radio" name="textwateryn" value="1" <?php if($d['textwateryn']==1)echo ' checked="checked"' ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="textwateryn" value="0" <?php if($d['textwateryn']==0)echo ' checked="checked"' ?> />
            关闭</label>
          </dd>
        </dl>
        <dl><dt>文字水印内容：</dt><dd><input name="textwater" type="text" class="int" value="<?php echo $d['textwater'] ?>" style="width:150px;"/></dd></dl>
        <dl><dt>文字大小：</dt><dd><input name="textwater_size" type="text" class="int" value="<?php echo $d['textwater_size'] ?>" style="width:150px;"/></dd></dl>
        <dl><dt>文字颜色：</dt>
        <dt><input name="img_text_r" type="text" class="int" value="<?php echo $d['img_text_r'] ?>" style="width:23px;"/>&nbsp;<input name="img_text_g" type="text" class="int" value="<?php echo $d['img_text_g'] ?>" style="width:23px;"/>&nbsp;<input name="img_text_b" type="text" class="int" value="<?php echo $d['img_text_b'] ?>" style="width:23px;"/></dt>
        </dl>
        <dl>
          <dt>水印位置：</dt>
          <dd>
            <label>
            <input type="radio" name="imgwater_t" value="1" <?php if($d['imgwater_t']==1)echo ' checked="checked"' ?> />
            左下</label>
            &nbsp;
            <label>
            <input type="radio" name="imgwater_t" value="2" <?php if($d['imgwater_t']==2)echo ' checked="checked"' ?> />
            右下</label>
            &nbsp;
            <label>
            <input type="radio" name="imgwater_t" value="3" <?php if($d['imgwater_t']==3)echo ' checked="checked"' ?> />
            左上</label>
            &nbsp;
            <label>
            <input type="radio" name="imgwater_t" value="4" <?php if($d['imgwater_t']==4)echo ' checked="checked"' ?> />
            右上</label>
            &nbsp;</dd>
        </dl>
        <dl>
          <dt>水印图：</dt>
          <dd><img src="<?php echo $d['imgwater_url'];?>" alt="" /></dd>
          <dd>
          <input name="imgwater_url" id="imgwater_url" type="text" class="int" value="<?php echo $d['imgwater_url'] ?>" />
          </dd><dd><iframe frameborder="0" width="300" height="26" scrolling="No" id="imgwater_url" name="imgwater_url" src="admin.php?c=uploads&a=loadup&inputid=imgwater_url&fileExt=*.jpg;*.jpeg;*.gif;*.png&fileover=1&water=1"></iframe></dd>
       <dd>推荐大小200*100以内</dd>
        </dl>
      </div>
	  <div id="infos5" style="display:none;">
	 <dl>
	  <dt>统计代码:</dt>
	  	<dd>
		<textarea name="stat_code" style="width:400px; height:250px;" ><?php echo $stat_code; ?></textarea>
		</dd>
	  </dl>
	  </div>
		
	  
      <div id="infos3" style="display:none;">
        <dl style="border:0;">
          <dt>静态生成：</dt>
          <dd>
            <label>
            <input type="radio" name="site_html" value="1" <?php if($d['site_html']==1)echo ' checked="checked"';?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="site_html" value="0" <?php if($d['site_html']==0)echo ' checked="checked"'; ?> />
            关闭</label>
          </dd>
          <dd class="t">栏目静态生成不受此设置影响</dd>
        </dl>
        <dl>
          <dt>静态生成规则：</dt>
          <dd>
            <input name="site_html_rules" type="text" class="int" value="<?php echo $d['site_html_rules'] ?>" style="width:120px;"/>
          </dd>
          <dd class="t">仅针对内容生成，注意目录请用“/”分割，栏目规则请在栏目设置中修改</dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd class="t">规则可用参数：年<span>[y]</span>&nbsp;&nbsp;月<span>[m]</span>&nbsp;&nbsp;日<span>[d]</span>&nbsp;&nbsp;内容ID<span>[id]</span>&nbsp;，&nbsp;内容文件名<span>[file]</span></dd>
        </dl>
        <dl>
          <dt>缓存时间：</dt>
          <dd>
            <input name="cache_time" type="text" class="int" value="<?php echo $d['cache_time'] ?>" style="width:60px;"/>
          </dd>
          <dd class="t">数据缓存时间，单位秒</dd>
        </dl>
        <dl>
          <dt>验证码：</dt>
          <dd>
            <label>
            <input type="radio" name="vercode" value="1" <?php if($inc['vercode']==1)echo ' checked="checked"' ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="vercode" value="0" <?php if($inc['vercode']==0)echo ' checked="checked"' ?> />
            关闭</label>
          </dd>
          <dd><img src="include/vercode.php" width="58" height="25"/></dd>
          <dd class="t">如无法看到左图验证码，请关闭验证码功能</dd>
        </dl>
        <?php if(funsinfo('comment','isshow')==1){ ?>
        <dl>
          <dt>评论需审核：</dt>
          <dd>
            <label>
            <input type="radio" name="comment_audit" value="1" <?php if($d['comment_audit']==1)echo ' checked="checked"' ?> />
            是</label>
            &nbsp;
            <label>
            <input type="radio" name="comment_audit" value="0" <?php if($d['comment_audit']==0)echo ' checked="checked"' ?> />
            否</label>
          </dd>
        </dl>
        <dl>
          <dt>评论限制：</dt>
          <dd>
            <label>
            <input type="radio" name="comment_user" value="1" <?php if($d['comment_user']==1)echo ' checked="checked"' ?> />
            仅登录会员</label>
            &nbsp;
            <label>
            <input type="radio" name="comment_user" value="0" <?php if($d['comment_user']==0)echo ' checked="checked"' ?> />
            所有人</label>
          </dd>
        </dl>
        <?php }else{ ?>
        <input name="comment_audit" type="hidden" value="1" />
        <input name="comment_user" type="hidden" value="1" />
        <?php } ?>
      </div>
      <div id="infos4" style="display:none;">
        <dl style="border:0;">
          <dt>伪静态：</dt>
          <dd>
            <label>
            <input type="radio" name="rewrite_open" value="1" <?php if($r['rewrite_open']==1)echo ' checked="checked"'; ?> />
            开启</label>
            &nbsp;
            <label>
            <input type="radio" name="rewrite_open" value="0" <?php if($r['rewrite_open']==0)echo ' checked="checked"'; ?> />
            关闭</label>
          </dd>
        </dl>
        <dl>
          <dt>系统根目录：</dt>
          <dd>
            <input name="rewrite_dir" type="text" class="int" value="<?php echo $r['rewrite_dir'] ?>" style="width:100px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>如你的网站访问地址是http://www.5545.cn/i/，这里就填写/i/，如果系统放在根目录则无需修改</dd>
        </dl>
        <dl>
          <dt><?php echo moldsinfo('article','moldname');?>URL：</dt>
          <dd>
            <input name="rewrite_article" type="text" class="int" value="<?php echo $r['rewrite_article'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>ID：{id}&nbsp;&nbsp;文件名：{file}&nbsp;&nbsp;分页：{page}&nbsp;&nbsp;</dd>
        </dl>
        <dl>
          <dt><?php echo moldsinfo('article','moldname');?>栏目URL：</dt>
          <dd>
            <input name="rewrite_article_type" type="text" class="int" value="<?php echo $r['rewrite_article_type'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>栏目ID：{tid}&nbsp;&nbsp;文件名：{file}&nbsp;&nbsp;分页(必须)：{page}&nbsp;&nbsp;栏目标识(必须)：{type}</dd>
        </dl>
        <dl>
          <dt><?php echo moldsinfo('product','moldname');?>URL：</dt>
          <dd>
            <input name="rewrite_product" type="text" class="int" value="<?php echo $r['rewrite_product'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>ID：{id}&nbsp;&nbsp;文件名：{file}&nbsp;&nbsp;分页：{page}&nbsp;&nbsp;</dd>
        </dl>
        <dl>
          <dt><?php echo moldsinfo('product','moldname');?>栏目URL：</dt>
          <dd>
            <input name="rewrite_product_type" type="text" class="int" value="<?php echo $r['rewrite_product_type'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>栏目ID：{tid}&nbsp;&nbsp;文件名：{file}&nbsp;&nbsp;分页(必须)：{page}&nbsp;&nbsp;&nbsp;栏目标识(必须)：{type}</dd>
        </dl>
        <dl>
          <dt><?php echo moldsinfo('message','moldname');?>栏目URL：</dt>
          <dd>
            <input name="rewrite_message_type" type="text" class="int" value="<?php echo $r['rewrite_message_type'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>栏目ID：{tid}&nbsp;&nbsp;文件名：{file}&nbsp;&nbsp;分页(必须)：{page}&nbsp;&nbsp;</dd>
        </dl>
        <dl>
          <dt>专题URL：</dt>
          <dd>
            <input name="rewrite_special" type="text" class="int" value="<?php echo $r['rewrite_special'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>专题ID：{sid}&nbsp;&nbsp;文件名：{file}&nbsp;&nbsp;专题分页(必须)：{page}&nbsp;&nbsp;</dd>
        </dl>
        <dl>
          <dt>自定义页面URL：</dt>
          <dd>
            <input name="rewrite_labelcus_custom" type="text" class="int" value="<?php echo $r['rewrite_labelcus_custom'] ?>" style="width:250px;"/>
          </dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd>自定义页面文件名(必须)：{file}</dd>
        </dl>
        <dl>
          <dt>&nbsp;</dt>
          <dd><a href="?c=ld_sys&a=rewrite&article=<?php echo $r['rewrite_article'] ?>&article_type=<?php echo $r['rewrite_article_type'] ?>&product=<?php echo $r['rewrite_product'] ?>&product_type=<?php echo $r['rewrite_product_type'] ?>&message_type=<?php echo $r['rewrite_message_type'] ?>&special=<?php echo $r['rewrite_special'] ?>&labelcus_custom=<?php echo $r['rewrite_labelcus_custom'] ?>" target="_blank" style=" font-size:14px; font-weight:bold;">生成伪静态规则</a> (如修改过规则，请先提交保存)</dd>
        </dl>
      </div>
      <dl>
        <dt>&nbsp;</dt>
        <dd>
          <input type="submit" value="提 交" class="btnbig" />
        </dd>
      </dl>
    </form>
  </div>
  <?php } ?>
  <?php if($a=='ecache'){ ?>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><br />
        <br />
        <br />
        <br />
        <form action="?c=ld_sys&a=ecache&run=1" method="post">
          <label>
          <input name="tpl" type="checkbox" value="1" checked="checked" />
          更新模板缓存</label>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <label>
          <input name="tmp" type="checkbox" value="1" checked="checked" />
          更新数据缓存</label>
          <br />
          <br />
          <br />
          <input type="submit" value="提 交" class="btnbig" />
        </form></td>
    </tr>
  </table>
  <?php } ?>
</div>
</body>
</html>
