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