Файл: install/theme/tpl/form.tpl
Строк: 71
{if $el}
<div class='margin form'>
<form{if $method}
method="{$method}"{/if}{if $action}
action="{$action}"{/if}>
{section name=sect loop=$el}
{if
$el[sect].type eq 'input'}
{if
$el[sect].title}{$el[sect].title}:<br/>{/if}<input
type="text"{if $el[sect].info.size}
size="{$el[sect].info.size}"{/if}{if $el[sect].info.disabled}
disabled="disabled"{/if}{if $el[sect].info.name}
name="{$el[sect].info.name}"{/if}{if $el[sect].info.value}
value="{$el[sect].info.value}"{/if}{if $el[sect].info.maxlength}
maxlength="{$el[sect].info.maxlength}"{/if} />
{elseif
$el[sect].type eq 'password'}
{if
$el[sect].title}{$el[sect].title}:<br/>{/if}<input
type="password"{if $el[sect].info.size}
size="{$el[sect].info.size}"{/if}{if $el[sect].info.name}
name="{$el[sect].info.name}"{/if}{if $el[sect].info.value}
value="{$el[sect].info.value}"{/if}{if $el[sect].info.maxlength}
maxlength="{$el[sect].info.maxlength}"{/if} />
{elseif
$el[sect].type eq 'submit'}
<input type="submit"{if
$el[sect].info.name} name="{$el[sect].info.name}"{/if}{if
$el[sect].info.value} value="{$el[sect].info.value}"{/if}
/>
{elseif $el[sect].type eq 'select'}{if
$el[sect].title}{$el[sect].title}:<br/>{/if}
<select
name="{$el[sect].info.name}">
{section name=select
loop=$el[sect].info.options}
{if
$el[sect].info.options[select].groupstart}
<optgroup
label="{$el[sect].info.options[select].0}">
{elseif
$el[sect].info.options[select].groupend}
</optgroup>
{else}
<option{if
$el[sect].info.options[select].2} selected="selected"{/if}
value="{$el[sect].info.options[select].0}">{$el[sect].info.options[select].1}</option>
{/if}
{/section}
</select>
{/if}
{if
$el[sect].br}
<br
/>
{/if}
{/section}
</form>
</div>
{/if}