Rev 4 | Rev 8 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7 | daniel-mar | 1 | <?php |
2 | |||
3 | require 'includes/main.inc.php'; |
||
4 | |||
5 | echo $header_navi; |
||
6 | |||
7 | ?><table cellspacing="0" cellpadding="2" border="0" width="100%" style="height:100%"> |
||
8 | <tr class="area_bar"> |
||
9 | <td valign="middle" align="center" colspan="5"> |
||
10 | |||
11 | <b><?php |
||
12 | |||
13 | $ueberschrift = ''; |
||
14 | $menue = ''; |
||
15 | if (isset($modul) && (file_exists('modules/'.$modul.'/area_'.$area.'.inc.php'))) |
||
16 | include('modules/'.$modul.'/area_'.$area.'.inc.php'); |
||
17 | |||
18 | if (!isset($prv_seite)) $prv_seite = 'inhalt'; |
||
19 | |||
20 | if ($ueberschrift != '') |
||
21 | { |
||
22 | echo $ueberschrift; |
||
23 | } |
||
24 | else |
||
25 | { |
||
26 | if ($ib_user_type == '0') |
||
27 | echo 'Gastzugang'; |
||
28 | else if ($ib_user_type == '1') |
||
29 | echo 'Benutzermenü'; |
||
30 | else if ($ib_user_type == '2') |
||
31 | echo 'Verwaltung'; |
||
32 | else |
||
33 | echo 'Hauptmenü'; |
||
34 | } |
||
35 | |||
36 | ?></b><img src="design/spacer.gif" alt="" width="1" height="14"></td> |
||
37 | </tr> |
||
38 | |||
39 | <?php |
||
40 | |||
41 | echo gfx_zeichnemenueplatzhalter(); |
||
42 | |||
43 | $startgefunden = false; |
||
44 | if ($menue == '') |
||
45 | { |
||
46 | $men = array(); |
||
47 | foreach ($module as $m1 => $m2) |
||
48 | { |
||
49 | if (file_exists('modules/'.$m2.'/var.inc.php')) |
||
50 | { |
||
51 | $modulueberschrift = $m2; // Wenn keine Überschrift in var.inc.php, dann wird das Modul nicht benannt |
||
52 | $modulsekpos = ''; |
||
53 | $modulpos = ''; |
||
54 | $modulrechte = ''; |
||
55 | $autor = ''; |
||
56 | $version = ''; |
||
57 | $menuevisible = ''; |
||
58 | $license = ''; |
||
59 | $deaktiviere_zugangspruefung = 0; |
||
60 | |||
61 | include('modules/'.$m2.'/var.inc.php'); |
||
62 | if (((($ib_user_type == 0) || ($ib_user_type == 1)) && ($modulrechte == 0)) || ($ib_user_type == $modulrechte)) |
||
63 | { |
||
64 | if (($menuevisible) && (file_exists('modules/'.$m2.'/seite_inhalt.inc.php'))) |
||
65 | { |
||
66 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
||
67 | $g = 'modules/'.$m2.'/images/menu/32.png'; |
||
68 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
||
69 | $g = 'modules/'.$m2.'/images/menu/32.gif'; |
||
70 | else |
||
71 | $g = 'design/spacer.gif'; |
||
72 | |||
73 | if (file_exists('modules/'.$m2.'/images/menu/16.png')) |
||
74 | $k = 'modules/'.$m2.'/images/menu/16.png'; |
||
75 | else if (file_exists('modules/'.$m2.'/images/menu/16.gif')) |
||
76 | $k = 'modules/'.$m2.'/images/menu/16.gif'; |
||
77 | else |
||
78 | $k = 'design/spacer.gif'; |
||
79 | |||
80 | if (!isset($men[$modulpos][$modulsekpos])) $men[$modulpos][$modulsekpos] = ''; |
||
81 | $men[$modulpos][$modulsekpos] .= gfx_zeichnemenuepunkt($m2, 'inhalt', my_htmlentities($modulueberschrift), $k, $g); |
||
82 | } |
||
83 | if (isset($prv_modul) && ($m2 == $prv_modul) && (file_exists('modules/'.$m2.'/seite_inhalt.inc.php'))) |
||
84 | { |
||
85 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
||
86 | $g = 'modules/'.$m2.'/images/menu/32.png'; |
||
87 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
||
88 | $g = 'modules/'.$m2.'/images/menu/32.gif'; |
||
89 | else |
||
90 | $g = 'design/spacer.gif'; |
||
91 | |||
92 | $endjs = '<script language="JavaScript" type="text/javascript"> |
||
93 | <!-- |
||
94 | oop(\''.$m2.'\', \''.$prv_seite.'\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\'); |
||
95 | // --> |
||
96 | </script>'."\n\n"; |
||
97 | $startgefunden = true; |
||
98 | } |
||
99 | else |
||
100 | { |
||
101 | if (($modulpos == 0) && ($modulsekpos == 0) && (!$startgefunden) && (file_exists('modules/'.$m2.'/seite_inhalt.inc.php'))) |
||
102 | { |
||
103 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
||
104 | $g = 'modules/'.$m2.'/images/menu/32.png'; |
||
105 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
||
106 | $g = 'modules/'.$m2.'/images/menu/32.gif'; |
||
107 | else |
||
108 | $g = 'design/spacer.gif'; |
||
109 | |||
110 | $endjs = '<script language="JavaScript" type="text/javascript"> |
||
111 | <!-- |
||
112 | oop(\''.$m2.'\', \'inhalt\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\'); |
||
113 | // --> |
||
114 | </script>'."\n\n"; |
||
115 | $startgefunden = true; |
||
116 | } |
||
117 | } |
||
118 | } |
||
119 | } |
||
120 | } |
||
121 | |||
122 | unset($m1); |
||
123 | unset($m2); |
||
124 | |||
125 | ksort($men); |
||
126 | $first = true; |
||
127 | foreach ($men as $m1 => $m2) |
||
128 | { |
||
129 | if ($first) |
||
130 | $first = false; |
||
131 | else |
||
132 | echo gfx_zeichnemenueplatzhalter(); |
||
133 | ksort($men[$m1]); |
||
134 | foreach ($men[$m1] as $x1 => $x2) |
||
135 | echo $x2; |
||
136 | } |
||
137 | |||
138 | unset($m1); |
||
139 | unset($m2); |
||
140 | } |
||
141 | else |
||
142 | echo $menue; |
||
143 | |||
144 | ?> |
||
145 | |||
146 | <tr> |
||
147 | <td colspan="5" height="100%"><img src="design/spacer.gif" alt="" width="1" height="1"></td> |
||
148 | </tr> |
||
149 | </table> |
||
150 | |||
151 | <?php echo $endjs; |
||
152 | |||
153 | echo $footer; |
||
154 | |||
2 | daniel-mar | 155 | ?> |