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

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=editLinks title=$locale->tr("editLinks")}
   3    <script type="text/javascript" src="js/ui/plogui.js"></script>
   4    <script type="text/javascript">
   5      var showMassiveChangeOption = '{$locale->tr("show_massive_change_option")}';
   6      var hideMassiveChangeOption = '{$locale->tr("hide_massive_change_option")}';
   7    </script>
   8  <script type="text/javascript">
   9  {literal}
  10  YAHOO.util.Event.addListener( window, "load", function() {
  11          var t = new Lifetype.UI.TableEffects( "list" );
  12          t.stripe();
  13          t.highlightRows();
  14      });
  15  {/literal}
  16  </script>
  17  <div id="list_nav_bar">
  18  <div id="list_nav_select">
  19  <form id="viewLinks" action="admin.php" method="post">
  20   <fieldset>
  21    <legend>{$locale->tr("show_by")}</legend>
  22     <div class="list_nav_option">
  23      <label for="showCategory">{$locale->tr("category")}</label>
  24      <br />
  25       <select name="showCategory" id="showCategory">
  26        <option value="0">{$locale->tr("category_all")}</option>
  27        {foreach from=$linkscategories item=category}
  28        <option value="{$category->getId()}" {if $currentcategory == $category->getId()} selected="selected" {/if}>{$category->getName()}</option>
  29        {/foreach}
  30      </select>
  31     </div>
  32     
  33     <div class="list_nav_option">
  34         <label for="search">{$locale->tr("search_terms")}</label>
  35         <br />
  36         <input type="text" name="searchTerms" value="{$searchTerms}" size="15" id="search" />
  37     </div>
  38        
  39     <div class="list_nav_option">
  40      <br />
  41      <input type="hidden" name="op" value="editLinks" />
  42      <input type="submit" name="Show" value="{$locale->tr("show")}" />
  43     </div>
  44    </fieldset> 
  45   </form> 
  46   </div>
  47   <br style="clear:both" />
  48   </div>
  49  
  50  <form id="links" action="admin.php" method="post">
  51  {check_perms perm="update_link"}
  52   <div class="optionIcon">
  53     <a id="optionIconLink" href="#bulkEdit" title="{$locale->tr("show_massive_change_option")}"  onclick="switchMassiveOption()">{$locale->tr("show_massive_change_option")}</a>
  54   </div>
  55  {/check_perms}
  56  <div id="list">
  57    {include file="$admintemplatepath/successmessage.template"}
  58    {include file="$admintemplatepath/errormessage.template"}
  59  <table id="list" class="info" summary="{$locale->tr("editLinks")}">
  60   <thead>
  61    <tr>
  62     <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('links');" /></th>  
  63     <th style="width:30%;">{$locale->tr("name")}</th>
  64     <th style="width:40%;">{$locale->tr("url")}</th>
  65     <th style="width:15%;">{$locale->tr("category")}</th>
  66     <th style="width:5%;">{$locale->tr("feed")}</th>
  67     <th style="width:10%;">{$locale->tr("actions")}</th>
  68    </tr>
  69   </thead>
  70   <tbody>
  71   {foreach from=$links item=link}
  72    <tr>
  73     <td><input class="checkbox" type="checkbox" name="linkIds[{counter}]" value="{$link->getId()}"/></td>  
  74     <td class="col_highlighted">
  75         {check_perms perm="update_link"}<a href="admin.php?op=editLink&amp;linkId={$link->getId()}">{/check_perms}{$link->getName()|utf8_wordwrap:20:"<br/>":false}{check_perms perm="update_link"}</a>{/check_perms}
  76     </td>
  77     <td><a href="{$link->getUrl()}">{$link->getUrl()|utf8_wordwrap:40:"<br/>":true}</a></td>
  78     {assign var=linkcategory value=$link->getCategoryId()}
  79     <td>
  80      {assign var=linkcategory value=$link->getMyLinkCategory()}
  81      <a href="admin.php?op=editLinks&amp;showCategory={$linkcategory->getId()}">
  82        {$linkcategory->getName()}
  83      </a>
  84     </td>
  85     <td>
  86      {if $link->getRssFeed() != ""}
  87        <a href="{$link->getRssFeed()}"><img src="imgs/rss_logo_small.gif" style="border:0px;" /></a>
  88      {/if}
  89     </td>
  90     <td>
  91       <div class="list_action_button">
  92        {check_perms perm="update_link"}
  93         <a href="?op=editLink&amp;linkId={$link->getId()}" title="{$locale->tr("edit")}">
  94          <img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" />
  95         </a>
  96        {/check_perms}
  97        {check_perms perm="update_link"}
  98          {** if $user->hasPermissionByName("update_link",$blog->getId()) **}
  99          <a href="?op=deleteLink&amp;linkId={$link->getId()}" title="{$locale->tr("delete")}">
 100           <img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
 101          </a>
 102        {/check_perms}
 103       </div>
 104     </td>
 105    </tr>
 106   {/foreach}
 107   </tbody>
 108   </table>
 109   </div>
 110   <a name="bulkEdit"></a>
 111   <div id="list_action_bar">
 112    {adminpager style=list}
 113    <input type="hidden" name="op" value="deleteLinks"/>
 114    {check_perms perm="update_link"}
 115     <input type="submit" name="Delete selected" value="{$locale->tr("delete")}"/>
 116    {/check_perms}
 117    <div id="massiveChangeOption" style="display: none;">
 118      <fieldset>
 119        <legend>{$locale->tr("massive_change_option")}</legend>
 120        <label for="linkCategoryId">{$locale->tr("category")}</label>
 121        <select name="linkCategoryId" id="linkCategoryId">
 122          {foreach from=$linkscategories item=category}
 123            <option value="{$category->getId()}">{$category->getName()}</option>
 124          {/foreach}
 125        </select>
 126        <input type="button" name="changeLinksCategory" value="{$locale->tr("change_category")}" class="submit" onClick="javascript:submitLinksList('changeLinksCategory');" />
 127      </fieldset>
 128    </div>  
 129   </div>
 130  </form>
 131  
 132  {include file="$admintemplatepath/footernavigation.template"}
 133  {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