<!-- #include file="../conn.asp" -->
<!-- #include file="../const.asp" -->
<%call chksunzom()%>
<!-- #include file="../inc/md5.asp" -->
<html>
<head>
<title><%=dianming%> - 基本信息设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/sunzom.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<%
if instr(quanxs,"x1t")<=0 then  call sunzomqx()
%>
<%if request("hid1")="" then%>
<form name="form2">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/r_1.gif" alt="" /></td>
<td width="100%" background="../images/r_0.gif">
  <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>&nbsp;基本信息设置</td>
	  <td align="right">　</td>
    </tr>
  </table>
</td>
<td><img src="../images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
  <tr>
    <td width="28%" height="30" align="right">公司名称：</td>
    <td width="72%" class="category">
	<input type="text"  name="gsname" style="width:300px" value="<%=gsname%>" size="100" title="报表与汇总中显示的公司信息或名称"></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right"><b>系统名称：</b> </td>
    <td width="72%" class="category"><%if nowuserid=1 then%><input type="text"  name="dianming" style="width:300px" value="<%=dianming%>" title="登陆窗口以及系统顶部显示的名称"><%else%><%=dianming%><%end if%></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right"><b>系统(提醒)公告：</b> </td>
    <td width="72%" class="category">
        <textarea rows="3" name="gonggao" cols="57"  title="滚动公告与右下角工作提醒！"><%=gonggao%></textarea></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">公司账号：</td>
    <td width="72%" class="category">
	<textarea rows="3" name="gszhang" cols="57"  title="打印报表中需要的公司账号信息"><%=gszhang%></textarea></td>
  </tr>
<!--<tr>
    <td width="28%" height="30" align="right">菜单展示结构：</td>
    <td width="72%" class="category">
        <input type="radio" value="1" <%if cdjg=1 then%>checked<%end if%> name="cdjg">左右菜单&nbsp;&nbsp; 
		<input type="radio" value="0" <%if cdjg=0 then%>checked<%end if%> name="cdjg">顶部菜单 </td>
  </tr>-->
  <tr>
    <td width="28%" height="30" align="right">全局属性：</td>
    <td width="72%" class="category">
        <input type="checkbox"  title="启动此项报表和汇总页面出现【打印】按钮" name="allsx" value="dayin" <%if instr(allsx,"dayin")>0 then%>checked<%end if%>>打印启用&nbsp; 
		<input type="checkbox" name="allsx" value="bbnocz" <%if instr(allsx,"bbnocz")>0 then%>checked<%end if%>>报表显示操作&nbsp; <input type="checkbox"  title="启动此项左侧菜单上部出现【快捷菜单】可以设置常用的菜单" name="allsx" value="kjcd" <%if instr(allsx,"kjcd")>0 then%>checked<%end if%>>快捷菜单启用 
<input type="checkbox" name="allsx" value="isreg" <%if instr(allsx,"isreg")>0 then%>checked<%end if%>  title="启动此项系统开通账号注册">开通账号注册

<input type="checkbox" name="allsx" value="dingcd" <%if instr(allsx,"dingcd")>0 then%>checked<%end if%>  title="启动系统框架为顶部菜单形式">顶部菜单框架
<input type="checkbox" name="allsx" value="systix" <%if instr(allsx,"systix")>0 then%>checked<%end if%>  title="启动此项左下角出现工作提醒">系统提醒<br>

<%if nowuserid=1 then%><input type="checkbox" name="allsx" value="userkey" <%if instr(allsx,"userkey")>0 then%>checked<%end if%>  title="启动此项系统所有账号需要加密狗登陆">员工SUN盾(加密狗)
<input type="checkbox" name="allsx" value="isweb" <%if instr(allsx,"isweb")>0 then%>checked<%end if%>  title="启动系统WEB主页">WEB主页
<input type="checkbox" name="allsx" value="iskaoqin" <%if instr(allsx,"iskaoqin")>0 then%>checked<%end if%>  title="启动员工系统考勤">员工考勤
<input type="checkbox" name="allsx" value="is3g" <%if instr(allsx,"is3g")>0 then%>checked<%end if%>  title="启动开启手机版">手机版

<%end if%>
</td>
  </tr><%if instr(allsx,"isweb")>0 then%>
  <tr>
    <td width="28%" height="30" align="right">WEB标题：</td>
    <td width="72%" class="category">
	<textarea rows="3" name="webtit" cols="57"  title="WEB标题对于SEO非常有效！"><%=webtit%></textarea></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">WEB关键词：</td>
    <td width="72%" class="category">
	<textarea rows="3" name="webkeys" cols="57"  title="WEB关键词对于SEO非常有效！"><%=webkeys%></textarea></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">WEB描述：</td>
    <td width="72%" class="category">
	<textarea rows="3" name="webdes" cols="57"  title="WEB描述对于SEO非常有效！"><%=webdes%></textarea></td>
  </tr><%end if%>
  <tr>
    <td width="28%" height="30" align="right">模型表单文本框属性：</td>
    <td width="72%" class="category">
        长度：<input type="text" name="chang" size="7" maxlength="5" value="<%=mrchang%>" title="建议40-200，根据具体情况设置，文本框建议400-700" onKeyUp="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')">&nbsp; 高度：<input type="text" name="gao"  title="建议40-200，根据具体情况设置，文本框建议100-400"  size="7" maxlength="5" value="<%=mrgao%>" onKeyUp="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')">&nbsp;&nbsp; 
		最大字符：<input type="text" name="maxzi" title="默认255，建议不超过255，否则无效" size="7" maxlength="5" value="<%=mrmaxzi%>" onKeyUp="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">系统数据默认添加者：</td>
    <td width="72%" class="category">
        <input type="radio" name="xtuser" value="0" <%if xtuser=0 then%>checked<%end if%> title="系统推荐选择，前提请将员工合理编号">登陆账号(推荐)&nbsp;
		<input type="radio" name="xtuser" value="1" <%if xtuser=1 then%>checked<%end if%> title="选择此项员工离职会导致数据统计有误">登陆姓名(员工离职会导致数据统计有误)</td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">默认记录条数： </td>
    <td width="72%" class="category">
        <input type="text" name="maxrecord" style="width:87; height:24" title="汇总与报表显示的默认记录数" value="<%=maxrecord%>" onKeyUp="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')">*
        <font color="#666666">(只能是阿拉伯数字，建议15条)</font></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">短信接口：</td>
    <td width="72%" class="category"><input type="checkbox" name="allsx" value="smsok" <%if instr(allsx,"smsok")>0 then%>checked<%end if%>  title="短信作为增值服务需要预充值">启用&nbsp;&nbsp;&nbsp;&nbsp; 
	短信账号<input type="text" name="smsuser" size="13" value="<%=smsuser%>" maxlength="10">&nbsp;&nbsp; 接口KEY<input type="text" name="smskey" size="38" value="<%=smskey%>" maxlength="100">&nbsp;
	<a target="_blank" href="http://sms.sunzom.com/">申请账号，获取KEY</a></td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">系统启用时间：</td>
    <td width="72%" class="category"><%if nowuserid=1 then%> 
	<input type="text" name="syssj" size="13" value="<%=syssj%>" title="设置系统开始使用的时间，格式：2013-11-30">*&nbsp; 
授权：<input type="checkbox" name="allsx" value="30sy" <%if instr(allsx,"30sy")>0 then%>checked<%end if%>  title="启动此项30天试用">30天<input type="checkbox" name="allsx" value="60sy" <%if instr(allsx,"60sy")>0 then%>checked<%end if%>  title="启动此项60天试用">60天<input type="checkbox" name="allsx" value="180sy" <%if instr(allsx,"180sy")>0 then%>checked<%end if%>  title="启动此项180天试用">半年  <input type="checkbox" name="allsx" value="365sy" <%if instr(allsx,"365sy")>0 then%>checked<%end if%>  title="启动此项365天试用">1年
        <%else%><%=syssj%> <%end if%>  到期时间：<b><%=sunzs(1)%></b>(还有<b><%=sundd%></b>天)</td>
  </tr>
  <tr>
    <td width="28%" height="30" align="right">系统注册码：</td>
    <td width="72%" class="category"><%if nowuserid=1 then%> 
        <input type="text" name="regma" size="44" value="<%=regma%>" title="系统注册码，请联系软件商获取"><%else%><%=regma%> <%end if%></td>
  </tr>
  <tr>
    <td height="30">　</td>
    <td class="category">
        <input name="submit" type="submit" value=" 确 认 " class="button">
      &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="hidden" name="hid1" value="ok">
		<input type="hidden" name="photo" value="<%=deskphoto%>">
        <input name="reset" type="reset" value=" 重新填写 " class="button">
    </td>
  </tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="../images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="../images/r_3.gif" alt="" /></td>
</tr>
</table>
</form>
<%
else
nowdianming=requestA("dianming")
nowgonggao=requestA("gonggao")
nowcdjg=chk0(requestA("cdjg"))
nowallsx=replace(requestA("allsx")," ","")
maxrecord=chk0(request("maxrecord"))
syssja=requestA("syssj")
if maxrecord=0 then maxrecord=16
regmaa=chk0(requestA("regma"))
if nowuserid=1 then 
syssz="dianming='"&nowdianming&"',syssj='"&syssja&"',regma='"&regmaa&"',"
if jiam=1 then
if regmaa<>regma then
nlen = s_simnew1.YWriteString(regmaa, 0, "SUN20ZOM", "BAOSHENG", DevicePath)
If nlen < 1 Then  response.write "<script language=JavaScript>" & "alert('注册码注册失败！');" & "history.back()" & "</script>"  else  rgxx="注册码注册成功："&cStr(nlen)&""
end if
end if
end if
if instr(allsx,"isweb")>0 then webup=",webtit='"&requestA("webtit")&"',webkeys='"&requestA("webkeys")&"',webdes='"&requestA("webdes")&"'"
sql="update config set "&syssz&"gonggao='"&nowgonggao&"',gsname='"&requestA("gsname")&"',gszhang='"&requestA("gszhang")&"',xtuser="&chk0(requestA("xtuser"))&",cdjg="&nowcdjg&",allsx='"&nowallsx&"',maxrecord="&maxrecord&",mrcmg='"&chk0(requestA("chang"))&"|"&chk0(requestA("gao"))&"|"&chk0(requestA("maxzi"))&"',smsxx='"&requestA("smsuser")&"|"&requestA("smskey")&"'"&webup&" where id=1"
conn.execute(sql)
%>
<script language="javascript">
alert("<%=rgxx%>基本信息设置成功！")
window.location.href="config.asp"
</script> 
<%
end if
%>
</body>
</html>