<%@ page info="ConfigureReport" language="java" %> 
<%@page contentType="text/html;charset=UTF-8"%>
<%--
 ******************************************************************************* 
 * $RCSfile: ConfigureReport.jsp,v $
 *
 * Description: This file contains the Configure Report Dialog
 *
 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
 * Use of this product is subject to license terms.
 *
 *******************************************************************************
 --%>
<%@taglib uri="/WEB-INF/tld/com_iplanet_jato/jato.tld" prefix="jato"%> 
<%@taglib uri="/WEB-INF/tld/com_sun_web_ui/cc.tld" prefix="cc"%>
<jato:useViewBean className="com.sun.apoc.manager.ConfigureReportViewBean">

<!-- Header -->
<cc:header pageTitle="APOC.configrep.title" copyrightYear="2003"
 baseName="com.sun.apoc.manager.resource.apoc_manager"
 bundleID="apocBundle" isPopup="true" >
<cc:stylesheet />
<script type="text/javascript" src="/apoc/js/MainWindow.js"></script>
<jato:form name="ConfigrepForm" method="post">
<script type="text/javascript">
<!--

    function setRadio() {
        var objFormField = document.forms[0].elements['ConfigureReport.UseReportRadio'];
        if (objFormField == null){
            return "";
        }
        var intControlLength = objFormField.length;
        for (var i=0; i<intControlLength; i++) {
            if (objFormField[i].checked) {
                var strValue = objFormField[i].value;
                return strValue;
            }
        }
    }

    function submitBrowse(entityId, entityType) {
        if((entityType == 'USER') || (entityType == 'ORG') || (entityType == 'ROLE') || (entityType == 'USERID')) {
            document.ConfigrepForm['ConfigureReport.OrgEntity'].value = entityId;
            document.ConfigrepForm.action="/apoc/manager/ConfigureReport?ConfigureReport.OrgBrowseHref=a&isReportHidden=true"; 
        } else {
            document.ConfigrepForm['ConfigureReport.DomEntity'].value = entityId;        
            document.ConfigrepForm.action="/apoc/manager/ConfigureReport?ConfigureReport.DomBrowseHref=a&isReportHidden=true"; 
        }
        document.ConfigrepForm.submit(); 
     }

     function printPage() {
        window.print();
     }



-->
</script>

<!-- Masthead -->
<cc:secondarymasthead name="SecondaryMH" bundleID="apocBundle" />

<!-- Page Title (Packages) -->
<cc:pagetitle name="PageTitle" bundleID="apocBundle"
 pageTitleText="APOC.configrep.title"
 showPageTitleSeparator="true"
 showPageButtonsTop="true"
 showPageButtonsBottom="false">

<!-- Property Sheet -->
<table width="100%" border="0">
    <tr>
        <td colspan="2"><cc:propertysheet name="ButtonProps" showJumpLinks="false" bundleID="apocBundle"/></td>
    </tr>
    <tr>
        <td><cc:propertysheet name="RadioProps" showJumpLinks="false" bundleID="apocBundle"/></td>
        <td><cc:propertysheet name="CheckProps" showJumpLinks="false" bundleID="apocBundle"/></td>
    </tr>
</table>

</cc:pagetitle>

<!-- Hidden Fields -->
<cc:hidden name="PolicyTemplateSelection" />
<cc:hidden name="OrgEntity" />
<cc:hidden name="DomEntity" />
<cc:hidden name="ReportType" />


<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="3">
 <img src="/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="30" width="1" />
</td></tr>
<tr>
<td><img src="/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="1" width="10" /></td>
<td class="TtlLin" width="100%"><img src="/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="1" width="1" /></td>
<td><img src="/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="1" width="10" /></td>
</tr>
</table>


<br>
<br>
<jato:content name="DisplayReport">
<!-- Title and header descriptions -->
<a name="top"></a>
<p><div class="TtlTxtDiv">
<h1><cc:text name="ReportTitle" bundleID="apocBundle" /></h1>

</p>

<p><cc:text name="EntityLocation" bundleID="apocBundle"/></P>

<p><cc:text name="Creator" bundleID="apocBundle"/><br>
<cc:text name="CreationDate" bundleID="apocBundle"/></p>

<p><cc:text name="BackendType" bundleID="apocBundle"/><br>
<cc:text name="BackendHost" bundleID="apocBundle"/></p>

<p><cc:text name="StartCat" bundleID="apocBundle" /></p>

<!-- The profiles contributing to this report -->
<p><h2><cc:text name="AssignedProfilesTitle" bundleID="apocBundle" /></h2>
<cc:text name="AssignedProfiles" bundleID="apocBundle" />
</p>
<p>
<br>
</p>

<!-- The table of contents title and table listing -->
<p><h2><cc:text name="ContentsTitle" bundleID="apocBundle" />
<jato:text name="NoSections" fireDisplayEvents="true"/></h2></p>

<ul style="list-style: none;padding-left:10px;margin-left:0px">
    <jato:tiledView name="PolicyHeadingTiledView">
        <li><h3><jato:text name="PolicyHeading" /></h3>
            <ul style="list-style: none;padding-left:10px;margin-left:0px"> 
                <jato:tiledView name="ContentsTiledView" fireChildDisplayEvents="true"> 
                    <li style="padding-bottom:5px"> 
                        <!--<jato:text name="Location" />  -->
                        <jato:tiledView name="SectionTiledView">
                        <ul style="list-style: none;padding-left:20px;margin-left:0px">    
                            <li><jato:text name="Location" />   
                                <a href="<jato:text name='Link' />"
                                    title="<jato:text name='LinkTitle'/>">
                                <span class="LnkTxt">
                                    <jato:text name="LinkName" />
                                </span></a>
                            </li>   
                        </ul>     
                        </jato:tiledView>
                       </li>  
                </jato:tiledView>
            </ul>   
        </li>
    </jato:tiledView>
</ul>
</div>
<br>
<br>
<!-- The values tables and titles -->
<jato:tiledView name="TemplatesTiledView" fireChildDisplayEvents="true">    
    <p>
    <a name="<jato:text name='LinkRef' />">
    <jato:content name="DisplayArchivable">
    <span class="H2Txt"><jato:text name="TemplateTableName"/></span><br>
    <jato:text name="TableIsBelow"/>
    </p>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" 
        summary="<jato:text name='TableSummary' />" >
        <tr>    
            <th class="TblTdHdr" align="left" width="25%" scope="row">
                <span class="TblHdrTxt"><jato:text name="NameHeading" /></span></th>
            <th class="TblTdHdr" align="left" width="15%">
                <span class="TblHdrTxt"><jato:text name="ValueHeading" /></span></th>
            <th class="TblTdHdr" align="left" width="15%">
                <span class="TblHdrTxt"><jato:text name="StatusHeading" /></span></th>
            <th class="TblTdHdr" align="left" width="*">
                <span class="TblHdrTxt"><jato:text name="StatusPathHeading" /></span></th>
            <th class="TblTdHdr" align="left" width="20%">
                <span class="TblHdrTxt"><jato:text name="DescriptionHeading" /></span></th>
        </tr>
        <jato:tiledView name="ValuesTiledView">
            <tr class="<jato:text name='ClassName'/>">
                <td valign="top" align="left" width="25%" class="TblTdCellTop">
                    <span class="TblCellTxt"><jato:text name="NameValue" /></span><br>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" >
                    <jato:tiledView name="SetProperties">
                        <tr><td valign="top" align="left">
                            <span class="TblCellTxt">
                                <jato:text name="SetPropName" />
                            </span>&nbsp;
                        </td></tr>
                    </jato:tiledView>
                    </table>
                </td>
                <td valign="top" align="left" width="15%" class="TblTdCellTop">
                    <span class="TblCellTxtEven"><jato:text name="ValueValue" escape="false"/></span><br>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" >
                    <jato:tiledView name="SetProperties">
                        <tr><td valign="top" align="left">
                            <span class="TblCellTxt">
                                <jato:text name="SetPropValue" />
                            </span>&nbsp;
                        </td></tr>
                    </jato:tiledView>
                    </table>
                </td>
                <td valign="top" align="left" width="15%" class="TblTdCellTop">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" >
                        <tr><td valign="top" align="left">
                            <span class="TblCellTxt">
                                <jato:text name="StatusValue" />
                            </span>&nbsp;
                        </td></tr>
                        <tr><td valign="top" align="left">
                            <span class="TblCellTxt">
                                <jato:text name="StatusValueProtection" />
                            </span>
                        </td></tr>
                    </table>
                </td>
                <td valign="top" align="left" width=* class="TblTdCellTop">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" >
                        <tr><td valign="top" align="left">
                            <span class="TblCellTxt">
                                <jato:text name="StatusPathValue" />
                            </span>&nbsp;
                            <table border="0" cellpadding="0" cellspacing="0" width="100%" >
                            <jato:tiledView name="SetProperties">
                                <tr><td valign="top" align="left">
                                    <span class="TblCellTxt">
                                        <jato:text name="StatusPathValue" />
                                    </span>&nbsp;
                                </td></tr>
                            </jato:tiledView>
                            </table>
                        </td></tr>
                        <tr><td valign="top" align="left">
                            <span class="TblCellTxt">
                                <jato:text name="StatusPathValueProtection" />
                            </span>
                        </td></tr>
                    </table>
                </td>
                <td valign="top" align="left" width="15%" class="TblTdCellTop">
                    <span class="TblCellTxt"><jato:text name="DescriptionValue" /></span>
                </td>
            </tr>
        </jato:tiledView>
    </table>
    </jato:content>
    <jato:content name="DisplayNonArchivable">
        <jato:hidden name="TableIsBelow"/> 
        <jato:tiledView name="ValuesTiledView">
            <jato:hidden name='ClassName'/>
            <jato:hidden name="NameValue" />
            <jato:tiledView name="SetProperties">
            <jato:hidden name="SetPropName" />
            </jato:tiledView>
            <jato:hidden name="ValueValue" />
            <jato:tiledView name="SetProperties">
            <jato:hidden name="SetPropValue" />
            </jato:tiledView>
            <jato:hidden name="StatusValue" />
            <jato:hidden name="StatusValueProtection" />
            <jato:hidden name="StatusPathValue" />
            <jato:tiledView name="SetProperties">
            <jato:hidden name="StatusPathValue" />
            </jato:tiledView>
            <jato:hidden name="StatusPathValueProtection" />
            <jato:hidden name="DescriptionValue" />
        </jato:tiledView>   
    <jato:containerView name="ReportTableView">    
    <cc:actiontable
        name="ReportTable"
        bundleID="apocBundle"
        title=""
        summary=""
        empty=""
        selectionType="no select"
        showAdvancedSortIcon="false"
        showLowerActions="false"
        showPaginationControls="true"
        showPaginationIcon="false"
        showSelectionIcons="false"
        page="1" />
    </jato:containerView>
    </jato:content>
    <div class="TtlTxtDiv">
        <cc:href name="Href" bundleID="apocBundle" type="jumpTop" anchor=""><jato:text name="TopLink"/></cc:href>
    </div>

    <br>&nbsp;
</jato:tiledView>
</jato:content>

</p>
</jato:form>
</cc:header>
</jato:useViewBean> 
