[ 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/ -> customfields.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=blogCustomFields title=$locale->tr("blogCustomFields")}
   3  <script type="text/javascript">
   4  {literal}
   5  YAHOO.util.Event.addListener( window, "load", function() {
   6          var t = new Lifetype.UI.TableEffects( "list" );
   7          t.stripe();
   8          t.highlightRows();
   9      });
  10  {/literal}
  11  </script>
  12          <form id="customFields" action="admin.php" method="post">
  13          <div id="list">
  14    {include file="$admintemplatepath/successmessage.template"}
  15    {include file="$admintemplatepath/errormessage.template"}
  16          
  17              <table id="list" class="info" summary="{$locale->tr("blogCustomFields")}">
  18                  <thead>
  19                      <tr>
  20                          <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('customFields');" /></th>
  21                          <th style="width:25%;">{$locale->tr("name")}</th>
  22                          <th style="width:40%">{$locale->tr("description")}</th>
  23                          <th style="width:15%">{$locale->tr("type")}</th>                        
  24                          <th style="width:10%">{$locale->tr("hidden")}</th>
  25                          <th style="width:10%">{$locale->tr("actions")}</th>
  26                      </tr>
  27                  </thead>
  28                  <tbody>
  29                   {foreach from=$fields item=field}
  30                   <tr>
  31                     <td>
  32                       <input class="checkbox" type="checkbox" name="fieldIds[{$field->getId()}]" id="checks_1" value="{$field->getId()}" />                   
  33                     </td>
  34                     <td class="col_highlighted">
  35                       {check_perms perm=update_custom_field}<a href="admin.php?op=editCustomField&amp;fieldId={$field->getId()}">{/check_perms}{$field->getName()}{check_perms perm=update_custom_field}</a>{/check_perms}
  36                     </td>
  37                     <td>
  38                       {$field->getDescription()}
  39                    </td>
  40                    <td>
  41                      {if $field->getType() == 1}{$locale->tr("text_field")}{/if}
  42                      {if $field->getType() == 2}{$locale->tr("text_area")}{/if}
  43                      {if $field->getType() == 3}{$locale->tr("checkbox")}{/if}
  44                      {if $field->getType() == 4}{$locale->tr("date_field")}{/if}
  45                      {if $field->getType() == 5}{$locale->tr("dropdown_list_field")}{/if}                    
  46                   </td>    
  47                   <td>
  48                     {if $field->isHidden()}{$locale->tr("yes")}{else}{$locale->tr("No")}{/if}
  49                   </td>
  50                   <td>
  51                      <div class="list_action_button">
  52                         {check_perms perm=update_custom_field}
  53                         <a href="?op=editCustomField&amp;fieldId={$field->getId()}"><img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("editCustomField")}" /></a>
  54                         <a href="?op=deleteCustomField&amp;fieldId={$field->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
  55                         {/check_perms}
  56                       </div>
  57                    </td>                 
  58                </tr>
  59                {/foreach}
  60                </tbody>
  61              </table>
  62          </div>
  63          <div id="list_action_bar">
  64          {adminpager style=list}
  65          {check_perms perm=update_custom_field}
  66              <input type="submit" name="delete" value="{$locale->tr("delete")}" class="submit" />
  67              <input type="hidden" name="op" value="deleteCustomFields" />
  68          {/check_perms}
  69          </div>
  70  </form>
  71  {include file="$admintemplatepath/footernavigation.template"}
  72  {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