well as far as i understand php, the pagination is controlled via show_table.php in this code section. anyway i am still not sure how to implement some kind of a back and forward button/menu to solve the problem. any help highly appreciated. greetings, rainer
$qry = $wpdb->get_row("SELECT count(id) asanzFROM“.$wpdb->prefix.”wct”.$id.”WHEREstatus`=’active'”.$zusatz);
$menge = ceil($qry->anz / $limit);
if ($menge > ‘1’ AND $this->settings[‘hidepagenumbers’] != ‘1’) {
$url = $this->generate_pagelink(“/[&?]+wctstart=[0-9]*/”,””);
$out .= “<tr><td colspan=\””.($colspan != ” ? $colspan : ‘500’).”\” class=\”wct”.$css.”-pagefield\”><div class=’tablenav-pages’><center><b>”.__(‘Page’, ‘wct’).”:</b> “;
for ($x=1;$x <= $menge;$x++) {
$l = ($limit * ($x – 1)) + 1;
if($_GET[‘wctstart’] == $l OR ($l == ‘1’ AND $_GET[‘wctstart’] == ”)) { $out .= $x.” “; }
else { $out .= “<a href=\””.$url.”wctstart=”.$l.”\”>”.$x.”</a> “; }
if ($menge > $pages) {
if ($x == floor ($pages / 2)) {
$x = $menge – floor($pages / 2);
$out .= “… “;
}
}
}
if ($table->dl != ‘0’) {
$out .= ” <b>”.__(‘Download’,’wct’).”:</b>”;
$qrr = $wpdb->get_row(“SELECT secret FROM ".$wpdb->prefix."wct_list WHERE id='”.$id.”‘ LIMIT 1;”);
if ($table->dl == ‘1’ OR $table->dl == ‘3’) {
$out .= “<a target=\”_blank\” href=\””.plugins_url(‘custom-tables/dl.php’).”?i=”.$id.”&l=”.$qrr->secret.”&t=excel&r=”.base64_encode($dlids).”\”><img style=\”position:relative;top:7px;margin-top:-5px;\” src=\””.plugins_url(‘custom-tables/img/excel.png’).”\” border=\”0\” alt=\”Excel\” height=\”25\” /></a>”;
}
if ($table->dl == ‘2’ OR $table->dl == ‘3’) {
$out .=”<a target=\”_blank\” href=\””.plugins_url(‘custom-tables/dl.php’).”?i=”.$id.”&l=”.$qrr->secret.”&t=csv&r=”.base64_encode($dlids).”\”><img style=\”position:relative;top:7px;margin-top:-5px;\” src=\””.plugins_url(‘custom-tables/img/csv.gif’).”\” border=\”0\” alt=\”CSV\” height=\”25\” /></a>”;
}
}
$out .= “</center></div></td></tr>”;
}
else {
$out .= “<tr><td colspan=\””.($colspan != ” ? $colspan : ‘500’).”\” class=\”wct”.$css.”-pagefield\”><center>”;
if ($table->dl != ‘0’) {
$out .= ” <b>”.__(‘Download’,’wct’).”:</b>”;
$qrr = $wpdb->get_row(“SELECT secret FROM ".$wpdb->prefix."wct_list WHERE id='”.$id.”‘ LIMIT 1;”);
if ($table->dl == ‘1’ OR $table->dl == ‘3’) {
$out .= “<a target=\”_blank\” href=\””.plugins_url(‘custom-tables/dl.php’).”?i=”.$id.”&l=”.$qrr->secret.”&t=excel&r=”.base64_encode($dlids).”\”><img style=\”position:relative;top:7px;margin-top:-5px;\” src=\””.plugins_url(‘custom-tables/img/excel.png’).”\” border=\”0\” alt=\”Excel\” height=\”25\” /></a>”;
}
if ($table->dl == ‘2’ OR $table->dl == ‘3’) {
$out .=”<a target=\”_blank\” href=\””.plugins_url(‘custom-tables/dl.php’).”?i=”.$id.”&l=”.$qrr->secret.”&t=csv&r=”.base64_encode($dlids).”\”><img style=\”position:relative;top:7px;margin-top:-5px;\” src=\””.plugins_url(‘custom-tables/img/csv.gif’).”\” border=\”0\” alt=\”CSV\” height=\”25\” /></a>”;
}
}
$out .= “</center></td></tr>”;
}
$out .= “</table>\n\n<div style=\”visibility:hidden;display:none;\”>Custom Tables Plugin 05a1a29bdcae7b12229e651a9fd48b11</div>\n\n”;`