Subversion Repositories DevTools

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                Application List                               |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/globals.asp"-->
<!--#include file="common/config.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="class/classActionButtonControl.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
Dim rsQry
Dim objBtnControl
Dim aTabBtnsDef
'------------ CONSTANTS DECLARATION -----------
Const LIMG_DISK = "<img src='images/i_disk.gif' width='16' height='16' hspace='4' border='0' align='absmiddle'>"
'------------ VARIABLE INIT -------------------
Set objBtnControl = New ActionButtonControl
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
objPMod.PersistInQryString ("tree")

If (Request("action") <> "") Then
        '-- Select Action
        
        Select Case Request("action")
                Case "btnRemoveApplication"
                        Call OpenInWindow ( "_RemoveApplication.asp?app_id="& Request("app_id") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                
        End Select
        
End If
'----------------------------------------------
%>
<html>
<head>
<title>Access Manager</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="scripts/common.js"></script>

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<!-- HEADER ++++++++++++++++++++++ -->
<!--#include file="_header.asp"-->
<!-- +++++++++++++++++++++++++++++ -->
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
        <!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
        <!--#include file="_treeNavigator.asp"-->  
        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        </td>
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
    <td width="100%" valign="top">
        <table width="100%"  border="0" cellspacing="0" cellpadding="9">
        <form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
      <tr>
        <td background="images/bg_drk_bage_pane.gif">
                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td nowrap class="body_txt">
                            <!-- BUTTONS CONTROL +++++++++++++++++++ -->
                                <%
                                '-- Define Action buttons on this tab
                                aTabBtnsDef = Array("btnNewApplication", "btnRemoveApplication" )
                                
                                Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
                                
                                Call objBtnControl.Render( aTabBtnsDef )
                                %>
                                <!-- +++++++++++++++++++++++++++++++++++ -->
                          </td>
              <td align="right" nowrap class="section_ttl">Applications</td>
            </tr>
          </table>
                </td>
      </tr>
      <tr>
        <td><br>
                 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
                 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
          <tr>
                        <td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Application</td>
              </tr>
            </table></td>
            <td width="70%" align="right" nowrap background="images/bg_table_col.gif" class="body_col"></td>
          </tr>
                  <%
                  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetApplicationList.sql") , ORADYN_DEFAULT )
                  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
                  %>
          <tr>
                        <td align="center"><input type="checkbox" name="app_id" value="<%=rsQry("app_id")%>"></td>
            <td nowrap class="body_row"><a href="Application_Default.asp?tree=1_<%=rsQry("app_id")%>&app_id=<%=rsQry("app_id")%>" class="body_link"><%=LIMG_DISK  &  rsQry("application_name")%></a></td>
            <td></td>
          </tr>
                  <%rsQry.MoveNext%>
                  
                  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
          <tr>
            <td colspan="3" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
                  <%End If%>
                  
                  <%
                  WEnd
                  %>
          <tr>
            <td colspan="3" background="images/bg_table_border.gif">
                         <table width="100%"  border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
              </tr>
             </table>
                        </td>
          </tr>
         </table>        
                 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
         <br></td>
      </tr>
          <%=objPMod.ComposeHiddenTags()%>
          <input type="hidden" name="action" value="true">
        </form>
    </table></td>
  </tr>
</table>
<!-- FOOTER ++++++++++++++++++++++ -->
<!--#include file="_footer.asp"-->
<!-- +++++++++++++++++++++++++++++ -->
</body>
</html>
<%
'------------ RUN AFTER PAGE RENDER -----------
'----------------------------------------------
%>
<!--#include file="common/globals_destructor.asp"-->