Issues (4542)

modul/mod_penyakit/penyakit.php (2 issues)

Severity
1
<?php
2
switch (isset($_GET['act']) && $_GET['act']) {
3
4
    default:
5
?>
6
7
<div class="">
8
9
    <div class="row">
10
11
        <div class="col-md-12 col-sm-12 col-xs-12">
12
            <div class="x_panel">
13
                <div class="x_title">
14
                    <h2>
15
                        <?php echo $nmmodule; ?>
16
                    </h2>
17
                    <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true"; ?>'
18
                            title='New <?php echo $nmmodule; ?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i>
19
                            New</a></p>
20
                    <div class="clearfix"></div>
21
                </div>
22
                <div class="x_content">
23
                    <div id="tablewrapper">
24
25
                        <div id="tableheader">
26
27
                            <div class="search"> <select id="columns" onchange="sorter.search('query')"></select>
28
                                <input type="text" id="query" onkeyup="sorter.search('query');" value="Search By ...."
29
                                    onclick="this.value=''" />
30
                            </div>
31
                            <span class="details">
32
                                <div>Records <span id="startrecord"></span>-<span id="endrecord"></span> of <span id="totalrecords"></span></div>
33
                                <!--<div><a href="javascript:sorter.reset()">reset</a></div>-->
34
                            </span>
35
                        </div>
36
                        <div>
37
                            <table cellpadding="0" cellspacing="0" border="0" id="table" class="table table-striped responsive-utilities jambo_table">
38
                                <thead>
39
                                    <tr>
40
                                        <th>
41
                                            <h3 style='font-size:12px;'>Nama Penyakit</h3>
42
                                        </th>
43
                                        <th class='nosort' width="100px" style='text-align:center;'>
44
                                            <h3 style='font-size:12px;'>Aksi</h3>
45
                                        </th>
46
                                    </tr>
47
                                </thead>
48
                                <tbody>
49
50
                                    <?php
51
52
            $tampil = mysql_query('SELECT *
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

52
            $tampil = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT *

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...
53
                                FROM penyakit
54
                                 ORDER BY crtdt');
55
56
            $no = 1;
57
58
            while ($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

58
            while ($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...
59
                echo'<tr>';
60
                echo"<td>$r[penyakit]</td>";
61
                echo" <td  style='text-align:center;'>";
62
63
                if ($r_edit == 'Y') {
64
                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_penyakit=$r[id_penyakit]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
65
                }
66
67
                // if($r_delete == 'Y') {
68
                // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_penyakit]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
69
                // }
70
                echo'</td>';
71
                echo'</tr>';
72
                $no++;
73
            }
74
                                ?>
75
                                </tbody>
76
                            </table>
77
                        </div>
78
                        <div id="tablefooter">
79
                            <div id="tablenav">
80
                                <div>
81
                                    <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span>
82
                                    <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span>
83
                                    <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span>
84
                                    <span class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span>
85
                                </div>
86
                                <div>
87
                                    <select id="pagedropdown" style="width:40px;"></select>
88
                                </div>
89
                                <!-- <div>
90
                                <a href="javascript:sorter.showall()">view all</a>
91
                            </div> -->
92
                            </div>
93
94
                            <div id="tablelocation">
95
                                <div>
96
                                    <select onchange="sorter.size(this.value)" style="width:50px;">
97
                                        <option value="5">5</option>
98
                                        <option value="10" selected="selected">10</option>
99
                                        <option value="20">20</option>
100
                                        <option value="50">50</option>
101
                                        <option value="100">100</option>
102
                                    </select>
103
                                    <span>Entries Per Page</span> </div>
104
                                <div>| Page <span id="currentpage"></span> of <span id="totalpages"></span> | &nbsp
105
                                </div>
106
                            </div>
107
                        </div>
108
                    </div>
109
                </div>
110
            </div>
111
        </div>
112
113
        <br />
114
        <br />
115
        <br />
116
    </div>
117
</div>
118
119
<?php
120
}
121
?>