Advertisement
Guest User

Untitled

a guest
Apr 7th, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.06 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
  4. xmlns:h="http://java.sun.com/jsf/html"
  5. xmlns:f="http://java.sun.com/jsf/core"
  6. xmlns:ui="http://java.sun.com/jsf/facelets">
  7. <h:head>
  8. <ui:insert name="header">
  9. <ui:include src="header.xhtml"/>
  10. </ui:insert>
  11. </h:head>
  12. <h:body>
  13.  
  14. <h1><img src="resources/css/images/icon.png" alt="NVIDIA.com" /> History Center</h1>
  15. <!-- layer for black background of the buttons -->
  16. <div id="toolbar" style="margin: 0 auto; width:1180px; height:30px; position:relative; background-color:black">
  17. <!-- Include page Navigation -->
  18. <ui:insert name="Navigation">
  19. <ui:include src="Navigation.xhtml"/>
  20. </ui:insert>
  21.  
  22. </div>
  23.  
  24. <div id="greenBand" class="ui-state-default ui-corner-allh" style="position:relative; top:35px; left:0px;">
  25. <h:graphicImage alt="Dashboard" style="position:relative; top:-20px; left:9px;" value="resources/images/logo_sessions.png" />
  26. </div>
  27. <div id="main" style="margin: 0 auto; width:1190px; height:700px; position:absolute; background-color:transparent; top:105px">
  28.  
  29. <div id="mainpage" style="margin: 0 auto; width:1190px; height:500px; position:absolute; background-color:transparent; top:80px">
  30.  
  31. <div id="settingsHashMap" style="width:750px; height:400px; position:absolute; background-color:r; top:20px; left:1px">
  32.  
  33. <h:form id="form">
  34.  
  35. <!-- The sortable data table -->
  36. <h:dataTable value="#{SessionsController.dataList}" var="item">
  37. <h:column>
  38. <f:facet name="header">
  39. <h:commandLink value="Account Session ID" actionListener="#{SessionsController.sort}">
  40. <f:attribute name="sortField" value="Account Session ID" />
  41. </h:commandLink>
  42. </f:facet>
  43. <h:outputText value="#{item.ASESSIONID}" />
  44. </h:column>
  45. <h:column>
  46. <f:facet name="header">
  47. <h:commandLink value="User ID" actionListener="#{SessionsController.sort}">
  48. <f:attribute name="sortField" value="User ID" />
  49. </h:commandLink>
  50. </f:facet>
  51. <h:outputText value="#{item.USERID}" />
  52. </h:column>
  53. <h:column>
  54. <f:facet name="header">
  55. <h:commandLink value="Activity Start Time" actionListener="#{SessionsController.sort}">
  56. <f:attribute name="sortField" value="Activity Start Time" />
  57. </h:commandLink>
  58. </f:facet>
  59. <h:outputText value="#{item.ACTIVITYSTART}" />
  60. </h:column>
  61. <h:column>
  62. <f:facet name="header">
  63. <h:commandLink value="Activity End Time" actionListener="#{SessionsController.sort}">
  64. <f:attribute name="sortField" value="Activity End Time" />
  65. </h:commandLink>
  66. </f:facet>
  67. <h:outputText value="#{item.ACTIVITYEND}" />
  68. </h:column>
  69. <h:column>
  70. <f:facet name="header">
  71. <h:commandLink value="Activity" actionListener="#{SessionsController.sort}">
  72. <f:attribute name="sortField" value="Activity" />
  73. </h:commandLink>
  74. </f:facet>
  75. <h:outputText value="#{item.ACTIVITY}" />
  76. </h:column>
  77. </h:dataTable>
  78.  
  79. <!-- The paging buttons -->
  80. <h:commandButton value="first" action="#{SessionsController.pageFirst}"
  81. disabled="#{SessionsController.firstRow == 0}" />
  82. <h:commandButton value="prev" action="#{SessionsController.pagePrevious}"
  83. disabled="#{SessionsController.firstRow == 0}" />
  84. <h:commandButton value="next" action="#{SessionsController.pageNext}"
  85. disabled="#{SessionsController.firstRow + SessionsController.rowsPerPage >= SessionsController.totalRows}" />
  86. <h:commandButton value="last" action="#{SessionsController.pageLast}"
  87. disabled="#{SessionsController.firstRow + SessionsController.rowsPerPage >= SessionsController.totalRows}" />
  88. <h:outputText value="Page #{SessionsController.currentPage} / #{SessionsController.totalPages}" />
  89. <br />
  90.  
  91. <!-- The paging links -->
  92. <ui:repeat value="#{SessionsController.pages}" var="page">
  93. <h:commandLink value="#{page}" actionListener="#{SessionsController.page}"
  94. rendered="#{page != SessionsController.currentPage}" />
  95. <h:outputText value="#{page}" escape="false"
  96. rendered="#{page == SessionsController.currentPage}" />
  97. </ui:repeat>
  98. <br />
  99.  
  100. <!-- Set rows per page -->
  101. <h:outputLabel for="rowsPerPage" value="Rows per page" />
  102. <h:inputText id="rowsPerPage" value="#{SessionsController.rowsPerPage}" size="3" maxlength="3" />
  103. <h:commandButton value="Set" action="#{SessionsController.pageFirst}" />
  104. <h:message for="rowsPerPage" errorStyle="color: red;" />
  105.  
  106. </h:form>
  107.  
  108. </div>
  109.  
  110. <div id="settingsdiva" style="width:350px; height:400px; position:absolute; background-color:transparent; top:20px; left:400px">
  111.  
  112. </div>
  113.  
  114. <div id="settingsdivb" style="width:350px; height:400px; position:absolute; background-color:transparent; top:20px; left:800px">
  115.  
  116. </div>
  117. </div>
  118. </div>
  119.  
  120. </h:body>
  121. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement