Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:ui="http://java.sun.com/jsf/facelets"
  5. xmlns:h="http://java.sun.com/jsf/html"
  6. xmlns:f="http://java.sun.com/jsf/core"
  7. xmlns:c="http://java.sun.com/jsp/jstl/core"
  8. xmlns:a4j="http://richfaces.org/a4j"
  9. xmlns:rich="http://richfaces.org/rich"
  10. xmlns:sucupira="http://java.sun.com/jsf/composite/sucupira">
  11.  
  12. <ui:composition template="/layout/public/base_publica_interna_verde.xhtml">
  13. <ui:define name="caminhoPagina">
  14. Discente
  15. </ui:define>
  16.  
  17. <ui:define name="conteudo">
  18. <h:form id="form">
  19. <h:panelGroup layout="block" styleClass="form-area" id="campos">
  20. <sucupira:baseConsultasPublica mBean="#{discentePublicoMBean}" />
  21.  
  22. <div class="form-container">
  23. <div class="form-container">
  24. <div class="form-grid-1" style="width: 3%;">
  25. <br/>
  26. <h:selectBooleanCheckbox id="checkDiscente" value="#{discentePublicoMBean.checkDiscente}"/>
  27. </div>
  28. <div class="form-grid-3">
  29. <h:outputLabel for="discente" value="Discente:" onclick="check('form:checkDiscente')"/>
  30. <h:inputText id="discente" onclick="check('form:checkDiscente')"
  31. value="#{discentePublicoMBean.nomeDiscente}" maxlength="255"/>
  32. </div>
  33. </div>
  34.  
  35. <div class="form-container">
  36. <div class="form-grid-1" style="width: 3%;">
  37. <br/>
  38. <h:selectBooleanCheckbox id="checkNivel" value="#{discentePublicoMBean.checkNivel}"/>
  39. </div>
  40. <div class="form-grid-2">
  41. <h:outputLabel for="nivel" value="Nível:" onclick="check('form:checkNivel')"/>
  42. <h:selectOneMenu id="nivel" onclick="check('form:checkNivel')"
  43. value="#{discentePublicoMBean.idNivel}">
  44. <f:selectItem itemLabel="-- SELECIONE --" itemValue="0"/>
  45. <f:selectItems value="#{discentePublicoMBean.comboNivel}"/>
  46. </h:selectOneMenu>
  47. </div>
  48. </div>
  49.  
  50. <div class="form-container">
  51. <div class="form-grid-1" style="width: 3%;">
  52. <br/>
  53. <h:selectBooleanCheckbox id="checkSituacao" value="#{discentePublicoMBean.checkSituacao}"/>
  54. </div>
  55. <div class="form-grid-2">
  56. <h:outputLabel for="situacao" value="Situação:" onclick="check('form:checkSituacao')"/>
  57. <h:selectOneMenu id="situacao" onchange="check('form:checkSituacao')"
  58. value="#{discentePublicoMBean.idSituacao}">
  59. <f:selectItem itemLabel="-- SELECIONE --" itemValue="0"/>
  60. <f:selectItems value="#{discentePublicoMBean.comboSituacao}"/>
  61. </h:selectOneMenu>
  62. </div>
  63. </div>
  64.  
  65. <div class="form-container">
  66. <div class="form-grid-4" align="center">
  67. <h:commandButton styleClass="btn" id="consultar" value="Consultar"
  68. actionListener="#{discentePublicoMBean.consultar}" style="width: 15%;"/>
  69. &nbsp;
  70. <h:commandButton id="cancelar" styleClass="btn" style="width: 15%;" value="Cancelar"
  71. action="#{discentePublicoMBean.cancelarConsulta}" onclick="if(!cancelarOperacao()) return false"/>
  72. </div>
  73. </div>
  74. </div>
  75. </h:panelGroup>
  76.  
  77. <h:panelGroup layout="block" rendered="#{not empty discentePublicoMBean.discentes}">
  78. <div class="grid_16 painel publico">
  79. <div class="conteudo-painel">
  80. <div class="area-legendas">
  81. <span>
  82. <h:graphicImage value="/images/lupa.png"/>: Visualizar
  83. </span>
  84. </div>
  85.  
  86. <div class="form-container">
  87. <table class="listagem publico tablesorter">
  88. <caption>Discentes</caption>
  89. <thead>
  90. <tr>
  91. <th>Discente</th>
  92. <th>Nível</th>
  93. <th>Situação</th>
  94. <c:if test="${discentePublicoMBean.buscarTodasIes}">
  95. <th>Instituição de Ensino</th>
  96. </c:if>
  97. <th width="1%"/>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. <ui:repeat var="d" value="#{discentePublicoMBean.discentes}">
  102. <tr>
  103. <td>
  104. <h:outputText value="#{d.nome}"/>
  105. </td>
  106. <td>
  107. <h:outputText value="#{d.nivel}"/>
  108. </td>
  109. <td>
  110. <h:outputText value="#{d.situacao}"/>
  111. </td>
  112. <c:if test="${discentePublicoMBean.buscarTodasIes}">
  113. <td>
  114. <h:outputText value="#{d.ies}"/>
  115. </td>
  116. </c:if>
  117. <td>
  118. <h:link outcome="/public/consultas/coleta/discente/viewDiscente?popup=true&amp;idDiscente=#{d.idDiscente}" rel="_blank"
  119. onclick="window.open(this.href, this.target, 'width=1024,height=650,scrollbars=yes,resizable=yes'); return false">
  120.  
  121. <h:graphicImage value="/images/lupa.png" alt="Visualizar" title="Visualizar"/>
  122. </h:link>
  123. </td>
  124. </tr>
  125. </ui:repeat>
  126. </tbody>
  127. </table>
  128. <sucupira:paginacao valueMBean="#{discentePublicoMBean}" reRender="form" />
  129. </div>
  130. </div>
  131. </div>
  132. </h:panelGroup>
  133.  
  134. </h:form>
  135. </ui:define>
  136. </ui:composition>
  137. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement