| 1 |
lars |
1 |
<?
|
|
|
2 |
session_start();
|
|
|
3 |
$self = basename( $PHP_SELF );
|
|
|
4 |
require_once "connect2.php";
|
|
|
5 |
require_once "webs.php";
|
|
|
6 |
require_once "includes/system/getUsers.php";
|
|
|
7 |
require_once "includes/system/getSystemtermine.php";
|
|
|
8 |
//require_once "systemAlias.php";
|
|
|
9 |
|
|
|
10 |
require_once "Weban_Smarty.class.php";
|
|
|
11 |
|
|
|
12 |
$GLOBALS["ui"] = new Weban_Smarty();
|
|
|
13 |
|
|
|
14 |
$images_Pfad = 'images/navigation/';
|
|
|
15 |
|
|
|
16 |
$query_modules = "
|
|
|
17 |
SELECT
|
|
|
18 |
*
|
|
|
19 |
FROM
|
|
|
20 |
modules
|
|
|
21 |
WHERE
|
|
|
22 |
ID=".$_GET["ID"]."
|
|
|
23 |
ORDER BY
|
|
|
24 |
rang
|
|
|
25 |
";
|
|
|
26 |
|
|
|
27 |
$result_modules = mysql_query( $query_modules ) or die( mysql_errno() .
|
|
|
28 |
": " . mysql_error() . "<hr>$query_modules<hr>" );
|
|
|
29 |
while ( $zeile_modules = mysql_fetch_assoc( $result_modules ) )
|
|
|
30 |
{
|
|
|
31 |
$u_tools = array();
|
|
|
32 |
if ( isset( $user_rechte[$zeile_modules["interner_name"]] ) )
|
|
|
33 |
{
|
|
|
34 |
$query_tools = "
|
|
|
35 |
SELECT
|
|
|
36 |
*
|
|
|
37 |
FROM
|
|
|
38 |
tools
|
|
|
39 |
WHERE
|
|
|
40 |
tools.modules = " . $zeile_modules["ID"] . "
|
|
|
41 |
AND
|
|
|
42 |
tools.hidden='false'
|
|
|
43 |
ORDER BY
|
|
|
44 |
tools.rang
|
|
|
45 |
";
|
|
|
46 |
|
|
|
47 |
$result_tools = mysql_query( $query_tools ) or die( mysql_errno
|
|
|
48 |
() . ": " . mysql_error() . "<hr>$query_tools<hr>" );
|
|
|
49 |
while ( $zeile_tools = mysql_fetch_array( $result_tools ) )
|
|
|
50 |
{
|
|
|
51 |
if ( isset( $user_rechte[$zeile_modules["interner_name"]][$zeile_tools["button_name"]] ) )
|
|
|
52 |
{
|
|
|
53 |
if ( $zeile_tools["filename"] )
|
|
|
54 |
{
|
|
|
55 |
$images_Pfad = 'images/navigation/';
|
|
|
56 |
$imgsrc = $images_Pfad . 'bt_' . $zeile_tools["button_name"] .
|
|
|
57 |
'.gif';
|
|
|
58 |
$imgsrc_f2 = $images_Pfad . 'bt_' . $zeile_tools["button_name"] .
|
|
|
59 |
'_f2.gif';
|
|
|
60 |
$u_tools[] = array( "ID" => $zeile_tools["ID"],
|
|
|
61 |
"image" => $imgsrc, "image_f2" => $imgsrc_f2,
|
|
|
62 |
"filename" => $zeile_tools["filename"], "name" =>
|
|
|
63 |
$zeile_tools["name"] );
|
|
|
64 |
}
|
|
|
65 |
}
|
|
|
66 |
}
|
|
|
67 |
if ( $u_tools )
|
|
|
68 |
{
|
|
|
69 |
$u_modules[] = array( "name" => $zeile_modules["name"], "ID" =>
|
|
|
70 |
$zeile_modules["ID"], "count" => count( $user_rechte[$zeile_modules["interner_name"]] ),
|
|
|
71 |
"tools" => $u_tools );
|
|
|
72 |
}
|
|
|
73 |
}
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
$GLOBALS["ui"]->assign( "modules", $u_modules );
|
|
|
77 |
$GLOBALS["ui"]->assign( "site", $site );
|
|
|
78 |
$file = "tabs.tpl";
|
|
|
79 |
$GLOBALS["ui"]->display( $file );
|
|
|
80 |
?>
|