<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/valuelist" prefix="vlh" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell">
  <tr>
    <td width="100%">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td class="moduleHeadline"><bean-el:message key="title.report.availableReports" /></td>
              </tr>
            </table>
          </td>
        </tr>

        <tr>
          <td class="moduleValue">
            <table id="tableResult" align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleTable" role="presentation">
              <vlh:root id="stdReportTableId" value="vlhlist" url="?" includeParameters="*" configName="valueListConfigBeanLookAndFeel">
              <vlh:addParam name="checkboxName" value="Select" temp="false"/>
              <tr>
                <td>
                  <table class="pagelinks" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                      <td width="45%"><img alt=""  src="../images/spacer.gif"></td>
                      <td width="5%" height="21" nowrap="true"><span class="pagebanner"><c:out value="${vlhlist.valueListInfo.totalNumberOfEntries}"/> Total - Page (<c:out value="${vlhlist.valueListInfo.pagingPage}"/> of <c:out value="${vlhlist.valueListInfo.totalNumberOfPages}"/>).&nbsp;</span></td>
                      <td width="5%">
                        <c:if test="${vlhlist.valueListInfo.totalNumberOfPages > 1}">
                        <vlh:paging attributes="class=\"pagelinks\"" pages="10"><c:out value="${pagestdReportTableId}"/>&nbsp;</vlh:paging>
                        </c:if>
                      </td>
                      <td width="45%"><img alt=""  src="../images/spacer.gif"></td>
                    </tr>
                  </table>
                </td>
              </tr>

              <tr vAlign="top">
                <td vAlign="top" align="center">
                  <table summary="List of Available Reports" rules="all" class="TableDisplay" cellspacing="0" cellpadding="3">
                    <tr>
                      <vlh:row bean="reportBean">
                      <c:set var="reportId" value="${reportBean.code}" scope="request"/>
                      <c:set var="counter" value="${(vlhlist.valueListInfo.pagingNumberPer * (vlhlist.valueListInfo.pagingPage-1)) + reportBeanRowNumber + 1}"/>
                      <vlh:column title="#" property="id" attributes="class='valuelistRow1' align='left' scope='col'" default="">
                      	<vlh:attribute name="scope">row</vlh:attribute>
                        <vlh:attribute name="style">white-space: nowrap</vlh:attribute>
                        <c:out value="${counter}"/>.
                      </vlh:column>
                      <vlh:column titleKey="label.report.reportType" property="type.description" sortable="asc" attributes="class='valuelistRow1' align='left' scope='col'" default="">
                        <vlh:attribute name="style">white-space: nowrap</vlh:attribute>
                      </vlh:column>
                      <vlh:column titleKey="label.report.reportId" property="code" sortable="asc" attributes="class='valuelistRow1' align='left' scope='col'" default="">
                        <vlh:attribute name="style">white-space: nowrap</vlh:attribute>
                      </vlh:column>
                      <vlh:column titleKey="label.report.reportTitle" property="description" sortable="asc" attributes="class='valuelistRow1' width='100%' align='left' scope='col'" default="" />
                      <vlh:column titleKey="label.report.actions" property="id" attributes="class='valuelistRow1' align='left' scope='col'" default="">
                        <vlh:attribute name="style">white-space: nowrap</vlh:attribute>
                        <html-el:link action="runReport?methodName=displayReportParameters" paramId="reportId" paramName="reportId"><bean-el:message key="title.report.runReport" /></html-el:link> |
                        <html-el:link action="addReportSchedule?methodName=displayAddReportSchedule" paramId="reportId" paramName="reportId"><bean-el:message key="title.report.scheduleReport" /></html-el:link>
                      </vlh:column>
                      </vlh:row>
                    </tr>
                  </table>
                </td>
              </tr>
              </vlh:root>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
