admin settings via fieldset
This commit is contained in:
parent
493db31dcc
commit
6de81c8b78
@ -1,4 +1,4 @@
|
|||||||
<article class="module width_full">
|
<article class="module width_3_quarter">
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<input type="hidden" name="page" value="{$smarty.request.page}" />
|
<input type="hidden" name="page" value="{$smarty.request.page}" />
|
||||||
<input type="hidden" name="action" value="{$smarty.request.action}" />
|
<input type="hidden" name="action" value="{$smarty.request.action}" />
|
||||||
@ -13,31 +13,20 @@
|
|||||||
</header>
|
</header>
|
||||||
<div class="tab_container">
|
<div class="tab_container">
|
||||||
{foreach item=TAB from=array_keys($SETTINGS)}
|
{foreach item=TAB from=array_keys($SETTINGS)}
|
||||||
<div class="tab_content" id="{$TAB}">
|
<div class="tab_content module_content" id="{$TAB}">
|
||||||
<table class="tablesorter" cellspacing="0">
|
|
||||||
<thead>
|
|
||||||
<th align="left" width="15%">Setting</th>
|
|
||||||
<th align="center" width="50px">Help</th>
|
|
||||||
<th>Value</th>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{section name=setting loop=$SETTINGS.$TAB}
|
{section name=setting loop=$SETTINGS.$TAB}
|
||||||
<tr>
|
<fieldset>
|
||||||
<td align="left">{$SETTINGS.$TAB[setting].display}</td>
|
<label>{$SETTINGS.$TAB[setting].display}</label>
|
||||||
<td align="center">{if $SETTINGS.$TAB[setting].tooltip|default}<span id='tt'><img src='{$PATH}/images/questionmark.png' height='15px' width='15px' title='{$SETTINGS.$TAB[setting].tooltip}.'></span>{/if}</td>
|
{if $SETTINGS.$TAB[setting].tooltip|default}<span style="font-size: 10px;">{$SETTINGS.$TAB[setting].tooltip}</span>{/if}
|
||||||
<td>
|
|
||||||
{if $SETTINGS.$TAB[setting].type == 'select'}
|
{if $SETTINGS.$TAB[setting].type == 'select'}
|
||||||
{html_options name="data[{$SETTINGS.$TAB[setting].name}]" options=$SETTINGS.$TAB[setting].options selected=$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}
|
{html_options name="data[{$SETTINGS.$TAB[setting].name}]" options=$SETTINGS.$TAB[setting].options selected=$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}
|
||||||
{else if $SETTINGS.$TAB[setting].type == 'text'}
|
{else if $SETTINGS.$TAB[setting].type == 'text'}
|
||||||
<input type="text" size="{$SETTINGS.$TAB[setting].size}" name="data[{$SETTINGS.$TAB[setting].name}]" value="{$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}" />
|
<input type="text" size="{$SETTINGS.$TAB[setting].size}" name="data[{$SETTINGS.$TAB[setting].name}]" value="{$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}" />
|
||||||
{else}
|
{else}
|
||||||
Unknown option type: {$SETTINGS.$TAB[setting].type}
|
Unknown option type: {$SETTINGS.$TAB[setting].type}
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</fieldset>
|
||||||
</tr>
|
|
||||||
{/section}
|
{/section}
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user