arrDbFields[] = $DbFieldName; $this->arrColumnLabel[] = $ColumnName; $this->arrImagePaths[] = $imagepath; } public function showResults($resultsoutput, $idfield, $edit_handler, $delete_handler, $arrcustom_handlers = array()) { $numCols = count($this->arrColumnLabel); $numcustomHandlers = count($arrcustom_handlers); for ($i=0; $i < $numCols; $i++) { $intestRow .= "" . $this->arrColumnLabel[$i] . "\n"; } if ($numcustomHandlers > 0) { for ($i=0; $i < $numcustomHandlers; $i++) { $intestRow .= "\n"; } } if (count($resultsoutput) == 0) { echo "

" . __('Still no data available.','abctest_lbl') . "

\n"; } echo("\n"); echo("\n $intestRow \n "); echo("\n $intestRow \n "); echo(""); foreach ($resultsoutput as $numpost) { $edit = get_bloginfo('wpurl') . '/wp-admin/' . $edit_handler . $numpost->{$idfield}; $remove = get_bloginfo('wpurl') . '/wp-admin/' . $delete_handler . $numpost->{$idfield}; echo "\n"; for ($i=0; $i < count($this->arrDbFields); $i++) { echo "\n"; } if ($numcustomHandlers > 0) { foreach($arrcustom_handlers as $val => $handlr) { printf('', $handlr, $numpost->{$idfield}, $val); } } echo "\n"; } echo("\n"); echo("
"; if ($this->ReorderMode && $i == 0) { printf('', $numpost->{$idfield}); } if ($this->arrImagePaths[$i] != NULL) { // Immagine $imgpth = $this->arrImagePaths[$i] . $numpost->{$this->arrDbFields[$i]}; echo ""; $remove .= "&file=" . $numpost->{$this->arrDbFields[$i]}; } else { echo stripslashes( strip_tags($numpost->{$this->arrDbFields[$i]}) ); } if ($i == 0) { // Solo per la prima riga echo "
\n"; echo "" . __('edit','abctest_lbl') . " | "; echo "" . __('delete','abctest_lbl') . ""; } echo "
%s
\n\r"); } } ?>