Subversion Repositories DevTools

Rev

Rev 5926 | Rev 5946 | 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 parPkg_id
29
Dim parVext
30
Dim parPvId
31
Dim projId, projName, projCount
5939 dpurdie 32
Dim parExactMatch
33
Dim matchPVID
34
Dim divId
5926 dpurdie 35
'------------ Constants Declaration -----------
36
'------------ Variable Init -------------------
37
parPvId = Request("pv_id")
38
parPkg_id = Request ("pkg_id")
39
parVext = Request ("v_ext")
5939 dpurdie 40
matchPVID = -1
41
parExactMatch = Request ("mode")
42
If (parExactMatch = 1 ) Then
43
    matchPVID = parPvId
44
End If
5926 dpurdie 45
'----------------------------------------------
46
%>
47
<%
48
'------------------------------------------------------------------------------------------------------------------------
49
%>
50
<%
51
'------------------------ MAIN LINE ---------------------------------
52
'--------------------------------------------------------------------
53
%>
54
 
55
      <table width="100%"  border="0" cellspacing="1" cellpadding="4">
56
         <tr>
57
            <td width="1%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td>
58
            <td width="100%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Project</td>
59
         </tr>
60
         <%
5939 dpurdie 61
         OraDatabase.Parameters.Add "PKG_ID",  parPkg_id, ORAPARM_INPUT, ORATYPE_NUMBER
62
		 OraDatabase.Parameters.Add "V_EXT",   EmptyToNull(parVext), ORAPARM_INPUT, ORATYPE_VARCHAR2
63
         OraDatabase.Parameters.Add "PV_ID",   matchPVID, ORAPARM_INPUT, ORATYPE_NUMBER
5926 dpurdie 64
 
65
         Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByProjects.sql"), cint(0) )
66
 
67
         OraDatabase.Parameters.Remove "PKG_ID"
68
         OraDatabase.Parameters.Remove "V_EXT"
5939 dpurdie 69
         OraDatabase.Parameters.Remove "PV_ID"
5926 dpurdie 70
         %>
71
         <%If rsTemp.RecordCount < 1 Then%>
72
            <tr>
73
               <td background="images/bg_form_lightgray.gif" nowrap class="form_item">&nbsp;</td>
74
               <td background="images/bg_form_lightgray.gif" nowrap class="form_item">&nbsp;</td>
75
            </tr>
76
         <%End If%>
77
         <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
78
            projId = rsTemp("proj_id")
79
            projName = rsTemp("proj_name")
80
            projCount = rsTemp("used_count")
5939 dpurdie 81
            divId = "PROJID_" & projId & parExactMatch
5926 dpurdie 82
            %>
83
            <tr>
84
               <td background="images/bg_form_lightgray.gif" class="form_item"></td>
85
               <td nowrap background="images/bg_form_lightgray.gif" class="form_item">
5939 dpurdie 86
                  <a href="javascript:;" class="txt_linked" onClick="ToggleUsedByControl('<%=divId%>','RequestUsedByThisProject.asp?pv_id=<%=parPvId%>&proj_id=<%=projId%>&mode=<%=parExactMatch%>');">
87
                        <img id=IMG_<%=divId%> src="images/bt_plus.gif" border="0" align="absmiddle" hspace="3">
5926 dpurdie 88
                        <%= projName &" ("& projCount &")"%>
89
                   </a>
5939 dpurdie 90
                  <DIV class="form_item" id="<%=divId%>" style="display:none;"><%=enumLOADING%></DIV>
5926 dpurdie 91
               </td>
92
            </tr>
93
 
94
            <%rsTemp.MoveNext
95
         WEnd
96
         rsTemp.Close
97
         Set rsTemp = nothing%>
98
 
99
      </table><br>
100
<%
101
Call Destroy_All_Objects
102
%>