1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
| <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view locale="#{langageMB.langue}">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta content="" name="KeyWords" />
<meta content="" name="Description" />
<link rel="stylesheet" href="../stylesheet/structure.css"
type="text/css" />
<link rel="stylesheet" href="../stylesheet/structure_admin.css"
type="text/css" />
<title>SOGETI</title>
</head>
<body>
<div class="outer">
<div class="inner">
<div id="Center_admin"><span class="nom"><h:outputText
value="#{msgs.miseajourFacture}" /></span><br />
<div id="cadreGauche_liste"><h:panelGrid border="0"
headerClass="border:1px solid #FFFFFF; font-weight:bold">
<f:facet name="header">
<h:form id="zoneRecherche">
<h:outputText value="#{msgs.recherche}" />
<br />
<br />
<h:outputText value="#{msgs.factureNom}" />
<h:inputText size="15" value="#{FcatureMB.keyword}"></h:inputText>
<h:commandButton styleClass="#{msgs.btnRechercher}"
action="#{ClientMB.doSearch}" />
<br />
<br />
</h:form>
</f:facet>
</h:panelGrid> <h:form id="factureForm">
<h:panelGrid width="340" border="0" columns="1"
columnClasses="scroller_style">
<h:column>
<t:dataScroller id="scroll" renderFacetsIfSinglePage="false"
for="listeclient" paginator="true" paginatorMaxPages="5"
pageCountVar="pageCount" pageIndexVar="pageIndex"
paginatorColumnStyle="font-color:#000000;"
paginatorColumnClass="header_tableau_recherche"
paginatorActiveColumnClass="scroller_colonne_style"
paginatorRenderLinkForActive="false">
<f:facet name="first">
<t:graphicImage alt="first" url="../images/flecheGa2.jpg" />
</f:facet>
<f:facet name="last">
<t:graphicImage alt="last" url="../images/flecheDr2.jpg" />
</f:facet>
<f:facet name="previous">
<t:graphicImage alt="previous" url="../images/flecheGa.jpg"
border="1" />
</f:facet>
<f:facet name="next">
<t:graphicImage alt="next" url="../images/flecheDr.jpg" border="1" />
</f:facet>
</t:dataScroller>
</h:column>
</h:panelGrid>
<t:dataTable id="listefacture"
style="border-collapse:collapse;border-color:#CCCCCC" rows="5"
border="1" value="#{FactureMB.factures}" var="client" cellspacing="1"
cellpadding="1" headerClass="header_tableau_recherche" width="340"
rowClasses="ligne_gris,ligne_blanc,ligne_gris,ligne_blanc,ligne_gris"
columnClasses="tabcolonne1,tabcolonne1,tabcolonne3,tabcolonne4">
<t:column>
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<t:selectBooleanCheckbox
value="#{FactureMB.selectedIds[facture.nofacture]}" />
</t:column>
<t:column>
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<h:commandLink action="#{FactureMB.doShowFacture}">
<h:graphicImage value="../images/modifier.gif" alt="modifier" />
<f:param name="factureId" value="#{facture.noFacture}" />
</h:commandLink>
</t:column>
<t:column defaultSorted="true" sortable="true">
<f:facet name="header">
<t:commandSortHeader columnName="Lib" arrow="false">
<f:facet name="ascending">
<t:graphicImage alt="Croissant"
value="../images/triCroissant.jpg" rendered="true" border="0" />
</f:facet>
<f:facet name="descending">
<t:graphicImage alt="Decroissant"
value="../images/triDecroissant.jpg" rendered="true" border="0" />
</f:facet>
<h:outputText styleClass="header_tableau_recherche"
value="#{msgs.libelle1}" />
</t:commandSortHeader>
</f:facet>
<h:outputText value="#{facture.nom}"></h:outputText>
</t:column>
<t:column>
<f:facet name="header">
<h:outputText value="#{msgs.logo}" />
</f:facet>
<h:outputLink value="../image?id=#{facture.nofacture}">
<h:graphicImage width="89" height="55"
value="../image?id=#{facture.nofacture}" alt="#{facture.nom}" />
</h:outputLink>
</t:column>
<f:facet name="footer">
<h:commandButton styleClass="#{msgs.btnSupprimer}" type="submit"
action="#{FactureMB.DeleteSelectedFactures}"></h:commandButton>
</f:facet>
</t:dataTable>
<h:message for="clientForm" infoStyle="color: green;" errorStyle="color: red;"/>
</h:form></div>
<div id="cadreDroite_new"><h:form id="uploadForm"
enctype="multipart/form-data">
<fieldset id="fieldset_new"><legend><h:outputText
value="#{msgs.nouveauFacture}" /></legend>
<table cellspacing="10">
<tr>
<td><h:outputText value="#{msgs.factureNom2p}" /></td>
<td colspan="1">
<h:inputText id="nv_nom"value="#{ClientMB.client.nom}" required="true" requiredMessage="Veuillez remplir le champ nom" /></td>
</tr>
<tr>
<td><h:outputText value="#{msgs.siteInternet}" /></td>
<td><h:inputText id="nv_site"
value="#{FactureMB.facture.siteweb}" /></td>
<td></td>
</tr>
<tr>
<td>Logo :</td>
<td><t:inputFileUpload id="nv_logo"
value="#{FactureMB.uploadedFile}" required="true" /></td>
<td></td>
</tr>
<tr>
<td colspan="2" style="text-align: center"><br />
<h:commandButton styleClass="#{msgs.btnEnregistrer}"
id="enregistrer" action="#{FactureMB.doCreateFacture}" /><br />
<br />
</td>
<td></td>
</tr>
</table>
</fieldset>
<table>
<tr><td><h:message for="nv_nom" style="color: red;" /></td></tr>
<tr><td><h:message for="nv_logo" style="color: red;"/></td></tr>
<tr><td colspan="2" style="text-align: center"><h:message for="uploadForm" infoStyle="color: green;" errorStyle="color: red;" /></td>
</tr>
</table>
</h:form></div>
</div>
</div>
<div class="clear"></div>
</div>
<div id="Bottom"><%--FOOTER--%>
<div class="bottom_m1"><%@ include file="../common/footer.jspf"%>
</div>
</div>
</div>
</div>
body>
</html>
</f:view> |
Partager