function urut_dn($a,$id){ $uid=urut_getid_after($a,$id); //log_print('urut_dn: uid:'.$uid); if($uid!=0){ urut_tukar($a,$id,$uid); } }
function td_urut() { $id = $this->row_id; if ($this->xtopt == 'urut' && $this->useurut) { $s = '<div style="width:26px;">'; if (urut_getid_before($this->dbtable, $id) != 0) { $s .= '<button class="btn_c" style="width:25px;height:16px" title="Pindah ke atas." onclick="xtable_urut(\'up\',\'' . $id . '\')"><img src="' . IMGR . 'bi_up.png?asd" /></button>'; } else { $s .= '<div style="border-radius:2px;border:1px solid #ddd;width:23px;height:14px"></div>'; } if (urut_getid_after($this->dbtable, $id) != 0) { $s .= '<button class="btn_c" style="width:25px;height:16px;margin-top:1px" title="Pindah ke bawah." onclick="xtable_urut(\'dn\',\'' . $id . '\')"><img src="' . IMGR . 'bi_dn.png?asd" /></button>'; } else { $s .= '<div style="border-radius:2px;border:1px solid #ddd;width:23px;height:14px;margin-top:1px"></div>'; } $s .= '</div>'; $s = '<td width="30px" align="center"><div style="width:30px">' . $s . '</div></td>'; echo $s; } }