
<form action="index.php?do=send&amp;p=contact" method="post" enctype="multipart/form-data" >
<table width="100%" border="0" cellspacing="1" cellpadding="3">
{foreach from=$items item=con}
  <tr>
    <td width="20%">{$con->valtext}</td>
    <td>
	{if $con->type=="field"}
	<input style="width:{$con->length}" name="{$con->formvalname}" type="text" id="{$con->formvalname}" />	
	{/if}
	{if $con->type=="text"}
	<textarea style="width:{$con->length};height:{$con->height}" name="{$con->formvalname}"></textarea>
	{/if}
	
	{if $con->type=="radio"}
	{foreach from=$radios item=radio}
	
	<input type="radio" name="{$con->formvalname}" value="{$radio.1}" {if $radio.1==0}checked="checked"{/if} />{$radio.0}
	{/foreach}
	{/if}
	
	{if $con->type=="select"}
	<select name="{$con->formvalname}">
	{foreach from=$select item=sl}
	<option value="{$sl.0}">{$sl.1}</option>
	{/foreach}
	</select>
	{/if}
	
	
	{if $con->type=="checkbox"}
	{foreach from=$checkbox item=cb}
	{assign var="numbox" value=$numbox+1}
	<input type="checkbox" name="{$con->formvalname} ({$numbox})" value="{$cb.0}" />{$cb.1}<br />
	{/foreach}
	{/if}
	
	</td>
  </tr>
  {/foreach}
  <tr>
    <td width="20%">&nbsp;</td>
    <td><input type="submit" name="Submit" value="Senden" />
      <input type="reset" name="Submit" value="Zurücksetzen" /></td>
  </tr>
  <tr>
    <td width="20%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="20%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
