| Line 24... |
Line 24... |
| 24 |
<!--#include file="_access_control_general.asp"-->
|
24 |
<!--#include file="_access_control_general.asp"-->
|
| 25 |
<!--#include file="_access_control_project.asp"-->
|
25 |
<!--#include file="_access_control_project.asp"-->
|
| 26 |
<%
|
26 |
<%
|
| 27 |
'------------ Variable Definition -------------
|
27 |
'------------ Variable Definition -------------
|
| 28 |
Dim parPv_id
|
28 |
Dim parPv_id
|
| 29 |
Dim parFRiss_db
|
- |
|
| 30 |
Dim parFRiss_id
|
29 |
Dim parFRiss_id
|
| 31 |
Dim parFRiss_num
|
30 |
Dim parFRiss_num
|
| 32 |
Dim parFRpkey
|
31 |
Dim parFRpkey
|
| 33 |
Dim rsCQ
|
32 |
Dim rsCQ
|
| 34 |
Dim rspPage ' current page number for multiple page results
|
33 |
Dim rspPage ' current page number for multiple page results
|
| 35 |
Dim rspTotal ' total number of records
|
34 |
Dim rspTotal ' total number of records
|
| 36 |
Dim rspCount ' Record counter
|
35 |
Dim rspCount ' Record counter
|
| 37 |
Dim rspTotalPages ' Total number of pages required to display results
|
36 |
Dim rspTotalPages ' Total number of pages required to display results
|
| 38 |
Dim imported
|
37 |
Dim imported
|
| 39 |
Dim retVal
|
38 |
Dim retVal
|
| 40 |
Dim rsCQTemp
|
- |
|
| 41 |
Dim SQLstr
|
39 |
Dim SQLstr
|
| 42 |
Dim parPackage
|
- |
|
| 43 |
Dim parProject
|
- |
|
| 44 |
Dim parProduct
|
- |
|
| 45 |
Dim parSkipOpen
|
- |
|
| 46 |
Dim disabled
|
- |
|
| 47 |
Dim parCategMain
|
- |
|
| 48 |
Dim parCategMinor
|
- |
|
| 49 |
Dim parIStates
|
40 |
Dim parIStates
|
| 50 |
Dim parTitle
|
- |
|
| 51 |
Dim oIStates
|
- |
|
| 52 |
Dim checked
|
- |
|
| 53 |
'------------ Constants Declaration -----------
|
41 |
'------------ Constants Declaration -----------
|
| 54 |
Const rspMax = 15 ' maximum number of records displayed
|
42 |
Const rspMax = 15 ' maximum number of records displayed
|
| 55 |
Const LENUM_ALL = "ALL"
|
43 |
Const LENUM_ALL = "ALL"
|
| 56 |
Const LCONST_STAR = "*"
|
- |
|
| 57 |
'------------ Variable Init -------------------
|
44 |
'------------ Variable Init -------------------
|
| 58 |
parPv_id = Request("pv_id")
|
45 |
parPv_id = Request("pv_id")
|
| 59 |
parRtag_id = Request("rtag_id")
|
46 |
parRtag_id = Request("rtag_id")
|
| 60 |
rspPage = Request("rpg")
|
47 |
rspPage = Request("rpg")
|
| 61 |
parFRiss_db = Request("FRiss_db")
|
- |
|
| 62 |
parFRiss_id = Request("FRiss_id")
|
48 |
parFRiss_id = Request("FRiss_id")
|
| 63 |
parFRiss_num = Request("FRiss_num")
|
49 |
parFRiss_num = Request("FRiss_num")
|
| 64 |
parPackage = Request("package")
|
- |
|
| 65 |
parProject = Request("project")
|
- |
|
| 66 |
parProduct = Request("product")
|
- |
|
| 67 |
parCategMain = Request("categmain")
|
- |
|
| 68 |
parCategMinor = Request("categminor")
|
- |
|
| 69 |
parSkipOpen = Request("skip_open")
|
- |
|
| 70 |
parIStates = Request("istates")
|
50 |
parIStates = Request("istates")
|
| 71 |
parTitle = Request("title")
|
- |
|
| 72 |
parFRpkey = Request("FRpkey")
|
51 |
parFRpkey = Request("FRpkey")
|
| 73 |
|
52 |
|
| 74 |
Set rsCQ = Server.CreateObject("ADODB.Recordset")
|
53 |
Set rsCQ = Server.CreateObject("ADODB.Recordset")
|
| 75 |
|
54 |
|
| 76 |
imported = FALSE
|
55 |
imported = FALSE
|
| Line 82... |
Line 61... |
| 82 |
If (parFRpkey = "") Then
|
61 |
If (parFRpkey = "") Then
|
| 83 |
parFRpkey = GetDefaultProjectKey(Request("rtag_id"))
|
62 |
parFRpkey = GetDefaultProjectKey(Request("rtag_id"))
|
| 84 |
if parFRpkey="" OR IsNull(parFRpkey) Then parFRpkey = LENUM_ALL
|
63 |
if parFRpkey="" OR IsNull(parFRpkey) Then parFRpkey = LENUM_ALL
|
| 85 |
End If
|
64 |
End If
|
| 86 |
|
65 |
|
| 87 |
If (parTitle = "") Then parTitle = LCONST_STAR ' Default
|
- |
|
| 88 |
|
- |
|
| 89 |
' Get DEVI issue states checked
|
- |
|
| 90 |
Set oIStates = GetIStates()
|
- |
|
| 91 |
|
- |
|
| 92 |
|
- |
|
| 93 |
'----------------------------------------------
|
66 |
'----------------------------------------------
|
| 94 |
'Response.write "btn="& Request("btn") & "rspPage=" &rspPage&"<br>"
|
67 |
'Response.write "btn="& Request("btn") & "rspPage=" &rspPage&"<br>"
|
| 95 |
'Response.write "parPackage="& parPackage &", parProject="& parProject &", parProduct="& parProduct &", parSkipOpen="& parSkipOpen &"<br>"
|
68 |
'Response.write "parPackage="& parPackage &", parProject="& parProject &", parProduct="& parProduct &", parSkipOpen="& parSkipOpen &"<br>"
|
| 96 |
'Response.write "parPv_id="& parPv_id &", parRtag_id="& parRtag_id &", rspPage="& rspPage &", parFRiss_db="& parFRiss_db &", parFRiss_id="& parFRiss_id &", parFRiss_num="& parFRiss_num
|
69 |
'Response.write "parPv_id="& parPv_id &", parRtag_id="& parRtag_id &", rspPage="& rspPage &", parFRiss_id="& parFRiss_id &", parFRiss_num="& parFRiss_num
|
| 97 |
'Response.write "parIStates="& parIStates &", parSkipOpen="& parSkipOpen
|
70 |
'Response.write "parIStates="& parIStates &", parSkipOpen="& parSkipOpen
|
| 98 |
%>
|
71 |
%>
|
| 99 |
<%
|
72 |
<%
|
| 100 |
'------------------------------------------------------------------------------------------------------------------------------------
|
73 |
'------------------------------------------------------------------------------------------------------------------------------------
|
| 101 |
Function GetIStates()
|
- |
|
| 102 |
Dim IStates, aStates, stateId
|
- |
|
| 103 |
Set IStates = CreateObject("Scripting.Dictionary")
|
- |
|
| 104 |
|
- |
|
| 105 |
If parIStates = "" Then
|
- |
|
| 106 |
IStates.Item ("ALL") = "checked"
|
- |
|
| 107 |
Else
|
- |
|
| 108 |
|
- |
|
| 109 |
aStates = Split( Replace( parIStates, " ", "" ), ",")
|
- |
|
| 110 |
|
- |
|
| 111 |
For Each stateId In aStates
|
- |
|
| 112 |
IStates.Item (CStr(stateId)) = "checked"
|
- |
|
| 113 |
Next
|
- |
|
| 114 |
|
- |
|
| 115 |
|
- |
|
| 116 |
End If
|
- |
|
| 117 |
|
- |
|
| 118 |
Set GetIStates = IStates
|
- |
|
| 119 |
|
- |
|
| 120 |
End Function
|
- |
|
| 121 |
|
- |
|
| 122 |
'------------------------------------------------------------------------------------------------------------------------------------
|
- |
|
| 123 |
Function Get_Issues ( NNiss_db, NNiss_num, NNrecordCount, OOrsCQ, apkey)
|
74 |
Function Get_Issues ( NNiss_num, NNrecordCount, OOrsCQ, apkey)
|
| 124 |
Dim SQLstr, issARR, iss_num, col_name, Title
|
75 |
Dim SQLstr, issARR, iss_num, col_name, Title
|
| 125 |
|
76 |
|
| 126 |
SQLstr = _
|
77 |
SQLstr = _
|
| 127 |
"SELECT project.pkey as project, I.issuenum AS iss_num, I.summary as summary, ISS.pname AS state "&_
|
78 |
"SELECT project.pkey as project, I.issuenum AS iss_num, I.summary as summary, ISS.pname AS state "&_
|
| 128 |
"FROM jiraissue I, project, issuestatus ISS "&_
|
79 |
"FROM jiraissue I, project, issuestatus ISS "&_
|
| Line 190... |
Line 141... |
| 190 |
|
141 |
|
| 191 |
rsTemp.Close
|
142 |
rsTemp.Close
|
| 192 |
Set rsTemp = nothing
|
143 |
Set rsTemp = nothing
|
| 193 |
End Function
|
144 |
End Function
|
| 194 |
'------------------------------------------------------------------------------------------------------------------------------------
|
145 |
'------------------------------------------------------------------------------------------------------------------------------------
|
| 195 |
Sub Import_Issues ( NNpv_id, NNiss_db, NNiss_id_list )
|
146 |
Sub Import_Issues ( NNpv_id, NNiss_id_list )
|
| 196 |
Dim issArr , iss_id
|
147 |
Dim issArr , iss_id
|
| 197 |
If NNiss_id_list = "" Then Exit Sub
|
148 |
If NNiss_id_list = "" Then Exit Sub
|
| 198 |
|
149 |
|
| 199 |
issArr = Split ( NNiss_id_list, ",")
|
150 |
issArr = Split ( NNiss_id_list, ",")
|
| 200 |
'Response.Write("Import_Issues" & NNiss_id_list)
|
151 |
'Response.Write("Import_Issues" & NNiss_id_list)
|
| Line 229... |
Line 180... |
| 229 |
'------------------------------------------------------------------------------------------------------------------------------------
|
180 |
'------------------------------------------------------------------------------------------------------------------------------------
|
| 230 |
%>
|
181 |
%>
|
| 231 |
<%
|
182 |
<%
|
| 232 |
'Process submition
|
183 |
'Process submition
|
| 233 |
If CBool(Request("action")) AND (Request("btn") = "Import") AND objAccessControl.UserLogedIn Then
|
184 |
If CBool(Request("action")) AND (Request("btn") = "Import") AND objAccessControl.UserLogedIn Then
|
| 234 |
Call Import_Issues ( parPv_id, parFRiss_db, parFRiss_id )
|
185 |
Call Import_Issues ( parPv_id, parFRiss_id )
|
| 235 |
imported = TRUE
|
186 |
imported = TRUE
|
| 236 |
Call OpenInParentWindow ("fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id)
|
187 |
Call OpenInParentWindow ("fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id)
|
| 237 |
|
- |
|
| 238 |
End If
|
188 |
End If
|
| 239 |
%>
|
189 |
%>
|
| 240 |
<%
|
190 |
<%
|
| 241 |
'-------------- Main Line ---------------
|
191 |
'-------------- Main Line ---------------
|
| 242 |
|
192 |
|
| 243 |
retVal = Get_Issues ( parFRiss_db, parFRiss_num, rspTotal, rsCQ, parFRpkey)
|
193 |
retVal = Get_Issues ( parFRiss_num, rspTotal, rsCQ, parFRpkey)
|
| 244 |
|
194 |
|
| 245 |
' total number of pages required
|
195 |
' total number of pages required
|
| 246 |
rspTotalPages = rspTotal \ rspMax
|
196 |
rspTotalPages = rspTotal \ rspMax
|
| 247 |
If (rspTotal Mod rspMax) > 0 Then rspTotalPages = rspTotalPages + 1
|
197 |
If (rspTotal Mod rspMax) > 0 Then rspTotalPages = rspTotalPages + 1
|
| 248 |
%>
|
198 |
%>
|
| Line 256... |
Line 206... |
| 256 |
<script language="JavaScript" src="images/common.js"></script>
|
206 |
<script language="JavaScript" src="images/common.js"></script>
|
| 257 |
</head>
|
207 |
</head>
|
| 258 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
208 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
| 259 |
<%If retVal = 0 Then%>
|
209 |
<%If retVal = 0 Then%>
|
| 260 |
<form name="importform" method="post" action="<%=scriptName%>">
|
210 |
<form name="importform" method="post" action="<%=scriptName%>">
|
| 261 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
211 |
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2">
|
| - |
|
212 |
<!-- Form Body -->
|
| 262 |
<tr>
|
213 |
<tr height="1%">
|
| 263 |
<td height="1%" background="images/bg_admin_dark.gif"><img src="images/spacer.gif" width="10" height="40"></td>
|
214 |
<td nowrap class="wform_ttl" background="images/bg_admin_dark.gif">
|
| 264 |
<td nowrap colspan="3" class="wform_ttl" background="images/bg_admin_dark.gif"><table width="100" border="0" cellspacing="5" cellpadding="0">
|
215 |
<table border="0" cellspacing="5" cellpadding="0">
|
| 265 |
<tr>
|
216 |
<tr>
|
| 266 |
<td align="left" class="wform_ttl">Issue Number</td>
|
217 |
<td align="left" class="wform_ttl">Issue Number</td>
|
| 267 |
<td nowrap><input name="FRiss_num" type="text" class="form_item" id="FRiss_num" value="<%=parFRiss_num%>" size="30" > <span class="form_wtxt_link">Example: ALL, 123, or a list</span></td>
|
218 |
<td nowrap><input name="FRiss_num" type="text" class="form_item" id="FRiss_num" value="<%=parFRiss_num%>" size="30" > <span class="form_wtxt_link">Example: ALL, 123, or a list</span></td>
|
| 268 |
</tr>
|
219 |
</tr>
|
| 269 |
<tr>
|
220 |
<tr>
|
| 270 |
<td align="left" class="wform_ttl">Project Key</td>
|
221 |
<td align="left" class="wform_ttl">Project Key</td>
|
| 271 |
<td nowrap><input name="FRpkey" type="text" class="form_item" id="FRpkey" value="<%=parFRpkey%>" size="30" > <span class="form_wtxt_link">Example: ALL, SLSCM </span></td>
|
222 |
<td nowrap><input name="FRpkey" type="text" class="form_item" id="FRpkey" value="<%=parFRpkey%>" size="30" > <span class="form_wtxt_link">Example: ALL, SLSCM </span></td>
|
| 272 |
</tr>
|
223 |
</tr>
|
| 273 |
<tr>
|
224 |
<tr>
|
| 274 |
<td align="left" class="wform_ttl">Database</td>
|
225 |
<td align="left" class="wform_ttl">Database</td>
|
| 275 |
<td><span class="form_item"><%=JIRA_DATABASE%>: <%=JIRA_URL%></span></td>
|
226 |
<td><span class="form_item"><%=JIRA_DATABASE%>: <%=JIRA_URL%></span></td>
|
| 276 |
</tr>
|
227 |
</tr>
|
| 277 |
|
- |
|
| 278 |
</table>
|
228 |
</table>
|
| 279 |
|
229 |
</tr>
|
| - |
|
230 |
<!-- Find Button -->
|
| - |
|
231 |
<tr height="1%">
|
| - |
|
232 |
<td background="images/bg_admin_dark.gif">
|
| 280 |
<table width="400" border="0" cellspacing="5" cellpadding="0">
|
233 |
<table width="100%" border="0" cellspacing="5" cellpadding="0">
|
| 281 |
<tr background="images/lbox_bg_blue.gif">
|
234 |
<tr background="images/lbox_bg_blue.gif">
|
| 282 |
<td colspan="2"><img src="images/spacer.gif" width="1" height="1"></td>
|
235 |
<td colspan="2"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 283 |
</tr>
|
236 |
</tr>
|
| 284 |
<tr>
|
237 |
<tr>
|
| 285 |
<td width="1"> </td>
|
238 |
<td width="1"> </td>
|
| 286 |
<td width="100%"><input type="submit" name="btn" value="Find »" class="form_btn_comp"></td>
|
239 |
<td width="100%"><input type="submit" name="btn" value="Find »" class="form_btn_comp"></td>
|
| 287 |
</tr>
|
240 |
</tr>
|
| 288 |
</table></td>
|
241 |
</table></td>
|
| 289 |
</tr>
|
242 |
</tr>
|
| 290 |
|
- |
|
| 291 |
<tr>
|
- |
|
| 292 |
<td background="images/lbox_bg_blue.gif" width="1%" height="1%"> </td>
|
- |
|
| 293 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> </td>
|
- |
|
| 294 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
- |
|
| 295 |
<input type="submit" name="btn" value="Import" class="form_btn_comp">
|
243 |
<!-- Import Close Button -->
|
| 296 |
<input type="reset" name="btn" value="Close" class="form_btn_comp" onclick="self.close()">
|
- |
|
| 297 |
</td>
|
244 |
<tr height="1%">
|
| 298 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%" nowrap>
|
245 |
<td background="images/lbox_bg_blue.gif" >
|
| 299 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
- |
|
| 300 |
</tr>
|
- |
|
| 301 |
<tr>
|
- |
|
| 302 |
<td height="100%" width="1%"> </td>
|
- |
|
| 303 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
- |
|
| 304 |
<%If imported Then%>
|
- |
|
| 305 |
<%Call DisplayInfo ( "ISSUES_IMPORTED", "300" )%>
|
- |
|
| 306 |
<%End If%>
|
- |
|
| 307 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
246 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 308 |
<tr>
|
247 |
<tr>
|
| 309 |
<td width="1%" background="images/bg_form_lightbluedark.gif"> </td>
|
- |
|
| 310 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Issue Key</td>
|
- |
|
| 311 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">State</td>
|
- |
|
| 312 |
<td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Summary</td>
|
- |
|
| 313 |
</tr>
|
- |
|
| 314 |
<%
|
- |
|
| 315 |
rspCount = 0
|
- |
|
| 316 |
If (NOT rsCQ.BOF) AND (NOT rsCQ.EOF) Then
|
- |
|
| 317 |
rsCQ.Move( rspMax * (rspPage - 1))
|
- |
|
| 318 |
|
- |
|
| 319 |
%>
|
- |
|
| 320 |
<%
|
- |
|
| 321 |
while ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (rspCount < rspMax))
|
- |
|
| 322 |
dim jiraIssue, jiraText
|
- |
|
| 323 |
jiraIssue = rsCQ("project") & "-" & rsCQ("iss_num")
|
- |
|
| 324 |
jiraText = jiraIssue
|
248 |
<td align="right">
|
| 325 |
%>
|
- |
|
| 326 |
<tr>
|
- |
|
| 327 |
<td><input type="checkbox" name="FRiss_id" value='<%=jiraIssue%>'></td>
|
249 |
<input type="submit" name="btn" value="Import" class="form_btn_comp">
|
| 328 |
<td nowrap class="form_item">
|
- |
|
| 329 |
|
- |
|
| 330 |
<%
|
- |
|
| 331 |
If parFRiss_num <> LENUM_ALL and parFRpkey = LENUM_ALL Then
|
- |
|
| 332 |
jiraText = Highlight_Substring( jiraIssue, parFRiss_num )
|
- |
|
| 333 |
End If
|
- |
|
| 334 |
%>
|
- |
|
| 335 |
<a href="<%=JIRA_URL%>/browse/<%=jiraIssue%>" target="_blank"><%=jiraText%></a>
|
250 |
<input type="reset" name="btn" value="Close" class="form_btn_comp" onclick="self.close()">
|
| 336 |
</td>
|
251 |
</td>
|
| 337 |
<td class="form_item"><%=rsCQ("state")%></td>
|
- |
|
| 338 |
<td class="form_item"><%=rsCQ("summary")%></td>
|
- |
|
| 339 |
</tr>
|
- |
|
| 340 |
<%rspCount = rspCount + 1
|
- |
|
| 341 |
rsCQ.MoveNext
|
- |
|
| 342 |
WEnd
|
- |
|
| 343 |
rsCQ.Close
|
- |
|
| 344 |
Set rsCQ = nothing%>
|
- |
|
| 345 |
<%End If%>
|
- |
|
| 346 |
<tr>
|
- |
|
| 347 |
<td background="images/bg_form_lightbluedark.gif"> </td>
|
- |
|
| 348 |
<td colspan="3" nowrap background="images/bg_form_lightbluedark.gif" class="form_step">
|
- |
|
| 349 |
<%
|
- |
|
| 350 |
If rspTotal > rspMax Then
|
- |
|
| 351 |
If CInt(rspPage) = CInt(rspTotalPages) Then
|
- |
|
| 352 |
Response.write "Found "& rspTotal &" records, showing "& (rspMax * rspPage) - rspMax + 1 &" - "& rspTotal
|
- |
|
| 353 |
Else
|
- |
|
| 354 |
Response.write "Found "& rspTotal &" records, showing "& (rspMax * rspPage) - rspMax + 1 &" - "& (rspCount * rspPage)
|
- |
|
| 355 |
End If
|
- |
|
| 356 |
Else
|
- |
|
| 357 |
Response.write "Found "& rspTotal &" records"
|
- |
|
| 358 |
End If
|
- |
|
| 359 |
%>
|
- |
|
| 360 |
</td>
|
- |
|
| 361 |
</tr>
|
- |
|
| 362 |
</table>
|
252 |
</table>
|
| - |
|
253 |
</tr>
|
| - |
|
254 |
<!-- Post Import Message Area -->
|
| - |
|
255 |
<tr height="1%">
|
| - |
|
256 |
<td>
|
| - |
|
257 |
<%If imported Then%>
|
| - |
|
258 |
<%Call DisplayInfo ( "ISSUES_IMPORTED", "300" )%>
|
| - |
|
259 |
<%End If%>
|
| - |
|
260 |
</td>
|
| - |
|
261 |
</tr>
|
| - |
|
262 |
<!-- Table of issues wrapper -->
|
| - |
|
263 |
<tr height="1%">
|
| - |
|
264 |
<td>
|
| 363 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
265 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| - |
|
266 |
<tr>
|
| - |
|
267 |
<td width="1%" background="images/bg_form_lightbluedark.gif"> </td>
|
| - |
|
268 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Issue Key</td>
|
| - |
|
269 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">State</td>
|
| - |
|
270 |
<td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Summary</td>
|
| - |
|
271 |
</tr>
|
| - |
|
272 |
<%rspCount = 0
|
| - |
|
273 |
If (NOT rsCQ.BOF) AND (NOT rsCQ.EOF) Then
|
| - |
|
274 |
rsCQ.Move( rspMax * (rspPage - 1))
|
| - |
|
275 |
while ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (rspCount < rspMax))
|
| - |
|
276 |
dim jiraIssue, jiraText
|
| - |
|
277 |
jiraIssue = rsCQ("project") & "-" & rsCQ("iss_num")
|
| - |
|
278 |
jiraText = jiraIssue
|
| - |
|
279 |
%>
|
| - |
|
280 |
<tr>
|
| - |
|
281 |
<td><input type="checkbox" name="FRiss_id" value='<%=jiraIssue%>'></td>
|
| - |
|
282 |
<td nowrap class="form_item">
|
| - |
|
283 |
<%If parFRiss_num <> LENUM_ALL and parFRpkey = LENUM_ALL Then
|
| - |
|
284 |
jiraText = Highlight_Substring( jiraIssue, parFRiss_num )
|
| - |
|
285 |
End If%>
|
| - |
|
286 |
<a href="<%=JIRA_URL%>/browse/<%=jiraIssue%>" target="_blank"><%=jiraText%></a>
|
| - |
|
287 |
</td>
|
| - |
|
288 |
<td class="form_item"><%=rsCQ("state")%></td>
|
| - |
|
289 |
<td class="form_item"><%=rsCQ("summary")%></td>
|
| - |
|
290 |
</tr>
|
| - |
|
291 |
<%rspCount = rspCount + 1
|
| - |
|
292 |
rsCQ.MoveNext
|
| - |
|
293 |
WEnd
|
| - |
|
294 |
rsCQ.Close
|
| - |
|
295 |
Set rsCQ = nothing%>
|
| - |
|
296 |
<%End If%>
|
| - |
|
297 |
<tr>
|
| - |
|
298 |
<!-- Number of issues found -->
|
| - |
|
299 |
<td background="images/bg_form_lightbluedark.gif"> </td>
|
| - |
|
300 |
<td colspan="3" nowrap background="images/bg_form_lightbluedark.gif" class="form_step">
|
| - |
|
301 |
<%If rspTotal > rspMax Then
|
| - |
|
302 |
If CInt(rspPage) = CInt(rspTotalPages) Then
|
| - |
|
303 |
Response.write "Found "& rspTotal &" records, showing "& (rspMax * rspPage) - rspMax + 1 &" - "& rspTotal
|
| - |
|
304 |
Else
|
| - |
|
305 |
Response.write "Found "& rspTotal &" records, showing "& (rspMax * rspPage) - rspMax + 1 &" - "& (rspCount * rspPage)
|
| - |
|
306 |
End If
|
| - |
|
307 |
Else
|
| - |
|
308 |
Response.write "Found "& rspTotal &" records"
|
| - |
|
309 |
End If
|
| - |
|
310 |
%>
|
| - |
|
311 |
</td>
|
| - |
|
312 |
</table>
|
| - |
|
313 |
<!-- Next and Previous Buttons -->
|
| - |
|
314 |
<tr height="90%" valign="bottom">
|
| 364 |
<tr>
|
315 |
<td>
|
| - |
|
316 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| - |
|
317 |
<tr>
|
| 365 |
<td align="center">
|
318 |
<td align="center">
|
| 366 |
<%If CInt(rspPage) > 1 Then%><a href="javascript:;" onClick="importform.rpg.value = parseInt(importform.rpg.value) - 1; importform.submit();" class="txt_linked"><previous</a><%End If%>
|
319 |
<%If CInt(rspPage) > 1 Then%><a href="javascript:;" onClick="importform.rpg.value = parseInt(importform.rpg.value) - 1; importform.submit();" class="txt_linked"><previous</a><%End If%>
|
| 367 |
<%If CInt(rspPage) < CInt(rspTotalPages) Then%><a href="javascript:void(document.importform.submit())" onClick="importform.rpg.value = parseInt(importform.rpg.value) + 1; importform.btn.value='next';" class="txt_linked">next ></a><%End If%></td>
|
320 |
<%If CInt(rspPage) < CInt(rspTotalPages) Then%><a href="javascript:void(document.importform.submit())" onClick="importform.rpg.value = parseInt(importform.rpg.value) + 1; importform.btn.value='next';" class="txt_linked">next ></a><%End If%></td>
|
| 368 |
</tr>
|
321 |
</tr>
|
| 369 |
</table>
|
322 |
</table>
|
| 370 |
<br>
|
323 |
</td>
|
| 371 |
</td>
|
324 |
</tr>
|
| - |
|
325 |
<!-- Bottom Line -->
|
| 372 |
</tr>
|
326 |
<tr>
|
| 373 |
<tr>
|
327 |
<td>
|
| 374 |
<td width="1%" height="1%" background="images/lbox_bg_blue.gif"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
328 |
<img src="images/lbox_bg_blue.gif" width="100%" height="5">
|
| 375 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
329 |
</td>
|
| 376 |
</tr>
|
330 |
</tr>
|
| 377 |
</table>
|
331 |
</table>
|
| 378 |
<input name="rpg" type="hidden" value="<%=rspPage%>">
|
332 |
<input name="rpg" type="hidden" value="<%=rspPage%>">
|
| 379 |
<input name="skip_open" type="hidden" value="<%=parSkipOpen%>">
|
- |
|
| 380 |
<input name="pv_id" type="hidden" value="<%=parPv_id%>">
|
333 |
<input name="pv_id" type="hidden" value="<%=parPv_id%>">
|
| 381 |
<input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
|
334 |
<input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
|
| 382 |
<input name="action" type="hidden" value="true">
|
335 |
<input name="action" type="hidden" value="true">
|
| 383 |
</form>
|
336 |
</form>
|
| 384 |
<%Else%>
|
337 |
<%Else%>
|
| 385 |
<%=enumMSSQL_ERROR%>
|
338 |
<%=enumMSSQL_ERROR%>
|
| 386 |
<%End If%>
|
339 |
<%End If%>
|
| 387 |
</body>
|
340 |
</body>
|
| 388 |
</html>
|
341 |
</html>
|
| 389 |
|
- |
|
| 390 |
|
- |
|
| 391 |
<!-- DESTRUCTOR ------->
|
342 |
<!-- DESTRUCTOR ------->
|
| 392 |
<!--#include file="common/destructor.asp"-->
|
343 |
<!--#include file="common/destructor.asp"-->
|