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='New <?php echo $nmmodule; ?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> New</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="Search By ...." onclick="this.value=''"/> |
||||
26 | </div> |
||||
27 | <span class="details"> |
||||
28 | <div>Records <span id="startrecord"></span>-<span id="endrecord"></span> of <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;'>Nama Obat</h3></th> |
||||
36 | <th><h3 style='font-size:12px;'>Satuan</h3></th> |
||||
37 | <th><h3 style='font-size:12px;text-align: right;'>Jumlah</h3></th> |
||||
38 | <th><h3 style='font-size:12px;'>Kadaluwarsa</h3></th> |
||||
39 | <th width="50px;"><h3 style='font-size:12px;'>Aktif</h3></th> |
||||
40 | <th class='nosort' width="100px" style='text-align:center;'> |
||||
41 | <h3 style='font-size:12px;'>Aksi</h3> |
||||
42 | </th> |
||||
43 | </tr> |
||||
44 | </thead> |
||||
45 | <tbody> |
||||
46 | |||||
47 | <?php |
||||
48 | |||||
49 | $tampil = mysql_query('SELECT a.*,b.satuan |
||||
0 ignored issues
–
show
|
|||||
50 | FROM obat a left join satuan b |
||||
51 | ON a.id_satuan = b.id_satuan |
||||
52 | ORDER BY a.obat '); |
||||
53 | |||||
54 | $no = 1; |
||||
55 | |||||
56 | while ($r = mysql_fetch_array($tampil)) { |
||||
0 ignored issues
–
show
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
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. ![]() |
|||||
57 | $jumlah = number_format($r['jumlah'], 0, '', '.'); |
||||
58 | $kadaluwarsa = ($r['kadaluwarsa'] != '') ? date('d/m/Y', strtotime($r['kadaluwarsa'])) : '-'; |
||||
59 | |||||
60 | echo'<tr>'; |
||||
61 | echo"<td>$r[obat]</td>"; |
||||
62 | echo"<td>$r[satuan]</td>"; |
||||
63 | echo"<td style='text-align:right;'>$jumlah</td>"; |
||||
64 | echo"<td style='text-align:left;'>$kadaluwarsa</td>"; |
||||
65 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
||||
66 | echo" <td style='text-align:center;'>"; |
||||
67 | |||||
68 | if ($r_edit == 'Y') { |
||||
69 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&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>"; |
||||
70 | } |
||||
71 | |||||
72 | // if($r_delete == 'Y') { |
||||
73 | // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_obat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
||||
74 | // } |
||||
75 | echo'</td>'; |
||||
76 | echo'</tr>'; |
||||
77 | $no++; |
||||
78 | } |
||||
79 | ?> |
||||
80 | </tbody> |
||||
81 | </table> |
||||
82 | </div> |
||||
83 | <div id="tablefooter"> |
||||
84 | <div id="tablenav"> |
||||
85 | <div> |
||||
86 | <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span> |
||||
87 | <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span> |
||||
88 | <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span> |
||||
89 | <span class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span> |
||||
90 | </div> |
||||
91 | <div> |
||||
92 | <select id="pagedropdown" style="width:40px;"></select> |
||||
93 | </div> |
||||
94 | <!-- <div> |
||||
95 | <a href="javascript:sorter.showall()">view all</a> |
||||
96 | </div> --> |
||||
97 | </div> |
||||
98 | |||||
99 | <div id="tablelocation"> |
||||
100 | <div> |
||||
101 | <select onchange="sorter.size(this.value)" style="width:50px;"> |
||||
102 | <option value="5">5</option> |
||||
103 | <option value="10" selected="selected">10</option> |
||||
104 | <option value="20">20</option> |
||||
105 | <option value="50">50</option> |
||||
106 | <option value="100">100</option> |
||||
107 | </select> |
||||
108 | <span>Entries Per Page</span> </div> <div>| Page <span id="currentpage"></span> of <span id="totalpages"></span> |   </div> |
||||
109 | </div> |
||||
110 | </div> |
||||
111 | </div> |
||||
112 | </div> |
||||
113 | </div> |
||||
114 | </div> |
||||
115 | |||||
116 | <br /> |
||||
117 | <br /> |
||||
118 | <br /> |
||||
119 | </div> |
||||
120 | </div> |
||||
121 | |||||
122 | <?php |
||||
123 | } |
||||
124 | ?> |
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.