<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK900000000") AND JudgePopedomTF(Session("UserName"),"SK910000000"))) then Call ReturnError1()%>
<%
Set RS=Server.CreateObject("Adodb.recordset")
rs.open "select * from SK_SystemConfig",Conn,1,3
if RQ("Action")="Save" and F("S_Company")<>"" Then
Call ChkIsOuter()
rs("SK_Company")=F("S_Company")
rs("SK_Address")=F("S_Address")
rs("SK_Tel")=F("S_Tel")
rs("SK_Fax")=F("S_Fax")
rs("SK_Website")=F("S_Website")
rs("SK_Email")=F("S_Email")
rs("SK_Event")=F("S_Event")
rs("SK_Regedit")=F("S_Regedit")
rs("SK_Office")=F("S_Office")
rs("SK_Client")=F("S_Client")
rs("SK_Sales")=F("S_Sales")
rs("SK_Service")=F("S_Service")
rs("SK_Finance")=F("S_Finance")
rs("SK_Product")=F("S_Product")
rs("SK_JF")=F("S_JF")
rs("SK_DxAddress")=F("S_DxAddress")
rs("SK_DxMethod")=F("S_DxMethod")
rs("SK_DxKey")=F("S_DxKey")
rs("SK_DxPass")=F("S_DxPass")
rs("SK_Dxaddserial")=F("S_Dxaddserial")
rs.Update
Call Returnokback()
'Event Begin
if getconfig("SK_Event")=0 then
set rsEvent=server.createobject("adodb.recordset")
sqlEvent="select * from SK_SystemEvent"
rsEvent.open sqlEvent,conn,1,3
rsEvent.AddNew
rsEvent("SK_Title")="修改系统基本配置信息"
rsEvent("SK_User")=Session("UserName")
rsEvent("SK_Time")=Now()
rsEvent("SK_IP")=request.ServerVariables("Remote_Addr")
rsEvent.Update
rsEvent.Close 
set rsEvent=Nothing
end if
'Event End
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>系统基本配置</title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
margin: 5px 0px 5px 0px;
overflow-x: hidden;
}
-->
</style>
<SCRIPT language=JavaScript>
function Form1_Validator(theForm)
{
if(form1.S_Company.value ==""){
alert("对不起,授权公司名称不能为空!");
form1.S_Company.focus();
return false;
}

return true;
}
</SCRIPT>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">系统基本配置</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>

<form name="thisForm" id="form1" method="post" action="?Action=Save" onSubmit="return Form1_Validator(this)"> 
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td colspan="2" class="SK_Title1">基本配置</td>
</tr>
<tr>
  <td width="20%" class="SK_Text2">授权公司</td>
  <td width="80%" class="SK_Text1"><input name="S_Company" type="text" size="35" value="<%=Rs("SK_Company")%>"> <font color=red>* </font></td>
</tr>
<tr>
  <td class="SK_Text2">公司地址</td>
  <td class="SK_Text1"><input name="S_Address" type="text" size="40" value="<%=Rs("SK_Address")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">联系电话</td>
  <td class="SK_Text1"><input name="S_Tel" type="text" size="20" value="<%=Rs("SK_Tel")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">联系传真</td>
  <td class="SK_Text1"><input name="S_Fax" type="text" size="20" value="<%=Rs("SK_Fax")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">公司网址</td>
  <td class="SK_Text1"><input name="S_WebSite" type="text" size="30" value="<%=Rs("SK_WebSite")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">电子邮箱</td>
  <td class="SK_Text1"><input name="S_Email" type="text" size="30" value="<%=Rs("SK_Email")%>"></td>
</tr>

<tr>
  <td class="SK_Text2">操作日志</td>
  <td class="SK_Text1"><select name="S_Event">
<option value=1 <%if Rs("SK_Event")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Event")="0" then Response.Write("selected")%>>启用</option>
  </select> <font color=red>记录员工操作日志</font></td>
</tr>

<tr>
  <td class="SK_Text2">员工注册</td>
  <td class="SK_Text1"><select name="S_Regedit">
<option value=1 <%if Rs("SK_Regedit")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Regedit")="0" then Response.Write("selected")%>>启用</option>
  </select> <font color=red>启用注册后，员工可以从登录页面进行注册后，管理员只需要开通权限即可</font></td>
</tr>
<tr>
  <td class="SK_Text2">客户积分</td>
  <td class="SK_Text1"><input name="S_JF" type="text" onKeyUp="value=value.replace(/[^\d]/g,'')" size="10" maxlength="2" value="<%=Rs("SK_JF")%>" /> 
  % 客户订单成交金额%</td>
</tr>

<tr>
  <td colspan="2" class="SK_Title1">子系统</td>
</tr>

<tr>
  <td class="SK_Text2">协同办公</td>
  <td class="SK_Text1"><select name="S_Office">
<option value=1 <%if Rs("SK_Office")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Office")="0" then Response.Write("selected")%>>启用</option>
  </select></td>
</tr>

<tr>
  <td class="SK_Text2">客户管理</td>
  <td class="SK_Text1"><select name="S_Client">
<option value=1 <%if Rs("SK_Client")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Client")="0" then Response.Write("selected")%>>启用</option>
  </select></td>
</tr>

<tr>
  <td class="SK_Text2">销售管理</td>
  <td class="SK_Text1"><select name="S_Sales">
<option value=1 <%if Rs("SK_Sales")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Sales")="0" then Response.Write("selected")%>>启用</option>
  </select></td>
</tr>

<tr>
  <td class="SK_Text2">客服管理</td>
  <td class="SK_Text1"><select name="S_Service">
<option value=1 <%if Rs("SK_Service")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Service")="0" then Response.Write("selected")%>>启用</option>
  </select></td>
</tr>

<tr>
  <td class="SK_Text2">财务管理</td>
  <td class="SK_Text1"><select name="S_Finance">
<option value=1 <%if Rs("SK_Finance")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Finance")="0" then Response.Write("selected")%>>启用</option>
  </select></td>
</tr>

<tr>
  <td class="SK_Text2">产品管理</td>
  <td class="SK_Text1"><select name="S_Product">
<option value=1 <%if Rs("SK_Product")="1" then Response.Write("selected")%>>禁用</option>
<option value=0 <%if Rs("SK_Product")="0" then Response.Write("selected")%>>启用</option>
  </select></td>
</tr>

<tr>
  <td colspan="2" class="SK_Title1">短信设置</td>
</tr>

<tr>
  <td class="SK_Text2">短信接口</td>
  <td class="SK_Text1"><input name="S_DxAddress" type="text" size="60" value="<%=Rs("SK_DxAddress")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">提交方式</td>
  <td class="SK_Text1"><select name="S_DxMethod">
<option value=1 <%if Rs("SK_DxMethod")="1" then Response.Write("selected")%>>Get</option>
<option value=0 <%if Rs("SK_DxMethod")="0" then Response.Write("selected")%>>Post</option>
  </select></td>
</tr>
<tr>
  <td class="SK_Text2">短信账号</td>
  <td class="SK_Text1"><input name="S_DxKey" type="text" size="30" value="<%=Rs("SK_DxKey")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">短信密码</td>
  <td class="SK_Text1"><input name="S_DxPass" type="password" size="15" value="<%=Rs("SK_DxPass")%>"></td>
</tr>
<tr>
  <td class="SK_Text2">附加编码</td>
  <td class="SK_Text1"><input name="S_Dxaddserial" type="text" size="15" value="<%=Rs("SK_Dxaddserial")%>"></td>
</tr>

<tr>
  <td colspan="2" class="SK_Text"><INPUT class="button1" type="submit" value=" 保存 "></td>
  </tr>
</table>
</form>

</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>

</td>
</tr>
</TBODY>
</table>
</body>
<%Call CloseDB()%>
</html>