mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Display found rows
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@468 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -274,9 +274,12 @@ for (var i=0; <?php echo $i; ?> > i; i++) {
|
|||||||
echo "<fieldset><legend>" . lang('Delete') . "</legend><input type='hidden' name='token' value='$token' />" . (count($group) == count($select) ? "<input type='submit' value='" . lang('Delete selected') . "' /> " : "") . "<input type='submit' name='truncate' value='" . lang('Truncate result') . "' onclick=\"return confirm('" . lang('Are you sure?') . "');\" /></fieldset>\n";
|
echo "<fieldset><legend>" . lang('Delete') . "</legend><input type='hidden' name='token' value='$token' />" . (count($group) == count($select) ? "<input type='submit' value='" . lang('Delete selected') . "' /> " : "") . "<input type='submit' name='truncate' value='" . lang('Truncate result') . "' onclick=\"return confirm('" . lang('Are you sure?') . "');\" /></fieldset>\n";
|
||||||
echo "<fieldset><legend>" . lang('Export') . "</legend>$dump_options " . (count($group) == count($select) ? "<input type='submit' name='export' value='" . lang('Export selected') . "' /> " : "") . "<input type='submit' name='export_result' value='" . lang('Export result') . "' /></fieldset>\n"; //! output, format
|
echo "<fieldset><legend>" . lang('Export') . "</legend>$dump_options " . (count($group) == count($select) ? "<input type='submit' name='export' value='" . lang('Export selected') . "' /> " : "") . "<input type='submit' name='export_result' value='" . lang('Export result') . "' /></fieldset>\n"; //! output, format
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
if (intval($limit) && ($found_rows = $mysql->result($mysql->query(count($group) < count($select) ? " SELECT FOUND_ROWS()" : "SELECT COUNT(*) FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : "")))) > $limit) {
|
|
||||||
|
echo "<p>";
|
||||||
|
$found_rows = (intval($limit) ? $mysql->result($mysql->query(count($group) < count($select) ? " SELECT FOUND_ROWS()" : "SELECT COUNT(*) FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : ""))) : $result->num_rows);
|
||||||
|
if (intval($limit) && $found_rows > $limit) {
|
||||||
$max_page = floor(($found_rows - 1) / $limit);
|
$max_page = floor(($found_rows - 1) / $limit);
|
||||||
echo "<p>" . lang('Page') . ":";
|
echo lang('Page') . ":";
|
||||||
print_page(0);
|
print_page(0);
|
||||||
if ($_GET["page"] > 3) {
|
if ($_GET["page"] > 3) {
|
||||||
echo " ...";
|
echo " ...";
|
||||||
@@ -288,8 +291,8 @@ for (var i=0; <?php echo $i; ?> > i; i++) {
|
|||||||
echo " ...";
|
echo " ...";
|
||||||
}
|
}
|
||||||
print_page($max_page);
|
print_page($max_page);
|
||||||
echo "</p>\n";
|
|
||||||
}
|
}
|
||||||
|
echo " (" . lang('%d row(s)', $found_rows) . ")</p>\n";
|
||||||
}
|
}
|
||||||
$result->free();
|
$result->free();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user