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 Pasien</h3></th> |
||||
36 | <th><h3 style='font-size:12px;'>No KTP</h3></th> |
||||
37 | <th><h3 style='font-size:12px;'>No BPJS</h3></th> |
||||
38 | <th><h3 style='font-size:12px;'>Tanggal Lahir</h3></th> |
||||
39 | <th><h3 style='font-size:12px;'>Jenis Kelamin</h3></th> |
||||
40 | <th><h3 style='font-size:12px;'>Agama</h3></th> |
||||
41 | <th><h3 style='font-size:12px;'>Kategori</h3></th> |
||||
42 | <th><h3 style='font-size:12px;'>Telepon</h3></th> |
||||
43 | <th><h3 style='font-size:12px;'>Alamat</h3></th> |
||||
44 | <th width="50px;"><h3 style='font-size:12px;'>Aktif</h3></th> |
||||
45 | <th class='nosort' width="100px" style='text-align:center;'> |
||||
46 | <h3 style='font-size:12px;'>Aksi</h3> |
||||
47 | </th> |
||||
48 | </tr> |
||||
49 | </thead> |
||||
50 | <tbody> |
||||
51 | |||||
52 | <?php |
||||
53 | |||||
54 | |||||
55 | $tampil = mysql_query('SELECT a.*,b.agama,c.kategori |
||||
0 ignored issues
–
show
|
|||||
56 | FROM pasien a left join agama b |
||||
57 | ON a.id_agama = b.id_agama |
||||
58 | left join kategori c |
||||
59 | ON a.id_kategori = c.id_kategori |
||||
60 | ORDER BY a.nama '); |
||||
61 | |||||
62 | $no = 1; |
||||
63 | |||||
64 | 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. ![]() |
|||||
65 | $tgl_lahir = date('d/m/Y', strtotime($r['tgl_lahir'])); |
||||
66 | |||||
67 | if ($r['gender'] == 'L') { |
||||
68 | $gender = 'Laki-laki'; |
||||
69 | } else { |
||||
70 | $gender = 'Perempuan'; |
||||
71 | } |
||||
72 | |||||
73 | $ktp = ($r['ktp'] != '') ? $r['ktp'] : '-'; |
||||
74 | $bpjs = ($r['bpjs'] != '') ? $r['bpjs'] : '-'; |
||||
75 | |||||
76 | echo'<tr>'; |
||||
77 | echo"<td>$r[nama]</td>"; |
||||
78 | echo"<td>$ktp</td>"; |
||||
79 | echo"<td>$bpjs</td>"; |
||||
80 | echo"<td>$tgl_lahir</td>"; |
||||
81 | echo"<td>$gender</td>"; |
||||
82 | echo"<td>$r[agama]</td>"; |
||||
83 | echo"<td>$r[kategori]</td>"; |
||||
84 | echo"<td>$r[telp]</td>"; |
||||
85 | echo"<td>$r[alamat]</td>"; |
||||
86 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
||||
87 | echo" <td style='text-align:center;'>"; ?> |
||||
88 | <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_pasien.php?id_pasien=<?php echo $r['id_pasien']; ?>', '', 'height=500,width=600,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')"> |
||||
89 | |||||
90 | <span class='icon'><i class='fa fa-print'></i></span> |
||||
91 | |||||
92 | </a> |
||||
93 | |||||
94 | <?php |
||||
95 | |||||
96 | if ($r_edit == 'Y') { |
||||
97 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&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>"; |
||||
98 | } |
||||
99 | |||||
100 | // if($r_delete == 'Y') { |
||||
101 | // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_pasien]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
||||
102 | // } |
||||
103 | echo'</td>'; |
||||
104 | echo'</tr>'; |
||||
105 | $no++; |
||||
106 | } |
||||
107 | ?> |
||||
108 | </tbody> |
||||
109 | </table> |
||||
110 | </div> |
||||
111 | <div id="tablefooter"> |
||||
112 | <div id="tablenav"> |
||||
113 | <div> |
||||
114 | <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span> |
||||
115 | <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span> |
||||
116 | <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span> |
||||
117 | <span class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span> |
||||
118 | </div> |
||||
119 | <div> |
||||
120 | <select id="pagedropdown" style="width:40px;"></select> |
||||
121 | </div> |
||||
122 | <!-- <div> |
||||
123 | <a href="javascript:sorter.showall()">view all</a> |
||||
124 | </div> --> |
||||
125 | </div> |
||||
126 | |||||
127 | <div id="tablelocation"> |
||||
128 | <div> |
||||
129 | <select onchange="sorter.size(this.value)" style="width:50px;"> |
||||
130 | <option value="5">5</option> |
||||
131 | <option value="10" selected="selected">10</option> |
||||
132 | <option value="20">20</option> |
||||
133 | <option value="50">50</option> |
||||
134 | <option value="100">100</option> |
||||
135 | </select> |
||||
136 | <span>Entries Per Page</span> </div> <div>| Page <span id="currentpage"></span> of <span id="totalpages"></span> |   </div> |
||||
137 | </div> |
||||
138 | </div> |
||||
139 | </div> |
||||
140 | </div> |
||||
141 | </div> |
||||
142 | </div> |
||||
143 | |||||
144 | <br /> |
||||
145 | <br /> |
||||
146 | <br /> |
||||
147 | </div> |
||||
148 | </div> |
||||
149 | |||||
150 | <?php |
||||
151 | } |
||||
152 | ?> |
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.