Location: PHPKode > projects > OpenNitro > trunk/Nitro/Defaults/Templates/BackOffice/form.tpl
<FORM NAME="{$Name}" ID="{$Name}" METHOD="{$Method}" ACTION="{$Action}" ENCTYPE="{$encType}">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" CLASS="PaddedTable">

{foreach from=$Options item=Option key=Key}
	{if $Option.WidgetType eq 'HIDDEN'}
	{$Option.Controls}
	{elseif $Option.WidgetType eq 'LABLE'}
	{$Option.Lable}
	{else}
	<TR>
		{if $Option.Lable && $Option.Lable != "__FALSE"}<TD VALIGN="middle">{$Option.Lable}{if $Option.Lable neq ' '}:{/if} {if $Option.Help}{$Option.Help}{/if} </TD>{/if}
		<TD VALIGN="middle"{if !$Option.Lable || $Option.Lable == "__FALSE"} COLSPAN="2"{/if}>{$Option.Controls}</TD>
	</TR>
	{/if}
{/foreach}
<TR><TD></TD><TD>
{foreach from=$Buttons item=Button key=Name}
	{if $Button.Type eq "IMAGE"}
		<INPUT TYPE=IMAGE NAME="{$Name}" ID="{$Button.ID|default:$Name}" SRC="{$Button.Src}"{if $Button.onClick} onClick="{$Button.onClick}"{/if}{if $Button.Script}{foreach from=$Button.Script item=JS} {$JS}{/foreach}{/if}>
	{else}
		<INPUT TYPE="{$Button.Type}" NAME="{$Name}" ID="{$Button.ID|default:$Name}" VALUE="{$Button.Value}"{if $Button.onClick} onClick="{$Button.onClick}"{/if}{if $Button.Script}{foreach from=$Button.Script item=JS} {$JS}{/foreach}{/if}>
	{/if}
{/foreach}
</TD></TR>

</TABLE>
</FORM>
Return current item: OpenNitro