Ignore:
Timestamp:
2012-07-24T11:08:51+02:00 (2 years ago)
Author:
moo
Message:

cacher/admin: use title (tips) in table header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/htdocs/xcache.php

    r1026 r1038  
    191191    } 
    192192    return implode('', $html); 
     193} 
     194 
     195function th($name, $attrs = null) 
     196{ 
     197    $translated = __($name); 
     198    if ($translated == $name) { 
     199        $translated = "$name|$name"; 
     200    } 
     201    list($text, $title) = explode('|', $translated, 2); 
     202    return sprintf('%s<th%s id="%s" title="%s"><a href="javascript:" onclick="resort(this); return false">%s</a></th>%s' 
     203            , "\t" 
     204            , $attrs ? " $attrs" : "" 
     205            , $name, htmlspecialchars(trim($title)), trim($text) 
     206            , "\n"); 
    193207} 
    194208 
     
    271285if ($pcnt >= 2) { 
    272286    $total['type'] = XC_TYPE_PHP; 
    273     $total['cache_name'] = _T('Total'); 
     287    $total['cache_name'] = _('Total'); 
    274288    $total['cacheid'] = -1; 
    275289    $total['gc'] = null; 
     
    295309if ($vcnt >= 2) { 
    296310    $total['type'] = XC_TYPE_VAR; 
    297     $total['cache_name'] = _T('Total'); 
     311    $total['cache_name'] = _('Total'); 
    298312    $total['cacheid'] = -1; 
    299313    $total['gc'] = null; 
     
    367381$type_php = XC_TYPE_PHP; 
    368382$type_var = XC_TYPE_VAR; 
    369 $types = array($type_none => _T('Statistics'), $type_php => _T('List PHP'), $type_var => _T('List Var Data')); 
     383$types = array($type_none => _('Statistics'), $type_php => _('List PHP'), $type_var => _('List Var Data')); 
    370384$php_version = phpversion(); 
    371385$xcache_version = XCACHE_VERSION; 
Note: See TracChangeset for help on using the changeset viewer.