} } $ftahun = $r['tahunterbit']; } //if($r['replid']==4) $r['replid']=0; echo '<td style="background:" width="' . 100 / $nkol . '%">'; photof($r['replid'], 'katalog', buku_judul($r['judul']), $r['npengarang']); $nb++; echo '</td>'; if ($keyon == 'pengarang') { $lkey = $r['npengarang']; } else { if ($keyon == 'klasifikasi') { $lkey = $r['kode'] . ' ' . $r['nklas']; } else { $lkey = buku_judul2(str_firstword($r['judul'])); } } $ltahun = $r['tahunterbit']; $kol++; if ($kol == $nkol) { echo '</tr>'; echo '<tr style="height:20px;background:#eebd46">'; if ($keyon == 'pengarang' || $keyon == 'klasifikasi') { if ($urut == 'baru' || true) { $lt = 0; $lj = '~'; for ($it = 0; $it < $nkol; $it++) { $infk = ''; if ($lj != $ireplid[$it]) { if ($infk != '') {
$row=0; $kol=0; $nkol=5; $fkey=''; $lkey=''; $nb=0; echo '<table cellspacing="0" cellpadding="0" style="border:10px solid #eebd46;box-shadow:0px 4px 10px rgba(0,0,0,0.5);" width="840px"><tr><td>'; echo '<div style="width:820px;height:600px;max-height:600px;overflow-y:scroll;background:url(\''.IMGR.'/shelfbg.png\');">'; echo '<div style="height:100%;width:100% !important;">'; echo '<table cellspacing="0" cellpadding="0" width="100%">'; while($r=mysql_fetch_array($t)){ if($kol==0){ echo '<tr style="height:172px;background:url(\''.IMGR.'/shelfbg.png\')">'; $fkey=str_firstword($r['judul']); } //if($r['replid']==4) $r['replid']=0; echo '<td style="background:" width="'.(100/$nkol).'%">'; photof($r['replid'],'katalog',buku_judul($r['judul']),$r['npengarang']); $nb++; echo '</td>'; $lkey=str_firstword($r['judul']); $kol++; if($kol==$nkol){ echo '</tr>'; echo '</tr>'; echo '<tr style="height:20px;background:#eebd46">'; echo '<td colspan="'.$nkol.'"><span style="box-shadow:0px 2px 4px rgba(0,0,0,0.4);color:#000;background:#fff;padding:2px 4px;border-radius:2px;font:10px '.SFONT.'"><b>'.$fkey.' - '.$lkey.'</b></span></td>'; echo '</tr>'; $kol=0; $fkey=''; $row++; } } if($kol<$nkol && $kol!=0){ for($i=$kol;$i<$nkol;$i++){
if($cols==0){ echo '<tr>'; } echo '<td width="'.(100/$ncols).'%"><a href="javascript:void(0)" onclick="katalog_form_view(\''.$r['replid'].'\')" class="katalog_box" style="display:block;text-decoration:none;position:relative;" onmouseout="EHide(\'katalog_box_opt'.$n.'\')" onmouseover="EShow(\'katalog_box_opt'.$n.'\')"><div id="katalog_box_opt'.$n.'" style="display:none;position:absolute;top:2px;right:2px"><button class="btn" title="Lihat Katalog" onclick="katalog_form_view(\''.$r['replid'].'\')"><div class="bi_srcb"> </div></button> <button class="btn" title="Edit" onclick="katalog_form(\'uf\',\''.$r['replid'].'\')"><div class="bi_editb"> </div></button> <button class="btn" title="Hapus" onclick="katalog_form(\'df\',\''.$r['replid'].'\')"><div class="bi_delb"> </div></button> <button class="btn" title="Tambah koleksi baru" onclick="PCBCODE=201;katalog_form_view(\''.$r['replid'].'\')"><div class="bi_add">Koleksi</div></button></div><table cellspacing="10px" cellpadding="0"><tr><td>'; $pubinfo=$r['kota']; if($pubinfo!='')$pubinfo.=' : '; $pubinfo.=$r['n3']; if($r['n3']!='')$pubinfo.=', '; $pubinfo.=$r['tahunterbit']; $des=''; if($r['deskripsi']!=''){ $des.='<br/><br/>'; $des.=strtoupper(str_firstword($r['deskripsi'])).'<br/><br/>'.$r['deskripsi']; } echo '<table cellspacing="0px" cellpadding="0">', '<tr valign="top">', '<td width="70px" style="font:11px '.MSTYPEFONT.'">',$r['kode'],'<br/>',strtoupper(substr($r['n2'],0,3)),'<br/>',strtolower(substr($r['judul'],0,1)),'</td>', '<td style="font:11px '.MSTYPEFONT.'"><br/>',$r['n2'],'<br/><br/>',buku_judul($r['judul']),' / ',$r['n2'],' -- ',$pubinfo,'<br/><br/>',$r['halaman'],' Hlm<br/><br/>ISBN ',$r['isbn'],$des,'</td>', '</tr>', '</table>'; echo '</td></tr></table></a></td>'; $cols++; $n++; if($cols==$ncols){ $cols=0;