| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
'=====================================================
|
3 |
'=====================================================
|
| 4 |
'| |
|
4 |
'| |
|
| 5 |
'| Edit Project View Details |
|
5 |
'| Edit Project View Details |
|
| 6 |
'| |
|
6 |
'| |
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
%>
|
- |
|
| 9 |
<%
|
- |
|
| 10 |
Option explicit
|
8 |
Option explicit
|
| 11 |
' Good idea to set when using redirect
|
9 |
' Good idea to set when using redirect
|
| 12 |
Response.Expires = 0 ' always load the page, dont store
|
10 |
Response.Expires = 0 ' always load the page, dont store
|
| 13 |
%>
|
11 |
%>
|
| 14 |
<!--#include file="common/conf.asp"-->
|
12 |
<!--#include file="common/conf.asp"-->
|
| 15 |
<!--#include file="common/globals.asp"-->
|
13 |
<!--#include file="common/globals.asp"-->
|
| 16 |
<!--#include file="common/formating.asp"-->
|
14 |
<!--#include file="common/formating.asp"-->
|
| 17 |
<!--#include file="common/qstr.asp"-->
|
15 |
<!--#include file="common/qstr.asp"-->
|
| Line 35... |
Line 33... |
| 35 |
'------------ Constants Declaration -----------
|
33 |
'------------ Constants Declaration -----------
|
| 36 |
'------------ Variable Init -------------------
|
34 |
'------------ Variable Init -------------------
|
| 37 |
parProjId = Request("proj_id")
|
35 |
parProjId = Request("proj_id")
|
| 38 |
objPMod.PersistInQryString("proj_id")
|
36 |
objPMod.PersistInQryString("proj_id")
|
| 39 |
'----------------------------------------------
|
37 |
'----------------------------------------------
|
| 40 |
%>
|
- |
|
| 41 |
<%
|
- |
|
| 42 |
'--------------------------------------------------------------------------------------------------------------------------
|
38 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 43 |
Sub GetFormDetails ( parProjId, ByRef outobjDetails )
|
39 |
Sub GetFormDetails ( parProjId, ByRef outobjDetails )
|
| 44 |
Dim rsQry, query
|
40 |
Dim rsQry, query
|
| 45 |
|
- |
|
| 46 |
|
41 |
|
| 47 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
42 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 48 |
|
43 |
|
| 49 |
query = _
|
44 |
query = _
|
| 50 |
" SELECT prj.* "&_
|
45 |
" SELECT prj.* "&_
|
| 51 |
" FROM PROJECTS prj"&_
|
46 |
" FROM PROJECTS prj"&_
|
| 52 |
" WHERE prj.PROJ_ID = :PROJ_ID"
|
47 |
" WHERE prj.PROJ_ID = :PROJ_ID"
|
| 53 |
|
48 |
|
| 54 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
49 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
| 55 |
|
50 |
|
| 56 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
51 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 57 |
|
- |
|
| 58 |
|
- |
|
| 59 |
|
52 |
|
| 60 |
If rsQry.RecordCount > 0 Then
|
53 |
If rsQry.RecordCount > 0 Then
|
| 61 |
outobjDetails.Item ("proj_id") = rsQry("proj_id")
|
54 |
outobjDetails.Item ("proj_id") = rsQry("proj_id")
|
| 62 |
outobjDetails.Item ("proj_name") = rsQry("proj_name")
|
55 |
outobjDetails.Item ("proj_name") = rsQry("proj_name")
|
| 63 |
'outobjDetails.Item ("description") = rsQry("description")
|
- |
|
| 64 |
'outobjDetails.Item ("parent_rtag_id") = rsQry("parent_rtag_id")
|
- |
|
| 65 |
'outobjDetails.Item ("config_spec_branch") = rsQry("config_spec_branch")
|
- |
|
| 66 |
'outobjDetails.Item ("owner_email") = rsQry("owner_email")
|
- |
|
| 67 |
'If rsQry("assoc_mass_ref") <> "" Then
|
- |
|
| 68 |
'outobjDetails.Item ("massref_rtag_id") = rsQry("assoc_mass_ref")
|
- |
|
| 69 |
'End If
|
- |
|
| 70 |
Else
|
56 |
Else
|
| 71 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. parProjId="& parProjId
|
57 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. parProjId="& parProjId
|
| 72 |
|
- |
|
| 73 |
End If
|
58 |
End If
|
| 74 |
|
- |
|
| 75 |
|
59 |
|
| 76 |
rsQry.Close
|
60 |
rsQry.Close
|
| 77 |
Set rsQry = Nothing
|
61 |
Set rsQry = Nothing
|
| 78 |
End Sub
|
62 |
End Sub
|
| 79 |
'--------------------------------------------------------------------------------------------------------------------------
|
63 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 80 |
Sub DeleteViewOwner (userId, viewId)
|
64 |
Sub DeleteViewOwner (userId, viewId)
|
| 81 |
|
65 |
|
| 82 |
On Error Resume Next
|
66 |
On Error Resume Next
|
| 83 |
|
- |
|
| 84 |
'Response.Write(Request("user_view_id_list"))
|
- |
|
| 85 |
|
67 |
|
| 86 |
|
- |
|
| 87 |
|
- |
|
| 88 |
|
- |
|
| 89 |
|
- |
|
| 90 |
|
- |
|
| 91 |
OraDatabase.BeginTrans
|
68 |
OraDatabase.BeginTrans
|
| 92 |
|
69 |
|
| 93 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
70 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 94 |
OraDatabase.Parameters.Add "VIEW_ID", viewId, ORAPARM_INPUT, ORATYPE_NUMBER
|
71 |
OraDatabase.Parameters.Add "VIEW_ID", viewId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 95 |
OraDatabase.Parameters.Add "USER_ID_LIST", userId, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
72 |
OraDatabase.Parameters.Add "USER_ID_LIST", userId, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 96 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
73 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 97 |
|
74 |
|
| 98 |
objEH.TryORA ( OraSession )
|
75 |
objEH.TryORA ( OraSession )
|
| 99 |
|
76 |
|
| 100 |
OraDatabase.ExecuteSQL _
|
77 |
OraDatabase.ExecuteSQL _
|
| 101 |
"BEGIN REMOVE_PROJECT_VIEW_OWNER ( :PROJ_ID, :VIEW_ID, :USER_ID_LIST, :USER_ID ); END;"
|
78 |
"BEGIN REMOVE_PROJECT_VIEW_OWNER ( :PROJ_ID, :VIEW_ID, :USER_ID_LIST, :USER_ID ); END;"
|
| 102 |
|
79 |
|
| 103 |
objEH.CatchORA ( OraSession )
|
80 |
objEH.CatchORA ( OraSession )
|
| 104 |
|
81 |
|
| 105 |
|
- |
|
| 106 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
82 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 107 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
83 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
| 108 |
OraDatabase.Parameters.Remove "USER_ID_LIST"
|
84 |
OraDatabase.Parameters.Remove "USER_ID_LIST"
|
| 109 |
OraDatabase.Parameters.Remove "USER_ID"
|
85 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 110 |
|
86 |
|
| 111 |
OraDatabase.CommitTrans
|
87 |
OraDatabase.CommitTrans
|
| 112 |
|
- |
|
| 113 |
|
88 |
|
| 114 |
End Sub
|
89 |
End Sub
|
| 115 |
'--------------------------------------------------------------------------------------------------------------------------
|
90 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 116 |
Sub GetUserViewId(value, posComma)
|
91 |
Sub GetUserViewId(value, posComma)
|
| 117 |
txt = value
|
92 |
txt = value
|
| 118 |
posComma = InStr(txt, ",")
|
93 |
posComma = InStr(txt, ",")
|
| 119 |
End Sub
|
94 |
End Sub
|
| 120 |
'--------------------------------------------------------------------------------------------------------------------------
|
95 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 121 |
%>
|
- |
|
| 122 |
<%
|
- |
|
| 123 |
'------------ RUN BEFORE PAGE RENDER ----------
|
96 |
'------------ RUN BEFORE PAGE RENDER ----------
|
| 124 |
' --- Get Form details from DB ---
|
97 |
' --- Get Form details from DB ---
|
| 125 |
Call GetFormDetails ( Request("proj_id"), objFormCollector )
|
98 |
Call GetFormDetails ( Request("proj_id"), objFormCollector )
|
| 126 |
|
99 |
|
| 127 |
' --- Load Validation Rules ---
|
- |
|
| 128 |
'Call objForm.LoadValidationRules ( Array("rtag_name","rtag_description", "config_spec_branch"), OraDatabase ) ' Load Validation Rules
|
- |
|
| 129 |
|
- |
|
| 130 |
' --- Enter Form Validation Rule Changes here... ----
|
100 |
' --- Enter Form Validation Rule Changes here... ----
|
| 131 |
'----------------------------------------------------
|
101 |
'----------------------------------------------------
|
| 132 |
|
102 |
|
| 133 |
' --- RUN onPostBack ---
|
103 |
' --- RUN onPostBack ---
|
| 134 |
If Request("action") <> "" Then
|
104 |
If Request("action") <> "" Then
|
| 135 |
If objForm.IsValidOnPostBack Then
|
105 |
If objForm.IsValidOnPostBack Then
|
| 136 |
Dim txt,posComma, posUnderscore, userId, viewId, value
|
106 |
Dim txt,posComma, posUnderscore, userId, viewId, value
|
| - |
|
107 |
|
| - |
|
108 |
Call GetUserViewId(Request("user_view_id_list"), posComma)
|
| 137 |
|
109 |
|
| 138 |
Call GetUserViewId(Request("user_view_id_list"), posComma)
|
- |
|
| 139 |
|
- |
|
| 140 |
While posComma <> 0
|
110 |
While posComma <> 0
|
| 141 |
'Response.Write(txt)
|
- |
|
| 142 |
value = Mid(txt, 1, posComma-1)
|
111 |
value = Mid(txt, 1, posComma-1)
|
| 143 |
posUnderscore = Instr(value, "_")
|
112 |
posUnderscore = Instr(value, "_")
|
| 144 |
userId = Mid(value, 1, posUnderscore - 1)
|
113 |
userId = Mid(value, 1, posUnderscore - 1)
|
| 145 |
viewId = Mid(value, posUnderscore + 1, posComma-1)
|
114 |
viewId = Mid(value, posUnderscore + 1, posComma-1)
|
| 146 |
Call DeleteViewOwner(userId, viewId)
|
115 |
Call DeleteViewOwner(userId, viewId)
|
| 147 |
txt = Mid(txt, posComma + 1, Len(txt))
|
116 |
txt = Mid(txt, posComma + 1, Len(txt))
|
| 148 |
posComma = InStr(txt, ",")
|
117 |
posComma = InStr(txt, ",")
|
| 149 |
Wend
|
118 |
Wend
|
| 150 |
|
119 |
|
| 151 |
If posComma = 0 Then
|
120 |
If posComma = 0 Then
|
| 152 |
posUnderscore = Instr(txt, "_")
|
121 |
posUnderscore = Instr(txt, "_")
|
| - |
|
122 |
If posUnderscore>0 Then
|
| 153 |
userId = Mid(txt, 1, posUnderscore - 1)
|
123 |
userId = Mid(txt, 1, posUnderscore - 1)
|
| 154 |
viewId = Mid(txt, posUnderscore + 1)
|
124 |
viewId = Mid(txt, posUnderscore + 1)
|
| 155 |
Call DeleteViewOwner(userId, viewId)
|
125 |
Call DeleteViewOwner(userId, viewId)
|
| 156 |
Else
|
126 |
End If
|
| 157 |
|
- |
|
| 158 |
|
- |
|
| 159 |
|
- |
|
| 160 |
End if
|
127 |
End if
|
| 161 |
|
128 |
|
| 162 |
' --- Form is Valid ---
|
- |
|
| 163 |
'Call DeleteViewOwner()
|
- |
|
| 164 |
|
- |
|
| 165 |
If objEH.Finally Then
|
129 |
If objEH.Finally Then
|
| 166 |
Call OpenInWindow ( "form_edit_project_view.asp?proj_id="&Request("proj_id")&"&FRview_id="&Request("FRview_id") )
|
130 |
Call OpenInWindow ( "form_edit_project_view.asp?proj_id="&Request("proj_id")&"&FRview_id="&Request("FRview_id") )
|
| 167 |
End If
|
131 |
End If
|
| 168 |
|
132 |
|
| 169 |
End If
|
133 |
End If
|
| 170 |
|
134 |
|
| 171 |
End If
|
135 |
End If
|
| 172 |
|
136 |
|
| 173 |
'----------------------------------------------
|
137 |
'----------------------------------------------
|
| 174 |
%>
|
138 |
%>
|
| 175 |
|
139 |
|
| Line 207... |
Line 171... |
| 207 |
objFormComponent.Action = ScriptName
|
171 |
objFormComponent.Action = ScriptName
|
| 208 |
Call objFormComponent.FormStart()
|
172 |
Call objFormComponent.FormStart()
|
| 209 |
%>
|
173 |
%>
|
| 210 |
<tr>
|
174 |
<tr>
|
| 211 |
<td width="1" background="images/bg_home_orange.gif" valign="top">
|
175 |
<td width="1" background="images/bg_home_orange.gif" valign="top">
|
| 212 |
</td>
|
176 |
</td>
|
| 213 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF"><table width="10" border="0" cellspacing="0" cellpadding="0">
|
177 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
|
| 214 |
<tr>
|
178 |
<table width="10" border="0" cellspacing="0" cellpadding="0">
|
| 215 |
<td width="1%"></td>
|
179 |
<tr>
|
| 216 |
<td width="100%">
|
180 |
<td width="1%"></td>
|
| 217 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
181 |
<td width="100%">
|
| 218 |
<tr>
|
182 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 219 |
<td nowrap class="body_txt">
|
183 |
<tr>
|
| 220 |
|
184 |
<td nowrap class="body_txt">
|
| 221 |
</td>
|
185 |
</td>
|
| 222 |
|
186 |
</tr>
|
| 223 |
</tr>
|
187 |
</table>
|
| 224 |
</table>
|
188 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 225 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
189 |
<tr>
|
| 226 |
<tr>
|
190 |
<td nowrap class="form_ttl"><p> </p>
|
| 227 |
<td nowrap class="form_ttl"><p> </p>
|
191 |
<p>EDIT PROJECT VIEW DETAILS </p></td>
|
| 228 |
<p>EDIT PROJECT VIEW DETAILS </p></td>
|
192 |
<td align="right" valign="bottom"></td>
|
| 229 |
<td align="right" valign="bottom"></td>
|
193 |
</tr>
|
| 230 |
</tr>
|
194 |
</table>
|
| 231 |
</table></td>
|
195 |
</td>
|
| 232 |
<td width="1%"></td>
|
196 |
<td width="1%"></td>
|
| 233 |
</tr>
|
197 |
</tr>
|
| 234 |
<tr>
|
198 |
<tr>
|
| 235 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
199 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
| 236 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
200 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
| 237 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
201 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
| 238 |
</tr>
|
202 |
</tr>
|
| 239 |
<tr>
|
203 |
<tr>
|
| 240 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
204 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
| 241 |
<td bgcolor="#FFFFFF" valign="top">
|
205 |
<td bgcolor="#FFFFFF" valign="top">
|
| 242 |
<%
|
206 |
<%
|
| 243 |
If parSourceRtagId <> "" Then
|
207 |
If parSourceRtagId <> "" Then
|
| 244 |
Call Messenger ( "New release will be created from <br>"& objFormCollector.Item("location"), 3, "100%" )
|
208 |
Call Messenger ( "New release will be created from <br>"& objFormCollector.Item("location"), 3, "100%" )
|
| 245 |
End If
|
209 |
End If
|
| 246 |
%>
|
210 |
%>
|
| 247 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
211 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 248 |
<!--#include file="messages/_msg_inline.asp"-->
|
212 |
<!--#include file="messages/_msg_inline.asp"-->
|
| 249 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
213 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 250 |
<br>
|
214 |
<br>
|
| 251 |
|
215 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
| 252 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
216 |
<tr>
|
| 253 |
<tr>
|
217 |
<td valign="top" nowrap class="form_iname">Project Name </td>
|
| 254 |
<td valign="top" nowrap class="form_iname">Project Name </td>
|
218 |
<td valign="top" nowrap><%=objFormComponent.TextBox ( "project_name", objForm.GetValue( "project_name", objFormCollector.Item("proj_name") ), "class='form_ivalue' readonly" )%></td>
|
| 255 |
<td valign="top" nowrap><%=objFormComponent.TextBox ( "project_name", objForm.GetValue( "project_name", objFormCollector.Item("proj_name") ), "class='form_ivalue' readonly" )%></td>
|
219 |
</tr>
|
| 256 |
</tr>
|
220 |
<tr>
|
| 257 |
<tr>
|
221 |
<td nowrap class="form_iname" valign="top">Select Base View </td>
|
| 258 |
<td nowrap class="form_iname" valign="top">Select Base View </td>
|
222 |
<td valign="top" nowrap class="form_iname">
|
| 259 |
<td valign="top" nowrap class="form_iname">
|
223 |
<%
|
| 260 |
<%
|
224 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 261 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
225 |
Dim Query_String
|
| 262 |
Dim Query_String
|
226 |
Dim RecordCount
|
| 263 |
Query_String = _
|
227 |
RecordCount=0
|
| 264 |
" SELECT DISTINCT vi.view_id, vi.view_name"&_
|
228 |
Query_String = _
|
| 265 |
" FROM VIEWS vi,"&_
|
229 |
" SELECT DISTINCT vi.view_id, vi.view_name"&_
|
| 266 |
" RELEASE_CONTENT rc,"&_
|
230 |
" FROM VIEWS vi"&_
|
| 267 |
" RELEASE_TAGS rt"&_
|
231 |
" WHERE vi.view_name = 'PROJECT WIDE'"
|
| 268 |
" WHERE rc.BASE_VIEW_ID = vi.VIEW_ID"&_
|
232 |
|
| 269 |
" AND rt.proj_id = "& parProjId &_
|
233 |
Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )
|
| 270 |
" AND rc.rtag_id = rt.rtag_id"&_
|
234 |
RecordCount=rsQry.RecordCount
|
| 271 |
" ORDER BY UPPER( vi.view_name )"
|
235 |
|
| 272 |
|
236 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 273 |
|
237 |
Response.write "<select name='FRview_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?proj_id="& parProjId &"&FRview_id=',this,0)"" class='form_item'>"
|
| 274 |
Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )
|
238 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 275 |
|
239 |
If CDbl(Request("FRview_id")) = CDbl(rsQry.Fields("view_id")) Then
|
| 276 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
240 |
Response.write "<option value='"& rsQry.Fields("view_id") &"' selected>"& rsQry.Fields("view_name") &"</option>"
|
| 277 |
Response.write "<select name='FRview_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?proj_id="& parProjId &"&FRview_id=',this,0)"" class='form_item'>"
|
241 |
Else
|
| 278 |
Response.write "<option value='0' selected>--NONE--</option>"
|
242 |
Response.write "<option value='"& rsQry.Fields("view_id") &"'>"& rsQry.Fields("view_name") &"</option>"
|
| 279 |
%>
|
243 |
End If
|
| 280 |
|
244 |
rsQry.MoveNext
|
| 281 |
|
245 |
WEnd
|
| 282 |
|
246 |
|
| 283 |
<%While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
247 |
rsQry.Close()
|
| 284 |
|
248 |
|
| 285 |
If CDbl(Request("FRview_id")) = CDbl(rsQry.Fields("view_id")) Then
|
249 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 286 |
Response.write "<option value='"& rsQry.Fields("view_id") &"' selected>"& UCase(rsQry.Fields("view_name")) &"</option>"
|
250 |
Query_String = _
|
| 287 |
Else
|
251 |
" SELECT DISTINCT vi.view_id, vi.view_name"&_
|
| 288 |
|
252 |
" FROM VIEWS vi,"&_
|
| 289 |
Response.write "<option value='"& rsQry.Fields("view_id") &"'>"& UCase(rsQry.Fields("view_name")) &"</option>"
|
253 |
" RELEASE_CONTENT rc,"&_
|
| 290 |
End If
|
254 |
" RELEASE_TAGS rt"&_
|
| 291 |
rsQry.MoveNext
|
255 |
" WHERE rc.BASE_VIEW_ID = vi.VIEW_ID"&_
|
| 292 |
WEnd
|
256 |
" AND rt.proj_id = "& parProjId &_
|
| 293 |
|
257 |
" AND rc.rtag_id = rt.rtag_id"&_
|
| 294 |
rsQry.Close()
|
258 |
" ORDER BY UPPER( vi.view_name )"
|
| 295 |
Set rsQry = nothing
|
259 |
|
| 296 |
%>
|
260 |
Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )
|
| 297 |
</select>
|
261 |
RecordCount=RecordCount+rsQry.RecordCount
|
| 298 |
<!-- BUTTONS CONTROL +++++++++++++++++++ -->
|
262 |
|
| 299 |
<%If request("FRview_id") <> "" And objAccessControl.IsActive("AdminView") Then %>
|
263 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 300 |
<a href="javascript:;" class ="form_iname" onClick="MM_openBrWindow('wAddApplicationUser.asp?proj_id=<%=parProjId%>&view_id=<%=Request("FRview_id")%>','AddApplicationUser','scrollbars=yes,resizable=yes,width=650,height=800')"><img src="images/email-contact-orange.gif">Add View Owner</a>
|
264 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 301 |
<%End If%>
|
265 |
|
| 302 |
<!-- +++++++++++++++++++++++++++++++++++ -->
|
266 |
If CDbl(Request("FRview_id")) = CDbl(rsQry.Fields("view_id")) Then
|
| 303 |
</td>
|
267 |
Response.write "<option value='"& rsQry.Fields("view_id") &"' selected>"& rsQry.Fields("view_name") &"</option>"
|
| 304 |
<td width="9%" valign="top"></td>
|
268 |
Else
|
| 305 |
</tr>
|
269 |
Response.write "<option value='"& rsQry.Fields("view_id") &"'>"& rsQry.Fields("view_name") &"</option>"
|
| 306 |
<tr>
|
270 |
End If
|
| 307 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
271 |
rsQry.MoveNext
|
| 308 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Base View</td>
|
272 |
|
| 309 |
|
273 |
WEnd
|
| 310 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Full Name</td>
|
274 |
|
| 311 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">User Name</td>
|
275 |
rsQry.Close()
|
| 312 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">User Email</td>
|
276 |
Set rsQry = nothing
|
| 313 |
<td valign="top">
|
277 |
%>
|
| 314 |
</tr>
|
278 |
</select>
|
| 315 |
<%
|
279 |
<!-- BUTTONS CONTROL +++++++++++++++++++ -->
|
| 316 |
Dim currViewId
|
280 |
<%
|
| 317 |
currViewId = -1
|
281 |
If RecordCount>0 and objAccessControl.IsActive("AdminView") Then
|
| 318 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM USERS USR, MEMBERS_GROUP MG, VIEWS V, AUTOBUILD_FAILURE AF WHERE AF.PROJ_ID = "& Request("proj_id") &" AND AF.GROUP_EMAIL_ID = MG.GROUP_EMAIL_ID AND USR.USER_ID = MG.USER_ID AND V.VIEW_ID = AF.VIEW_ID ORDER BY V.VIEW_NAME, USR.FULL_NAME" , cint(0) )
|
282 |
%>
|
| 319 |
'--- Render rows ---
|
283 |
<a href="javascript:;" class ="form_iname" onClick="MM_openBrWindow('wAddApplicationUser.asp?proj_id=<%=parProjId%>&view_id=<%=Request("FRview_id")%>','AddApplicationUser','scrollbars=yes,resizable=yes,width=650,height=800')"><img src="images/email-contact-orange.gif">Add View Owner</a>
|
| 320 |
Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
284 |
<%
|
| 321 |
' -------- GROUP BY BASE VIEW -----------------
|
285 |
End If
|
| 322 |
If CDbl(currViewid) <> CDbl(rsQry("view_id")) Then
|
286 |
%>
|
| 323 |
%>
|
287 |
<!-- +++++++++++++++++++++++++++++++++++ -->
|
| 324 |
<tr>
|
288 |
</td>
|
| 325 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
289 |
<td width="9%" valign="top"></td>
|
| 326 |
</tr>
|
290 |
<tr>
|
| 327 |
<tr>
|
291 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
| 328 |
<td nowrap class="body_scol"></td>
|
292 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Base View</td>
|
| 329 |
<td nowrap class="body_scol"><%=rsQry("view_name")%></td>
|
293 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Full Name</td>
|
| 330 |
<td nowrap class="body_scol"></td>
|
294 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">User Name</td>
|
| 331 |
<td nowrap class="body_scol"></td>
|
295 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">User Email</td>
|
| 332 |
<td nowrap class="body_scol"></td>
|
296 |
<td valign="top">
|
| 333 |
</tr>
|
297 |
</tr>
|
| 334 |
<%
|
298 |
<%
|
| 335 |
currViewId = CDbl(rsQry("view_id"))
|
299 |
Dim currViewId
|
| 336 |
End If
|
300 |
currViewId = -1
|
| 337 |
|
301 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM USERS USR, MEMBERS_GROUP MG, VIEWS V, AUTOBUILD_FAILURE AF WHERE AF.PROJ_ID = "& Request("proj_id") &" AND AF.GROUP_EMAIL_ID = MG.GROUP_EMAIL_ID AND USR.USER_ID = MG.USER_ID AND V.VIEW_ID = AF.VIEW_ID ORDER BY V.VIEW_NAME, USR.FULL_NAME" , cint(0) )
|
| 338 |
%>
|
302 |
'--- Render rows ---
|
| 339 |
|
303 |
Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 340 |
<tr>
|
304 |
' -------- GROUP BY BASE VIEW -----------------
|
| 341 |
<td align="center"><input type="checkbox" name="user_view_id_list" value="<%=rsQry("user_id")%>_<%=rsQry("view_id")%>"></td>
|
305 |
If CDbl(currViewid) <> CDbl(rsQry("view_id")) Then
|
| 342 |
<td nowrap class="body_rowg"></td>
|
306 |
%>
|
| 343 |
<td nowrap class="body_rowg"><%=rsQry("full_name")%></td>
|
307 |
<tr>
|
| 344 |
<td nowrap class="body_rowg"><%=rsQry("user_name")%></td>
|
308 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 345 |
<td nowrap class="body_rowg"><%=rsQry("user_email")%></td>
|
309 |
</tr>
|
| 346 |
</tr>
|
310 |
<tr>
|
| 347 |
<%
|
311 |
<td nowrap class="body_scol"></td>
|
| 348 |
rsQry.MoveNext
|
312 |
<td nowrap class="body_scol"><%=rsQry("view_name")%></td>
|
| 349 |
|
313 |
<td nowrap class="body_scol"></td>
|
| 350 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
|
314 |
<td nowrap class="body_scol"></td>
|
| 351 |
<tr>
|
315 |
<td nowrap class="body_scol"></td>
|
| 352 |
<td colspan="8" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
316 |
</tr>
|
| 353 |
</tr>
|
317 |
<%
|
| 354 |
<%End If
|
318 |
currViewId = CDbl(rsQry("view_id"))
|
| 355 |
Loop
|
319 |
End If
|
| 356 |
rsQry.Close()
|
320 |
%>
|
| 357 |
Set rsQry = nothing
|
321 |
<tr>
|
| 358 |
%>
|
322 |
<td align="center"><input type="checkbox" name="user_view_id_list" value="<%=rsQry("user_id")%>_<%=rsQry("view_id")%>"></td>
|
| 359 |
|
323 |
<td nowrap class="body_rowg"></td>
|
| 360 |
|
324 |
<td nowrap class="body_rowg"><%=rsQry("full_name")%></td>
|
| 361 |
|
325 |
<td nowrap class="body_rowg"><%=rsQry("user_name")%></td>
|
| 362 |
<tr>
|
326 |
<td nowrap class="body_rowg"><%=rsQry("user_email")%></td>
|
| 363 |
<td class="form_iname"> </td>
|
327 |
</tr>
|
| 364 |
<td> </td>
|
328 |
<%
|
| 365 |
<td class="val_err"></td>
|
329 |
rsQry.MoveNext
|
| 366 |
</tr>
|
330 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
| 367 |
</table>
|
331 |
%>
|
| 368 |
|
332 |
<tr>
|
| 369 |
|
333 |
<td colspan="8" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 370 |
</td>
|
334 |
</tr>
|
| 371 |
<td background="images/lbox_bgside_white.gif"> </td>
|
335 |
<%
|
| 372 |
</tr>
|
336 |
End If
|
| 373 |
<tr>
|
337 |
Loop
|
| 374 |
<td background="images/bg_action_norm.gif" ></td>
|
338 |
rsQry.Close()
|
| 375 |
<td align="right" background="images/bg_action_norm.gif" >
|
339 |
Set rsQry = nothing
|
| 376 |
|
340 |
%>
|
| 377 |
<%=objFormComponent.CancelButton ( "OK", "class='form_btn'", "rtree.asp?CANCEL=OK&"& objPMod.ComposeURL() )%>
|
341 |
<tr>
|
| 378 |
<%=objPMod.ComposeHiddenTags()%>
|
342 |
<td class="form_iname"> </td>
|
| 379 |
<%If objAccessControl.IsActive("AdminView") Then%>
|
343 |
<td> </td>
|
| 380 |
<input name="btn" type="submit" class="form_btn" value="Remove View Owner(s)">
|
344 |
<td class="val_err"></td>
|
| 381 |
<%End If%>
|
345 |
</tr>
|
| 382 |
<input type="hidden" name="user_id_list" value="<%=Request("user_id_list")%>">
|
346 |
</table>
|
| 383 |
<input type="hidden" name="action" value="true">
|
347 |
</td>
|
| 384 |
</td>
|
348 |
<td background="images/lbox_bgside_white.gif"> </td>
|
| 385 |
<td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
349 |
</tr>
|
| 386 |
</tr>
|
350 |
<tr>
|
| 387 |
<tr>
|
351 |
<td background="images/bg_action_norm.gif" ></td>
|
| 388 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
352 |
<td align="right" background="images/bg_action_norm.gif" >
|
| 389 |
<td background="images/lbox_bg_blue.gif"></td>
|
353 |
<%=objFormComponent.CancelButton ( "OK", "class='form_btn'", "rtree.asp?CANCEL=OK&"& objPMod.ComposeURL() )%>
|
| 390 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
354 |
<%=objPMod.ComposeHiddenTags()%>
|
| 391 |
</tr>
|
355 |
<%
|
| 392 |
</table>
|
356 |
If objAccessControl.IsActive("AdminView") Then
|
| 393 |
|
357 |
%>
|
| 394 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
358 |
<input name="btn" type="submit" class="form_btn" value="Remove View Owner(s)">
|
| 395 |
<!-- ACTION BUTTONS END ------------------------------------------></td>
|
359 |
<%
|
| 396 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
360 |
End If
|
| - |
|
361 |
%>
|
| - |
|
362 |
<input type="hidden" name="user_id_list" value="<%=Request("user_id_list")%>">
|
| - |
|
363 |
<input type="hidden" name="action" value="true">
|
| - |
|
364 |
</td>
|
| - |
|
365 |
<td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
| - |
|
366 |
</tr>
|
| - |
|
367 |
<tr>
|
| - |
|
368 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
369 |
<td background="images/lbox_bg_blue.gif"></td>
|
| - |
|
370 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
371 |
</tr>
|
| - |
|
372 |
</table>
|
| - |
|
373 |
|
| - |
|
374 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
| - |
|
375 |
<!-- ACTION BUTTONS END ------------------------------------------>
|
| - |
|
376 |
</td>
|
| - |
|
377 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
| 397 |
</tr>
|
378 |
</tr>
|
| 398 |
<tr>
|
379 |
<tr>
|
| 399 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|
380 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|
| 400 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
|
381 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
|
| 401 |
</tr>
|
382 |
</tr>
|
| 402 |
<%
|
383 |
<%
|
| 403 |
Call objFormComponent.FormEnd()
|
384 |
Call objFormComponent.FormEnd()
|
| 404 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
385 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
| 405 |
%>
|
386 |
%>
|
| 406 |
</table>
|
387 |
</table>
|
| 407 |
|
- |
|
| 408 |
|
- |
|
| 409 |
<!-- FOOTER -->
|
388 |
<!-- FOOTER -->
|
| 410 |
<!--#include file="_footer.asp"-->
|
389 |
<!--#include file="_footer.asp"-->
|
| 411 |
</body>
|
390 |
</body>
|
| 412 |
</html>
|
391 |
</html>
|
| 413 |
<%
|
392 |
<%
|