Changeset 1064 for trunk/htdocs/cacher/cacher.tpl.php
- Timestamp:
- 07/27/2012 06:37:37 PM (10 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/cacher/cacher.tpl.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/cacher/cacher.tpl.php
r1063 r1064 55 55 $numkeys = explode(',', 'slots,size,avail,hits,updates,skips,ooms,errors,cached,deleted'); 56 56 $l_clear = _('Clear'); 57 $l_disabled = _('Disabled'); 58 $l_disable = _('Disable'); 59 $l_enable = _('Enable'); 60 $l_compiling = _('Compiling'); 61 $l_normal = _('Normal'); 57 62 $l_clear_confirm = _('Sure to clear?'); 58 63 foreach ($cacheinfos as $i => $ci) { … … 92 97 } 93 98 else { 94 if ($ci['type'] == $type_php) { 95 $ci['status'] = $ci['compiling'] ? sprintf(_('Compiling(%s)'), age($ci['compiling'])) : _('Normal'); 99 if ($ci['disabled']) { 100 $ci['status'] = $l_disabled 101 . sprintf("(%s)", age($ci['disabled'])); 102 } 103 else if ($ci['type'] == $type_php) { 104 $ci['status'] = $ci['compiling'] 105 ? $l_compiling . sprintf("(%s)", age($ci['compiling'])) 106 : $l_normal; 96 107 } 97 108 else { … … 100 111 $ci['can_readonly'] = $ci['can_readonly'] ? 'yes' : 'no'; 101 112 } 113 $enabledisable = $ci['disabled'] ? 'enable' : 'disable'; 114 $l_enabledisable = $ci['disabled'] ? $l_enable : $l_disable; 102 115 echo <<<EOS 103 116 <th>{$ci['cache_name']}</th> … … 117 130 /><input type="hidden" name="cacheid" value="{$ci['cacheid']}" 118 131 /><input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_clear_confirm}');" 132 /><input type="submit" name="{$enabledisable}" value="{$l_enabledisable}" class="submit" 119 133 /></div 120 134 ></form

