Location: PHPKode > projects > XMLNuke Web Development Framework XML > xmlnuke-php5-v3.5r356/xmlnuke-php5/data/shared/snippet/snippet_htmlbody_poll.inc
<!-- USED ONLY WITH SNIPPET-HTMLBODY-BASIC -->
<!-- ATENTION: YOU NEED PUT IN YOUR HEADER SNIPPET_HTMLHEADER.INC -->
<!-- POLL -->

<xsl:template match="poll">

<xsl:if test="error">
	<i><xsl:value-of select="error" /></i>
</xsl:if>

<xsl:if test="not(error)">
	<form method="post" id="pollform"><xsl:attribute name="action"><xsl:value-of select="@url" /></xsl:attribute>
	<input name="xmlnuke_poll" type="hidden"><xsl:attribute name="value"><xsl:value-of select="@name" /></xsl:attribute></input>
	<input name="xmlnuke_polllang" type="hidden"><xsl:attribute name="value"><xsl:value-of select="@lang" /></xsl:attribute></input>
	<fieldset>
		<dl>
			<dt style="clear:both;width:99%;float:left;text-align:left;text-weight:bold;margin:0 0 0.5em 0.25em;">
				<b><xsl:value-of select="question" /></b>
			</dt>
			<xsl:if test="@active='true'">
				<xsl:for-each select="answer">
					<dt>
						<input name="xmlnuke_pollanswer" type="radio"><xsl:attribute name="value"><xsl:value-of select="@code" /></xsl:attribute></input>
					</dt>
					<dd>
						<xsl:value-of select="text()" />
					</dd>
				</xsl:for-each>
			</xsl:if>
			<xsl:if test="not(@active='true')">
				<input type="hidden" name="xmlnuke_pollanswer" value="NONE" />
			</xsl:if>
			<dt><img src="common/spacer.gif" width="1" height="1"/></dt><dd><input class="botao" type="submit"><xsl:attribute name="value"><xsl:value-of select="@sendbtn" /></xsl:attribute></input></dd>
		</dl>
	</fieldset>
	</form>
</xsl:if>

</xsl:template>
Return current item: XMLNuke Web Development Framework XML