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

📄 clause.asp

📁 一套设计完善、高效的web商城解决方案
💻 ASP
字号:
<!--#include file="../Session.asp"-->
<!--#include file="../../UbbHtml.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
<script language="javascript">
	<!--//
	function checksignup() {

		if ( document.form.Clause.value == '' ) {
			window.alert('请填写家户入驻条款!!');
			document.form.Clause.focus();
		}

else {
			return true;
			}
		return false;
	}

	//-->
</script>
</head>
<body>
<%dim Clause
Set rs = conn.execute("select Clause from About")
if not (rs.eof and rs.bof) then
	Clause=rs("Clause")
end if
rs.close
set rs=nothing
%>
<form action="?action=save" method="post" name="form" id="form">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr align="center" valign="middle"> 
      <td height="30" colspan="2" class="tdstyle"><font size="3"><strong>入驻条款</strong></font></td>
    </tr>
    <tr> 
      <td width="11%" align="center" class="tdstyle">公司介绍</td>
      <td class="tdstyle"> <textarea name="Clause" cols="80" rows="15" class="input1" id="Clause"><%=UBBCode(Clause)%></textarea>显示在“商家注册”页面</td>
    </tr>
    <tr> 
      <td height="60" colspan="2" align="center" class="tdstyle"> <input name="Submit1" type="submit" class="button" id="Submit1" onClick="javascript:return checksignup()" value="提交"> 
        <input name="Submit2" type="reset" class="button" id="Submit2" value="重置"> 
        <input name="Submit3" type="button" class="button" id="Submit3" onClick="javascript:window.history.go(-1)" value="返回"> 
      </td>
    </tr>
  </table>
</form>
<%
If request("action")="save" Then
	Set rs = Server.CreateObject("ADODB.Recordset")
	sql = "select Clause from About"
	rs.open sql,conn,1,2
	if rs.eof then
		rs.addnew
		rs("Clause")=UBBCode(request("Clause"))
		rs.update
		rs.close
		set rs=nothing
	else
		conn.execute("Update About set Clause = '"&UBBCode(request("Clause"))&"'")
	end if
	response.write"<SCRIPT language=JavaScript>alert('设置置成功!');"
	response.write"this.location.href='Clause.asp';</SCRIPT>"
end if
%>
</body>
</html>

⌨️ 快捷键说明

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