Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.7 KiB

  1. <!--
  2. Update server configuration
  3. QueryString : upd=[flt,list,sort,name,dbsource]*
  4. Form : if upd specifies flt, array of dbname,relop,cnt,andor
  5. + fltexp
  6. if upd specifies list, fieldlist
  7. if upd specifies sort, fieldsort
  8. if upd specifies name, savename
  9. if upd specifies dbsource, dbsource
  10. -->
  11. <%
  12. Dim iT,jj
  13. if InStr(1,Request.QueryString("upd"),"flt") then
  14. Dim FltArray()
  15. iT = 0
  16. Redim Preserve FltArray(Request.Form("dbname").Count-1,3)
  17. For jj = 1 to Request.Form("dbname").Count
  18. if Request.Form("dbname")(jj) <> "" then
  19. FltArray(iT,0) = Request.Form("dbname")(jj)
  20. FltArray(iT,1) = Request.Form("relop")(jj)
  21. FltArray(iT,2) = Request.Form("cnt")(jj)
  22. FltArray(iT,3) = Request.Form("andor")(jj)
  23. iT = iT + 1
  24. end if
  25. next
  26. Session("FltArray") = FltArray
  27. Session("Filter") = Request.Form("fltexp")
  28. end if
  29. if InStr(1,Request.QueryString("upd"),"dbsource") then
  30. Session("DBSOURCE") = CInt(Request.Form("dbsource"))
  31. Session("DSN") = Application("BASESOURCE") & Application("dbConn")(Session("DBSOURCE"))
  32. CheckRefreshItemCache
  33. end if
  34. if InStr(1,Request.QueryString("upd"),"list") then
  35. Session("FieldList") = Request.Form("fieldlist")
  36. end if
  37. if InStr(1,Request.QueryString("upd"),"sort") then
  38. Session("FieldSort") = Request.Form("fieldsort")
  39. end if
  40. if InStr(1,Request.QueryString("upd"),"name") then
  41. Session("Config") = Request.Form("savename")
  42. end if
  43. %>