diff --git a/design.inc.php b/design.inc.php index a9e3f9fe..e0b3da84 100644 --- a/design.inc.php +++ b/design.inc.php @@ -109,6 +109,7 @@ function page_footer($missing = false) { if (typeof jush != 'undefined') { jush.style('http://jush.sourceforge.net/jush.css'); jush.highlight_tag('pre'); + jush.highlight_tag('code'); } diff --git a/select.inc.php b/select.inc.php index f085be1d..ad6d738e 100644 --- a/select.inc.php +++ b/select.inc.php @@ -213,7 +213,10 @@ for (var i=0; > i; i++) { echo "
" . lang('Action') . "
\n"; echo "\n"; - $result = $mysql->query("SELECT " . ($select ? (count($group) < count($select) ? "SQL_CALC_FOUND_ROWS " : "") . implode(", ", $select) : "*") . " $from"); + $query = "SELECT " . ($select ? (count($group) < count($select) ? "SQL_CALC_FOUND_ROWS " : "") . implode(", ", $select) : "*") . " $from"; + echo "

" . htmlspecialchars($query) . " - " . lang('edit') . "

\n"; + + $result = $mysql->query($query); if (!$result) { echo "

" . htmlspecialchars($mysql->error) . "

\n"; } else { @@ -271,9 +274,6 @@ for (var i=0; > i; i++) { echo "\n"; } echo "\n"; - echo "
" . lang('Delete') . "" . (count($group) == count($select) ? " " : "") . "
\n"; - echo "
" . lang('Export') . "$dump_options " . (count($group) == count($select) ? " " : "") . "
\n"; //! output, format - echo "\n"; echo "

"; $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); @@ -293,6 +293,10 @@ for (var i=0; > i; i++) { print_page($max_page); } echo " (" . lang('%d row(s)', $found_rows) . ")

\n"; + + echo "
" . lang('Delete') . "" . (count($group) == count($select) ? " " : "") . "
\n"; + echo "
" . lang('Export') . "$dump_options " . (count($group) == count($select) ? " " : "") . "
\n"; //! output, format + echo "\n"; } $result->free(); } diff --git a/todo.txt b/todo.txt index 669d32d1..ef973670 100644 --- a/todo.txt +++ b/todo.txt @@ -9,6 +9,7 @@ Bulk update - leave original, set to value, set to NULL Save uploaded files after error to session variable instead of hidden field Transactions in export Compress export and import -? Query print +Partitioning (MySQL 5.1) +Create view options ? Execution time in sql.inc.php ? Save token also to cookie - for session expiration and login in other window