function BuildGrid($button = true) { $bl = new zetro_listBuilder(); $jml = $this->Count($this->section, $this->path); for ($rw = 1; $rw <= $this->row; $rw++) { echo "<tr class='' align='' id='r-" . $rw . "'>\n\r\n\t\t\t <td class='kotak' align='center'>\r\n\t\t\t <span id='s-{$rw}' style='display:block'>{$rw}</span>\r\n\t\t\t <span id='e-{$rw}' style='display:none'><img src='" . base_url() . "asset/images/no.png' id='l-{$rw}' class='del' style='cursor:pointer'></span></td>\n"; for ($i = 1; $i <= $jml; $i++) { $fld = explode(",", $this->rContent($this->section, "{$i}", $this->path)); $tp = explode(" ", $fld[2]); echo "<td class='kotak' style='padding-right:3px'>"; switch ($fld[1]) { case 'input': echo "<" . $fld[1] . " type='" . $tp[0] . "' id='" . $rw . '__' . $fld[3] . "' name='" . $rw . '__' . $fld[3] . "' value='" . $fld[5] . "' class='" . $fld[4] . "' abbr='{$rw}'>"; break; case 'select': case 'select': echo "<" . $fld[1] . " id='" . $rw . '__' . $fld[3] . "' name='" . $rw . '__' . $fld[3] . "' class='" . $fld[4] . "'>"; if (count($fld) >= 9) { if ($fld[7] == 'RS') { echo "<option></option>"; for ($x = 1; $x <= $this->Count($fld[8], $this->path); $x++) { $data = explode(",", $this->rContent($fld[8], $x, $this->path)); echo "<option value='" . $data[0] . "'>" . $data[1] . "</option>\n\r"; } } else { if ($fld[7] == 'RD') { $data = explode("-", $fld[8]); dropdown($data[0], $data[1], $data[2], $data[3]); } } } echo "</select>"; } echo "</td>\n"; } echo $button == true ? "<td class='kotak'>" . $bl->event('dt-' . $rw, '', $this->button) . "</td>\n" : ''; echo "</tr>"; } }
} else { no_auth(); } ?> </span> <span id='v_list' style='display:block'><br /> <?php if ($le == 'Y' || $lv == 'Y' || $user_aktiv == 'Superuser') { $zb = new zetro_listBuilder('asset/bin/form.cfg'); $zb->ListHeader('Adduser', '70%', 'listTable'); $no = 0; //($page+1); foreach ($userlst->result_array() as $lst) { $no++; echo "<tbody><tr class='xx' align='center' id='n-" . $lst['userid'] . "'>\r\n\t\t\t <td class='kotak'>{$no}</td>\r\n\t\t\t <td class='kotak'>" . $lst['userid'] . "</td>\r\n\t\t\t <td class='kotak' align='left'>" . $lst['username'] . "</td>\r\n\t\t\t <td class='kotak' id='l-" . $lst['levelid'] . "' >" . rdb("user_level", "nmlevel", "", "where idlevel='" . $lst['levelid'] . "'") . "</td>\r\n\t\t\t <td class='kotak' width='10%'>"; echo $le == 'Y' || $user_aktiv == 'Superuser' ? $zb->event($lst['userid']) : ' '; echo "</td></tr>"; } echo "</tbody></table>\n"; } else { no_auth(); } ?> </span> <span id='v_hak' style='display:none'> <?php //echo "<form id='frm3' name='frm3' action='' method='post'>\n<br>"; echo str_repeat(' ', 5) . "<font color='#000000'><strong>User Name : </strong></font>\r\n<select id='oto_usernm' name='oto_usernm' {$stat}></select>\n <hr>"; $zb = new zetro_listBuilder('asset/bin/form.cfg'); $zb->ListHeader('UserOto', '80%', 'listHak', 'nolist'); echo "<tbody></tbody></table>\n";
<?php link_js('zetro_number.js,list_nasabah.js', 'asset/js,application/views/sdm/js'); $user_aktiv = $this->session->userdata("userid"); panel_begin('Black List', ''); $zb = new zetro_listBuilder('asset/bin/zetro_form.cfg'); $zb->ListHeader('nasabah', '70%', 'listTable'); $no = 0; echo "<tbody>"; //($page+1); foreach ($list->result_array() as $lst) { $no++; echo "<tr class='xx' id='" . $lst['ktp_spb'] . "' align='left'>\n\r\n\t\t <td class='kotak' align='center'>{$no}</td>\r\n\t\t <td class='kotak'>" . $lst['nama_spb'] . "{$ae}</td>\r\n\t\t <td class='kotak'>" . $lst['ktp_spb'] . "</td>\r\n\t\t <td class='kotak'>" . $lst['almnasabah'] . "</td>\r\n\t\t <td class='kotak' width='8%' align='center'>"; $bls = rdb('blacklist', 'ktp_spb', 'ktp_spb', "where ktp_spb='" . $lst['ktp_spb'] . "'"); if ($ae == 'Y' || $user_aktiv == 'Superuser') { $zb->event($lst['ktp_spb']); } echo "</td></tr>\n"; } echo "</tbody></table>"; panel_end(); popup_start('Edit Data Nasabah', 500, 300, 'frm2'); $zb = new zetro_frmBuilder('asset/bin/zetro_form.cfg'); $zb->AddBarisKosong(true); $zb->BuildForm('nasabah', true, '80%'); popup_end(''); ?> <input type='text' id='prs' value='bcl'> <script language='javascript'> $(document).ready(function(e) { $('img.edit').hide();
empty($thn) ? $thne = date('Y') : ($thne = $thn); link_js('zetro_number.js,list_spb.js', 'asset/js,application/views/spb/js'); $user_aktiv = $this->session->userdata("userid"); $blnj = "<select id='bulan' name='bulan'></select>"; $thnj = "<select id='thn' name='thn'></select>"; echo "<form id='frm1' name='frm1' action='' method='post'>"; panel_begin('Daftar SPB', '', "Filter by Bulan :," . $blnj . ",Tahun :," . $thnj); $zb = new zetro_listBuilder('asset/bin/zetro_form.cfg'); $zb->ListHeader('Spb', '100%', 'listTable'); $no = 0; //($page+1); foreach ($list->result_array() as $lst) { $no++; echo "<tr class='xx' id='" . $lst['no_spb'] . "' align='center'>\r\n\t\t <td class='kotak'>{$no}</td>\r\n\t \t <td class='kotak'>" . $lst['no_spb'] . "</td>\r\n\t\t <td class='kotak'>" . tglfromSql($lst['tgl_spb']) . "</td>\r\n\t\t <td class='kotak' align='left'>" . $lst['nama_spb'] . "</td>\r\n\t\t <td class='kotak' align='left'>" . $lst['ktp_spb'] . "</td>\r\n\t\t <td class='kotak' align='left'>" . $lst['id_barang'] . "</td>\r\n\t\t <td class='kotak' align='right'>" . number_format($lst['taksir_spb'], 2) . "</td>\r\n\t\t <td class='kotak' align='right'>" . number_format($lst['nilai_spb'], 2) . "</td>\r\n\t\t <td class='kotak'>" . $lst['jw_spb'] . "</td>\r\n\t\t <td class='kotak'>" . tglfromSql($lst['jt_spb']) . "</td>\r\n\t\t <td class='kotak' width='8%'>"; if ($ae == 'Y' || $user_aktiv == 'Superuser') { $lst['stat_spb'] == 'Y' ? $zb->event($lst['no_spb']) : ''; } echo "<td></tr>"; } echo "</tbody></table>\n"; panel_end(); echo "</form>"; popup_start('Edit SPB', 500, 500, 'frm2'); $zb = new zetro_frmBuilder('asset/bin/zetro_form.cfg'); $zb->AddBarisKosong(true); $zb->BuildForm('Spb', true, '80%'); popup_end(''); ?> <script language='javascript'> $(document).ready(function(e) { $('#bulan').html("<?php