Rev 5947 | Rev 6790 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'=====================================================' RequestUsedByThisProjectSummary.asp' Show the body of the used by packages summary display' This is invoked via AJAX'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.Expires = 0 ' always load the page, dont store' Essential to get UTF through all the hoops. ie: VÄSTTRAFIK (VTK)Response.ContentType = "text/html"Response.AddHeader "Content-Type", "text/html;charset=UTF-8"Response.CodePage = 65001Response.CharSet = "UTF-8"%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><%'------------ Variable Definition -------------Dim rsTempDim pkgIdDim parPvIdDim projId, projName, projCountDim parModeDim divId'------------ Constants Declaration -----------'------------ Variable Init -------------------parPvId = Request("pv_id")parMode = Request("mode")'----------------------------------------------%><%'------------------------------------------------------------------------------------------------------------------------%><%'------------------------ MAIN LINE ---------------------------------'--------------------------------------------------------------------%><table width="100%" border="0" cellspacing="1" cellpadding="4"><tr><td width="1%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td><td width="100%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Project</td></tr><%OraDatabase.Parameters.Add "MATCH", parMode, ORAPARM_INPUT, ORATYPE_NUMBEROraDatabase.Parameters.Add "PV_ID", parPvId, ORAPARM_INPUT, ORATYPE_NUMBERSet rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByProjects.sql"), cint(0) )OraDatabase.Parameters.Remove "MATCH"OraDatabase.Parameters.Remove "PV_ID"%><%If rsTemp.RecordCount < 1 Then%><tr><td background="images/bg_form_lightgray.gif" nowrap class="form_item"> </td><td background="images/bg_form_lightgray.gif" nowrap class="form_item">None Found</td></tr><%End If%><%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))projId = rsTemp("proj_id")projName = rsTemp("proj_name")projCount = rsTemp("used_count")divId = "PROJID_" & parMode & "_" & projId%><tr><td background="images/bg_form_lightgray.gif" class="form_item"></td><td nowrap background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" class="txt_linked" onClick="ToggleLoadControl('<%=divId%>','RequestUsedByThisProject.asp?pv_id=<%=parPvId%>&proj_id=<%=projId%>&mode=<%=parMode%>');"><img id=IMG_<%=divId%> src="images/bt_plus.gif" border="0" align="absmiddle" hspace="3"><%= projName &" ("& projCount &")"%></a><DIV class="form_item" id="<%=divId%>" style="display:none;"><%=enumLOADING%></DIV></td></tr><%rsTemp.MoveNextWEndrsTemp.CloseSet rsTemp = nothing%></table><br><%Call Destroy_All_Objects%>