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

VBScript

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