Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          Control List					 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_control_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim sNode
24
Dim rsQry
25
Dim objAppCollector
26
'------------ CONSTANTS DECLARATION -----------
27
'------------ VARIABLE INIT -------------------
28
Set objAppCollector = CreateObject("Scripting.Dictionary")
29
'------------ CONDITIONS ----------------------
30
'----------------------------------------------
31
%>
32
<%
33
'------------ RUN BEFORE PAGE RENDER ----------
34
Call GetApplicationDetails ( parApp_id, objAppCollector )
35
 
36
If (Request("action") <> "") Then
37
	'-- Select Action
38
 
39
	Select Case Request("action")
40
		Case "btnRemoveControl"
41
			Call OpenInWindow ( "_RemoveControl.asp?obj_id_list="& Request("obj_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
42
 
43
	End Select
44
 
45
End If
46
'----------------------------------------------
47
%>
48
<html>
49
<head>
50
<title>Access Manager</title>
51
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
52
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
53
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
54
<script language="JavaScript" src="scripts/common.js"></script>
55
 
56
</head>
57
 
58
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
59
<!-- HEADER ++++++++++++++++++++++ -->
60
<!--#include file="_header.asp"-->
61
<!-- +++++++++++++++++++++++++++++ -->
62
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
63
  <tr>
64
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
65
	<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
66
	<!--#include file="_treeNavigator.asp"-->  
67
	<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
68
	</td>
69
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
70
    <td width="100%" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="9">
71
	<form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
72
      <tr>
73
        <td background="images/bg_drk_bage_pane.gif">
74
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
75
            <tr>
76
              <td nowrap class="body_txt">
77
			    <!-- BUTTONS CONTROL +++++++++++++++++++ -->
78
				<%
79
				'-- Define Action buttons on this tab
80
				aTabBtnsDef = Array("btnNewControl", "btnRemoveControl")
5299 dpurdie 81
				If  NOT canActionControl("canCreateActions") Then objBtnControl.AllActive = "N"
2 rsolanki 82
 
83
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
84
 
85
				objBtnControl.Render( aTabBtnsDef )
86
				%>
87
				<!-- +++++++++++++++++++++++++++++++++++ -->
88
			  </td>
89
              <td align="right" nowrap class="section_ttl"><%=objAppCollector.Item ("application_name")%></td>
90
            </tr>
91
          </table>
92
		</td>
93
      </tr>
94
	  <tr>
95
        <td class="menu_crumbttl"><img src="images/i_folder_lrg.gif" width="18" height="15" border="0" align="absmiddle" hspace="4"><strong>Actions</strong></td>
96
      </tr>
97
      <tr>
98
        <td>
99
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
100
		 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
101
          <tr>
102
		  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
103
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
104
              <tr>
105
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Action Name</td>
106
              </tr>
107
            </table></td>
108
            <td width="70%" nowrap align="right" background="images/bg_table_col.gif" class="body_col">Description</td>
5149 dpurdie 109
            <td width="1%" nowrap align="right" background="images/bg_table_col.gif" class="body_col">Edit</td>
2 rsolanki 110
          </tr>
111
		  <%
112
		  OraDatabase.Parameters.Add "APP_ID", parApp_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
113
 
114
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetControlList.sql"), ORADYN_DEFAULT )
115
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
116
		  %>
117
          <tr>
118
		  	<td align="center"><input type="checkbox" name="obj_id_list" value="<%=rsQry("obj_id")%>"></td>
119
            <td nowrap class="body_row"><a href="Control_General.asp?obj_id=<%=rsQry("obj_id")%>&<%=objPMod.ComposeURL%>" class="body_link" title="See Control General Info"><%=LIMG_CONTROL &  rsQry("obj_name")%></a></td>
120
            <td class="body_row"><%=rsQry("obj_description")%></td>
5299 dpurdie 121
			<td align="center">
122
            <% If canActionControl("canCreateActions") Then%>
123
                <a href="javascript:;" onClick="MM_openBrWindow('wEditControl.asp?obj_id=<%=rsQry("obj_id")%>&rfile=<%=SCRIPT_NAME%>&<%=objPMod.ComposeURL%>','Edit Action','scrollbars=yes,resizable=yes,width=600,height=350')" title='Edit Action'><%=LIMG_EDIT%></a>
124
            <%Else%>
125
                <%=LIMG_EDIT_OFF%>
126
            <%End If%>
127
            </td>
2 rsolanki 128
          </tr>
129
		  <%rsQry.MoveNext%>
130
 
131
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
132
          <tr>
5150 dpurdie 133
            <td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
2 rsolanki 134
          </tr>
135
		  <%End If%>
136
 
137
		  <%
138
		  WEnd
139
 
140
		  OraDatabase.Parameters.Remove "APP_ID"
141
		  %>
142
          <tr>
143
            <td colspan="3" background="images/bg_table_border.gif">
144
			 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
145
              <tr>
146
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
147
              </tr>
148
             </table>
149
			</td>
150
          </tr>
151
         </table>	 
152
		 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
153
         <br></td>
154
      </tr>
155
	  <%=objPMod.ComposeHiddenTags()%>
156
	  <input type="hidden" name="action" value="true">
157
	</form>
158
    </table></td>
159
  </tr>
160
</table>
161
<!-- FOOTER ++++++++++++++++++++++ -->
162
<!--#include file="_footer.asp"-->
163
<!-- +++++++++++++++++++++++++++++ -->
164
</body>
165
</html>
166
<%
167
'------------ RUN AFTER PAGE RENDER -----------
168
'----------------------------------------------
169
%>
170
<!--#include file="common/globals_destructor.asp"-->