<?xml version="1.0"?>
<!-- edited with XML Spy v2.5 NT  - http://www.xmlspy.com -->
<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 ListRubrics</xsl:with-param>
			<xsl:with-param name="PageTitle">
				<img align="absmiddle" src="{$XMLC_PictosPath}ico_service.gif"/> Edit ListRubrics</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"/>ReportListListRubrics?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"/>ReportListListRubrics</xsl:with-param>
						<xsl:with-param name="Target">_blank</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
			</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">OptInfosMenu</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">ListRubrics</xsl:with-param>
					<xsl:with-param name="Dark">1</xsl:with-param>
					<xsl:with-param name="Items">
						<Item HRef="{/document/Aliases/bdVODLL}OptInfos?" ImagePath="{$XMLC_PictosPath}button_service.gif" Caption="Edit ListRubrics"/>
						<Item Separator="1" Dark="1"/>
						<Item Separator="1" Dark="1"/>
						<Item HRef="." ImagePath="{$XMLC_PictosPath}button_save.gif" OnClick="SubmitForm('FormUpdateListRubrics'); return false;" Caption="Save"/>
					</xsl:with-param>
				</xsl:call-template>
			</xsl:with-param>
			<xsl:with-param name="ActivePageName">OptInfos</xsl:with-param>
			<xsl:with-param name="Tabs">
				<Tab Name="OptInfos">
					<a href="{/document/Aliases/bdVODLL}OptInfos?">
						<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"/> Edit ListRubrics</a>
				</Tab>
			</xsl:with-param>
			<xsl:with-param name="Body">
				<xsl:call-template name="xslc:ApplicationMessages"/>
				<xsl:apply-templates select="ListRubricsS"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="ListRubricsS">
		<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
			<form name="FormDeleteListRubrics" method="POST" action="{/document/Aliases/bdVODLL}DeleteListRubrics">
				<input type="hidden" name="ListRubrics_STARTINGROW" value="{@StartingRow}"/>
				<input type="hidden" name="NextAction" value="OptInfos"/>
				<input type="hidden" name="IDRubric"/>
				<input type="hidden" name="RubricIndex"/>
				<input type="hidden" name="RubricItem"/>
			</form>
			<form name="FormUpdateListRubrics" method="POST" action="{/document/Aliases/bdVODLL}UpdateListRubrics">
				<input type="hidden" name="XMLC_Pivot" value="ListRubrics"/>
				<input type="hidden" name="ListRubrics_STARTINGROW" value="{@StartingRow}"/>
				<input type="hidden" name="NextAction" value="OptInfos"/>
				<tr class="clRowHeader">
					<xsl:if test="/document/XMLC_Profile/XMLC_DisplayHeaderGradient = '1'">
						<xsl:attribute name="style">background-image: url('<xsl:value-of select="$XMLC_SkinPath"/>rowHeader_Gradient.gif');</xsl:attribute>
					</xsl:if>
					<td style="width: 12px;">
						<input type="image" border="0" src="{$XMLC_PictosPath}ico_Check.gif" alt="Save"/>
					</td>
					<td width="100%">RubricType</td>
					<td width="100%">RubricText</td>
					<td style="width: 12px;">
						<img src="{$XMLC_SkinPath}Pixel.gif" width="12" height="1"/>
					</td>
				</tr>
				<xsl:apply-templates select="ListRubrics"/>
			</form>
			<form name="FormInsertListRubrics" method="POST" action="{/document/Aliases/bdVODLL}InsertListRubrics">
				<input type="hidden" name="ListRubrics_STARTINGROW" value="{@StartingRow}"/>
				<input type="hidden" name="NextAction" value="OptInfos"/>
				<tr class="clDataGridLight">
					<td class="clRowHeader">
						<a href="." onclick="document.FormInsertListRubrics.submit(); return false;">
							<img border="0" src="{$XMLC_PictosPath}ico_xplus.gif" alt="Insert this new record"/>
						</a>
					</td>
					<td>
						<input type="text" name="RubricType"/>
					</td>
					<td>
						<input type="text" name="RubricText"/>
					</td>
					<td class="clRowHeader">
						<a href="." onclick="document.FormInsertListRubrics.submit(); return false;">
							<img border="0" src="{$XMLC_PictosPath}ico_xplus.gif" alt="Insert this new record"/>
						</a>
					</td>
				</tr>
			</form>
			<xsl:call-template name="xslc:ListFooter">
				<xsl:with-param name="colspan">4</xsl:with-param>
			</xsl:call-template>
		</table>
	</xsl:template>
	<xsl:template match="ListRubrics">
		<xsl:variable name="clValue">
			<xsl:choose>
				<xsl:when test="(position() mod 2)=0">clDataGridDark</xsl:when>
				<xsl:otherwise>clDataGridLight</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<tr class="{$clValue}">
			<input type="hidden" name="ListRubrics[{position()}].IDRubric" value="{IDRubric}"/>
			<input type="hidden" name="ListRubrics[{position()}].RubricIndex" value="{RubricIndex}"/>
			<input type="hidden" name="ListRubrics[{position()}].RubricItem" value="{RubricItem}"/>
			<td class="clRowHeader">
				<a href="." onclick="document.FormDeleteListRubrics.IDRubric.value='{IDRubric}'; document.FormDeleteListRubrics.RubricIndex.value='{RubricIndex}'; document.FormDeleteListRubrics.RubricItem.value='{RubricItem}'; document.FormDeleteListRubrics.submit(); return false;">
					<img border="0" src="{$XMLC_PictosPath}ico_xminus.gif" alt="Delete this record"/>
				</a>
			</td>
			<td>
				<input type="text" name="ListRubrics[{position()}].RubricType" value="{RubricType}"/>
			</td>
			<td>
				<input type="text" name="ListRubrics[{position()}].RubricText" value="{RubricText}"/>
			</td>
			<td class="clRowHeader">
				<a href="{/document/Aliases/bdVODLL}FormListRubrics?&amp;IDRubric={IDRubric}&amp;RubricIndex={RubricIndex}&amp;RubricItem={RubricItem}">
					<img border="0" src="{$XMLC_PictosPath}ico_run.gif" style="cursor: hand;" alt="Go to ListRubrics"/>
				</a>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>
