| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'=====================================================
|
|
|
3 |
' QSTR
|
|
|
4 |
'=====================================================
|
|
|
5 |
' List all your query string parameters which need to be persistant
|
|
|
6 |
%>
|
|
|
7 |
<%
|
|
|
8 |
Sub Store_QSTR_parameter ( SScookie, SSpar, SSQSTR )
|
|
|
9 |
If NOT IsEmpty(Request( SSpar )) Then
|
|
|
10 |
'SSQSTR = SSQSTR &"&"& SSpar &"=" & Request(SSpar)(1)
|
|
|
11 |
'Store to cookie
|
|
|
12 |
If SScookie = "Y" Then
|
| 5020 |
dpurdie |
13 |
Response.Cookies(COOKIE_RELEASEMANAGER_MEMORY)(SSpar) = Request(SSpar)(1)
|
| 119 |
ghuddy |
14 |
ElseIf SScookie = "N" Then
|
| 5020 |
dpurdie |
15 |
Response.Cookies(COOKIE_RELEASEMANAGER_MEMORY)(SSpar) = ""
|
| 119 |
ghuddy |
16 |
End If
|
|
|
17 |
|
|
|
18 |
End If
|
|
|
19 |
End Sub
|
|
|
20 |
|
|
|
21 |
Function QStrPar ( SSpar )
|
|
|
22 |
If NOT IsEmpty(Request( SSpar )) Then
|
|
|
23 |
QStrPar = Request(SSpar)(1)
|
|
|
24 |
Else
|
| 5020 |
dpurdie |
25 |
If NOT IsEmpty(Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY)(SSpar)) Then
|
|
|
26 |
QStrPar = Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY)(SSpar)
|
| 119 |
ghuddy |
27 |
End If
|
|
|
28 |
End If
|
|
|
29 |
End Function
|
|
|
30 |
|
| 5590 |
dpurdie |
31 |
Function QStrParDefault ( SSpar, DefVal )
|
|
|
32 |
If NOT IsEmpty(Request( SSpar )) Then
|
|
|
33 |
QStrParDefault = Request(SSpar)(1)
|
|
|
34 |
ElseIf NOT IsEmpty(Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY)(SSpar)) Then
|
|
|
35 |
QStrParDefault = Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY)(SSpar)
|
|
|
36 |
Else
|
|
|
37 |
QStrParDefault = DefVal
|
|
|
38 |
End If
|
|
|
39 |
End Function
|
|
|
40 |
|
|
|
41 |
|
| 119 |
ghuddy |
42 |
Function QSTR_All
|
|
|
43 |
'QSTR_All = "&" & Request.ServerVariables("QUERY_STRING")
|
|
|
44 |
QSTR_All = "&pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id")
|
|
|
45 |
End Function
|
|
|
46 |
|
| 4955 |
dpurdie |
47 |
Function QSTR_FullQuery
|
|
|
48 |
QSTR_FullQuery = Request.ServerVariables("QUERY_STRING")
|
|
|
49 |
If QSTR_FullQuery <> "" Then
|
|
|
50 |
QSTR_FullQuery = "&" & QSTR_FullQuery
|
|
|
51 |
End If
|
|
|
52 |
End Function
|
|
|
53 |
|
| 119 |
ghuddy |
54 |
Function Persists_Query_String ( sNewParamVals )
|
|
|
55 |
Dim aParameters, sParam, tempSTR
|
|
|
56 |
tempSTR = ""
|
|
|
57 |
If NOT IsEmpty(sNewParamVals) Then
|
|
|
58 |
For Each sParam In Request.QueryString
|
|
|
59 |
If InStr ( sNewParamVals, sParam &"=") < 1 Then
|
|
|
60 |
tempSTR = tempSTR & sParam &"="& Request( sParam ) &"&"
|
|
|
61 |
End If
|
|
|
62 |
Next
|
|
|
63 |
Persists_Query_String = tempSTR & sNewParamVals
|
|
|
64 |
|
|
|
65 |
Else
|
|
|
66 |
Persists_Query_String = Request.ServerVariables("QUERY_STRING")
|
|
|
67 |
|
|
|
68 |
End If
|
|
|
69 |
|
|
|
70 |
End Function
|
| 5933 |
dpurdie |
71 |
|
|
|
72 |
' Reform the query string
|
|
|
73 |
' Replace/append items in sNewParamVals
|
|
|
74 |
' Remove items from sRemoveParams
|
|
|
75 |
Function Persists_Query_String_Trim ( sNewParamVals, sRemoveParams )
|
|
|
76 |
Dim aParameters, sParam, tempSTR, tempRemove
|
|
|
77 |
tempSTR = ""
|
|
|
78 |
tempRemove = "," & sRemoveParams & ","
|
|
|
79 |
|
|
|
80 |
For Each sParam In Request.QueryString
|
|
|
81 |
If InStr ( sNewParamVals, sParam &"=") < 1 Then
|
|
|
82 |
If InStr(tempRemove, ","& sParam & "," ) < 1 Then
|
|
|
83 |
tempSTR = tempSTR & sParam &"="& Request( sParam ) &"&"
|
|
|
84 |
End If
|
|
|
85 |
End If
|
|
|
86 |
Next
|
|
|
87 |
Persists_Query_String_Trim = tempSTR & sNewParamVals
|
|
|
88 |
|
|
|
89 |
End Function
|
|
|
90 |
|
| 119 |
ghuddy |
91 |
%>
|
|
|
92 |
<%
|
|
|
93 |
Dim QSTR
|
|
|
94 |
QSTR = ""
|
|
|
95 |
|
|
|
96 |
'Call Store_QSTR_parameter ( "hidelocal", QSTR )
|
|
|
97 |
'Call Store_QSTR_parameter ( "showext", QSTR )
|
|
|
98 |
Call Store_QSTR_parameter ( "N", "tab", QSTR )
|
|
|
99 |
'Call Store_QSTR_parameter ( "N", "pv_id", QSTR )
|
|
|
100 |
'Call Store_QSTR_parameter ( "N", "group_id", QSTR )
|
|
|
101 |
'Call Store_QSTR_parameter ( "N", "rtag_id", QSTR )
|
|
|
102 |
Call Store_QSTR_parameter ( "Y", "Bshow", QSTR )
|
|
|
103 |
Call Store_QSTR_parameter ( "Y", "Pshow", QSTR )
|
|
|
104 |
'Call Store_QSTR_parameter ( "Y", "OLshow", QSTR )
|
|
|
105 |
Call Store_QSTR_parameter ( "Y", "Pview", QSTR )
|
|
|
106 |
Call Store_QSTR_parameter ( "Y", "Dview", QSTR )
|
|
|
107 |
'Call Store_QSTR_parameter ( "N", "localscript", QSTR )
|
|
|
108 |
'Call Store_QSTR_parameter ( "extpkg", QSTR )
|
|
|
109 |
'Call Store_QSTR_parameter ( "extrtag_id", QSTR )
|
|
|
110 |
%>
|