⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setconfig.asp

📁 易方4.0程序+邮局接口+序列号+销售系统
💻 ASP
字号:
<!-- #include file="../inc_config.asp" -->
<!-- #include file="LoginCk.asp" -->
		<%
Call PopCheck(13)
If Cmd="CDPick" then
	Cfg_CDPick = Request("Cfg_CDPick")
	EfsValue=EfsValue & "Cfg_CDPick='" & Cfg_CDPick & "'"
	call Conn.Update("EfangCfg",EfsValue,"Cfg_ID=1")
	Call ShowErMsgGo("修改成功!","?Cmd=Succ")
End if
if Cmd="EPayChange" then
	if request("EPayState") = "true" then 
		tempValue = "Cfg_EPayState=true,"
		tempValue = tempValue & "Cfg_EPayUser='" & request("user") & "',"
		tempValue = tempValue & "Cfg_EPayPass='" & request("pass") & "'"
		call Conn.Update("EfangCfg",tempValue,"Cfg_ID=1")
	else
		tempValue = "Cfg_EPayState=false"
		call Conn.Update("EfangCfg",tempValue,"Cfg_ID=1")
	end if
	Call ShowErMsg("修改成功")
end if
%>
<HTML>
	<HEAD>
		<title>接口配置</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link id="style_sheet" href="css/save.css" type="text/css" rel="stylesheet">
	<script language="JavaScript">style_sheet.href = parent.parent.style_sheet.href;</script>
			<%=Efs_Cfg_PHeader%>
	</HEAD>
	<script language="JavaScript" src="js/common_Efang.js"></script>
	<body class="NormalPage">
	<form id="form_help" action="help_content.asp" method="get" target="working_area">
		<input name="help_topic" type="hidden" value="接口配置">
	</form>
	<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td id="headerToolBar" valign="middle" nowrap style="width:100%; height:22px;"><table cellpadding="0" cellspacing="0" class="HeaderPageControl">
				<tr>
					<td align="left" valign="middle" nowrap height="20">系统设置&gt;&gt; 系统参数设置  &gt;&gt;<b>接口配置</b></td>
					<td align="center" valign="middle" nowrap width="10" height="20"></td>
					<td align="right" valign="middle" width="100%" nowrap height="20"></td>
					<td align="center" valign="middle" nowrap width="10" height="20"></td>
					<td align="right" valign="middle" width="60" nowrap height="20"><img id="id_back" alt="返回上一页" onclick="JavaScript:history.back()" onmouseover="JavaScript:this.src=imgBackUp.src" onmouseout="JavaScript:this.src=imgBackDown.src" src="images/toolbar_back.gif" border="0" style="cursor:hand;width:22px; height:20px;"><img id="id_refresh" alt="刷新超级用户列表" onclick="JavaScript:fn_Refresh()" onmouseover="JavaScript:this.src=imgRefreshUp.src" onmouseout="JavaScript:this.src=imgRefreshDown.src" src="images/toolbar_refresh.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
					<td align="right" valign="middle" width="25" nowrap height="20"><img id="id_locate" alt="帮助" onclick="JavaScript:fn_ShowHelp()" onmouseover="JavaScript:this.src=imgHelpUp.src" onmouseout="JavaScript:this.src=imgHelpDown.src" src="images/toolbar_help.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
				</tr>
		</table></td>
	</tr>
	<tr>
	  <td valign="top">
			<div id="viewPanel" style="visibility:visible; position:absolute; overflow:auto;">
		
		    <table width="400" height="310" border="0" align="center" cellPadding="10" cellSpacing="0" class="datalist">
              <tr>
                <td colspan="2">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="left"><b style="font-size:11pt;color:Navy">接口配置</b></td>
                      <td align="right"> </td>
                    </tr>
                    <tr>
                      <td colspan="2"><hr align="left" width="100%"></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td width="10" nowrap></td>
                <td class="DataGroup" valign="top">
                  <table width="265" height="61" border="0" align="center" cellPadding="0" cellSpacing="0" class="datalist">
                    <form action="?Cmd=CDPick" method="post" name="EForm" id="EForm">
						<tr>
                        <td colspan="2" valign="middle"><font color="#000080">域名查询接口设置</font><br>
						<br>
						<select name="Cfg_CDPick" id="select">
							<option value="CDUrl1" selected>接口一(电信)</option>
							<option value="CDUrl2">接口二(网通)</option>
						</select>
						<input name="CDUrl" type="submit" id="CDUrl" value="修改">
						<script language="JavaScript">
                            EForm.Cfg_CDPick.value = "<%=Conn.QueryItem("EfangCfg","Cfg_CDPick","Cfg_ID=1")%>";
						</script>
					</td>
                      </tr></form>
                </table>
                </td>
              </tr>
			  
			  <tr>
                <td width="10" nowrap colspan="2" height="20"></td>
              </tr>
			  
			  <tr>
                <td width="10" nowrap></td>
                <td class="DataGroup" valign="top">
                  <table width="265" border="0" align="center" cellPadding="0" cellSpacing="0" class="datalist">
                    <form action="?Cmd=EPayChange" method="post" name="EPay" onsubmit="return epaycheck(this);">
                      <tr>
                        <td colspan="2" valign="middle"><font color="#000080">在线支付设置</font><br>
        是否开启&nbsp;
        <select name="EPayState">
          <%
						Set Cfg = Conn.Query("EfangCfg","Cfg_ID=1")
						if Cfg("Cfg_EPayState") then						
					%>
          <option value="true" selected>是</option>
          <option value="false">否</option>
          <% else %>
          <option value="true">是</option>
          <option value="false" selected>否</option>
          <% end if %>
        </select>
        <br>
        <br>
        帐号:
        <input type="text" name="user" value="<% if Cfg("Cfg_EPayState") then response.write Cfg("Cfg_EPayUser") %>">
        <br>
        密码:
        <input type="password" name="pass" value="<% if Cfg("Cfg_EPayState") then response.write Cfg("Cfg_EPayPass") %>">
&nbsp;
        <input name="submit" type="submit" value="修改">
                        </td>
                      </tr>
                    </form>
                  </table></td>
              </tr>
			  
            </table>
			
			<%
				Cfg.Close
				Set Cfg=nothing				
				%>
			<script language="javascript">
				function epaycheck(form)
				{
					if(form.EPayState.value=='true' && (form.user.value=='' || form.pass.value==''))
					{
						alert('请输入完整');
						return false;
					}
					else
						return true;
				}
			</script>
			
			<% Call ExitEnd(False) %>
	</div>
	</td>
	</tr>
</table>
</body>
<script language="JavaScript">
<!--
	document.parentWindow.onresize = fn_RejustViewPanel ;
	fn_RejustViewPanel ( ) ;
	//alert ( document.body.clientWidth + ":" + viewPanel.clientWidth ) ;
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -