diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-12-03 13:24:17 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-12-03 13:24:17 +0000 |
commit | b818ffae24857f39a57c7c43dea2c9aa87815368 (patch) | |
tree | 96e118ef05fe97cfca491cf7020c43c81f9d6f59 /templates/admin.tpl.php | |
parent | 9723a57f4ca309da030f6d2aaf6d1e3d3ca2136e (diff) | |
download | semanticscuttle-b818ffae24857f39a57c7c43dea2c9aa87815368.tar.gz semanticscuttle-b818ffae24857f39a57c7c43dea2c9aa87815368.tar.bz2 |
New Feature: admin can check urls validity
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@190 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/admin.tpl.php')
-rw-r--r-- | templates/admin.tpl.php | 39 |
1 files changed, 39 insertions, 0 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']);
+
+?>
|