| 19 |
rsolanki |
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 |
|
|
|
12 |
'Store to cookie
|
|
|
13 |
If SScookie = "Y" Then
|
|
|
14 |
Response.Cookies("RELEASEMANAGER_MEMORY")(SSpar) = Request(SSpar)(1)
|
|
|
15 |
ElseIf SScookie = "N" Then
|
|
|
16 |
Response.Cookies("RELEASEMANAGER_MEMORY")(SSpar) = ""
|
|
|
17 |
End If
|
|
|
18 |
|
|
|
19 |
End If
|
|
|
20 |
End Sub
|
|
|
21 |
|
|
|
22 |
Function QStrPar ( SSpar )
|
|
|
23 |
If NOT IsEmpty(Request( SSpar )) Then
|
|
|
24 |
QStrPar = Request(SSpar)(1)
|
|
|
25 |
Else
|
|
|
26 |
If NOT IsEmpty(Request.Cookies("RELEASEMANAGER_MEMORY")(SSpar)) Then
|
|
|
27 |
QStrPar = Request.Cookies("RELEASEMANAGER_MEMORY")(SSpar)
|
|
|
28 |
End If
|
|
|
29 |
End If
|
|
|
30 |
End Function
|
|
|
31 |
|
|
|
32 |
Function QSTR_All
|
|
|
33 |
'QSTR_All = "&" & Request.ServerVariables("QUERY_STRING")
|
|
|
34 |
QSTR_All = "&pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id")
|
|
|
35 |
End Function
|
|
|
36 |
|
|
|
37 |
Function Persists_Query_String ( sNewParamVals )
|
|
|
38 |
Dim aParameters, sParam, tempSTR
|
|
|
39 |
tempSTR = ""
|
|
|
40 |
If NOT IsEmpty(sNewParamVals) Then
|
|
|
41 |
For Each sParam In Request.QueryString
|
|
|
42 |
If InStr ( sNewParamVals, sParam &"=") < 1 Then
|
|
|
43 |
tempSTR = tempSTR & sParam &"="& Request( sParam ) &"&"
|
|
|
44 |
End If
|
|
|
45 |
Next
|
|
|
46 |
Persists_Query_String = tempSTR & sNewParamVals
|
|
|
47 |
|
|
|
48 |
Else
|
|
|
49 |
Persists_Query_String = Request.ServerVariables("QUERY_STRING")
|
|
|
50 |
|
|
|
51 |
End If
|
|
|
52 |
|
|
|
53 |
End Function
|
|
|
54 |
%>
|
|
|
55 |
<%
|
|
|
56 |
Dim QSTR
|
|
|
57 |
QSTR = ""
|
|
|
58 |
|
|
|
59 |
'Call Store_QSTR_parameter ( "hidelocal", QSTR )
|
|
|
60 |
'Call Store_QSTR_parameter ( "showext", QSTR )
|
|
|
61 |
Call Store_QSTR_parameter ( "N", "tab", QSTR )
|
|
|
62 |
'Call Store_QSTR_parameter ( "N", "pv_id", QSTR )
|
|
|
63 |
'Call Store_QSTR_parameter ( "N", "group_id", QSTR )
|
|
|
64 |
'Call Store_QSTR_parameter ( "N", "rtag_id", QSTR )
|
|
|
65 |
Call Store_QSTR_parameter ( "Y", "Bshow", QSTR )
|
|
|
66 |
Call Store_QSTR_parameter ( "Y", "Pshow", QSTR )
|
|
|
67 |
'Call Store_QSTR_parameter ( "Y", "OLshow", QSTR )
|
|
|
68 |
Call Store_QSTR_parameter ( "Y", "Pview", QSTR )
|
|
|
69 |
'Call Store_QSTR_parameter ( "N", "localscript", QSTR )
|
|
|
70 |
'Call Store_QSTR_parameter ( "extpkg", QSTR )
|
|
|
71 |
'Call Store_QSTR_parameter ( "extrtag_id", QSTR )
|
|
|
72 |
%>
|