Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / WEB-INF / fusion / raptor / wizard_run.jsp
1 <%--
2   ================================================================================
3   eCOMP Portal SDK
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   --%>
20 <%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataColumnType" %>
21 <%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %>
22 <%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportDefinition" %>
23 <%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %>
24 <%@ page import="org.openecomp.portalsdk.analytics.controller.WizardSequence" %>
25 <%@ page import="java.util.List" %>
26 <%@ page import="java.util.Iterator" %>
27 <%      
28     ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION);
29     WizardSequence ws = rdef.getWizardSequence();
30 %>
31 <script language="JavaScript">
32 <!--
33 function showSQLPopup() {
34         var w = window.open("<%= AppUtils.getRaptorActionURL() %>report.popup.sql", "showSQLPopup", "width=450,height=330,location=no,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=yes");
35         w.focus();
36         w.opener = this;
37 }   // showSQLPopup
38 //-->
39 </script>
40
41 <table width="100%"  class="tableBorder" border="0" cellspacing="1" cellpadding="3" align=center>
42         <tr>
43                 <td class=rbg1 colspan=2 valign="Middle"><b class=rtableheader>Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %></b></td>
44         </tr>
45         <tr>
46                 <td class=rbg2>
47                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
48                                 <tr>
49                                         <td align="right" valign="middle" height="20" width="100%" nowrap>
50                                                 <b class=rtabletext>
51                                                     <a href="javascript:showSQLPopup()">SQL&nbsp;<img border="0" src="<%= AppUtils.getImgFolderURL() %>txt_icon.gif" alt="Click here to view the generated SQL" width="12" height="12"></a>&nbsp;
52                                                 </b>
53                                         </td>
54                                 </tr>
55                                 <tr>
56                                         <td align="center" valign="middle" height="60" width="100%">
57                                                 <font class=rtabletext>
58                                                         <b>Report definition successfully completed.</b><br>
59                                                         <br>
60                                                         <input type="hidden" name="<%= AppConstants.RI_RESET_PARAMS %>" value="Y">
61                                                         <input type="hidden" name="<%= AppConstants.RI_REFRESH %>" value="Y">
62                                                         <a att-button btn-type="primary" size="small"  href="report.htm#/report_run/c_master=<%=rdef.getReportID()%>&refresh=Y">Run</a>
63                                                 </font>
64                                         </td>
65                                 </tr>
66                                 <tr>
67                                         <td height="20">&nbsp;</td>
68                                 </tr>
69                         </table>
70                 </td>
71         </tr>
72 </table>
73 <br>
74