ChangeSkin.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:1k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <!--#include file="../FS_Inc/Const.asp" -->
  2. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  3. <!--#include file="../FS_Inc/Function.asp" -->
  4. <!--#include file="lib/strlib.asp" -->
  5. <!--#include file="lib/UserCheck.asp" -->
  6. <%
  7. p_Style_num = Request.QueryString("Style_num")
  8. if p_Style_num = "1" then
  9. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") ="1"
  10. Elseif p_Style_num = "2" then
  11. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") ="2"
  12. Elseif p_Style_num = "3" then
  13. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") ="3"
  14. Elseif p_Style_num = "4" then
  15. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") ="4"
  16. Elseif p_Style_num = "5" then
  17. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") ="5"
  18. Else
  19. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") ="1"
  20. End if
  21. User_Conn.execute("Update FS_ME_Users set MySkin = "& cint(Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")) &" where UserNumber = '"& Session("FS_UserNumber") &"' and UserPassword='"& Session("FS_UserPassword")&"'")
  22. dim ReturnUrl
  23. ReturnUrl = Replace(Request.QueryString("ReturnUrl"),"''","")
  24. if Replace(Trim(ReturnUrl),"?","")<>"" then
  25. Response.Redirect ReturnUrl
  26. Response.end
  27. Else
  28. Response.Redirect"main.asp"
  29. Response.end
  30. End if
  31. %>