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

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=blogTemplates title=$locale->tr("blogTemplates")}
   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="editTemplates" method="post" action="admin.php">
  13   <div id="list">
  14    {include file="$admintemplatepath/successmessage.template"}
  15    {include file="$admintemplatepath/errormessage.template"}
  16    <table id="list" class="info" summary="{$locale->tr("blogTemplates")}" id="list">
  17     <thead>
  18      <tr>
  19        <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('editTemplates');" /></th>
  20        <th style="width:90%;">{$locale->tr("template")}</th>
  21        <th style="width:10%;">{$locale->tr("actions")}</th>
  22      </tr>
  23    </thead>
  24    {if $templates}
  25    <tbody>
  26    {assign var=blogTemplate value=$blog->getTemplateSet()}
  27    {foreach from=$templates item=sitetemplate}
  28     <tr>
  29      <td>
  30       {if $blogTemplate->getName() != $sitetemplate->getName()}
  31         <input class="checkbox" type="checkbox" name="templateIds[{counter}]" value="{$sitetemplate->getName()}" />
  32       {/if}  
  33      </td>
  34      <td  class="col_highlighted">
  35       {if $sitetemplate->hasScreenshot()}
  36        <a href="javascript:openScreenshotWindow('{$sitetemplate->getScreenshotUrl()}');">{$sitetemplate->getName()}</a>
  37       {else}
  38        {$sitetemplate->getName()}
  39       {/if} 
  40      </td>
  41      <td>
  42       <div class="list_action_button">
  43        {check_perms perm=update_blog_template}
  44        <a href="?op=deleteBlogTemplate&amp;templateId={$sitetemplate->getName()}" title="{$locale->tr("delete")}">
  45         {if $blogTemplate->getName() != $sitetemplate->getName()}
  46           <img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
  47         {/if}
  48        </a>
  49        {/check_perms}
  50        {if $sitetemplate->hasScreenshot()}
  51          <a href="javascript:openScreenshotWindow('{$sitetemplate->getScreenshotUrl()}');" title="{$locale->tr("preview")}">
  52            <img src="imgs/admin/icon_image-16.png" title="{$locale->tr("preview")}" />
  53          </a>
  54        {/if}          
  55       </div>
  56      </td>
  57     </tr>
  58    {/foreach}
  59    </tbody>
  60    {/if}
  61   </table>
  62   </div>
  63   <div id="list_action_bar">
  64     {check_perms perm=update_blog_template}
  65     <input type="hidden" name="op" value="deleteBlogTemplates" class="submit" />
  66     <input type="submit" name="{$locale->tr("delete")}" value="{$locale->tr("delete")}"/>
  67     {/check_perms}
  68   </div>
  69   </form>
  70  {include file="$admintemplatepath/footernavigation.template"}
  71  {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