2012-07-17 21:15:23 +02:00
|
|
|
<!-- MAIN -->
|
|
|
|
<div id="main">
|
|
|
|
<div class="wrapper">
|
2012-07-16 21:30:19 +02:00
|
|
|
<?php
|
|
|
|
include ($_SERVER["DOCUMENT_ROOT"]."/Site/checkadmin.php");
|
|
|
|
|
|
|
|
$moduleurl = $_SERVER["REQUEST_URI"];
|
|
|
|
$urlcut = strpos($moduleurl, "&");
|
|
|
|
if($urlcut > 0)
|
|
|
|
{
|
|
|
|
$moduleurl = substr($moduleurl,0,$urlcut);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(strpos($moduleurl, "?") == 0)
|
|
|
|
{
|
|
|
|
$moduleurl = $_SERVER["REQUEST_URI"]."?site=1";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$mode = $_REQUEST["uebergabe"];
|
|
|
|
$status = $_REQUEST["uebergabe2"];
|
|
|
|
|
|
|
|
echo" <p><a href=\"".$moduleurl."&uebergabe=0\">Home</a>
|
|
|
|
| <a href=\"".$moduleurl."&uebergabe=1\">Add new User</a>
|
|
|
|
| <a href=\"".$moduleurl."&uebergabe=2\">Edit User</a>
|
|
|
|
| <a href=\"".$moduleurl."&uebergabe=3\">Delete User</a>
|
|
|
|
| <a href=\"".$moduleurl."&uebergabe=4\">View Users</a></p><hr><br>";
|
|
|
|
switch($status)
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
echo "<b>User added successfully!</b>";
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
echo "<b>User edited successfully!</b>";
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
echo "<b>User deleted successfully!</b>";
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch($mode)
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/Usermanagement/include/adduser_index.php");
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/Usermanagement/include/edituser_index.php");
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/Usermanagement/include/deleteuser_index.php");
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/Usermanagement/include/viewuser_index.php");
|
|
|
|
break;
|
|
|
|
default:
|
2012-07-17 21:22:21 +02:00
|
|
|
echo"<h1><b>User Management</b></h1><br/>
|
2012-07-16 21:30:19 +02:00
|
|
|
<h2>Choose an action:</h2>
|
2012-07-17 21:22:21 +02:00
|
|
|
<br/>
|
2012-07-16 21:30:19 +02:00
|
|
|
<p># <a href=\"".$moduleurl."&uebergabe=1\">Add new User</a></p>
|
|
|
|
<p># <a href=\"".$moduleurl."&uebergabe=2\">Edit User</a></p>
|
|
|
|
<p># <a href=\"".$moduleurl."&uebergabe=3\">Delete User</a></p>
|
|
|
|
<p># <a href=\"".$moduleurl."&uebergabe=4\">View Users</a></p><br>";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2012-07-17 21:15:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|