Subversion Repositories DevTools

Rev

Rev 5947 | Rev 6790 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5926 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'   RequestUsedByThisProjectSummary.asp
5
'   Show the body of the used by packages summary display
6
'   This is invoked via AJAX
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0	' always load the page, dont store
13
' Essential to get UTF through all the hoops. ie: VÄSTTRAFIK (VTK)
14
Response.ContentType = "text/html"
15
Response.AddHeader "Content-Type", "text/html;charset=UTF-8"
16
Response.CodePage = 65001
17
Response.CharSet = "UTF-8"
18
%>
19
<!--#include file="common/conf.asp"-->
20
<!--#include file="common/globals.asp"-->
21
<!--#include file="common/formating.asp"-->
22
<!--#include file="common/qstr.asp"-->
23
<!--#include file="common/common_subs.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim rsTemp
27
Dim pkgId
28
Dim parPvId
29
Dim projId, projName, projCount
5946 dpurdie 30
Dim parMode
5939 dpurdie 31
Dim divId
5926 dpurdie 32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parPvId = Request("pv_id")
5946 dpurdie 35
parMode = Request("mode")
5926 dpurdie 36
'----------------------------------------------
37
%>
38
<%
39
'------------------------------------------------------------------------------------------------------------------------
40
%>
41
<%
42
'------------------------ MAIN LINE ---------------------------------
43
'--------------------------------------------------------------------
44
%>
45
      <table width="100%"  border="0" cellspacing="1" cellpadding="4">
46
         <tr>
47
            <td width="1%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td>
48
            <td width="100%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Project</td>
49
         </tr>
50
         <%
5946 dpurdie 51
         OraDatabase.Parameters.Add "MATCH",  parMode, ORAPARM_INPUT, ORATYPE_NUMBER
52
         OraDatabase.Parameters.Add "PV_ID",   parPvId, ORAPARM_INPUT, ORATYPE_NUMBER
5926 dpurdie 53
 
54
         Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByProjects.sql"), cint(0) )
55
 
5946 dpurdie 56
         OraDatabase.Parameters.Remove "MATCH"
5939 dpurdie 57
         OraDatabase.Parameters.Remove "PV_ID"
5926 dpurdie 58
         %>
59
         <%If rsTemp.RecordCount < 1 Then%>
60
            <tr>
61
               <td background="images/bg_form_lightgray.gif" nowrap class="form_item">&nbsp;</td>
5947 dpurdie 62
               <td background="images/bg_form_lightgray.gif" nowrap class="form_item">None Found</td>
5926 dpurdie 63
            </tr>
64
         <%End If%>
65
         <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
66
            projId = rsTemp("proj_id")
67
            projName = rsTemp("proj_name")
68
            projCount = rsTemp("used_count")
5946 dpurdie 69
            divId = "PROJID_" & parMode & "_" & projId
5926 dpurdie 70
            %>
71
            <tr>
72
               <td background="images/bg_form_lightgray.gif" class="form_item"></td>
73
               <td nowrap background="images/bg_form_lightgray.gif" class="form_item">
6613 dpurdie 74
                  <a href="javascript:;" class="txt_linked" onClick="ToggleLoadControl('<%=divId%>','RequestUsedByThisProject.asp?pv_id=<%=parPvId%>&proj_id=<%=projId%>&mode=<%=parMode%>');">
5939 dpurdie 75
                        <img id=IMG_<%=divId%> src="images/bt_plus.gif" border="0" align="absmiddle" hspace="3">
5926 dpurdie 76
                        <%= projName &" ("& projCount &")"%>
77
                   </a>
5939 dpurdie 78
                  <DIV class="form_item" id="<%=divId%>" style="display:none;"><%=enumLOADING%></DIV>
5926 dpurdie 79
               </td>
80
            </tr>
81
 
82
            <%rsTemp.MoveNext
83
         WEnd
84
         rsTemp.Close
85
         Set rsTemp = nothing%>
86
 
87
      </table><br>
88
<%
89
Call Destroy_All_Objects
90
%>