Issues (4542)

topmenu.php (10 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);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

18
        $tampil = /** @scrutinizer ignore-deprecated */ mysql_query($SQL);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
19
20
        $r = mysql_fetch_array($tampil);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

20
        $r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($tampil);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
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");
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

35
            $sql = /** @scrutinizer ignore-deprecated */ mysql_query("select * from modul where aktif='Y' order by urutan");

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
36
37
    while ($r = mysql_fetch_array($sql)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

37
    while ($r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($sql)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
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");
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

46
        $detil = /** @scrutinizer ignore-deprecated */ mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan");

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
47
48
        while ($d = mysql_fetch_array($detil)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

48
        while ($d = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($detil)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
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>