Issues (4542)

modul/mod_satuan/satuan.php (2 issues)

Severity
1
      
2
    <?php
3
switch (isset($_GET['act']) && $_GET['act']) {
4
5
        default:
6
          ?>
7
8
 <div class="">
9
                   
10
                <div class="row">
11
12
                        <div class="col-md-12 col-sm-12 col-xs-12">
13
                            <div class="x_panel">
14
                                <div class="x_title">
15
                                    <h2><?php echo $nmmodule; ?></h2>
16
                                      <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"; ?>' title='<?php echo $nmmodule; ?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p>
17
                                    <div class="clearfix"></div>
18
                                </div>
19
                                <div class="x_content">
20
                                   <div id="tablewrapper">
21
22
                    <div id="tableheader">
23
24
                        <div class="search">  <select id="columns" onchange="sorter.search('query')"></select>
25
                            <input type="text" id="query" onkeyup="sorter.search('query');" value="Pencarian berdasarkan ...."  onclick="this.value=''"/>
26
                        </div>
27
                        <span class="details">
28
                           <div>Arsip <span id="startrecord"></span>-<span id="endrecord"></span> dari <span id="totalrecords"></span></div>
29
                            <!--<div><a href="javascript:sorter.reset()">reset</a></div>-->
30
                        </span>
31
                    </div> <div>
32
                        <table cellpadding="0" cellspacing="0" border="0" id="table" class="table table-striped responsive-utilities jambo_table" >
33
                        <thead>
34
                            <tr>                               
35
                                <th><h3 style='font-size:12px;'>Satuan</h3></th>
36
                                <th width="50px;"><h3 style='font-size:12px;'>Aktif</h3></th>   
37
                                <th class='nosort' width="100px" style='text-align:center;'>
38
                                    <h3 style='font-size:12px;'>Aksi</h3>
39
                                </th>                              
40
                            </tr>
41
                        </thead>
42
                        <tbody>
43
                            
44
                         <?php
45
46
            $tampil = mysql_query('SELECT * FROM satuan ORDER BY id_satuan');
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
            $tampil = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM satuan ORDER BY id_satuan');

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
            $no = 1;
49
50
            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

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