<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=4388&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=4388</link>
		<description><![CDATA[Die aktuellsten Beiträge in formbuilder: Felder in zufälliger Reihenfolge darstellen.]]></description>
		<lastBuildDate>Fri, 08 May 2015 13:04:14 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34700#p34700</link>
			<description><![CDATA[<p>Das klingt doch schonmal gut. Danke.</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Fri, 08 May 2015 13:04:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34700#p34700</guid>
		</item>
		<item>
			<title><![CDATA[Re: formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34693#p34693</link>
			<description><![CDATA[<p>Hmm, evtl so?</p><p>Zuerst die nicht zu mischenden Elemente manuell im Template aufrufen, diese Elemente dann aus $fields entfernen und dann den Rest shufflen (ungetestet)?</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Fri, 08 May 2015 12:18:52 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34693#p34693</guid>
		</item>
		<item>
			<title><![CDATA[Re: formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34679#p34679</link>
			<description><![CDATA[<p>Danke schonmal. Alle Felder wäre nicht so gut.</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Fri, 08 May 2015 09:05:07 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34679#p34679</guid>
		</item>
		<item>
			<title><![CDATA[Re: formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34671#p34671</link>
			<description><![CDATA[<p>Du hast eine Variable namens {$fields}.<br />Das ist ein Array.<br />Die Reihenfolge der Elemente kannst Du vor der {foreach} Schleife mit {$fields|shuffle} auf eine zufällige Reihenfolge ändern.<br />Das betrifft aber dann alle Felder.</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Fri, 08 May 2015 08:22:54 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34671#p34671</guid>
		</item>
		<item>
			<title><![CDATA[Re: formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34659#p34659</link>
			<description><![CDATA[<p>Das Formular besteht aus zwei Seiten. Seite 1 ist nicht betroffen und enthält normale Textfelder. Die betroffenen Felder sind allesamt Kontrollkästchen-Gruppen, betrifft also die numloop-Section in der multiple_parts-Bedingung im Template. Das könnte vielleicht nützlich sein.</p><div class="codebox"><pre class="vscroll"><code>[== smarty/html ==]
{* TABLE FORM LAYOUT / Field titles on Top *}
{* next line sets number of columns for things like checkbox groups *}
{assign var=&quot;cols&quot; value=&quot;3&quot;}
{literal}
&lt;script type=&quot;text/javascript&quot;&gt;
function fbht(htid)
	{
		var fbhtc=document.getElementById(htid);
		if (fbhtc)
			{
			if (fbhtc.style.display == &#039;none&#039;)
				{
				fbhtc.style.display = &#039;inline&#039;;
				}
			else
				{
				fbhtc.style.display = &#039;none&#039;;
				}
			}
}
&lt;/script&gt;
{/literal}
{$fb_form_header}
{if $fb_form_done == 1}
	{* This first section is for displaying submission errors *}
	{if $fb_submission_error}
		&lt;div class=&quot;error_message&quot;&gt;{$fb_submission_error}&lt;/div&gt;
		{if $fb_show_submission_errors}
			&lt;table class=&quot;error&quot;&gt;
			{foreach from=$fb_submission_error_list item=thisErr}
				&lt;tr&gt;&lt;td&gt;{$thisErr}&lt;/td&gt;&lt;/tr&gt;
			{/foreach}
			&lt;/table&gt;
		{/if}
	{/if}
{else}
	{* this section is for displaying the form *}
	{* we start with validation errors *}
	{if $fb_form_has_validation_errors}
		&lt;div class=&quot;error_message&quot;&gt;
		&lt;ul&gt;
		{foreach from=$fb_form_validation_errors item=thisErr}
			&lt;li&gt;{$thisErr}&lt;/li&gt;
		{/foreach}
		&lt;/ul&gt;
		&lt;/div&gt;
	{/if}
	{if $captcha_error}
		&lt;div class=&quot;error_message&quot;&gt;{$captcha_error}&lt;/div&gt;
	{/if}

	{* and now the form itself *}
	{$fb_form_start}
	&lt;div&gt;{$fb_hidden}&lt;/div&gt;

	&lt;table{if $css_class != &#039;&#039;} class=&quot;{$css_class}&quot;{/if}&gt;
	{if $total_pages gt 1}&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;{$title_page_x_of_y}&lt;/td&gt;&lt;/tr&gt;{/if}
	{foreach from=$fields item=entry}
		{if $entry-&gt;display == 1 &amp;&amp;
			$entry-&gt;type != &#039;-Fieldset Start&#039; &amp;&amp;
			$entry-&gt;type != &#039;-Fieldset End&#039; }
		&lt;tr&gt;
			{strip}
			&lt;td valign=&quot;top&quot;
			{if $entry-&gt;required == 1 || $entry-&gt;css_class != &#039;&#039;} class=&quot; 
				{if $entry-&gt;required == 1}
					required
				{/if}
				{if $entry-&gt;required == 1 &amp;&amp; $entry-&gt;css_class != &#039;&#039;} {/if}
				{if $entry-&gt;css_class != &#039;&#039;}
					{$entry-&gt;css_class}
				{/if}
				&quot;
			{/if}
			&gt;
			{if $entry-&gt;hide_name == 0}
				{$entry-&gt;name}
				{if $entry-&gt;required_symbol != &#039;&#039;}
					{$entry-&gt;required_symbol}
				{/if}
			{/if}
			&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=&quot;left&quot; valign=&quot;top&quot;{if $entry-&gt;css_class != &#039;&#039;} class=&quot;{$entry-&gt;css_class}&quot;{/if}&gt;
			{if $entry-&gt;multiple_parts == 1}
			&lt;table&gt;
				&lt;tr&gt;
				{section name=numloop loop=$entry-&gt;input}
					&lt;td valign=&quot;top&quot;&gt;{$entry-&gt;input[numloop]-&gt;input}&amp;nbsp;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;{$entry-&gt;input[numloop]-&gt;name}{if $entry-&gt;input[numloop]-&gt;op}&amp;nbsp;{$entry-&gt;input[numloop]-&gt;op}{/if}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
					{if not ($smarty.section.numloop.rownum mod $cols)}
						{if not $smarty.section.numloop.last}
				
						{/if}
					{/if}
					{if $smarty.section.numloop.last}
						{math equation = &quot;n - a % n&quot; n=$cols a=$entry-&gt;input|@count assign=&quot;cells&quot;}
						{if $cells ne $cols}
							{section name=pad loop=$cells}
								&lt;td&gt;&amp;nbsp;&lt;/td&gt;
							{/section}
						{/if}
				&lt;/tr&gt;
					{/if}
				{/section}
			&lt;/table&gt;
			{else}
				{if $entry-&gt;smarty_eval == &#039;1&#039;}{eval var=$entry-&gt;input}{else}{$entry-&gt;input}{/if}
			{/if}
			{if $entry-&gt;valid == 0} &amp;lt;--- {$entry-&gt;error}{/if}
			{if $entry-&gt;helptext != &#039;&#039;}&amp;nbsp;&lt;a href=&quot;javascript:fbht(&#039;{$entry-&gt;field_helptext_id}&#039;)&quot;&gt;&lt;img src=&quot;modules/FormBuilder/images/info-small.gif&quot; alt=&quot;Help&quot; /&gt;&lt;/a&gt;
					&lt;span id=&quot;{$entry-&gt;field_helptext_id}&quot; style=&quot;display:none&quot; class=&quot;fbr_helptext&quot;&gt;{$entry-&gt;helptext}&lt;/span&gt;{/if}
			
			&lt;/td&gt;&lt;/tr&gt;
			{/strip}
		{/if}
	{/foreach}
	{if $has_captcha == 1}
	&lt;tr&gt;&lt;td&gt;{$graphic_captcha}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;{$input_captcha}&lt;br /&gt;{$title_captcha}&lt;/td&gt;&lt;/tr&gt;
	{/if}
	&lt;tr&gt;&lt;td&gt;{$prev}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;{$submit}&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
{$fb_form_end}
{/if}
{$fb_form_footer}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Fri, 08 May 2015 05:06:48 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34659#p34659</guid>
		</item>
		<item>
			<title><![CDATA[Re: formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34649#p34649</link>
			<description><![CDATA[<p>Wie sieht denn dein Formular-Template aus?</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Thu, 07 May 2015 11:49:33 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34649#p34649</guid>
		</item>
		<item>
			<title><![CDATA[formbuilder: Felder in zufälliger Reihenfolge darstellen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34647#p34647</link>
			<description><![CDATA[<p>Hallo,</p><p>ist sowas möglich wie im Titel beschrieben? Dass bestimmte Felder in der Formularausgabe in zufälliger Reihenfolge ausgegeben werden. Also zB die Felder 4-12.</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Thu, 07 May 2015 11:17:08 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34647#p34647</guid>
		</item>
	</channel>
</rss>
