diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.tpl.php | 39 | ||||
-rw-r--r-- | templates/top.inc.php | 2 |
2 files changed, 40 insertions, 1 deletions
diff --git a/templates/admin.tpl.php b/templates/admin.tpl.php new file mode 100644 index 0000000..6e5773b --- /dev/null +++ b/templates/admin.tpl.php @@ -0,0 +1,39 @@ +<?php
+ +/* Service creation: only useful services are created */
+$userservice =& ServiceFactory::getServiceInstance('UserService'); + +$currentObjectUser = $userservice->getCurrentObjectUser();
+
+$this->includeTemplate($GLOBALS['top_include']); + +echo '<h3>'.T_('Users management').'</h3>'; +
+echo '<ol id="bookmarks">';
+ +foreach($users as $user) {
+ echo '<li class="xfolkentry">'."\n";
+
+ echo '<div class="link">';
+ echo '<a href="'.createURL('profile', $user->getUsername()).'">'.$user->getUsername().'</a>';
+ echo '</div>';
+ + if($user->getUsername() != $currentObjectUser->getUsername()) {
+ echo '<div class="meta">';
+ echo '<a href="'.createURL('admin','delete/'.$user->getUsername()).'" onclick="return confirm(\''.T_('Are you sure?').'\');">'.T_('Delete').'</a>';
+ echo '</div>'; + }
+
+ echo '</li>'."\n";
+} +echo '</ol>'; +?> +<h3><?php echo T_('Other actions')?></h3> +<p> +<a href="<?php echo createURL('admin','checkUrl/') ?>"> <?php echo T_('Check all urls (May take some times)') ?></a> +</p> +<?php
+$this->includeTemplate('sidebar.tpl');
+$this->includeTemplate($GLOBALS['bottom_include']);
+
+?>
diff --git a/templates/top.inc.php b/templates/top.inc.php index d2f05ea..55f0aaa 100644 --- a/templates/top.inc.php +++ b/templates/top.inc.php @@ -47,7 +47,7 @@ if(!isset($_GET['popup'])) { if (isset($subtitle)) { echo '<h2>'. $subtitle ."</h2>\n"; } -if (isset($error) && $msg!='') { +if (isset($error) && $error!='') { echo '<p class="error">'. $error ."</p>\n"; } if (isset($msg) && $msg!='') { |