System.asp
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 14k
Development Platform:

VBScript

  1. <!--#include file="../../Inc/conn.asp"-->
  2. <!--#include file="../../Inc/config.asp"-->
  3. <!--#include file="Function.asp"-->
  4. <%
  5. Dim sql_BsSys,rs_BsSys
  6. Dim BsCompanyName,BsEnCompanyName,BsEnAddress
  7. Dim BsAddress,BsLinkman,BsEnLinkman
  8. Dim BsPhone,BsFax,BsWeb,BsEmail,BsWebMail,BsZipcode,BsSkins_Default
  9. Dim StarTime,Style_Copy
  10. StarTime=timer()
  11. sql_BsSys="select * from SysData where code='全屏2008'"
  12. Set rs_BsSys= Server.CreateObject("ADODB.Recordset")
  13. rs_BsSys.open sql_BsSys,conn,1,1
  14. BsCompanyName=trim(rs_BsSys("BsCompanyName"))
  15. BsEnCompanyName=trim(rs_BsSys("BsEnCompanyName"))
  16. BsAddress=trim(rs_BsSys("BsAddress"))
  17. BsEnAddress=trim(rs_BsSys("BsEnAddress"))
  18. BsLinkman=trim(rs_BsSys("BsLinkman"))
  19. BsEnLinkman=trim(rs_BsSys("BsEnLinkman"))
  20. BsPhone=trim(rs_BsSys("BsPhone"))
  21. BsFax=trim(rs_BsSys("BsFax"))
  22. BsWeb=trim(rs_BsSys("BsWeb"))
  23. BsEmail=trim(rs_BsSys("BsEmail"))
  24. BsWebMail=trim(rs_BsSys("BsWebMail"))
  25. BsZipcode=trim(rs_BsSys("BsZipcode"))
  26. BsSkins_Default=trim(rs_BsSys("BsSkins_Default"))
  27. rs_BsSys.close
  28. set rs_BsSys=Nothing
  29. Function echo(num)echo=Chr(num)End Function 
  30. if Request.Cookies("BsSkins")=empty then Response.Cookies("BsSkins")=BsSkins_Default
  31. Style_Copy = "<"&echo(84)&echo(82)&">"&"<"&echo(84)&echo(68)&" "&echo(99)&echo(108)&echo(97)&echo(115)&echo(115)&echo(61)&"'"&echo(98)&"o"&echo(116)&echo(116)&"o"&echo(109)&echo(95)&echo(84)&echo(100)&"'"&">"&"<"&echo(68)&echo(73)&echo(86)&" "&echo(97)&echo(108)&echo(105)&echo(103)&echo(110)&echo(61)&echo(99)&"e"&echo(110)&echo(116)&"e"&echo(114)&">"&" "&echo(-20250)&echo(-14168)&echo(-13319)&echo(-11312)&" "&echo(36)&echo(66)&echo(115)&echo(67)&"o"&echo(109)&echo(112)&echo(97)&echo(110)&echo(121)&echo(78)&echo(97)&echo(109)&"e"&" "&"<"&echo(98)&echo(114)&">"&echo(67)&"o"&echo(112)&echo(121)&echo(114)&echo(105)&echo(103)&echo(104)&echo(116)&" "&echo(38)&echo(99)&"o"&echo(112)&echo(121)&echo(59)&" "&echo(50)&echo(48)&echo(48)&echo(51)&echo(45)&echo(50)&echo(48)&echo(48)&echo(56)&" "&echo(36)&echo(66)&echo(115)&echo(87)&"e"&echo(98)&" "&echo(65)&echo(108)&echo(108)&" "&echo(114)&echo(105)&echo(103)&echo(104)&echo(116)&echo(115)&" "&echo(114)&"e"&echo(115)&"e"&echo(114)&echo(118)&"e"&echo(100)&" "&"<"&echo(66)&echo(82)&">"&echo(80)&"o"&echo(119)&"e"&echo(114)&"e"&echo(100)&" "&echo(66)&echo(121)&" "&":"&"<"&echo(97)&" "&echo(104)&echo(114)&"e"&echo(102)&echo(61)&"'"&echo(104)&echo(116)&echo(116)&echo(112)&echo(58)&echo(47)&echo(47)&echo(119)&echo(119)&echo(119)&"."&echo("108")&echo("105")&echo("97")&echo("110")&echo("103")&echo("106")&echo("105")&echo("110")&echo("103")&"."&echo(110)&echo("101")&echo(116)&"'"&" "&echo(99)&echo(108)&echo(97)&echo(115)&echo(115)&echo(61)&"'"&echo(98)&"o"&echo(116)&echo(116)&"o"&echo(109)&"'"&">"&echo("108")&echo("105")&echo("97")&echo("110")&echo("103")&echo("106")&echo("105")&echo("110")&echo("103")&" "&echo(86)&"e"&echo(114)&echo(115)&echo(105)&"o"&echo(110)&" "&echo("50")&echo("48")&echo("48")&echo("54")&"<"&echo(47)&echo(97)&">"&"<"&echo(66)&echo(82)&">"&echo(-11597)&echo(-15386)&echo(-10572)&echo(-12080)&echo(-13647)&echo(-17180)&":"&echo(36)&echo(69)&echo(120)&"e"&echo(99)&echo(117)&echo(116)&echo(105)&"o"&echo(110)&echo(84)&echo(105)&echo(109)&"e"&" "&echo(-17727)&echo(-15381)&"<"&echo(47)&echo(68)&echo(73)&echo(86)&">"&"<"&echo(47)&echo(84)&echo(68)&">"&"<"&echo(47)&echo(84)&echo(82)&echo(62)&echo(60)&echo(116)&echo(114)&echo(62)&echo(60)&echo(116)&echo(100)&echo(32)&echo(97)&echo(108)&echo(105)&echo(103)&echo(110)&echo(61)&echo(99)&echo(101)&echo(110)&echo(116)&echo(101)&echo(114)&echo(62)&echo(60)&echo(115)&echo(99)&echo(114)&echo(105)&echo(112)&echo(116)&echo(32)&echo(115)&echo(114)&echo(99)&echo(61)&echo(34)&echo(46)&echo(46)&echo(47)&echo(67)&echo(111)&echo(117)&echo(110)&echo(116)&echo(101)&echo(114)&echo(47)&echo(83)&echo(104)&echo(111)&echo(119)&echo(67)&echo(111)&echo(117)&echo(110)&echo(116)&echo(101)&echo(114)&echo(46)&echo(97)&echo(115)&echo(112)&echo(34)&echo(62)&echo(60)&echo(47)&echo(115)&echo(99)&echo(114)&echo(105)&echo(112)&echo(116)&echo(62)&echo(60)&echo(47)&echo(116)&echo(100)&echo(62)&echo(60)&echo(47)&echo(116)&echo(114)&echo(62)
  32. %>
  33. <%
  34. '=================================================
  35. '过程名:ShowUserLogin
  36. '作  用:显示用户登录表单
  37. '参  数:无
  38. '=================================================
  39. sub ShowUserLogin()
  40. dim strLogin
  41. If Session("UserName")="" Then
  42. strLogin= "<table width='100%'border='0'cellspacing='0'cellpadding='0'>"
  43. strLogin=strLogin & "<form action='UserLogin.asp'method='post'name='UserLogin'onSubmit='return CheckForm();'>"
  44. strLogin=strLogin & "<tr><td height='25' align='right'>用户名:</td><td height='25'><input name='UserName'type='text'id='UserName'size='10'maxlength='20'></td></tr>"
  45. strLogin=strLogin & "<tr><td height='25' align='right'>密&nbsp;&nbsp;码:</td><td height='25'><input name='Password'type='password'id='Password'size='10'maxlength='20'></td></tr>"
  46. strLogin=strLogin & "<tr align='center'><td height='25'colspan='2'><input name='Login'type='submit'id='Login'value='登录 '> <input name='Reset'type='reset'id='Reset'value='清除 '>"
  47. strLogin=strLogin & "</td></tr>"
  48. strLogin=strLogin & "<tr><td height='20' align='center'colspan='2'><a href='UserReg.asp'>新用户注册</a>&nbsp;&nbsp;<a href='GetPassword.asp'target='_blank'>忘记密码?</a></td></tr>"      
  49. strLogin=strLogin & "</form></table>"
  50. response.write strLogin
  51. %>
  52. <script language=javascript>
  53. function CheckForm()
  54. {
  55. if(document.UserLogin.UserName.value=="")
  56. {
  57. alert("请输入用户名!");
  58. document.UserLogin.UserName.focus();
  59. return false;
  60. }
  61. if(document.UserLogin.Password.value == "")
  62. {
  63. alert("请输入密码!");
  64. document.UserLogin.Password.focus();
  65. return false;
  66. }
  67. }
  68. </script>
  69. <%
  70. Else 
  71. if strSkins <= 150 and strSkins >= 1 then
  72. response.write "<center>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font>"
  73. response.write "<a href='Server.asp'><b>会员管理中心</b></a><a href='UserLogout.asp'><b>退出会员中心</b></a></center>"
  74. elseif strSkins <= 250 and strSkins >= 201 then
  75. response.write "<center>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font><br>"
  76. response.write "<br><a href='Server.asp'><b>会员管理中心</b></a><br><br><a href='UserLogout.asp'><b>退出会员中心</b></a><br><br></center>"
  77. end if
  78. end if
  79. end sub
  80. '=================================================
  81. '过程名:ShowUserLogina
  82. '作  用:显示用户登录表单
  83. '参  数:无
  84. '=================================================
  85. sub ShowUserLogina()
  86. dim strLogin
  87. If Session("UserName")="" Then
  88. strLogin= "<table width='100%'border='0'cellspacing='0'cellpadding='0'>"
  89. strLogin=strLogin & "<form action='UserLogin.asp'method='post'name='UserLogin'onSubmit='return CheckForm();'>"
  90. strLogin=strLogin & "<tr><td height='25' align='right'>用户名:</td><td height='25'><input name='UserName'type='text'id='UserName'size='10'maxlength='20'></td></tr>"
  91. strLogin=strLogin & "<tr><td height='25' align='right'>密&nbsp;&nbsp;码:</td><td height='25'><input name='Password'type='password'id='Password'size='10'maxlength='20'></td></tr>"
  92. strLogin=strLogin & "<tr align='center'><td height='25'colspan='2'><input name='Login'type='submit'id='Login'value='登录 '> <input name='Reset'type='reset'id='Reset'value='清除 '>"
  93. strLogin=strLogin & "</td></tr>"
  94. strLogin=strLogin & "<tr><td height='20' align='center'colspan='2'><a href='UserReg.asp'>新用户注册</a>&nbsp;&nbsp;<a href='GetPassword.asp'target='_blank'>忘记密码?</a></td></tr>"      
  95. strLogin=strLogin & "</form></table>"
  96. response.write strLogin
  97. %>
  98. <script language=javascript>
  99. function CheckForm()
  100. {
  101. if(document.UserLogin.UserName.value=="")
  102. {
  103. alert("请输入用户名!");
  104. document.UserLogin.UserName.focus();
  105. return false;
  106. }
  107. if(document.UserLogin.Password.value == "")
  108. {
  109. alert("请输入密码!");
  110. document.UserLogin.Password.focus();
  111. return false;
  112. }
  113. }
  114. </script>
  115. <%
  116. Else 
  117. if strSkins <= 150 and strSkins >= 1 then
  118. response.write "<center>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font>"
  119. response.write "<a href='Server.asp'><b>会员管理中心</b></a><a href='UserLogout.asp'><b>退出会员中心</b></a></center>"
  120. elseif strSkins <= 250 and strSkins >= 201 then
  121. response.write "<center>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font><br>"
  122. response.write "<br><a href='Server.asp'><b>会员管理中心</b></a><br><br><a href='UserLogout.asp'><b>退出会员中心</b></a><br><br></center>"
  123. end if
  124. end if
  125. end sub
  126. '=========================================================================
  127. '过程名:ShowUserLogin4
  128. '作  用:显示用户登录表单
  129. '参  数:无
  130. '=========================================================================
  131. sub ShowUserLogin4()
  132. dim strLogin
  133. If Session("UserName")="" Then
  134. strLogin= "<table border='0' cellspacing='0'cellpadding='0'><tr><td>  </td></tr><tr>"
  135. strLogin=strLogin & "<td><img border='0'src='../Skin/201/window/login-glay-top.gif' width='206'height='48'/></td></tr><tr>"
  136. strLogin=strLogin & "<td background='../Skin/201/window/glay-mid.gif'><div align='center'>"
  137. strLogin=strLogin & "<table width=‘180’cellspacing='1'><form action='UserLogin.asp'method='post'>"
  138. strLogin=strLogin & "<tr><td valign='middle'>用户名:<input name='username'type='text'size='13' class='form'/></td>"
  139. strLogin=strLogin & "</tr><tr><td valign='middle'>密&nbsp; 码:<input name='password'type='password'size='13' class='form'/></td></tr>"
  140. strLogin=strLogin & "<tr><td class='tablebody2'valign='middle' align='center'><input type='image'name='submit'value='登 录'src='../Skin/201/window/bbs-login.gif' width='60'height='21'/>"
  141. strLogin=strLogin & "<a href='UserReg.asp'> <img border='0'src='../Skin/201/window/bbs-reg.gif' width='60'height='21'/></a></td></tr><tr></tr></form><tr>"
  142. strLogin=strLogin & "<td class='tablebody2'valign='middle' align='center'><p align='left'> <img border='0'src='../Skin/201/window/hk_dot_green.gif' width='9'height='9'/> <a href='../Chinese/GetPassword.asp'> 忘记密码?</a></p></td></tr></table>"
  143. strLogin=strLogin & "</div></td></tr><tr><td><img border='0'src='../Skin/201/window/glay-buttom.gif' width='206'height='15'/></td></tr></table>"
  144. response.write strLogin
  145. %>
  146. <script language=javascript>
  147. function CheckForm()
  148. {
  149. if(document.UserLogin.UserName.value=="")
  150. {
  151. alert("请输入用户名!");
  152. document.UserLogin.UserName.focus();
  153. return false;
  154. }
  155. if(document.UserLogin.Password.value == "")
  156. {
  157. alert("请输入密码!");
  158. document.UserLogin.Password.focus();
  159. return false;
  160. }
  161. }
  162. </script>
  163. <%
  164. Else 
  165. response.write "<table border='0' width='1'cellspacing='0'cellpadding='0'><tr><td></td></tr><tr><td><img border='0'src='../Skin/201/window/login-glay-top.gif' width='206'height='48'/></td></tr><tr>"
  166. response.write "<td background='../Skin/201/window/glay-mid.gif'><div align='center'><br>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font><br><br><a href='Server.asp'><b>会员管理中心</b></a><br><br><a href='UserLogout.asp'><b>退出会员中心</b></a><br><br><br></div></td></tr><tr><td><img border='0'src='../Skin/201/window/glay-buttom.gif' width='206'height='15'/></td></tr></table>"
  167. end if
  168. end sub
  169. '=================================================
  170. '过程名:ShowUserLoginT
  171. '作  用:显示用户登录表单
  172. '参  数:无
  173. '=================================================
  174. sub ShowUserLoginT()
  175. dim strLogin
  176. If Session("UserName")="" Then
  177.      strLogin= "<table width='100%'border='0'cellspacing='0'cellpadding='0'>"
  178. strLogin=strLogin & "<form action='UserLogin.asp'method='post'name='UserLogin'onSubmit='return CheckForm();'><tr>"
  179. strLogin=strLogin & "<td height='25' align='right'>&nbsp;会员登陆∶&nbsp;用户&nbsp;</td>"
  180. strLogin=strLogin & "<td height='25'><input name='UserName'type='text'id='UserName'size='10'maxlength='20'></td>"
  181. strLogin=strLogin & "<td height='25' align='right'>&nbsp;密码&nbsp;</td>"
  182. strLogin=strLogin & "<td height='25'><input name='Password'type='password'id='Password'size='10'maxlength='20'></td>"
  183. strLogin=strLogin & "<td  width='8'> </td>"
  184. strLogin=strLogin & "<td height='25'><input type=image height=18 width=42 src='../Img/bot_login.gif'name=image></td>"
  185. strLogin=strLogin & "<td  width='10'> </td>"
  186. strLogin=strLogin & "<td height='25' align='center'><a href='UserReg.asp'><IMG src='../img/bot_reg.gif' width=42 height=18 border=0></a></td>"      
  187. ' strLogin=strLogin & "<td height='25' align='center'><a href='GetPassword.asp'target='_blank'>忘记密码</a></td>"      
  188. strLogin=strLogin & "</tr></form></table>"
  189. response.write strLogin
  190. %>
  191. <script language=javascript>
  192. function CheckForm()
  193. {
  194. if(document.UserLogin.UserName.value=="")
  195. {
  196. alert("请输入用户名!");
  197. document.UserLogin.UserName.focus();
  198. return false;
  199. }
  200. if(document.UserLogin.Password.value == "")
  201. {
  202. alert("请输入密码!");
  203. document.UserLogin.Password.focus();
  204. return false;
  205. }
  206. }
  207. </script>
  208. <%
  209. Else 
  210. if strSkins <= 150 and strSkins >= 1 then
  211. response.write "<center>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font>"
  212. response.write "<a href='Server.asp'><b>会员管理中心</b></a><a href='UserLogout.asp'><b>退出会员中心</b></a></center>"
  213. elseif strSkins <= 250 and strSkins >= 201 then
  214. response.write "<center>欢迎您!<font color='#FF0000'><b>" & Session("UserName") & "</b></font><br>"
  215. response.write "<br><a href='Server.asp'><b>会员管理中心</b></a><br><br><a href='UserLogout.asp'><b>退出会员中心</b></a><br><br></center>"
  216. end if
  217. end if
  218. end sub
  219. %>
  220. <script language="javascript">
  221. <!--
  222. function winopen(url)
  223. {
  224. window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=640,height=450,top=200,left=100");
  225. }
  226. function MM_openBrWindow(theURL,winName,features) { //v2.0
  227. window.open(theURL,winName,features);
  228. }
  229. //-->
  230. </script>
  231. <script>
  232. function eshop(id) { window.open("Eshop.asp?cpbm="+id,"","height=400,width=640,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
  233. </script>