<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="setting.aspx.cs" Inherits="HeyuanHouse.Web.backend.setting" %>
<!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="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js"></script>
</head>
<body>

<div class="sdcms_notice"><span>管理操作：</span><a href="?">系统设置</a><!--　┊　<a href="?">会员设置</a>--></div>
<br>
<ul id="sdcms_sub_title">
	<li class="sub"><a href="javascript:void(0)" onClick="selectTag('tagContent0',this)">系统设置</a></li>
	<li class="unsub"><a href="javascript:void(0)" onClick="selectTag('tagContent1',this)">数据连接</a></li>
	<li class="unsub"><a href="javascript:void(0)" onClick="selectTag('tagContent2',this)">过滤设置</a></li>
	<li class="unsub"><a href="javascript:void(0)" onClick="selectTag('tagContent3',this)">生成设置</a></li>
	<li class="unsub"><a href="javascript:void(0)" onClick="selectTag('tagContent4',this)">上传设置</a></li>
</ul>
<div id="sdcms_right_b">
	<script>	function checkadd()	{	if (document.add.t0.value=='')	{	alert('网站名称不能为空');	document.add.t0.focus;	return false	}	if (document.add.t1.value=='')	{	alert('网站域名不能为空');	document.add.t1.focus;	return false	}	if (document.add.t2.value=='')	{	alert('系统路径不能为空');	document.add.t2.focus;	return false	}	if (document.add.t3.value=='')	{	alert('请选择文件后缀');	document.add.t3.focus;	return false	}	}	</script><form name="add" method="post" action="?action=save&act=save&id=" onSubmit='return checkadd()'>
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"  id="tagContent0">
    <tr>
      <td width="12%" align="center" class="tdbg">网站名称：      </td>
      <td class="tdbg"><input name="t0" type="text" class="input" value="时代网站信息管理系统" size="30"></td>
    </tr>
    <tr class="tdbg">
      <td align="center">网站域名：      </td>
      <td><input name="t1" type="text" class="input" value="http://www.hy520.cn"  size="30">　<span>形式为：http://www.sdcms.cn　不需要加“/”</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">系统目录：</td>
      <td><input name="t2" type="text" class="input" value="/"  size="30">　<span>根目录为："/",虚拟目录形式为："/sdcms/",不建议随意更改</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">是否缓存：</td>
      <td><input name="t6" type="radio" value="True" onclick="$('#cookies')[0].style.display='block';" checked id="t6_0"><label for="t6_0">开启</label> <input name="t6" type="radio"  value="False" onclick="$('#cookies')[0].style.display='none';"  id="t6_1"><label for="t6_1">关闭</label></td>
    </tr>
	<tr class="tdbg" id="cookies">
      <td align="center">缓存前缀：</td>
      <td><input name="t12" type="text" class="input" value="7Mj2Ur1Vb6Kd"  size="30">　<span>如果有多个站点，请设置不同的值</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">管理日志：</td>
      <td><input name='t18' type='radio' value='True'  id="t18_0"><label for="t18_0">开启</label> <input name='t18' type='radio'  value='False' checked id="t18_1"><label for="t18_1">关闭</label> (<span>关闭则只记录登陆日志</span>)</td>
    </tr>
	<tr class="tdbg">
      <td align="center" width="14%">评论开关：</td>
      <td><input name='t7' type='radio' value='0'  id="t7_0"><label for="t7_0">关闭</label> <input name='t7' type='radio'  value='1' checked id="t7_1"><label for="t7_1">开启</label></td>
    </tr>
	<tr class="tdbg">
      <td align="center">评论审核：</td>
      <td><input name='t8' type='radio' value='0'  id="t8_0"><label for="t8_0">关闭</label> <input name='t8' type='radio'  value='1' checked id="t8_1"><label for="t8_1">开启</label></td>
    </tr>
	<tr class="tdbg dis">
      <td align="center">编 辑 器：</td>
      <td><select name="t13" id="t13"><option value="0" selected>SDCMS默认</option></select></td>
    </tr>
	<tr class="tdbg">
      <td align="center">关 键 字：</td>
      <td><textarea name="t4"  rows="5"  class="inputs" id="t4">关键字</textarea></td>
    </tr>
	<tr class="tdbg">
      <td align="center">网站描述：</td>
      <td><textarea name="t5"  rows="5"  class="inputs" id="t5">描述</textarea></td>
	</tr>
	</table>
	
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="dis" id="tagContent1">
	<tr class="tdbg">
      <td align="center"  width="12%">数据类型：</td>
      <td><input name="c1" type="radio" value="True" checked onclick="$('#c0')[0].style.display='block';$('#c1')[0].style.display='block';$('#c2')[0].style.display='none';$('#c3')[0].style.display='none';$('#c4')[0].style.display='none';$('#c5')[0].style.display='none';" id="c1_0"><label for="c1_0">Access</label> <input name="c1" type="radio" value="False"  onclick="$('#c0')[0].style.display='none';$('#c1')[0].style.display='none';$('#c2')[0].style.display='block';$('#c3')[0].style.display='block';$('#c4')[0].style.display='block';$('#c5')[0].style.display='block';" id="c1_1"><label for="c1_1">MsSql</label></td>
    </tr>
	<tr class="tdbg" id="c0">
      <td align="center">数据路径：</td>
      <td><input name="c2" type="text" class="input" value="Data"  size="30">　<span>如：Data，如果目录不存在，系统将自动创建</span></td>
    </tr>
	<tr class="tdbg" id="c1">
      <td align="center">数据名称：</td>
      <td><input name="c3" type="text" class="input" value="8Hr1Mg6Rn3Ae.mdb"  size="30">　<span>不建议使用ASP,ASA等后缀</span></td>
    </tr>
	<tr class="tdbg dis" id="c2">
      <td align="center">数据库IP：</td>
      <td><input name="c4" type="text" class="input" value="(local)"  size="30">　<span>本地用 (local) 外地用IP</span></td>
    </tr>
	<tr class="tdbg dis" id="c3">
      <td align="center">数据库名：</td>
      <td><input name="c5" type="text" class="input" value="sdcms"  size="30">　<span>MSSQL 数据库名</span></td>
    </tr>
	<tr class="tdbg dis" id="c4">
      <td align="center">连接帐户：</td>
      <td><input name="c6" type="text" class="input" value="sa"  size="30">　<span>连接MSSQL数据库的用户名</span></td>
    </tr>
	<tr class="tdbg dis" id="c5">
      <td align="center">连接密码：</td>
      <td><input name="c7" type="password" class="input" value="123456"  size="30">　<span>连接MSSQL数据库的密码</span></td>
    </tr>
	<tr class="tdbg">
      <td class="sdcms_notice" colspan="2"><b>注意事项：</b>数据连接设置不可随意调整，要先转移好数据，才能确保网站正常运行！</td>
    </tr>
	</table>
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"  class="dis" id="tagContent2">
	<tr class="tdbg">
      <td align="center">HTML标签过滤：</td>
      <td><textarea name="t9"  rows="6" class="inputs">Table|TBODY|TR|TD|Body|Meta|iframe|SCRIPT|form|style|div|object|TEXTAREA</textarea><span>多标签请用“|”分隔</span></td>
	</tr>
	<tr class="tdbg">
      <td align="center">HTML事件过滤：</td>
      <td><textarea name="t10" rows="6" class="inputs">javascript:|Document.|onerror|onload|onmouseover</textarea><span>多标签请用“|”分隔</span></td>
	</tr>
	<tr class="tdbg">
      <td align="center">脏话过滤：</td>
      <td><textarea name="t11" rows="6" class="inputs">操你妈|Fuck|TMD|NND|我操|我日|妈比</textarea><span>多标签请用“|”分隔</span></td>
	</tr>
	<tr class="tdbg">
      <td align="center">信息描述长度：</td>
      <td><input name="t22" type="text" class="input" value="150"  size="30">　<span>信息描述自动截取长度，建议：150-200</span></td>
	</tr>
	</table>
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="dis" id="tagContent3">
	<tr class="tdbg">
      <td align="center">生成目录：</td>
      <td><input name="t17" type="text" class="input" value="html/"  size="30">　<span>根目录为空",也可以指定为某一目录，形式为："sdcms/"</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">文件名称：</td>
      <td><input name="t16" type="text" class="input" value="{id}"  size="30">　<span>仅为偏好设置，不作为全局参数<br>可用标签：{id}：编号　{y}:年　{m}:月　{d}:日　{h}:时　{mm}:分　{s}:秒,不支持"/"</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">文件后缀：</td>
      <td><select name="t3" id="t3">
	    <option selected>请选择文件后缀</option>
		<option value=".htm" >.Htm</option>
        <option value=".html" selected>.Html</option>
        <option value=".shtml" >.Shtml</option>
      </select>　<span>如果更改了后缀需要生成全站才会生效</span>      </td>
    </tr>
	<tr class="tdbg">
      <td colspan="2">　 <b>以下为偏好设置，不作为全局参数：</b></td>
    </tr>
	<tr class="tdbg">
      <td align="center">公告管理：</td>
      <td><input name="t15" type="checkbox" value="1" checked id="1"><label for="1">生成首页</label>
	  <input name="t15" type="checkbox" value="2" checked id="2"><label for="2">生成分类</label>
	  <input name="t15" type="checkbox" value="3" checked id="3"><label for="3">生成信息</label>
	  </td>
    </tr>
	<tr class="tdbg">
      <td align="center">分类管理：</td>
      <td><input name="t15" type="checkbox" value="4" checked id="4"><label for="4">生成分类</label>
	  <input name="t15" type="checkbox" value="5" checked id="5"><label for="5">生成地图</label>
	  </td>
    </tr>
	<tr class="tdbg">
      <td align="center">信息管理：</td>
      <td><input name="t15" type="checkbox" value="6" checked id="6"><label for="6">允许评论</label>
	  <input name="t15" type="checkbox" value="7" checked id="7"><label for="7">生成首页</label>
	  <input name="t15" type="checkbox" value="8" checked id="8"><label for="8">生成分类</label>
	  <input name="t15" type="checkbox" value="9"  id="9"><label for="9">生成关联信息</label>
	  <input name="t15" type="checkbox" value="10" checked id="10"><label for="10">生成信息</label>
	  </td>
    </tr>
	<tr class="tdbg">
      <td colspan="2">　 <b>Google地图选项：</b></td>
      </tr>
	  <tr>
      <td align="center" class="tdbg">数　　量：</td>
      <td class="tdbg"><input name="t21" type="text" class="input" value="20" onKeypress='if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;' />　<span>为0时显示全部</span></td>
    </tr>
	<tr>
      <td align="center" class="tdbg">频　　率：</td>
      <td class="tdbg"><select name="t21"><option value="always" >Always</option><option value="hourly" >Hourly</option><option value="daily" selected>Daily</option><option value="weekly" >Weekly</option><option value="monthly" >Monthly</option><option value="yearly" >Yearly</option></select></td>
    </tr>
	<tr>
      <td align="center" class="tdbg">优 先 权：</td>
      <td class="tdbg"><input name="t21" type="text" class="input" value="0.8" />　<span>0-1之间的数字</span></td>
    </tr> 
	</table>
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="dis" id="tagContent4">
	<tr class="tdbg">
      <td align="center" width="12%">上传目录：</td>
      <td><input name="t14" type="text" class="input" value="Upfile"  size="40">　<span>更改默认设置后可能会影响以前的信息</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">文件类型：</td>
      <td><input name="t19" type="text" class="input" value="jpeg|gif|jpg|png|bmp|rar|zip|flv|swf"  size="40">　<span>允许上传的文件类型，多个请用“|”格开</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">文件限制：</td>
      <td><input name="t20" type="text" class="input" value="200" onKeypress='if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;'  size="40">　<span>允许上传的文件最大值，单位：KB</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">图像组件：</td>
      <td><select name="f0" size="1" id="f0"><option value="false" >关闭</option><option value="True" selected>AspJpeg×</option></select></td>
    </tr>
	<tr class="tdbg">
      <td align="center">缩 略 图：</td>
      <td>宽度：<input name="f13" type="text" value="330"  onKeypress='if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;' class="input" size="5" /> 高度：<input name="f14" type="text" value="250" onKeypress='if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;' class="input" size="5" />　<span>为0时，按比例缩小</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">算　　法：</td>
      <td><select name="f15" size="1" onchange="$('#sf0')[0].style.display='none';$('#sf1')[0].style.display='none';$('#sf2')[0].style.display='none';$('#sf'+this.value)[0].style.display='inline';"><option value="0" selected>常规法</option><option value="1" >裁剪法</option><option value="2" >补充法</option></select>　<span id="sf0" >常规法：宽度和高度都大于0时，直接缩小成指定大小，其中一个为0时，按比例缩小</span><span id="sf1" class="dis">裁剪法：宽度和高度都大于0时，先按最佳比例缩小再裁剪成指定大小，其中一个为0时，按比例缩小</span><span id="sf2" class="dis">补充法：在指定大小的背景图上附加上按最佳比例缩小的图片</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">水印类型：</td>
      <td><input name="f1" type="radio" value="True" checked onclick="$('#jpeg01')[0].style.display='block';$('#jpeg02')[0].style.display='block';$('#jpeg03')[0].style.display='block';$('#jpeg04')[0].style.display='block';$('#jpeg05')[0].style.display='block';$('#jpeg06')[0].style.display='none';$('#jpeg07')[0].style.display='none';$('#jpeg08')[0].style.display='none';" id="f1_0"><label for="f1_0">文字水印</label> <input name="f1" type="radio" value="False"  onclick="$('#jpeg01')[0].style.display='none';$('#jpeg02')[0].style.display='none';$('#jpeg03')[0].style.display='none';$('#jpeg04')[0].style.display='none';$('#jpeg05')[0].style.display='none';$('#jpeg06')[0].style.display='block';$('#jpeg07')[0].style.display='block';$('#jpeg08')[0].style.display='block';" id="f1_1"><label for="f1_1">图片水印</label></td>
    </tr>
	<tr class="tdbg">
      <td align="center">水印质量：</td>
      <td><input name="f2" type="text" value="100" onKeypress='if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;' class="input" />　<span>0-100 为100时质量最好</span></td>
    </tr>
	<tr class="tdbg " id="jpeg01">
      <td align="center">水印文字：</td>
      <td><input name="f3" type="text" value="SDCMS" class="input" /></td>
    </tr>
	<tr class="tdbg " id="jpeg02">
      <td align="center">文字字体：</td>
      <td><select name="f4" size="1">
	  
	  <option value="宋体" selected>宋体</option>
	  
	  <option value="楷体_GB2312" >楷体_GB2312</option>
	  
	  <option value="黑体" >黑体</option>
	  
	  <option value="隶书" >隶书</option>
	  
	  <option value="幼圆" >幼圆</option>
	  
	  <option value="Arial" >Arial</option>
	  
	  <option value="Verdana" >Verdana</option>
	  
	  </select></td>
    </tr>
	<tr class="tdbg " id="jpeg03">
      <td align="center">字体大小：</td>
      <td><input name="f5" type="text" value="12" onKeypress='if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;' class="input" />　<span>单位：Px</span></td>
    </tr>
	<tr class="tdbg " id="jpeg04">
      <td align="center">字体颜色：</td>
      <td><input name="f6" type="text" value="#000000" maxlength="7" class="input" />　<span>如：#000000</span></td>
    </tr>
	<tr class="tdbg " id="jpeg05">
      <td align="center">是否加粗：</td>
      <td><input name="f7" type="radio" value="1"  id="f7_0"><label for="f7_0">是</label> <input name="f7" type="radio" value="0" checked id="f7_1"><label for="f7_1">否</label></td>
    </tr>
	<tr class="tdbg dis" id="jpeg06">
      <td align="center">水印图片：</td>
      <td><input name="f8" type="text" value="../Upfile/logo.gif" class="input" /><iframe id="UpLoadIframe" src="sdcms_up.asp?t0=1&t1=f8&t2=UpLoadIframe&t3=0&t4=0" scrolling="no" frameborder="0" width="100%" height="20"  ></iframe></td>
    </tr>
	<tr class="tdbg dis" id="jpeg07">
      <td align="center" >透 明 度：</td>
      <td><input name="f9" type="text" value="1" class="input" />　<span>0-1之间的数字</span></td>
    </tr>
	<tr class="tdbg dis" id="jpeg08">
      <td align="center">图片底色：</td>
      <td><input name="f10" type="text" value="" class="input" />　<span>如：#000000　为空时不去除水印图底色</span></td>
    </tr>
	<tr class="tdbg">
      <td align="center">坐标起点：</td>
      <td><select name="f11" size="1">
	  <option value="0" >左上</option>
	  <option value="1" >左下</option>
	  <option value="2" >居中</option>
	  <option value="3" >右上</option>
	  <option value="4" selected>右下</option>
	  </select></td>
    </tr>
	<tr class="tdbg">
      <td align="center">坐标位置：</td>
      <td>X轴：<input name="f12_0" type="text" value="0" class="input" />　Y轴：<input name="f12_1" type="text" value="0" class="input" />　<span>只能是数字</span></td>
    </tr>
	</table>
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td><input name="Submit" type="submit" class="bnt" value="保 存"></td>
    </tr>
	</table>
	</form>
  
  
</div>
</body>
</html>
