- Timestamp:
- Mar 29, 2008, 1:20:29 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/plugins_list.php
r2272 r2293 34 34 35 35 $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; 37 37 38 38 $plugins = new plugins(); … … 94 94 'DESCRIPTION' => $desc); 95 95 96 $action_url = htmlentities($base_url).'&plugin='.$plugin_id;96 $action_url = $base_url.'&plugin='.$plugin_id; 97 97 98 98 if (isset($plugins->db_plugins_by_id[$plugin_id])) 99 { 99 { 100 $tpl_plugin['STATE'] = $plugins->db_plugins_by_id[$plugin_id]['state']; 100 101 switch ($plugins->db_plugins_by_id[$plugin_id]['state']) 101 102 { … … 137 138 foreach($missing_plugin_ids as $plugin_id) 138 139 { 139 $action_url = htmlentities($base_url).'&plugin='.$plugin_id;140 $action_url = $base_url.'&plugin='.$plugin_id; 140 141 141 142 $template->append( 'plugins', -
trunk/template/yoga/admin/plugins_list.tpl
r2263 r2293 20 20 </thead> 21 21 {foreach from=$plugins item=plugin name=plugins_loop} 22 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 32 33 34 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> 35 35 </tr> 36 36 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.