data['head'] = ' '; $this->includeAtTemplateBase('includes/header.php'); $title = $this->data['title']; $table = $this->data['table']; /* Identify column headings. */ $column_titles = array(); foreach($table as $row_title => $row_data) { foreach($row_data as $ct => $foo) { if(!in_array($ct, $column_titles)) { $column_titles[] = $ct; } } } ?>

' . htmlspecialchars($ct) . '' . "\n"; } ?> $row_data) { echo '' . "\n"; echo '' . "\n"; # echo '' . "\n"; foreach($column_titles as $ct) { echo '' . "\n"; } echo '' . "\n"; } ?>
' . $this->t('{memcacheMonitor:memcachestat:' . $row_title . '}') . '' . $row_title . ''; if(array_key_exists($ct, $row_data)) { echo htmlspecialchars($row_data[$ct]); } echo '
'); print_r($this->data['statsraw']); exit; if (array_key_exists('bytes', $this->data['statsraw']) && array_key_exists('limit_maxbytes', $this->data['statsraw'])) { foreach($this->data['statsraw']['bytes'] as $key => $row_data) { echo ('

Storage usage on [' . $key . ']

'); $maxpix = 400; $pix = floor($this->data['statsraw']['bytes'][$key]*$maxpix / $this->data['statsraw']['limit_maxbytes'][$key]); echo('
Used: ' . $table['bytes'][$key] . '
Total available: ' . $table['limit_maxbytes'][$key] . '
'); } } ?> includeAtTemplateBase('includes/footer.php'); ?>