| Line 41... |
Line 41... |
| 41 |
%>
|
41 |
%>
|
| 42 |
<%
|
42 |
<%
|
| 43 |
'--------------------------------------------------------------------------------------------------------------------------
|
43 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 44 |
Sub AddViewUser ()
|
44 |
Sub AddViewUser ()
|
| 45 |
On Error Resume Next
|
45 |
On Error Resume Next
|
| 46 |
|
46 |
|
| 47 |
OraDatabase.Parameters.Add "USER_ID_LIST", Request("user_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
47 |
OraDatabase.Parameters.Add "USER_ID_LIST", Request("user_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 48 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
48 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 49 |
OraDatabase.Parameters.Add "VIEW_ID", Request("view_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
49 |
OraDatabase.Parameters.Add "VIEW_ID", Request("view_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 50 |
OraDatabase.BeginTrans
|
- |
|
| - |
|
50 |
|
| 51 |
objEH.TryORA ( OraSession )
|
51 |
objEH.TryORA ( OraSession )
|
| 52 |
|
52 |
|
| 53 |
OraDatabase.ExecuteSQL _
|
53 |
OraDatabase.ExecuteSQL _
|
| 54 |
"BEGIN ADD_AUTOBUILD_FAILURE_INFO ( :PROJ_ID, :VIEW_ID, :USER_ID_LIST ); END;"
|
54 |
"BEGIN ADD_AUTOBUILD_FAILURE_INFO ( :PROJ_ID, :VIEW_ID, :USER_ID_LIST ); END;"
|
| 55 |
|
55 |
|
| 56 |
objEH.CatchORA ( OraSession )
|
56 |
objEH.CatchORA ( OraSession )
|
| 57 |
|
- |
|
| 58 |
|
57 |
|
| 59 |
OraDatabase.Parameters.Remove "USER_ID_LIST"
|
58 |
OraDatabase.Parameters.Remove "USER_ID_LIST"
|
| 60 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
59 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 61 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
60 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
| 62 |
OraDatabase.CommitTrans
|
- |
|
| 63 |
|
61 |
|
| 64 |
End Sub
|
62 |
End Sub
|
| 65 |
'--------------------------------------------------------------------------------------------------------------------------
|
63 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 66 |
%>
|
64 |
%>
|
| 67 |
<%
|
65 |
<%
|
| 68 |
'------------ RUN BEFORE PAGE RENDER ----------
|
66 |
'------------ RUN BEFORE PAGE RENDER ----------
|
| Line 76... |
Line 74... |
| 76 |
'----------------------------------------------------
|
74 |
'----------------------------------------------------
|
| 77 |
|
75 |
|
| 78 |
If CBool(Request("action")) Then
|
76 |
If CBool(Request("action")) Then
|
| 79 |
If objForm.IsValidOnPostBack Then
|
77 |
If objForm.IsValidOnPostBack Then
|
| 80 |
' --- Form is Valid ---
|
78 |
' --- Form is Valid ---
|
| 81 |
|
79 |
|
| 82 |
Call AddViewUser()
|
80 |
Call AddViewUser()
|
| 83 |
|
81 |
|
| 84 |
If objEH.Finally Then
|
82 |
If objEH.Finally Then
|
| 85 |
%>
|
83 |
%>
|
| 86 |
<script language="JavaScript" type="text/javascript">
|
84 |
<script language="JavaScript" type="text/javascript">
|
| 87 |
window.opener.location='form_edit_project_view.asp?proj_id=<%=Request.Form("proj_id")%>&FRview_id=<%=Request.Form("view_id")%>';
|
85 |
window.opener.location='form_edit_project_view.asp?proj_id=<%=Request.Form("proj_id")%>&FRview_id=<%=Request.Form("view_id")%>';
|
| 88 |
</script>
|
86 |
</script>
|
| 89 |
<%
|
87 |
<%
|
| 90 |
Call CloseWindow()
|
88 |
Call CloseWindow()
|
| 91 |
|
89 |
|
| 92 |
End If
|
90 |
End If
|
| 93 |
|
91 |
|
| 94 |
End If
|
92 |
End If
|
| 95 |
End If
|
93 |
End If
|
| 96 |
'----------------------------------------------
|
94 |
'----------------------------------------------
|
| 97 |
%>
|
95 |
%>
|
| 98 |
<html>
|
96 |
<html>
|
| Line 105... |
Line 103... |
| 105 |
</head>
|
103 |
</head>
|
| 106 |
|
104 |
|
| 107 |
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onLoad="self.focus();">
|
105 |
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onLoad="self.focus();">
|
| 108 |
<table width="100%" border="0" cellspacing="0" cellpadding="10">
|
106 |
<table width="100%" border="0" cellspacing="0" cellpadding="10">
|
| 109 |
<tr>
|
107 |
<tr>
|
| 110 |
|
108 |
|
| 111 |
<td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" hspace="0" align="absmiddle"> Add User </span> <br>
|
109 |
<td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" hspace="0" align="absmiddle"> Add User </span> <br>
|
| 112 |
Search for User or select from the list. </td>
|
110 |
Search for User or select from the list. </td>
|
| 113 |
|
111 |
|
| 114 |
</tr>
|
112 |
</tr>
|
| 115 |
<form name="FormSearch" method="post" action="<%=ScriptName%>">
|
113 |
<form name="FormSearch" method="post" action="<%=ScriptName%>">
|
| 116 |
<tr>
|
114 |
<tr>
|
| 117 |
<td background="images/bg_quicksearch.gif" class="body_txt"><table width="100" border="0" cellspacing="3" cellpadding="0">
|
115 |
<td background="images/bg_quicksearch.gif" class="body_txt"><table width="100" border="0" cellspacing="3" cellpadding="0">
|
| 118 |
<tr>
|
116 |
<tr>
|
| Line 122... |
Line 120... |
| 122 |
</tr>
|
120 |
</tr>
|
| 123 |
</table></td>
|
121 |
</table></td>
|
| 124 |
</tr>
|
122 |
</tr>
|
| 125 |
<%'=objPMod.ComposeHiddenTags()%>
|
123 |
<%'=objPMod.ComposeHiddenTags()%>
|
| 126 |
<input type="hidden" name="view_id" value="<%=Request("view_id")%>">
|
124 |
<input type="hidden" name="view_id" value="<%=Request("view_id")%>">
|
| 127 |
<input type="hidden" name="proj_id" value="<%=Request("proj_id")%>">
|
125 |
<input type="hidden" name="proj_id" value="<%=Request("proj_id")%>">
|
| 128 |
</form>
|
126 |
</form>
|
| 129 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
127 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
| 130 |
<tr>
|
128 |
<tr>
|
| 131 |
<td background="images/bg_drk_bage_pane.gif">
|
129 |
<td background="images/bg_drk_bage_pane.gif">
|
| 132 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
130 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| Line 149... |
Line 147... |
| 149 |
</td>
|
147 |
</td>
|
| 150 |
</tr>
|
148 |
</tr>
|
| 151 |
<%End If%>
|
149 |
<%End If%>
|
| 152 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
150 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 153 |
</table>
|
151 |
</table>
|
| 154 |
|
152 |
|
| 155 |
<%
|
153 |
<%
|
| 156 |
Dim startPosition, pageNumber, navigator, totalRecords, lastRecord
|
154 |
Dim startPosition, pageNumber, navigator, totalRecords, lastRecord
|
| 157 |
Const MAX_ROWS = 50 ' Maximum number of rows displayed
|
155 |
Const MAX_ROWS = 50 ' Maximum number of rows displayed
|
| 158 |
|
156 |
|
| 159 |
OraDatabase.Parameters.Add "APP_ID", Request("app_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
157 |
OraDatabase.Parameters.Add "APP_ID", Request("app_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 160 |
|
158 |
|
| 161 |
'--- Set filters ---
|
159 |
'--- Set filters ---
|
| 162 |
If Request("filter") <> "" Then
|
160 |
If Request("filter") <> "" Then
|
| 163 |
OraDatabase.Parameters.Add "FULL_NAME", "%"& Request("filter") &"%", ORAPARM_INPUT, ORATYPE_VARCHAR2
|
161 |
OraDatabase.Parameters.Add "FULL_NAME", "%"& Request("filter") &"%", ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 164 |
OraDatabase.Parameters.Add "USER_NAME", Request("filter") &"%", ORAPARM_INPUT, ORATYPE_VARCHAR2
|
162 |
OraDatabase.Parameters.Add "USER_NAME", Request("filter") &"%", ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 165 |
OraDatabase.Parameters.Add "DOMAIN_NAME", Request("filter") &"%", ORAPARM_INPUT, ORATYPE_VARCHAR2
|
163 |
OraDatabase.Parameters.Add "DOMAIN_NAME", Request("filter") &"%", ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 166 |
Else
|
164 |
Else
|
| 167 |
OraDatabase.Parameters.Add "FULL_NAME", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
165 |
OraDatabase.Parameters.Add "FULL_NAME", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 168 |
OraDatabase.Parameters.Add "USER_NAME", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
166 |
OraDatabase.Parameters.Add "USER_NAME", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 169 |
OraDatabase.Parameters.Add "DOMAIN_NAME", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
167 |
OraDatabase.Parameters.Add "DOMAIN_NAME", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 170 |
End If
|
168 |
End If
|
| 171 |
|
169 |
|
| 172 |
OraDatabase.Parameters.Add "VIEW_ID", Request("view_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
170 |
OraDatabase.Parameters.Add "VIEW_ID", Request("view_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 173 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
171 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 174 |
|
172 |
|
| 175 |
Set rsUser = OraDatabase.DbCreateDynaset( GetQuery ("GetApplicationUserList.sql") , ORADYN_DEFAULT )
|
173 |
Set rsUser = OraDatabase.DbCreateDynaset( GetQuery ("GetApplicationUserList.sql") , ORADYN_DEFAULT )
|
| 176 |
|
174 |
|
| 177 |
OraDatabase.Parameters.Remove "APP_ID"
|
175 |
OraDatabase.Parameters.Remove "APP_ID"
|
| 178 |
OraDatabase.Parameters.Remove "FULL_NAME"
|
176 |
OraDatabase.Parameters.Remove "FULL_NAME"
|
| 179 |
OraDatabase.Parameters.Remove "USER_NAME"
|
177 |
OraDatabase.Parameters.Remove "USER_NAME"
|
| 180 |
OraDatabase.Parameters.Remove "DOMAIN_NAME"
|
178 |
OraDatabase.Parameters.Remove "DOMAIN_NAME"
|
| 181 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
179 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
| 182 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
180 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 183 |
|
181 |
|
| 184 |
|
182 |
|
| 185 |
'--- Get page number ---
|
183 |
'--- Get page number ---
|
| 186 |
pageNumber = 0
|
184 |
pageNumber = 0
|
| 187 |
If Request("pg") <> "" Then
|
185 |
If Request("pg") <> "" Then
|
| 188 |
pageNumber = CInt(Request("pg"))
|
186 |
pageNumber = CInt(Request("pg"))
|
| 189 |
End If
|
187 |
End If
|
| 190 |
|
188 |
|
| 191 |
|
189 |
|
| 192 |
'--- Set Cursor start position ---
|
190 |
'--- Set Cursor start position ---
|
| 193 |
startPosition = pageNumber * MAX_ROWS + 1
|
191 |
startPosition = pageNumber * MAX_ROWS + 1
|
| 194 |
If (NOT rsUser.BOF) AND (NOT rsUser.EOF) Then
|
192 |
If (NOT rsUser.BOF) AND (NOT rsUser.EOF) Then
|
| 195 |
rsUser.MoveTo ( startPosition ) ' Set starting cursor point
|
193 |
rsUser.MoveTo ( startPosition ) ' Set starting cursor point
|
| 196 |
|
194 |
|
| 197 |
End If
|
195 |
End If
|
| 198 |
|
196 |
|
| 199 |
|
197 |
|
| 200 |
'--- Construct Navigator
|
198 |
'--- Construct Navigator
|
| 201 |
navigator = ""
|
199 |
navigator = ""
|
| 202 |
If (NOT rsUser.BOF) AND (NOT rsUser.EOF) Then
|
200 |
If (NOT rsUser.BOF) AND (NOT rsUser.EOF) Then
|
| 203 |
totalRecords = rsUser.RecordCount ' Get total number of records
|
201 |
totalRecords = rsUser.RecordCount ' Get total number of records
|
| 204 |
|
202 |
|
| 205 |
'--- Create "Previous" link
|
203 |
'--- Create "Previous" link
|
| 206 |
If pageNumber > 0 Then
|
204 |
If pageNumber > 0 Then
|
| 207 |
navigator = navigator &"<a href='"& ScriptName &"?view_id="&Request("view_id")&"&pg="& pageNumber - 1 &"&"& objPMod.ComposeURL &"' class='body_link' title='Show Previous Page'>« Previous</a>"
|
205 |
navigator = navigator &"<a href='"& ScriptName &"?view_id="&Request("view_id")&"&pg="& pageNumber - 1 &"&"& objPMod.ComposeURL &"' class='body_link' title='Show Previous Page'>« Previous</a>"
|
| 208 |
End If
|
206 |
End If
|
| 209 |
|
207 |
|
| 210 |
'--- Create "Next" link
|
208 |
'--- Create "Next" link
|
| 211 |
If ( startPosition + MAX_ROWS ) < totalRecords Then
|
209 |
If ( startPosition + MAX_ROWS ) < totalRecords Then
|
| 212 |
navigator = navigator &" <a href='"& ScriptName &"?view_id="&Request("view_id")&"&pg="& pageNumber + 1 &"&"& objPMod.ComposeURL &"' class='body_link' title='Show Next Page'>Next »</a>"
|
210 |
navigator = navigator &" <a href='"& ScriptName &"?view_id="&Request("view_id")&"&pg="& pageNumber + 1 &"&"& objPMod.ComposeURL &"' class='body_link' title='Show Next Page'>Next »</a>"
|
| 213 |
End If
|
211 |
End If
|
| 214 |
|
212 |
|
| 215 |
End If
|
213 |
End If
|
| 216 |
|
214 |
|
| 217 |
|
215 |
|
| 218 |
'--- Calculate Last Record ---
|
216 |
'--- Calculate Last Record ---
|
| 219 |
If totalRecords > 0 Then
|
217 |
If totalRecords > 0 Then
|
| 220 |
lastRecord = ( startPosition - 1 + MAX_ROWS ) _
|
218 |
lastRecord = ( startPosition - 1 + MAX_ROWS ) _
|
| 221 |
+ ( CInt( ( startPosition - 1 + MAX_ROWS )/totalRecords > 1) ) * ( ( startPosition - 1 + MAX_ROWS ) - totalRecords )
|
219 |
+ ( CInt( ( startPosition - 1 + MAX_ROWS )/totalRecords > 1) ) * ( ( startPosition - 1 + MAX_ROWS ) - totalRecords )
|
| 222 |
End If
|
220 |
End If
|
| Line 226... |
Line 224... |
| 226 |
<td colspan="2" class="body_row"> </td>
|
224 |
<td colspan="2" class="body_row"> </td>
|
| 227 |
</tr>
|
225 |
</tr>
|
| 228 |
<tr>
|
226 |
<tr>
|
| 229 |
<td align="left" class="body_row">
|
227 |
<td align="left" class="body_row">
|
| 230 |
<%
|
228 |
<%
|
| 231 |
If totalRecords > 0 Then
|
229 |
If totalRecords > 0 Then
|
| 232 |
Response.write "Showing "& startPosition &" - "& lastRecord &" of "& totalRecords
|
230 |
Response.write "Showing "& startPosition &" - "& lastRecord &" of "& totalRecords
|
| 233 |
Else
|
231 |
Else
|
| 234 |
Response.write "No Results."
|
232 |
Response.write "No Results."
|
| 235 |
End If
|
233 |
End If
|
| 236 |
%></td>
|
234 |
%></td>
|
| 237 |
<td align="right" class="body_scol"><%=navigator%></td>
|
235 |
<td align="right" class="body_scol"><%=navigator%></td>
|
| 238 |
</tr>
|
236 |
</tr>
|
| 239 |
</table>
|
237 |
</table>
|
| 240 |
<!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
238 |
<!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 241 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
239 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
| 242 |
<tr>
|
240 |
<tr>
|
| 243 |
<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
|
241 |
<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
|
| 244 |
<td width="30%" background="images/bg_table_border.gif">
|
242 |
<td width="30%" background="images/bg_table_border.gif">
|
| Line 268... |
Line 266... |
| 268 |
<td nowrap class="body_row"><%=Eval( rsUser("user_image") ) & rsUser("full_name")%></td>
|
266 |
<td nowrap class="body_row"><%=Eval( rsUser("user_image") ) & rsUser("full_name")%></td>
|
| 269 |
<td class="body_rowg"><%=rsUser("user_name")%></td>
|
267 |
<td class="body_rowg"><%=rsUser("user_name")%></td>
|
| 270 |
<td class="body_rowg"><%=rsUser("domain")%></td>
|
268 |
<td class="body_rowg"><%=rsUser("domain")%></td>
|
| 271 |
</tr>
|
269 |
</tr>
|
| 272 |
<%rsUser.MoveNext%>
|
270 |
<%rsUser.MoveNext%>
|
| 273 |
|
271 |
|
| 274 |
<%If (NOT rsUser.BOF) AND (NOT rsUser.EOF) Then%>
|
272 |
<%If (NOT rsUser.BOF) AND (NOT rsUser.EOF) Then%>
|
| 275 |
<tr>
|
273 |
<tr>
|
| 276 |
<td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
274 |
<td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 277 |
</tr>
|
275 |
</tr>
|
| 278 |
<%End If%>
|
276 |
<%End If%>
|
| 279 |
|
277 |
|
| 280 |
<%
|
278 |
<%
|
| 281 |
Loop
|
279 |
Loop
|
| 282 |
|
280 |
|
| 283 |
|
281 |
|
| 284 |
|
282 |
|
| 285 |
rsUser.Close()
|
283 |
rsUser.Close()
|
| 286 |
Set rsUser = Nothing
|
284 |
Set rsUser = Nothing
|
| 287 |
%>
|
285 |
%>
|
| 288 |
<tr>
|
286 |
<tr>
|
| 289 |
<td colspan="4" background="images/bg_table_border.gif">
|
287 |
<td colspan="4" background="images/bg_table_border.gif">
|
| Line 292... |
Line 290... |
| 292 |
<td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
290 |
<td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 293 |
</tr>
|
291 |
</tr>
|
| 294 |
</table>
|
292 |
</table>
|
| 295 |
</td>
|
293 |
</td>
|
| 296 |
</tr>
|
294 |
</tr>
|
| 297 |
</table>
|
295 |
</table>
|
| 298 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
296 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 299 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
297 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 300 |
<tr>
|
298 |
<tr>
|
| 301 |
<td align="right" class="body_scol"><%=navigator%></td>
|
299 |
<td align="right" class="body_scol"><%=navigator%></td>
|
| 302 |
</tr>
|
300 |
</tr>
|
| 303 |
</table>
|
301 |
</table>
|
| 304 |
</td>
|
302 |
</td>
|
| 305 |
</tr>
|
303 |
</tr>
|
| 306 |
<%=objPMod.ComposeHiddenTags()%>
|
304 |
<%=objPMod.ComposeHiddenTags()%>
|
| 307 |
<input type="hidden" name="view_id" value="<%=Request("view_id")%>">
|
305 |
<input type="hidden" name="view_id" value="<%=Request("view_id")%>">
|
| 308 |
|
306 |
|