Файл: DARK WARS/dark_war/style/tpl/form.tpl
Строк: 44
<form{if $method} method="{$method}"{/if}{if $action}
action="{$action}"{/if}{if $files}
enctype="multipart/form-data"{/if}>
{section name=i
loop=$dis}
{if $dis[i].title}
{$dis[i].title} <br />
{/if}
{if $dis[i].type == 'text'}
<input type="text"{if
$dis[i].name} name="{$dis[i].name}"{/if}{if $dis[i].value}
value="{$dis[i].value}"{/if} />
{elseif $dis[i].type ==
'textarea'}
<textarea {if $dis[i].name}
name="{$dis[i].name}"{/if}>{if $dis[i].value}{$dis[i].value}
{/if}</textarea>
{elseif $dis[i].type == 'file'}
<input type="file"{if $dis[i].name}
name="{$dis[i].name}"{/if} />
{elseif $dis[i].type ==
'submit'}
<input type="submit"{if $dis[i].name}
name="{$dis[i].name}"{/if}{if $dis[i].value}
value="{$dis[i].value}"{/if} />
{elseif $dis[i].type ==
'button'}
<input type="button"{if $dis[i].name}
name="{$dis[i].name}"{/if}{if $dis[i].value}
value="{$dis[i].value}"{/if} />
{elseif $dis[i].type ==
'select'}
<select name="{$dis[i].name}">
{section name=b loop=$dis[i].options}
<option{if
$dis[i].options[b].2} selected="selected"{/if}
value="{$dis[i].options[b].0}">{$dis[i].options[b].1}</option>
{/section}
</select>
{elseif $dis[i].type ==
'checkbox'}
<label><input type="checkbox"{if
$dis[i].name} name="{$dis[i].name}"{/if}{if $dis[i].value}
value="{$dis[i].value}"{/if}
{if $dis[i].checked}
checked="checked"{/if} />{if
$dis[i].chec_text}{$dis[i].chec_text}{/if}</label>
{/if}
{if
$dis[i].br}
<br />
{/if}
{/section}
</form>