Changeset 1538


Ignore:
Timestamp:
Aug 16, 2006, 6:30:35 AM (18 years ago)
Author:
rvelices
Message:

added number of tags, image-tag associations and image-category association
on the main admin page

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/intro.php

    r1226 r1538  
    5656    $versions = array('current' => PHPWG_VERSION);
    5757    $lines = @file('http://www.phpwebgallery.net/latest_version');
    58    
     58
    5959    // if the current version is a BSF (development branch) build, we check
    6060    // the first line, for stable versions, we check the second line
     
    148148;';
    149149list($nb_physical) = mysql_fetch_row(pwg_query($query));
     150
     151$query = '
     152SELECT COUNT(*)
     153  FROM '.IMAGE_CATEGORY_TABLE.'
     154;';
     155list($nb_image_category) = mysql_fetch_row(pwg_query($query));
     156
     157$query = '
     158SELECT COUNT(*)
     159  FROM '.TAGS_TABLE.'
     160;';
     161list($nb_tags) = mysql_fetch_row(pwg_query($query));
     162
     163$query = '
     164SELECT COUNT(*)
     165  FROM '.IMAGE_TAG_TABLE.'
     166;';
     167list($nb_image_tag) = mysql_fetch_row(pwg_query($query));
    150168
    151169$query = '
     
    181199        $nb_virtual
    182200        ),
     201    'DB_IMAGE_CATEGORY' =>sprintf(l10n('%d associations'), $nb_image_category),
     202    'DB_TAGS' => sprintf(l10n('%d tags'), $nb_tags),
     203    'DB_IMAGE_TAG' => sprintf(l10n('%d associations'), $nb_image_tag),
    183204    'DB_USERS' => sprintf(l10n('%d users'), $nb_users),
    184205    'DB_GROUPS' => sprintf(l10n('%d groups'), $nb_groups),
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1500 r1538  
    2626// +-----------------------------------------------------------------------+
    2727
     28$lang['%d associations'] = '%d associations';
    2829$lang['%d categories including %d physical and %d virtual'] = '%d categories including %d physical and %d virtual';
    2930$lang['%d categories moved'] = '%d categories moved';
     
    3233$lang['%d groups'] = '%d groups';
    3334$lang['%d members'] = '%d members';
     35$lang['%d tags'] = '%d tags';
    3436$lang['%d user comments rejected'] = '%d user comments rejected';
    3537$lang['%d user comments validated'] = '%d user comments validated';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1500 r1538  
    2626// +-----------------------------------------------------------------------+
    2727
     28$lang['%d associations'] = '%d associations';
    2829$lang['%d categories including %d physical and %d virtual'] = '%d catégories dont %d physiques et %d virtuelles';
    2930$lang['%d categories moved'] = '%d catégories déplacées';
     
    3233$lang['%d groups'] = '%d groupes';
    3334$lang['%d members'] = '%d membres';
     35$lang['%d tags'] = '%d tags';
    3436$lang['%d user comments rejected'] = '%d commentaires utilisateur rejetés';
    3537$lang['%d user comments validated'] = '%d commentaires utilisateur validés';
  • trunk/template/yoga/admin/intro.tpl

    r861 r1538  
    3333        <!-- END first_added -->
    3434      </li>
    35       <li>{DB_CATEGORIES}</li>
     35      <li>{DB_CATEGORIES} ({DB_IMAGE_CATEGORY})</li>
     36      <li>{DB_TAGS} ({DB_IMAGE_TAG})</li>
    3637      <li>{DB_USERS}</li>
    3738      <li>{DB_GROUPS}</li>
Note: See TracChangeset for help on using the changeset viewer.