Issues (4542)

topmenu.php (4 issues)

1
2
<?php
3
include 'config/koneksi.php';
4
5
$imodule = $_GET['module'];
6
$imenu = $_GET['menu'];
7
$isub = $_GET['sub'];
8
9
?>
10
11
12
<table cellpadding='0' cellspacing='0' width='100%'>
13
14
<tr>
15
<?php
16
$SQL = 'SELECT * FROM general_setting ';
17
18
        $tampil = mysql_query($SQL);
19
20
        $r = mysql_fetch_array($tampil);
21
22
        $nm_hotel = $r[hotel_name];
0 ignored issues
show
The constant hotel_name was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
23
?>
24
<td width='90%'>
25
<div id='cssmenu'>
26
27
<ul>
28
	<li class='Aktif' style='font-weight:bold;color:#2969FF'><?php echo ' .: '.$nm_hotel.' :. ' ?> &nbsp</li>
29
30
	
31
   <?php
32
33
    $user = $_SESSION['userid'];
34
35
            $sql = mysql_query("select * from modul where aktif='Y' order by urutan");
36
37
    while ($r = mysql_fetch_array($sql)) {
38
        if ($r[status_menu] == 'M' and !empty($r[link])) {
0 ignored issues
show
The constant link was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
The constant status_menu was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
39
            echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>";
40
        } elseif ($r[status_menu] == 'M' and empty($r[link])) {
41
            echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>";
42
        }
43
44
        echo'<ul>';
45
46
        $detil = mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan");
47
48
        while ($d = mysql_fetch_array($detil)) {
49
            if ($d[is_form] == 'Y') {
0 ignored issues
show
The constant is_form was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
50
                echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>";
51
            } else {
52
                echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>";
53
            }
54
        }
55
56
        echo'</ul>';
57
    }
58
59
    ?>
60
  
61
  
62
  
63
</li>
64
</ul>
65
66
</div>
67
</td>
68
69
</tr>
70
71
</table>