Changeset 2293 for trunk


Ignore:
Timestamp:
Mar 29, 2008, 1:20:29 AM (17 years ago)
Author:
rvelices
Message:
  • added 2 icons for the active/inactive plugins in the plugin list
Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_list.php

    r2272 r2293  
    3434
    3535$order = isset($_GET['order']) ? $_GET['order'] : 'name';
    36 $base_url = get_root_url().'admin.php?page='.$page['page'].'&order='.$order;
     36$base_url = get_root_url().'admin.php?page='.$page['page'].'&order='.$order;
    3737
    3838$plugins = new plugins();
     
    9494          'DESCRIPTION' => $desc);
    9595
    96   $action_url = htmlentities($base_url).'&plugin='.$plugin_id;
     96  $action_url = $base_url.'&plugin='.$plugin_id;
    9797
    9898  if (isset($plugins->db_plugins_by_id[$plugin_id]))
    99   {
     99  {
     100    $tpl_plugin['STATE'] = $plugins->db_plugins_by_id[$plugin_id]['state'];
    100101    switch ($plugins->db_plugins_by_id[$plugin_id]['state'])
    101102    {
     
    137138foreach($missing_plugin_ids as $plugin_id)
    138139{
    139   $action_url = htmlentities($base_url).'&plugin='.$plugin_id;
     140  $action_url = $base_url.'&plugin='.$plugin_id;
    140141
    141142  $template->append( 'plugins',
  • trunk/template/yoga/admin/plugins_list.tpl

    r2263 r2293  
    2020</thead>
    2121{foreach from=$plugins item=plugin name=plugins_loop}
    22   <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
    23     <td>{$plugin.NAME}</td>
    24     <td>{$plugin.VERSION}</td>
    25     <td>{$plugin.DESCRIPTION}</td>
    26     <td>
    27       {foreach from=$plugin.actions item=action}
    28       <a href="{$action.U_ACTION}"
    29         {if isset($action.CONFIRM)}
    30           onclick="return confirm('{$action.CONFIRM|@escape:javascript}');"
    31         {/if}
    32       {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a>
    33       {/foreach}
    34     </td>
     22        <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
     23        <td style="padding-left:16px; {if not empty($plugin.STATE)}background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_{$plugin.STATE}.gif) no-repeat center left{/if}">
     24                {$plugin.NAME}
     25        </td>
     26        <td>{$plugin.VERSION}</td>
     27        <td>{$plugin.DESCRIPTION}</td>
     28        <td>
     29        {foreach from=$plugin.actions item=action}
     30                <a href="{$action.U_ACTION}"
     31                {if isset($action.CONFIRM)} onclick="return confirm('{$action.CONFIRM|@escape:'javascript'}');"{/if}
     32                {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a>
     33        {/foreach}
     34        </td>
    3535  </tr>
    3636{/foreach}
Note: See TracChangeset for help on using the changeset viewer.