Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  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: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. xmlns:p="http://primefaces.org/ui">
  8. <h:head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <link rel="stylesheet" type="text/css" href="menu.css" />
  11.  
  12. <title>Liste des centres</title>
  13. </h:head>
  14.  
  15. <h:body>
  16.  
  17. <!-- page standart -->
  18.  
  19. <div
  20. style="background-image: url(image/safa.jpg); padding: 5px; -moz-border-radius: 10px; border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px; text-align: left; margin-left: 30px; width: 1250px; height: 200px;"></div>
  21.  
  22. <ul class="vmenu">
  23. <li><a href="#accueil1.xhtml">Accueil</a></li>
  24. <li><a href="Listecentre.xhtml">Centres</a></li>
  25. <li><a href="ListeBatiment.xhtml">Bâtiments</a></li>
  26. <li><a href="ajoutproduit.xhtml">Produits</a></li>
  27. <li><a href="tier.xhtml">Tiers</a></li>
  28. <li><a href="#">Fiches de suivi</a></li>
  29.  
  30. </ul>
  31. <h:form class="aside">
  32. <p:fieldset>
  33. <h:panelGrid columns="1">
  34.  
  35. <p:graphicImage value="/image/pie chart.png" styleClass="sousou"
  36. margin-left="60" width="200" height="200"
  37. style="border-radius:7px;" />
  38. </h:panelGrid>
  39. <h:panelGrid columns="2">
  40. <p:commandLink onclick="accueil1.xhtml" title="accueil">
  41. <p:graphicImage value="/image/accueil.png" styleClass="sousou"
  42. margin-left="40" width="100" height="100"
  43. style="border-radius:7px;" />
  44. </p:commandLink>
  45.  
  46.  
  47. <p:commandLink onclick=".xhtml" title="déconnecter">
  48. <p:graphicImage value="/image/dec.jpg" styleClass="sousou"
  49. margin-left="40" width="100" height="100"
  50. style="border-radius:7px;" />
  51. </p:commandLink>
  52.  
  53. </h:panelGrid>
  54. </p:fieldset>
  55. </h:form>
  56.  
  57.  
  58.  
  59. <!-- liste des batiment avec les trois boutttons -->
  60. <h:form id="form">
  61. #{ajoutcentre.init()}
  62. <div class="data">
  63.  
  64.  
  65. <div style="float: right; margin-top: 20px">
  66. <p:commandLink onclick="dlg2.show();" title="Ajouter">
  67. <p:graphicImage value="/image/ajouter.png" styleClass="sousou"
  68. width="40" height="40" style="border-radius:7px;" />
  69. </p:commandLink>
  70.  
  71. <p:commandLink onclick="dlg2.show();" title="Modifier"
  72. oncomplete="multiCarDialog.show()" action="#{ajoutcentre.update}">
  73. <p:graphicImage value="/image/modifier.png" styleClass="sousou"
  74. width="40" height="40" style="border-radius:7px;" />
  75. </p:commandLink>
  76.  
  77. <h:commandLink action="#{ajoutcentre.delete}" title="Supprimer">
  78. <p:graphicImage value="/image/supprimer.png" styleClass="sousou"
  79. width="40" height="40" style="border-radius:7px;" />
  80. </h:commandLink>
  81. </div>
  82.  
  83. <p:dialog id="modalDialog" header="Ajout" widgetVar="dlg2"
  84. modal="true" showEffect="clip" hideEffect="clip" appendToBody="true"
  85. style="width:400px;height:400px;">
  86. <p:fieldset>
  87. <h:outputText value="Veuillez ajouter un nouveau centre:"
  88. style="color:#6eac2c;font-size:14px; float-left:10px;font-size: 17px; font-style: italic;" />
  89. <br />
  90. <h:form>
  91. <h:panelGrid columns="2">
  92. <h:outputText value="Nom" style="font-weight:bold" />
  93. <p:inputText value="#{ajoutcentre.currentCentre.nom}" />
  94.  
  95. <h:outputText value="Adresse" style="font-weight:bold" />
  96. <p:inputText value="#{ajoutcentre.currentCentre.adresse}" />
  97. </h:panelGrid>
  98. <h:panelGrid columns="3" id="olfa">
  99. <h:outputText value="Ville" style="font-weight:bold" />
  100.  
  101. <p:selectOneMenu value="#{ajoutcentre.selectedVille}" id="v">
  102. <f:selectItems value="#{ajoutcentre.villeliste}" var="ville"
  103. itemLabel="#{ville.nom}" itemValue="#{ville.nom}" />
  104. </p:selectOneMenu>
  105.  
  106. <p:commandLink onclick="dlg1.show();" title="Ajouter">
  107. <p:graphicImage value="/image/ajouter.png" styleClass="sousou"
  108. width="30" height="30" style="border-radius:7px;" />
  109. </p:commandLink>
  110.  
  111. <p:commandButton value="Ajouter"
  112. action="#{ajoutcentre.SaveCentre}" />
  113.  
  114.  
  115. </h:panelGrid>
  116. <p:dialog id="modalDialog1" header="Ajout" widgetVar="dlg1"
  117. modal="true" showEffect="clip" hideEffect="clip" appendToBody="true"
  118. style="width:400px;height:400px;">
  119.  
  120. <p style="font-weight: bold">Ajouter une nouvelle ville</p>
  121.  
  122. <h:panelGrid columns="2">
  123.  
  124. <h:outputText value="Nom" style="font-weight:bold" />
  125. <p:inputText value="#{ajoutville.currentVille.nom}" />
  126.  
  127.  
  128.  
  129. <p:commandButton value="Ajouter" update="olfa" action="#{ajoutville.SaveVille}" oncomplete="dlg1.hide()"/>
  130.  
  131. </h:panelGrid>
  132. </p:dialog>
  133. </h:form>
  134. </p:fieldset>
  135. </p:dialog>
  136.  
  137. <p:dataTable id="checkboxDT" var="car"
  138. value="#{ajoutcentre.centreList}"
  139. selection="#{ajoutcentre.centreSelectionnesList}" paginator="true"
  140. rows="10" paginatorPosition="bottom" rowKey="#{car.idCentre}">
  141. <f:facet name="header">
  142. Liste Centre:
  143. </f:facet>
  144. <p:column selectionMode="multiple"
  145. style="width:16px;text-align:center" />
  146. <p:column headerText="Nom">
  147. <h:outputText value="#{car.nom}" />
  148. </p:column>
  149.  
  150. <p:column headerText="Adresse">
  151. <h:outputText value="#{car.adresse}" />
  152. </p:column>
  153.  
  154. <p:column headerText="Ville">
  155. <h:outputText value="#{car.ville.nom}" />
  156. </p:column>
  157. </p:dataTable>
  158. </div>
  159.  
  160. </h:form>
  161.  
  162. </h:body>
  163. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement