Changeset 1038 for trunk/mod_cacher/htdocs/xcache.tpl.php
- Timestamp:
- 2012-07-24T11:08:51+02:00 (11 months ago)
- File:
-
- 1 edited
-
trunk/mod_cacher/htdocs/xcache.tpl.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mod_cacher/htdocs/xcache.tpl.php
r936 r1038 1 1 <?php include("header.tpl.php"); ?> 2 2 <div id="help"> 3 <a href="help.php"><?php echo _ T("Help") ?> »</a>3 <a href="help.php"><?php echo _("Help") ?> »</a> 4 4 </div> 5 5 <div class="switcher"><?php echo switcher("type", $types); ?></div> … … 8 8 $b = new Cycle('class="col1"', 'class="col2"'); 9 9 ?> 10 <table cellspacing="0" cellpadding="4" class="cycles ">11 <caption><?php echo _ T('Caches'); ?></caption>10 <table cellspacing="0" cellpadding="4" class="cycles caches"> 11 <caption><?php echo _('Caches'); ?></caption> 12 12 <col /> 13 13 <col align="right" /> … … 29 29 <col /> 30 30 <tr <?php echo $a->next(); ?>> 31 <th>-</th> 32 <th><?php echo _T('Slots'); ?></th> 33 <th><?php echo _T('Size'); ?></th> 34 <th><?php echo _T('Avail'); ?></th> 35 <th><?php echo _T($config['percent_graph_type'] == 'free' ? '% Free' : '% Used'); ?></th> 36 <th><?php echo _T('Clear'); ?></th> 37 <th><?php echo _T('Compiling'); ?></th> 38 <th><?php echo _T('Hits'); ?></th> 39 <th><?php echo _T('Hits/H'); ?></th> 40 <th><?php echo _T('Hits 24H'); ?></th> 41 <th><?php echo _T('Hits/S'); ?></th> 42 <th><?php echo _T('Updates'); ?></th> 43 <th><?php echo _T('Clogs'); ?></th> 44 <th><?php echo _T('OOMs'); ?></th> 45 <th><?php echo _T('Errors'); ?></th> 46 <th><?php echo _T('Protected'); ?></th> 47 <th><?php echo _T('Cached'); ?></th> 48 <th><?php echo _T('Deleted'); ?></th> 49 <th><?php echo _T('GC'); ?></th> 31 <?php echo 32 th(N_("cache.cache")) 33 , th(N_("cache.size")) 34 , th(N_("cache.avail")) 35 , th(N_("cache.used")) 36 , th(N_("cache.blocksgraph")) 37 , th(N_("cache.operations")) 38 , th(N_("cache.compiling")) 39 , th(N_("cache.hits")) 40 , th(N_("cache.hits_graph")) 41 , th(N_("cache.hits_avg_h")) 42 , th(N_("cache.hits_avg_s")) 43 , th(N_("cache.updates")) 44 , th(N_("cache.clogs")) 45 , th(N_("cache.ooms")) 46 , th(N_("cache.errors")) 47 , th(N_("cache.readonly_protected")) 48 , th(N_("cache.cached")) 49 , th(N_("cache.deleted")) 50 , th(N_("cache.gc_timer")) 51 ; 52 ?> 50 53 </tr> 51 54 <?php 52 55 $numkeys = explode(',', 'slots,size,avail,hits,updates,clogs,ooms,errors,cached,deleted'); 53 $l_clear = _ T('Clear');54 $l_clear_confirm = _ T('Sure to clear?');56 $l_clear = _('Clear'); 57 $l_clear_confirm = _('Sure to clear?'); 55 58 foreach ($cacheinfos as $i => $ci) { 56 59 echo " … … 114 117 <td>{$ci['compiling']}</td> 115 118 <td>{$ci['hits']}</td> 119 <td><div class="hitsgraph" style="width: {$hits_graph_h_w}px">{$hits_graph_h}</div></td> 116 120 <td>{$hits_avg_h}</td> 117 <td><div class="hitsgraph" style="width: {$hits_graph_h_w}px">{$hits_graph_h}</div></td>118 121 <td>{$hits_avg_s}</td> 119 122 <td>{$ci['updates']}</td> … … 133 136 </table> 134 137 <div class="blockarea legends"> 135 <div class="legendtitle"><?php echo _ T('Legends:'); ?></div>138 <div class="legendtitle"><?php echo _('Legends:'); ?></div> 136 139 <div class="legend pvalue"> </div> 137 <div class="legendtitle"><?php echo _ T($config['percent_graph_type'] == 'free' ? '% Free' : '% Used'); ?></div>140 <div class="legendtitle"><?php echo _($config['percent_graph_type'] == 'free' ? '% Free' : '% Used'); ?></div> 138 141 <div class="legend" style="background: rgb(0,0,255)"> </div> 139 <div class="legendtitle"><?php echo _ T($config['percent_graph_type'] == 'free' ? 'Free Blocks' : 'Used Blocks'); ?></div>142 <div class="legendtitle"><?php echo _($config['percent_graph_type'] == 'free' ? 'Free Blocks' : 'Used Blocks'); ?></div> 140 143 <div class="legend" style="background: rgb(255,0,0)"> </div> 141 <div class="legendtitle"><?php echo _ T('Hits'); ?></div>144 <div class="legendtitle"><?php echo _('Hits'); ?></div> 142 145 </div> 143 146 <?php … … 152 155 <form action="" method="post"> 153 156 <table cellspacing="0" cellpadding="4" class="cycles entries" width="100%"> 154 <caption><?php echo _ T("{$cachelist['type_name']} $listname"); ?></caption>157 <caption><?php echo _("{$cachelist['type_name']} $listname"); ?></caption> 155 158 <?php 156 159 echo " … … 158 161 ?> 159 162 160 <?php if (!$isphp) { ?> 161 <th width="20">R</th> 162 <?php } ?> 163 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Cache'); ?></a></th> 164 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('entry'); ?></a></th> 165 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Hits'); ?></a></th> 166 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th> 167 <?php if ($isphp) { ?> 168 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Refcount'); ?></a></th> 169 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('PhpShared'); ?></a></th> 170 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th> 171 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Modify'); ?></a></th> 172 <?php if ($haveinode) { ?> 173 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('device'); ?></a></th> 174 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('inode'); ?></a></th> 175 <?php } ?> 176 <?php } ?> 177 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('hash'); ?></a></th> 178 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Access'); ?></a></th> 179 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Create'); ?></a></th> 180 <?php if ($listname == 'Deleted') { ?> 181 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Delete'); ?></a></th> 182 <?php } ?> 163 <?php 164 if ($isphp) { 165 echo 166 th("entry.id") 167 ; 168 } 169 else { 170 echo 171 th("entry.remove", 'width="20"') 172 ; 173 } 174 175 echo 176 th(N_("entry.name")) 177 , th(N_("entry.hits")) 178 , th(N_("entry.size")) 179 ; 180 181 if ($isphp) { 182 echo 183 th(N_("entry.refcount")) 184 , th(N_("entry.phprefcount")) 185 , th(N_("entry.class_cnt")) 186 , th(N_("entry.function_cnt")) 187 , th(N_("entry.file_size")) 188 , th(N_("entry.file_mtime")) 189 ; 190 if ($haveinode) { 191 echo 192 th(N_("entry.file_device")) 193 , th(N_("entry.file_inode")) 194 ; 195 } 196 } 197 echo 198 th(N_("entry.hash")) 199 , th(N_("entry.atime")) 200 , th(N_("entry.ctime")) 201 ; 202 203 if ($listname == 'Deleted') { 204 echo 205 th(N_("entry.delete")) 206 ; 207 } 208 ?> 183 209 </tr> 184 210 <?php … … 189 215 $hits = number_format($entry['hits']); 190 216 $size = size($entry['size']); 191 if ($isphp) { 217 $class_cnt = number_format($entry['class_cnt']); 218 $function_cnt = number_format($entry['function_cnt']); 219 if ($isphp) { 220 $phprefcount = number_format($entry['phprefcount']); 192 221 $file_size = size($entry['file_size']); 193 $phprefcount = number_format($entry['phprefcount']);194 222 } 195 223 … … 225 253 <td align="right" int="{$entry['refcount']}">{$entry['refcount']}</td> 226 254 <td align="right" int="{$entry['phprefcount']}">{$phprefcount}</td> 255 <td align="right" int="{$entry['class_cnt']}">{$class_cnt}</td> 256 <td align="right" int="{$entry['function_cnt']}">{$function_cnt}</td> 227 257 <td align="right" int="{$entry['file_size']}">{$file_size}</td> 228 258 <td align="right" int="{$entry['file_mtime']}">{$file_mtime}</td> … … 254 284 </table> 255 285 <?php if (!$isphp) { ?> 256 <input type="submit" value="<?php echo _ T("Remove Selected"); ?>">286 <input type="submit" value="<?php echo _("Remove Selected"); ?>"> 257 287 <?php } ?> 258 288 </form> … … 262 292 } 263 293 if ($moduleinfo) { 264 $t_moduleinfo = _ T("Module Info");294 $t_moduleinfo = _("Module Info"); 265 295 echo <<<HTML 266 296 <h2>$t_moduleinfo</h2>
Note: See TracChangeset
for help on using the changeset viewer.

