{* <?php die('duotaopu');?> *}
{include file="common/header.php"}
<body class="body-main">


<ul id="admin_sub_title">
	<li class="sub"><a href="javascript:void(0)" onClick="selectTab('config0',this)">系统设置</a></li>
</ul>
<div id="admin_right_b">
<script>
$(function() {
	$("#web_close_true").click(function(){
		$("#web_close_reason").show();
	});
	$("#web_close_false").click(function(){
		$("#web_close_reason").hide();
	});
	$("#dosave").click(function(){
		showDialog();
		$.ajax({
			type:"post",
			url:"?m=config&a=update&_t="+Math.random()*10,
			data:$("form").serialize(),
			dataType:'json',
			timeout:28000,
			global:false,
			success:function(data){
				if(data.status==1){
					showAlert('success','恭喜你，修改成功');
				}else{
					showAlert('error',data.info);
				}
			}
		});
	 return false;
	});
});
</script>
<form method="post">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="config0">
    <tr class="tdbg">
      <td width="150" align="right">网站名称：</td>
      <td class="tdbg"><input name="con[web_name]" type="text" class="input" value="{$web_name}" size="40"></td>
    </tr>
	<tr class="tdbg">
      <td align="right">首页长标题：</td>
      <td class="tdbg"><input name="con[web_seo_name]" type="text" class="input" value="{$web_seo_name}" size="40">　<span>首页长标题，显示在网站名称后面</span></td>
    </tr>
    <tr class="tdbg">
      <td align="right">网站地址：</td>
      <td><input name="con[web_url]" type="text" class="input" value="{$web_url}" size="40">　<span>你的网址,以<font color=red>http://</font>开头,<font color=red>/</font>结尾</font></span></td>
    </tr>

	<!-- <tr class="tdbg">
      <td align="right">淘宝客PID：</td>
      <td><input name="con[alimama_pid]" type="text" class="input" value="{$alimama_pid}" size="40">　<span>阿里妈妈的淘宝客PID , 如:<font color=red>mm_12345678_x_x</font></span></td>
    </tr> -->

	<tr class="tdbg">
      <td align="right">首页关键字：</td>
      <td><input name="con[web_keywords]" type="text" class="input" value="{$web_keywords}" style="width:440px">　<span>首页关键字keywords,以半角逗号隔开</span></td>
    </tr>

	<tr class="tdbg">
      <td align="right">首页网站描述：</td>
      <td><textarea name="con[web_description]"  rows="3"  class="inputs" style="width:450px;padding:1px;">{$web_description}</textarea></td>
    </tr>

    <tr class="tdbg">
      <td align="right">网站备案号：</td>
      <td class="tdbg"><input name="con[web_beian]" type="text" class="input" value="{$web_beian}" size="40"></td>
    </tr>

	<tr class="tdbg">
      <td align="right">统计代码：</td>
      <td><textarea name="con[web_tongji]"  rows="3"  class="inputs" style="width:450px;padding:1px;">{$web_tongji}</textarea></td>
    </tr>

	<tr class="tdbg">
      <td align="right">淘点金代码：</td>
      <td><textarea name="con[web_tdjcode]"  rows="3"  class="inputs" style="width:450px;padding:1px;">{$web_tdjcode}</textarea><span style="color:red">淘点金可以转换淘宝客，登录阿里妈妈获取</span></td>
    </tr>

	<tr class="tdbg">
      <td align="right">默认模板：</td>
      <td><select name="con[default_theme]">
	  {foreach $themelist as $vo}
		<option value="{$vo.dir}"{if $default_theme==$vo.dir} selected{/if}>{$vo.dir}</option>
	  {/foreach}
	</select>　<span>位于template文件夹下</span>      </td>
    </tr>

	<tr class="tdbg">
      <td align="right">浏览方式：</td>
      <td><select name="con[web_url_rewrite]">
		<option value="0"{if !$web_url_rewrite} selected{/if}>动态方式</option>
		<option value="1"{if $web_url_rewrite} selected{/if}>伪静态方式</option>
	</select>　<span>不支持伪静态的主机请选择动态方式</span>      </td>
    </tr>

	<tr class="tdbg">
      <td align="right">是否关闭站点：</td>
      <td><input type="radio" id="web_close_true" name="con[web_close]" value="1"{if $web_close} checked{/if}>是
			<input type="radio" id="web_close_false" name="con[web_close]" value="0"{if !$web_close} checked{/if}>否</td>
    </tr>
	
	<tr class="tdbg" id="web_close_reason"{if !$web_close} style="display:none"{/if}>
		<td align="right">关闭站点的原因：</td>
		<td><textarea name="con[web_closecon]"  rows="3"  class="inputs" style="width:450px;padding:1px;">{$web_closecon}</textarea></td>
	</tr>
	
	<tr class="tdbg">
      <td align="right">GZIP页面压缩：</td>
      <td><input type="radio" name="con[web_gzip_open]" value="1"{if $web_gzip_open} checked{/if}>开启
			<input type="radio" name="con[web_gzip_open]" value="0"{if !$web_gzip_open} checked{/if}>关闭　<span>加快访问速度，轻微加重服务器负担，<font color=red>前提是开启了zlib扩展函数</font></span></td>
    </tr>

	<tr class="tdbg">
      <td align="right">调试模式：</td>
      <td><input type="radio" name="con[web_debug]" value="1"{if $web_debug} checked{/if}>开启
			<input type="radio" name="con[web_debug]" value="0"{if !$web_debug} checked{/if}>关闭　<span><font color=red>会暴露错误信息，不需要开启</font>，前提display_errors设置为On</span></td>
    </tr>

	</table>

	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr class="tdbg">
	  <td width="130" align="center" class="tdbg">&nbsp;</td>
      <td><div class="aui_buttons"  style="text-align:left;"><button type="submit" id="dosave" class="aui_state_highlight">保存设置</button> <button type="reset" class="aui_state_highlight">重置</button></div></td>
    </tr>
	</table>
	</form>
<div class="runtime"></div>  
</div>
</body>
</html>