Location: PHPKode > projects > VideoDB > videodb/templates/modern/options.tpl
  Template to display config options used by setup.tpl and profile.tpl
  $Id: options.tpl,v 1.6 2006/11/11 15:53:44 andig2 Exp $

{foreach from=$setup item=option}
<tr class="{cycle values="even,odd"}">
    {if $option.group}
    <td class="center" colspan="2">
        <h3><a name="{$option.group}"></a>{$lang[$option.group]}</h3>
    <td class="center" nowrap="nowrap">

        {if $option.type == 'text'}
            <input type="text" size="20" name="{$option.name}" id="{$option.name}" value="{$option.set|escape}" style="text-align:center"/>

        {if $option.type == 'boolean'}
            {html_checkbox name=$option.name id=$option.name value=1 checked=$option.set}

        {if $option.type == 'dropdown'}
            {html_options name=$option.name options=$option.data selected=$option.set}

        {if $option.type == 'multi'}
            <select name="{$option.name}[]" size="5" multiple="multiple">
                <option value=""></option>
                {html_options options=$option.data selected=$option.set}

        {if $option.type == 'special'}

        {if $option.type == 'link'}
            <a href="{$option.data}">{$option.hl}</a>

        {if $option.thumbs}
            {include file="options_thumbs.tpl"}
        {/if}   </td>
Return current item: VideoDB