<?php

$listModulesInstalled = array();
foreach ($modulesInstalled as $moduleId => $module) {
    $desc = explode("\n", $module->description);
    $desc = trim(array_shift($desc));
    $label = $desc ? '<acronym title="' . $desc . '">' . $module->title . '</acronym>' : $module->title;
    $label = '<span class="module">' . $label . '</span>';
    $link = '<a href="./admin/module/viewer/view/' . $moduleId . '">' . $label . '</a>';
    $listModulesInstalled[$module->title] = '<li>' . $link . '</li>';
}
natcasesort($listModulesInstalled);
$panel = '
<fieldset style="position: relative">
	<legend class="info">Module installiert <span class="small">(' . count($listModulesInstalled) . ')</span></legend>
	<div style="position: absolute; right: 8px; top: 16px;">
		' . UI_HTML_Elements::LinkButton('./admin/module/installer', '', 'button tiny icon add') . '
	</div>
	<div style="max-height: 160px; overflow: auto">
		<ul>' . join($listModulesInstalled) . '</ul>
	</div>
</fieldset>';
$env->clock->profiler->tick('Template: index/index - installed');
return $panel;
Beispiel #2
0
$naviMain = $naviMain->render($controller . '/' . $action, TRUE);
$naviSub = "";
foreach ($sublinks as $path => $links) {
    if (substr($controller . '/', 0, strlen($path)) == $path) {
        $naviSub = new CMF_Hydrogen_View_Helper_Navigation_SingleList($links, NULL, 'layout-navigation-sub-inner');
        $naviSub = $naviSub->render($controller, TRUE);
    }
}
$model = new Model_Instance($env);
$optInstance = array('' => '-');
foreach ($model->getAll() as $instanceId => $instance) {
    $optInstance[$instanceId] = $instance->title;
}
asort($optInstance);
$instanceId = $env->getSession()->get('instanceId');
$optInstance = UI_HTML_Elements::Options($optInstance, $instanceId);
$badges = array();
$infos = array($words['footer_info']['copyright'], sprintf($words['footer_info']['date'], date('d.m.Y')), sprintf($words['footer_info']['time'], date('H:i:s')));
if (!$config->get('app.production')) {
    $infos[] = sprintf($words['footer_info']['time_stopped'], $env->getClock()->stop(0, 2));
    if ($env->has('dbc') && $env->getDatabase()->numberStatements) {
        $infos[] = sprintf($words['footer_info']['requests'], $env->getDatabase()->numberStatements);
    }
}
$userId = (int) $session->get('userId');
$roleId = (int) $session->get('roleId');
if ($userId) {
    $modelUser = new Model_User($env);
    $infos[] = 'Benutzer: ' . $modelUser->get($userId, 'username') . ' <small>(' . $userId . ')</small>';
}
if ($roleId) {
Beispiel #3
0
                $value = '<em style="color: #444">' . ((bool) $value ? "yes" : "no") . '</em>';
                break;
            case 'integer':
            case 'int':
            case 'float':
                $value = '<span style="font-family: monospace; font-size: 1.2em;">' . $value . '</span>';
                break;
            default:
                $value = strlen(trim($value)) ? htmlentities($value) : '&empty;';
        }
        $list[$item->key] = '<dt>' . $item->key . '</dt><dd>' . $value . '</dd>';
    }
    natcasesort($list);
    if ($list) {
        $url = './admin/module/editor/index/' . $module->id;
        $button = UI_HTML_Elements::LinkButton($url, '', 'button tiny edit');
        $button = UI_HTML_Tag::create('div', $button, array('style' => "position: absolute; right: 3px; top: 1px;"));
        $list = UI_HTML_Tag::create('dl', $list, array('class' => 'index-config'));
        $url = './admin/module/viewer/index/' . $module->id;
        $link = UI_HTML_Tag::create('a', $module->title, array('href' => $url, 'class' => 'module'));
        $heading = UI_HTML_Tag::create('h4', $link, array('class' => 'index-config-module'));
        $listModules[] = $heading . $list;
    }
}
$panel = '
<fieldset>
	<legend class="info">Konfiguration</legend>
	<div style="max-height: 320px; overflow: auto;">
		' . join($listModules) . '
	</div>
</fieldset>';
Beispiel #4
0
	height: 18px;
	padding: 0 6px;
	margin: 0;
	margin-left: 0.5em;
	background-color: #777;
	border-radius: 9px;
	line-height: 1.6em;
	text-align: center;
	font-size: 0.9em;
	font-size: 11.5px;
	color: white;
	}

.badge.badge-fail{
	background-color: #922;
	}
.badge.badge-update{
	background-color: #05A;
	}

</style>
<fieldset>
	<legend>Instanzen&nbsp;' . $badgeNrUpdates . '</legend>
	<div style="position: absolute; right: 8px; top: 16px;">
		' . UI_HTML_Elements::LinkButton('./admin/instance/', '', 'button tiny edit') . '
	</div>
	' . $list . '
</fieldset>
';
$env->clock->profiler->tick('Template: index/index - instances');
return $panel;