[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/skins/views/ -> _skin_list.view.php (source)

   1  <?php
   2  /**

   3   * This file implements the UI view for the installed skins.

   4   *

   5   * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.

   6   * See also {@link http://sourceforge.net/projects/evocms/}.

   7   *

   8   * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}.

   9   *

  10   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)

  11   *

  12   * @package admin

  13   *

  14   * @version $Id: _skin_list.view.php,v 1.1 2007/06/25 11:01:38 fplanque Exp $

  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  // Create result set:

  19  $Results = & new Results( 'SELECT T_skins__skin.*, COUNT(blog_ID) AS nb_blogs
  20                                                            FROM T_skins__skin LEFT JOIN T_blogs ON skin_ID = blog_skin_ID
  21                                                           GROUP BY skin_ID' );
  22  $Results->Cache = & get_Cache( 'SkinCache' );
  23  $Results->title = T_('Installed skins');
  24  
  25  if( $current_User->check_perm( 'options', 'edit', false ) )
  26  { // We have permission to modify:
  27      $Results->cols[] = array(
  28                              'th' => T_('Name'),
  29                              'order' => 'skin_name',
  30                              'td' => '<strong><a href="'.regenerate_url( '', 'skin_ID=$skin_ID$&amp;action=edit' ).'" title="'.TS_('Edit skin properties...').'">$skin_name$</a></strong>',
  31                          );
  32  }
  33  else
  34  { // We have NO permission to modify:
  35      $Results->cols[] = array(
  36                              'th' => T_('Name'),
  37                              'order' => 'skin_name',
  38                              'td' => '<strong>$skin_name$</strong>',
  39                          );
  40  }
  41  
  42  $Results->cols[] = array(
  43                          'th' => T_('Skin type'),
  44                          'order' => 'skin_type',
  45                          'td_class' => 'center',
  46                          'td' => '$skin_type$',
  47                      );
  48  
  49  $Results->cols[] = array(
  50                          'th' => T_('Blogs'),
  51                          'order' => 'nb_blogs',
  52                          'th_class' => 'shrinkwrap',
  53                          'td_class' => 'center',
  54                          'td' => '¤conditional( (#nb_blogs# > 0), #nb_blogs#, \'&nbsp;\' )¤',
  55                      );
  56  
  57  $Results->cols[] = array(
  58                          'th' => T_('Skin Folder'),
  59                          'order' => 'skin_folder',
  60                          'td' => '$skin_folder$',
  61                      );
  62  
  63  if( $current_User->check_perm( 'options', 'edit', false ) )
  64  { // We have permission to modify:
  65      $Results->cols[] = array(
  66                              'th' => T_('Actions'),
  67                              'th_class' => 'shrinkwrap',
  68                              'td_class' => 'shrinkwrap',
  69                              'td' => action_icon( TS_('Edit skin properties...'), 'properties',
  70                              '%regenerate_url( \'\', \'skin_ID=$skin_ID$&amp;action=edit\')%' )
  71                          .action_icon( TS_('Reload containers!'), 'reload',
  72                              '%regenerate_url( \'\', \'skin_ID=$skin_ID$&amp;action=reload\')%' )
  73                                              .'¤conditional( #nb_blogs# < 1, \''
  74                                              .action_icon( TS_('Uninstall this skin!'), 'delete',
  75                              '%regenerate_url( \'\', \'skin_ID=$skin_ID$&amp;action=delete\')%' ).'\', \''
  76                              .get_icon( 'delete', 'noimg' ).'\' )¤',
  77                          );
  78  
  79    $Results->global_icon( T_('Install new skin...'), 'new', regenerate_url( 'action,blog', 'action=new'), T_('Install new'), 3, 4  );
  80  }
  81  
  82  
  83  // $fadeout_array = array( 'skin_ID' => array(6) );

  84  $fadeout_array = NULL;
  85  
  86  $Results->display( NULL, 'session' );
  87  
  88  
  89  /*

  90   * $Log:

  91   */
  92  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics