Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
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
 
4955 dpurdie 37
Function QSTR_FullQuery
38
	QSTR_FullQuery = Request.ServerVariables("QUERY_STRING") 
39
    If QSTR_FullQuery <> "" Then
40
        QSTR_FullQuery = "&" & QSTR_FullQuery
41
    End If
42
End Function
43
 
119 ghuddy 44
Function Persists_Query_String ( sNewParamVals )
45
	Dim aParameters, sParam, tempSTR
46
	tempSTR = ""
47
	If NOT IsEmpty(sNewParamVals) Then
48
		For Each sParam In Request.QueryString
49
			If InStr ( sNewParamVals, sParam &"=") < 1 Then
50
				tempSTR = tempSTR & sParam &"="& Request( sParam ) &"&"
51
			End If
52
		Next
53
		Persists_Query_String = tempSTR & sNewParamVals
54
 
55
	Else
56
		Persists_Query_String = Request.ServerVariables("QUERY_STRING")
57
 
58
	End If
59
 
60
End Function
61
%>
62
<%
63
Dim QSTR
64
QSTR = ""
65
 
66
'Call Store_QSTR_parameter ( "hidelocal", QSTR )
67
'Call Store_QSTR_parameter ( "showext", QSTR )
68
Call Store_QSTR_parameter ( "N", "tab", QSTR )
69
'Call Store_QSTR_parameter ( "N", "pv_id", QSTR )
70
'Call Store_QSTR_parameter ( "N", "group_id", QSTR )
71
'Call Store_QSTR_parameter ( "N", "rtag_id", QSTR )
72
Call Store_QSTR_parameter ( "Y", "Bshow", QSTR )
73
Call Store_QSTR_parameter ( "Y", "Pshow", QSTR )
74
'Call Store_QSTR_parameter ( "Y", "OLshow", QSTR )
75
Call Store_QSTR_parameter ( "Y", "Pview", QSTR )
76
Call Store_QSTR_parameter ( "Y", "Dview", QSTR )
77
'Call Store_QSTR_parameter ( "N", "localscript", QSTR )
78
'Call Store_QSTR_parameter ( "extpkg", QSTR )
79
'Call Store_QSTR_parameter ( "extrtag_id", QSTR )
80
%>