Subversion Repositories DevTools

Rev

Rev 5506 | Go to most recent revision | Details | Compare with Previous | 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
 
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
71
%>
72
<%
73
Dim QSTR
74
QSTR = ""
75
 
76
'Call Store_QSTR_parameter ( "hidelocal", QSTR )
77
'Call Store_QSTR_parameter ( "showext", QSTR )
78
Call Store_QSTR_parameter ( "N", "tab", QSTR )
79
'Call Store_QSTR_parameter ( "N", "pv_id", QSTR )
80
'Call Store_QSTR_parameter ( "N", "group_id", QSTR )
81
'Call Store_QSTR_parameter ( "N", "rtag_id", QSTR )
82
Call Store_QSTR_parameter ( "Y", "Bshow", QSTR )
83
Call Store_QSTR_parameter ( "Y", "Pshow", QSTR )
84
'Call Store_QSTR_parameter ( "Y", "OLshow", QSTR )
85
Call Store_QSTR_parameter ( "Y", "Pview", QSTR )
86
Call Store_QSTR_parameter ( "Y", "Dview", QSTR )
87
'Call Store_QSTR_parameter ( "N", "localscript", QSTR )
88
'Call Store_QSTR_parameter ( "extpkg", QSTR )
89
'Call Store_QSTR_parameter ( "extrtag_id", QSTR )
90
%>