[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/templates/admin/ -> pluginsettings.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=pluginSettings title=$locale->tr("pluginSettings")}
   3  
   4  <form id="pluginSettings" method="post" action="admin.php">
   5  <div id="list">    
   6  <fieldset class="inputField">
   7    <legend>{$locale->tr("pluginSettings")}</legend>
   8    {include file="$admintemplatepath/formvalidate.template"}
   9  
  10    {foreach from=$plugins item=plugin} 
  11      {if $plugin->hasPluginConfigurationKeys()}
  12           <h4>{$plugin->getId()}</h4>
  13        <table style="width:100%" summary="{$locale->tr("pluginSettings")}">
  14          <thead>
  15           <tr>     
  16            <th style="width:10%;align:left">{$locale->tr("parameter")}</th>
  17            <th style="width:80%:align:left">{$locale->tr("value")}</th>
  18            <th style="width:10%:align:center">{$locale->tr("override")}</th>    
  19           </tr>
  20          </thead>    
  21          {assign var=pluginsettings value=$plugin->getPluginConfigurationKeys()}
  22          {foreach from=$pluginsettings item=setting}
  23           <tr>
  24              {assignvar var=key value=$setting.name}
  25              {assign var=name value=$setting.name}
  26              {assign var=overrideValue value=$canOverride[$setting.name]}
  27          
  28              <td>{$setting.name}</td>
  29              <td style="width:100%">
  30                  {if $setting.type=="boolean"}                                 
  31                   <input type="checkbox" name="{$setting.name}" value="1" class="checkbox" {if $key}checked="checked"{/if}/>
  32                   {elseif $setting.type=="string"}         
  33                   <input type="text" name="{$setting.name}" value="{$key}" />
  34                   {elseif $setting.type=="integer"}
  35                   <input type="text" name="{$setting.name}" value="{$key}" />
  36                   {elseif $setting.type=="list"}
  37                    <select name="{$setting.name}">
  38                      {assign var=options value=$setting.options}
  39                      {foreach from=$options item=name key=value}
  40                          <option value="{$value}" {if $key==$value}selected="selected"{/if}>{$name}</option>
  41                      {/foreach}
  42                    </select>
  43                  {elseif $setting.type=="text"}
  44                      <textarea name="{$setting.name}" rows="5" style="width:100%">{$key}</textarea>
  45                  {/if}            
  46                  {include file="$admintemplatepath/validate.template" field=$setting.name message=$locale->tr("error_incorrect_value")}            
  47              </td>
  48              <td>
  49                  <select name="canOverride[{$setting.name}]">         
  50                      <option value="1" {if $overrideValue==1}selected="selected"{/if}>{$locale->tr("user_can_override")}</option>
  51                      <option value="2" {if $overrideValue==2}selected="selected"{/if}>{$locale->tr("user_cannot_override")}</option>
  52                  </select>            
  53              </td>
  54              </tr>
  55           {/foreach}
  56            </table>
  57        {/if}    
  58     {/foreach}
  59  </fieldset>
  60  <div id="list_action_bar">
  61  <input type="hidden" name="op" value="updatePluginSettings" class="submit" />
  62  <input type="reset" name="{$locale->tr("reset")}" value="{$locale->tr("reset")}"/>
  63  <input type="submit" name="{$locale->tr("update")}" value="{$locale->tr("update")}"/>
  64  </div>
  65  </form>
  66  {include file="$admintemplatepath/footernavigation.template"}
  67  {include file="$admintemplatepath/footer.template"}


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics