- <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
- <%@ page contentType="text/html; charset=UTF-8" %>
- <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
- <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
- <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
- <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
- <%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>
- <%@page import="com.bo.bolight.Application" %>
- <f:view>
- <html>
- <head>
- <title><h:outputText value="#{msg.app_title}" /></title>
- <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
- <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- <p:resources/>
- <link rel="stylesheet" type="text/css" href="bolight.css"/>
- <script language="javascript">
- var popupWindow = null;
- function popup(url,winName) {
- ie=/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent);
- settings=eval("<%=Application.cfg("ViewerOptions")%>");//'height='+(ie?screen.height-68:screen.height)+',width='+(ie?screen.width-12:screen.width)+',left=0,top=0,menubar=no,status=no,toolbar=no,dependent=yes,resizable=yes,alwaysRaised=yes,location=no'
- popupWindow = window.open(url,winName,settings);
- }
- function setCaretToEnd (e) {
- var control = $((e.target ? e.target : e.srcElement).id);
- if (control.createTextRange) {
- var range = control.createTextRange();
- range.collapse(false);
- range.select();
- } else if (control.setSelectionRange) {
- control.focus();
- var length = control.value.length;
- control.setSelectionRange(length, length);
- }
- control.selectionStart = control.selectionEnd = control.value.length;
- }
- </script>
- </head>
- <body style="margin:0;padding:0;margin-right:0px;">
- <h:form>
- <p:layout fullPage="true">
- <!-- Header -->
- <p:layoutUnit position="north" resizable="false" style="padding:0;overflow-x: hidden;overflow-y: hidden;">
- <rich:panel header="#{msg.label_welcome}: #{LoginForm.userName}" styleClass="browser" headerClass="browserlogo" bodyClass="browser">
- <rich:toolBar height="16" styleClass="toolbar" itemSeparator="none" separatorClass="toolbarseparator" contentClass="toolbar">
- <rich:toolBarGroup>
- <a4j:commandLink immediate="true" actionListener="#{Browser.refresh}" reRender="tree, table, sc" styleClass="toolbarbutton">
- <h:graphicImage value="../images/refresh_toolbar16.gif" styleClass="toolbarbutton"/>
- <h:outputLabel value="#{msg.label_refresh}" styleClass="toolbartext"/>
- </a4j:commandLink>
- <h:graphicImage value="../images/toolbarseparator.gif" height="16" styleClass="toolbarseparator"/>
- </rich:toolBarGroup>
- <rich:toolBarGroup style="border:none; width:100%;"><rich:spacer height="1px"/></rich:toolBarGroup>
- <rich:toolBarGroup location="right">
- <h:outputLabel id="preferences" value="#{msg.label_preferences}" styleClass="toolbartext">
- <rich:componentControl for="prefs_panel" attachTo="preferences" operation="show" event="onclick"/>
- </h:outputLabel>
- <h:graphicImage value="../images/toolbarseparator.gif" height="16" styleClass="toolbarseparator"/>
- </rich:toolBarGroup>
- <rich:toolBarGroup location="right">
- <a4j:commandLink action="#{LoginForm.logout}" styleClass="toolbarbutton" bypassUpdates="true" oncomplete="setTimeout("window.location = 'index.jsp'", 10);Event.stop(event);">
- <h:outputLabel value="#{msg.label_logout}" styleClass="toolbartext"/>
- </a4j:commandLink>
- </rich:toolBarGroup>
- </rich:toolBar>
- </rich:panel>
- </p:layoutUnit>
- <!-- /Header -->
- <!-- Tree -->
- <p:layoutUnit position="west" size="200" closable="false" style="padding:0;overflow-x: hidden;">
- <rich:tree id="tree" style="width:50px"
- iconLeaf="../images/iconLeaf.gif"
- nodeSelectListener="#{Browser.processTreeSelection}"
- reRender="selectedNode,table,sc"
- ajaxSubmitSelection="true"
- immediate="true"
- switchType="client"
- value="#{Browser.treeNode}"
- var="item"
- ajaxKeys="#{null}">
- </rich:tree>
- </p:layoutUnit>
- <!-- /Tree -->
- <!-- Browser -->
- <p:layoutUnit position="center" style="padding:0;overflow-x:hidden;">
- <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
- <tr height="100%"><td valign="top">
- <!-- Data Table -->
- <rich:dataTable width="100%"
- columnClasses="col1,col2,col3,col4,col5"
- value="#{Browser.tableDataModel}"
- var="doc"
- id="table"
- rows="#{Browser.maxrows}">
- <!-- Table Header -->
- <f:facet name="header">
- <rich:columnGroup>
- <rich:column width="30px">
- <h:outputText value="#{msg.label_column_icon}" />
- </rich:column>
- <rich:column width="200px">
- <h:outputText value="#{msg.label_column_name}" />
- </rich:column>
- <rich:column width="60%">
- <h:outputText value="#{msg.label_column_description}" />
- </rich:column>
- <rich:column width="130px">
- <h:outputText value="#{msg.label_column_created}" />
- </rich:column>
- <rich:column width="130px">
- <h:outputText value="#{msg.label_column_lastrun}" />
- </rich:column>
- </rich:columnGroup>
- </f:facet>
- <!-- /Table Header -->
- <!-- Icon Column -->
- <rich:column sortIcon="../images/sortupdown.gif"
- sortIconAscending="../images/sortup.gif"
- sortIconDescending="../images/sortdown.gif"
- style="nowrap"
- sortable="true"
- width="30px"
- sortBy="#{doc.type}"
- label="#{msg.label_column_icon}">
- <f:facet name="header">
- <h:outputText value="" />
- </f:facet>
- <h:graphicImage value="#{doc.icon}" alt="#{doc.type}"/>
- </rich:column>
- <!-- /Icon Column -->
- <!-- Name Column -->
- <rich:column sortIcon="../images/sortupdown.gif"
- sortIconAscending="../images/sortup.gif"
- sortIconDescending="../images/sortdown.gif"
- comparator="#{Browser.nameComparator}"
- style="nowrap"
- width="200px"
- sortable="true"
- sortBy="#{doc.name}"
- filterMethod="#{Browser.filterName}"
- label="#{msg.label_column_name}">
- <f:facet name="header">
- <h:inputText binding="#{Browser.filterName}"
- id="filterName"
- onclick="Event.stop(event);"
- style="width:190px;">
- <a4j:support event="onkeyup" action="#{Browser.filterName}"
- reRender="table, sc"
- ignoreDupResponses="true"
- requestDelay="700"
- oncomplete="setCaretToEnd(event);"/>
- </h:inputText>
- </f:facet>
- <!-- Link to open the Viewer -->
- <h:outputLink target="#{doc.id}"
- value="#{Browser.viewerURL}"
- styleClass="opendocument"
- onclick="popup('','#{doc.id}'); popupWindow.focus();">
- <f:param name="iDocID" value="#{doc.id}" />
- <f:param name="token" value="#{LoginForm.token}" />
- <h:outputText value="#{doc.name}" />
- </h:outputLink>
- </rich:column>
- <!-- /Name Column -->
- <!-- Description Column -->
- <rich:column sortIcon="../images/sortupdown.gif"
- sortIconAscending="../images/sortup.gif"
- sortIconDescending="../images/sortdown.gif"
- comparator="#{Browser.descriptionComparator}"
- style="nowrap"
- width="60%"
- sortable="true"
- sortBy="#{doc.description}"
- filterMethod="#{Browser.filterDescription}"
- label="#{msg.label_column_description}">
- <f:facet name="header">
- <h:inputText binding="#{Browser.filterDescription}"
- id="filterDescription"
- onclick="Event.stop(event);"
- style="width:95%;">
- <a4j:support event="onkeyup" action="#{Browser.filterDescription}"
- reRender="table, sc"
- ignoreDupResponses="true"
- requestDelay="700"
- oncomplete="setCaretToEnd(event);"/>
- </h:inputText>
- </f:facet>
- <h:outputText id="docdescription"
- value="#{doc.description}"/>
- <rich:toolTip verticalOffset="-20"
- direction="top-right"
- mode="ajax"
- showDelay="300"
- styleClass="tooltip"
- layout="block"
- rendered="#{not empty doc.fulldescription}">
- <h:panelGrid columns="1">
- <f:facet name="header">
- <h:outputText value="#{msg.label_column_description}:" />
- </f:facet>
- <h:outputText value="#{doc.fulldescription}" styleClass="tooltipData" />
- </h:panelGrid>
- </rich:toolTip>
- </rich:column>
- <!-- /Description Column -->
- <!-- Created Column -->
- <rich:column sortIcon="../images/sortupdown.gif"
- sortIconAscending="../images/sortup.gif"
- sortIconDescending="../images/sortdown.gif"
- comparator="#{Browser.creationDateComparator}"
- style="nowrap"
- sortable="true"
- sortBy="#{doc.created}"
- width="130px"
- filterMethod="#{Browser.filterCreated}"
- label="#{msg.label_column_created}">
- <f:facet name="header">
- <h:inputText binding="#{Browser.filterCreated}"
- id="filterCreated"
- onclick="Event.stop(event);"
- style="width:100px;">
- <a4j:support event="onkeyup" action="#{Browser.filterCreated}"
- reRender="table, sc"
- ignoreDupResponses="true"
- requestDelay="700"
- oncomplete="setCaretToEnd(event);"/>
- </h:inputText>
- </f:facet>
- <h:outputText value="#{doc.created}" />
- </rich:column>
- <!-- /Created Column -->
- <!-- Last Run Column -->
- <rich:column sortIcon="../images/sortupdown.gif"
- sortIconAscending="../images/sortup.gif"
- sortIconDescending="../images/sortdown.gif"
- comparator="#{Browser.lastrunDateComparator}"
- style="nowrap"
- sortable="true"
- sortBy="#{doc.lastrun}"
- width="130px"
- filterMethod="#{Browser.filterLastrun}"
- label="#{msg.label_column_lastrun}">
- <f:facet name="header">
- <h:inputText binding="#{Browser.filterLastrun}"
- id="filterLastrun"
- onclick="Event.stop(event);"
- style="width:100px;">
- <a4j:support event="onkeyup" action="#{Browser.filterLastrun}"
- reRender="table, sc"
- ignoreDupResponses="true"
- requestDelay="700"
- oncomplete="setCaretToEnd(event);"/>
- </h:inputText>
- </f:facet>
- <h:outputText value="#{doc.lastrun}" />
- </rich:column>
- <!-- /Last Run Column -->
- <!-- Selection Listener -->
- <a4j:support reRender="selectiontable"
- action="#{Browser.takeSelection}"
- event="onselectionchange" />
- </rich:dataTable>
- <!-- /Data Table -->
- </td></tr><tr><td>
- <!-- Data Scroller -->
- <rich:datascroller align="left"
- for="table"
- maxPages="20"
- page="#{Browser.page}"
- id="sc"
- style="width:100%"
- renderIfSinglePage="false" />
- <!-- /Data Scroller -->
- </td></tr></table>
- </p:layoutUnit>
- <!-- /Browser -->
- </p:layout>
- </h:form>
- <!-- Preferences -->
- <rich:modalPanel headerClass="prefsheader" id="prefs_panel" width="717" height="265" resizeable="false">
- <f:facet name="header">
- <h:panelGroup>
- <h:outputText value="#{msg.label_preferences}"></h:outputText>
- </h:panelGroup>
- </f:facet>
- <f:facet name="controls">
- <h:panelGroup>
- <h:graphicImage value="../images/close.png" id="prefs_hide"/>
- <rich:componentControl for="prefs_panel" attachTo="prefs_hide" operation="hide" event="onclick"/>
- </h:panelGroup>
- </f:facet>
- <a4j:form ajaxSubmit="true">
- <table border="0" cellspacing="0" cellpadding="0"><tr><td> </td></tr><tr><td align="center">
- <table border="0" cellspacing="0" cellpadding="5" class="prefsbody">
- <tr><td colspan="2"> </td></tr>
- <tr>
- <td align="right" class="label"><h:outputText value="#{msg.label_newpassword}: "/></td>
- <td>
- <h:inputSecret id="password" value="#{Preferences.password}" styleClass="inputbox"/>
- </td>
- </tr>
- <tr>
- <td align="right" class="label"><h:outputText value="#{msg.label_confirmpassword}: "/></td>
- <td>
- <h:inputSecret id="confirmPassword" value="#{Preferences.confirmPassword}" styleClass="inputbox"/>
- </td>
- </tr>
- <tr><td colspan="2"> </td></tr>
- </table>
- <h:panelGrid styleClass="prefsfooter" columns="1">
- <a4j:commandButton value="#{msg.label_save}"
- action="#{Preferences.save}"
- reRender="prefs_err"
- styleClass="logon_button logon_button_no_hover"
- onmouseover="this.className='logon_button logon_button_hover';"
- onmouseout="this.className='logon_button logon_button_no_hover';"
- oncomplete="if (#{empty Preferences.message}) #{rich:component('prefs_panel')}.hide();" />
- <h:outputText id="prefs_err" value="#{Preferences.message}" />
- </h:panelGrid>
- </td></tr></table>
- </a4j:form>
- </rich:modalPanel>
- <!-- /Preferences -->
- </body>
- </html>
- </f:view>
Undefined
By: _eMaX_ | Date: Dec 22 2009 17:11 | Format: None | Expires: never | Size: 16.84 KB | Hits: 1227
Latest pastes
10 minutes ago
7 hours ago
2 days ago
3 days ago
6 days ago