<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
	<xsl:import href="../../xslc.xsl"/>
	<xsl:import href="../../Common.xsl"/>
	<xsl:template match="/">
		<xsl:apply-templates select="document"/>
	</xsl:template>
	<xsl:template match="document">
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="Title">Edit tVO_Frevo</xsl:with-param>
			<xsl:with-param name="PageTitle">
				<img align="absmiddle" src="{$XMLC_PictosPath}ico_service.gif"/> Edit tVO_Frevo</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsLeft">
				<ToolbarButton>
					<xsl:call-template name="ToolButtonRefresh"/>
				</ToolbarButton>
				<ToolbarButton>
					<img border="0" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
				</ToolbarButton>
				<xsl:call-template name="CommonToolbarButtonsLeft"/>
				<ToolbarButton>
					<xsl:call-template name="xslc:ToolbarButton">
						<xsl:with-param name="Caption">
							<img border="0" src="{$XMLC_PictosPath}button_print.gif" alt="Print Report"/>
						</xsl:with-param>
						<xsl:with-param name="HRef">
							<xsl:value-of select="/document/Aliases/bdVODLL"/>ReportFormtVO_Frevo?idFrevo=<xsl:value-of select="/document/Params/idFrevo"/>&amp;XMLC_OutputFormat=HTML</xsl:with-param>
						<xsl:with-param name="Target">_blank</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
				<ToolbarButton>
					<xsl:call-template name="xslc:ToolbarButton">
						<xsl:with-param name="Caption">
							<img border="0" src="{$XMLC_PictosPath}button_pdf.gif" alt="Generate PDF report"/>
						</xsl:with-param>
						<xsl:with-param name="HRef">
							<xsl:value-of select="/document/Aliases/bdVODLL"/>ReportFormtVO_Frevo?idFrevo=<xsl:value-of select="/document/Params/idFrevo"/>
						</xsl:with-param>
						<xsl:with-param name="Target">_blank</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
				<xsl:call-template name="xslc:ToolbarButtonPad">
					<xsl:with-param name="DeleteAction">
						<xsl:value-of select="/document/Aliases/DLL"/>DeletetVO_Frevo</xsl:with-param>
				</xsl:call-template>
			</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsRight">
				<xsl:call-template name="CommonToolbarButtonsRight"/>
			</xsl:with-param>
			<xsl:with-param name="ActionMenu">
				<xsl:call-template name="xslc:ActionPanel">
					<xsl:with-param name="Name">FormtVO_FrevoMenu</xsl:with-param>
					<xsl:with-param name="TitleImage">
						<xsl:value-of select="$XMLC_PictosPath"/>button_service.gif</xsl:with-param>
					<xsl:with-param name="Title">tVO_Frevo</xsl:with-param>
					<xsl:with-param name="Dark">1</xsl:with-param>
					<xsl:with-param name="Items">
						<Item HRef="{/document/Aliases/bdVODLL}FormtVO_Frevo?idFrevo={/document/Params/idFrevo}" ImagePath="{$XMLC_PictosPath}button_service.gif" Caption="Edit tVO_Frevo"/>
						<Item Separator="1" Dark="1"/>
						<Item HRef="." OnClick="SubmitForm('MainForm'); return false;" ImagePath="{$XMLC_PictosPath}button_save.gif" Caption="Save"/>
						<Item HRef="." OnClick="ConfirmDelete('MainForm', '{/document/Aliases/bdVODLL}', '{/document/Locales/DeletePrompt}'); return false;" ImagePath="{$XMLC_PictosPath}Buttons/Common/delete.gif" Caption="Delete"/>
					</xsl:with-param>
				</xsl:call-template>
			</xsl:with-param>
			<xsl:with-param name="ActivePageName">FormtVO_Frevo</xsl:with-param>
			<xsl:with-param name="Tabs">
				<Tab Name="FormtVO_Frevo">
					<a href="{/document/Aliases/bdVODLL}FormtVO_Frevo?idFrevo={/document/Params/idFrevo}">
						<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"/> Edit tVO_Frevo</a>
				</Tab>
			</xsl:with-param>
			<xsl:with-param name="Body">
				<xsl:call-template name="xslc:ApplicationMessages"/>
				<xsl:apply-templates select="tVO_Frevo"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="tVO_Frevo">
		<form name="MainForm" method="POST" action="{/document/Aliases/bdVODLL}UpdatetVO_Frevo">
			<input type="hidden" name="idFrevo" value="{idFrevo}"/>
			<table border="0" cellpadding="2" cellspacing="0" width="100%">
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">idVO:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="idVO" size="50" value="{idVO}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">DateFrevo:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="DateFrevo" size="50" value="{DateFrevo}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">LibelleFrevo:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="LibelleFrevo" size="50" value="{LibelleFrevo}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">NComptable:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="NComptable" size="50" value="{NComptable}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">NomFournisseur:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="NomFournisseur" size="50" value="{NomFournisseur}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">NFacture:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="NFacture" size="50" value="{NFacture}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">TypeFrevo:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="TypeFrevo" size="50" value="{TypeFrevo}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">MontantHT:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="MontantHT" size="50" value="{MontantHT}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">DateMAJ:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="DateMAJ" size="50" value="{DateMAJ}"/>
					</td>
				</tr>
				<tr>
					<td> </td>
					<td style="padding-left: 8px">
						<xsl:call-template name="xslc:ButtonPad">
							<xsl:with-param name="DeleteAction">
								<xsl:value-of select="/document/Aliases/DLL"/>DeletetVO_Frevo</xsl:with-param>
						</xsl:call-template>
					</td>
				</tr>
			</table>
		</form>
	</xsl:template>
</xsl:stylesheet>
