View difference between Paste ID: tYtzxsBB and YNJ3CErJ
SHOW: | | - or go back to the newest paste.
1
<tbody id='hki_1'>
2
                            <?php
3-
                            $sql = "select * from tb_3b5 where master_id={$master_id} and header_code like 'hki-1'";
3+
                            $sql = "select * from tb_3b5 where  1 and header_code like 'hki-1'";
4
5
                            $no = 1;
6
                            $que = $this->db->query($sql);
7
8
                            if (is_array($tabel_3b5))
9
                                foreach ($tabel_3b5 as $t3b5) : ?>
10
                                <tr>
11
                                    <td><?php echo $no++ ?></td>
12
                                    <td><?php echo $t3b5->judul ?></td>
13
                                    <td><?php echo $t3b5->tahun ?></td>
14
                                    <td><?php echo $t3b5->keterangan ?></td>
15
                                    <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
16
                                        <?php echo anchor(
17
                                                'tabel_3b5/hapus/' . $t3b5->id_3b5,
18
                                                '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
19
                                            ) ?>
20
                                    </td>
21
                                    <td>
22
                                        <?php echo anchor(
23
                                                'tabel_3b5/edit/' . $t3b5->id_3b5,
24
                                                '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
25
                                            ) ?>
26
                                    </td>
27
                                </tr>
28
29
                            <?php endforeach; ?>
30
                        </tbody>
31
<tbody id='hki_2'>
32
                            <?php
33
                            $sql = "select * from tb_3b5 where  1 and header_code like 'hki-2'";
34
35
                            $no = 1;
36
                            $que = $this->db->query($sql);
37
38
                            if (is_array($tabel_3b5))
39
                                foreach ($tabel_3b5 as $t3b5) : ?>
40
                                <tr>
41
                                    <td><?php echo $no++ ?></td>
42
                                    <td><?php echo $t3b5->judul ?></td>
43
                                    <td><?php echo $t3b5->tahun ?></td>
44
                                    <td><?php echo $t3b5->keterangan ?></td>
45
                                    <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
46
                                        <?php echo anchor(
47
                                                'tabel_3b5/hapus/' . $t3b5->id_3b5,
48
                                                '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
49
                                            ) ?>
50
                                    </td>
51
                                    <td>
52
                                        <?php echo anchor(
53
                                                'tabel_3b5/edit/' . $t3b5->id_3b5,
54
                                                '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
55
                                            ) ?>
56
                                    </td>
57
                                </tr>
58
59
                            <?php endforeach; ?>
60
                        </tbody>
61
<tbody id='hki_3'>
62
                            <?php
63
                            $sql = "select * from tb_3b5 where  1 and header_code like 'hki-3'";
64
65
                            $no = 1;
66
                            $que = $this->db->query($sql);
67
68
                            if (is_array($tabel_3b5))
69
                                foreach ($tabel_3b5 as $t3b5) : ?>
70
                                <tr>
71
                                    <td><?php echo $no++ ?></td>
72
                                    <td><?php echo $t3b5->judul ?></td>
73
                                    <td><?php echo $t3b5->tahun ?></td>
74
                                    <td><?php echo $t3b5->keterangan ?></td>
75
                                    <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
76
                                        <?php echo anchor(
77
                                                'tabel_3b5/hapus/' . $t3b5->id_3b5,
78
                                                '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
79
                                            ) ?>
80
                                    </td>
81
                                    <td>
82
                                        <?php echo anchor(
83
                                                'tabel_3b5/edit/' . $t3b5->id_3b5,
84
                                                '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
85
                                            ) ?>
86
                                    </td>
87
                                </tr>
88
89
                            <?php endforeach; ?>
90
                        </tbody>