Changeset 1884


Ignore:
Timestamp:
Mar 9, 2007, 11:52:22 PM (17 years ago)
Author:
rub
Message:

Add DateTime on administration introduction page (Useful to help user on the forum, ...)
Move history configuration in a other tab.
Use translation on picture hint (Kb).
Show hint oh the menu text (not only on counter)

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r1881 r1884  
    5050
    5151$general_checkboxes = array(
     52    'email_admin_on_new_user',
     53    'allow_user_registration',
     54   );
     55
     56$history_checkboxes = array(
    5257    'log',
    5358    'history_admin',
    54     'history_guest',
    55     'email_admin_on_new_user',
    56     'allow_user_registration',
     59    'history_guest'
    5760   );
    5861
     
    7780      }
    7881      foreach( $general_checkboxes as $checkbox)
     82      {
     83        $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
     84      }
     85      break;
     86    }
     87    case 'history' :
     88    {
     89      foreach( $history_checkboxes as $checkbox)
    7990      {
    8091        $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
     
    170181    'caption' => l10n('conf_general_title'),
    171182    'url' => $conf_link.'general'
     183   ),
     184  'history' => array
     185   (
     186    'caption' => l10n('conf_history_title'),
     187    'url' => $conf_link.'history'
    172188   ),
    173189  'comments' => array
     
    229245      $template->merge_block_vars(
    230246          'general',
     247          array(
     248            strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
     249            )
     250        );
     251    }
     252    break;
     253  }
     254  case 'history' :
     255  {
     256    //Necessary for merge_block_vars
     257    $template->assign_block_vars('history', array());
     258
     259    foreach( $history_checkboxes as $checkbox)
     260    {
     261      $template->merge_block_vars(
     262          'history',
    231263          array(
    232264            strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
  • trunk/admin/intro.php

    r1726 r1884  
    184184;';
    185185list($nb_comments) = mysql_fetch_row(pwg_query($query));
     186
     187$php_current_timestamp = date("Y-m-d H:i:s");
     188list($db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT CURRENT_TIMESTAMP;'));
    186189
    187190$template->assign_vars(
     
    206209    'DB_COMMENTS' => sprintf(l10n('%d comments'), $nb_comments),
    207210    'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade',
    208     'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo'
     211    'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo',
     212    'PHP_DATATIME' => $php_current_timestamp,
     213    'DB_DATATIME' => $db_current_timestamp,
    209214    )
    210215  );
  • trunk/include/category_cats.inc.php

    r1880 r1884  
    257257                                    $category['count_categories'],
    258258                                    true,
    259                                     '; '
     259                                    ' / '
    260260                                  ),
    261261
  • trunk/include/functions.inc.php

    r1880 r1884  
    841841  if (!empty($element_info['filesize']))
    842842  {
    843     $thumbnail_title .= ' : '.$element_info['filesize'].' KB';
     843    $thumbnail_title .= ' : '.l10n_dec('%d Kb', '%d Kb', $element_info['filesize']);
    844844  }
    845845
  • trunk/include/functions_html.inc.php

    r1876 r1884  
    429429            );
    430430
     431    $title = get_display_images_count
     432                (
     433                  $category['nb_images'],
     434                  $category['count_images'],
     435                  $category['count_categories'],
     436                  false,
     437                  ' / '
     438                );
     439
    431440    $menu.= "\n".'<a href="'.$url.'"';
    432441    if ($selected_category!=null
     
    435444      $menu.= ' rel="up"';
    436445    }
    437     $menu.= '>'.$category['name'].'</a>';
     446    $menu.= ' title=" '.$title.'">'.$category['name'].'</a>';
    438447
    439448    if ( $category['count_images']>0 )
     
    443452      $menu.= ($category['nb_images'] > 0 ? "menuInfoCat"
    444453                                          : "menuInfoCatByChild").'"';
    445       $menu.= ' title="';
    446       $menu.= ' '.get_display_images_count
    447                   (
    448                     $category['nb_images'],
    449                     $category['count_images'],
    450                     $category['count_categories'],
    451                     false,
    452                     ' / '
    453                   ).'">';
     454      $menu.= ' title=" '.$title.'">';
    454455      // show total number of images
    455456      $menu.= '['.$category['count_images'].']';
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1881 r1884  
    227227$lang['conf_default'] = 'Default display';
    228228$lang['conf_default_title'] = 'Default display';
     229$lang['conf_history_title'] = 'History';
    229230$lang['conf_gallery_url_error'] = 'The gallery URL is not valid.';
    230231$lang['conf_general_title'] = 'Main';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1881 r1884  
    227227$lang['conf_default'] = 'Affichage par défaut';
    228228$lang['conf_default_title'] = 'Affichage par défaut';
     229$lang['conf_history_title'] = 'Historique';
    229230$lang['conf_gallery_url_error'] = 'L\'adresse de la galerie n\'est pas valide.';
    230231$lang['conf_general_title'] = 'Principale';
  • trunk/template/yoga/admin/configuration.tpl

    r1881 r1884  
    6565      </label>
    6666    </li>
    67 
    68     <br/>
    69     <li>
    70       <fieldset>
    71         <legend>{lang:History}</legend>
    72         <ul>
    73           <li>
    74             <label><span class="property">{lang:Users}</span><input type="checkbox" name="log" {general.LOG} /></label>
    75           </li>
    76 
    77           <li>
    78             <label><span class="property">{lang:user_status_admin}</span><input type="checkbox" name="history_admin" {general.HISTORY_ADMIN} /></label>
    79           </li>
    80 
    81           <li>
    82             <label><span class="property">{lang:Guests}</span><input type="checkbox" name="history_guest" {general.HISTORY_GUEST} /></label>
    83           </li>
    84         </ul>
    85       </fieldset>
    86     </li>
    8767  </ul>
    8868</fieldset>
    8969<!-- END general -->
     70
     71<!-- BEGIN history -->
     72<fieldset id="historyConf">
     73  <ul>
     74      <li>
     75        <label><span class="property">{lang:Users}</span><input type="checkbox" name="log" {history.LOG} /></label>
     76      </li>
     77
     78      <li>
     79        <label><span class="property">{lang:user_status_admin}</span><input type="checkbox" name="history_admin" {history.HISTORY_ADMIN} /></label>
     80      </li>
     81
     82      <li>
     83        <label><span class="property">{lang:Guests}</span><input type="checkbox" name="history_guest" {history.HISTORY_GUEST} /></label>
     84      </li>
     85  </ul>
     86</fieldset>
     87<!-- END history -->
    9088
    9189<!-- BEGIN comments -->
  • trunk/template/yoga/admin/intro.tpl

    r1724 r1884  
    2525    <ul>
    2626      <li>{lang:Operating system}: {OS}</li>
    27       <li>PHP: {PHP_VERSION} (<a href="{U_PHPINFO}">{lang:Show info}</a>)</li>
    28       <li>MySQL: {MYSQL_VERSION}</li>
     27      <li>PHP: {PHP_VERSION} (<a href="{U_PHPINFO}">{lang:Show info}</a>)  [{PHP_DATATIME}]</li>
     28      <li>MySQL: {MYSQL_VERSION} [{DB_DATATIME}]</li>
    2929    </ul>
    3030  </dd>
     
    5656  </dd>
    5757
     58  <dt>{lang:Clock}</dt>
     59  <dd>
     60    <ul>
     61    </ul>
     62  </dd>
     63
    5864</dl>
Note: See TracChangeset for help on using the changeset viewer.