bug 633422
This commit is contained in:
@@ -11,6 +11,7 @@ $Source$
|
|||||||
2002-11-06 Marc Delisle <lem9@users.sourceforge.net>
|
2002-11-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/ukrainian: update, thanks to Markijan Baran
|
* lang/ukrainian: update, thanks to Markijan Baran
|
||||||
* lang/japanese: update, thanks to Yukihiro Kawada
|
* lang/japanese: update, thanks to Yukihiro Kawada
|
||||||
|
* db_search.php3: bug 633422, inconsistent use of radio buttons
|
||||||
|
|
||||||
2002-11-05 Alexander M. Turek <rabus@users.sourceforge.net>
|
2002-11-05 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* lang/dutch-*.inc.php3: Updates, Thanks again to Ivo Teel.
|
* lang/dutch-*.inc.php3: Updates, Thanks again to Ivo Teel.
|
||||||
|
@@ -185,17 +185,16 @@ if (isset($submit_search)) {
|
|||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<!-- Results form -->
|
|
||||||
<form method="post" action="sql.php3" name="db_search_results_form">
|
|
||||||
<input type="hidden" name="is_js_confirmed" value="0" />
|
|
||||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
|
||||||
<input type="hidden" name="convcharset" value="<?php echo $convcharset; ?>" />
|
|
||||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
|
||||||
<input type="hidden" name="db" value="<?php echo $db; ?>" />
|
|
||||||
<input type="hidden" name="goto" value="db_details.php3" />
|
|
||||||
<input type="hidden" name="pos" value="0" />
|
|
||||||
<?php
|
<?php
|
||||||
echo "\n";
|
$url_sql_query = 'lang=' . $lang
|
||||||
|
. '&convcharset=' . $convcharset
|
||||||
|
. '&server=' . $server
|
||||||
|
. '&goto=db_details.php3'
|
||||||
|
. '&db=' . urlencode($db)
|
||||||
|
. '&table=' . urlencode($table)
|
||||||
|
. '&pos=0'
|
||||||
|
. '&is_js_confirmed=0';
|
||||||
|
|
||||||
// Only one table defined in an variable $onetable
|
// Only one table defined in an variable $onetable
|
||||||
if (isset($onetable)) {
|
if (isset($onetable)) {
|
||||||
// Displays search string
|
// Displays search string
|
||||||
@@ -221,10 +220,14 @@ if (isset($submit_search)) {
|
|||||||
. ' ' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($onetable)) . "\n";
|
. ' ' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($onetable)) . "\n";
|
||||||
|
|
||||||
if ($res_cnt > 0) {
|
if ($res_cnt > 0) {
|
||||||
echo ' <input id="checkbox_select_' . $i . '" type="radio" name="sql_query" value="' . htmlspecialchars($newsearchsqls['select_fields']) . '" onclick="this.form.submit()" />' . "\n";
|
echo ' <a href="sql.php3?' . $url_sql_query
|
||||||
echo ' <label for="checkbox_select_' . $i . '">' . $strBrowse . '</label>' . "\n";
|
. '&sql_query=' .urlencode($newsearchsqls['select_fields'])
|
||||||
echo ' <input id="checkbox_delete_' . $i . '" type="radio" name="sql_query" value="' . htmlspecialchars($newsearchsqls['delete']).'" onclick="this.form.submit()" />' . "\n";
|
. '">' . $strBrowse . '</a>' . "\n";
|
||||||
echo ' <label for="checkbox_delete_' . $i . '">' . $strDelete . '</label>' . "\n";
|
|
||||||
|
echo ' <a href="sql.php3?' . $url_sql_query
|
||||||
|
. '&sql_query=' .urlencode($newsearchsqls['delete'])
|
||||||
|
. '">' . $strDelete . '</a>' . "\n";
|
||||||
|
|
||||||
} // end if
|
} // end if
|
||||||
} // end only one table
|
} // end only one table
|
||||||
|
|
||||||
@@ -255,10 +258,14 @@ if (isset($submit_search)) {
|
|||||||
. ' ' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($table_select[$i])) . "\n";
|
. ' ' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($table_select[$i])) . "\n";
|
||||||
|
|
||||||
if ($res_cnt > 0) {
|
if ($res_cnt > 0) {
|
||||||
echo ' <input id="checkbox_select_' . $i .'" type="radio" name="sql_query" value="' . htmlspecialchars($newsearchsqls['select_fields']) . '" onclick="this.form.submit()" />' . "\n";
|
echo ' <a href="sql.php3?' . $url_sql_query
|
||||||
echo ' <label for="checkbox_select_' . $i . '">' . $strBrowse . '</label>' . "\n";
|
. '&sql_query=' .urlencode($newsearchsqls['select_fields'])
|
||||||
echo ' <input id="checkbox_delete_' . $i . '" type="radio" name="sql_query" value="' . htmlspecialchars($newsearchsqls['delete']) . '" onclick="this.form.submit()" />' . "\n";
|
. '">' . $strBrowse . '</a>' . "\n";
|
||||||
echo ' <label for="checkbox_delete_' . $i . '">' . $strDelete . '</label>' . "\n";
|
|
||||||
|
echo ' <a href="sql.php3?' . $url_sql_query
|
||||||
|
. '&sql_query=' .urlencode($newsearchsqls['delete'])
|
||||||
|
. '">' . $strDelete . '</a>' . "\n";
|
||||||
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
echo ' </li>' . "\n";
|
echo ' </li>' . "\n";
|
||||||
@@ -268,23 +275,8 @@ if (isset($submit_search)) {
|
|||||||
echo ' <p>' . sprintf($strNumSearchResultsTotal, $num_search_result_total) . '</p>' . "\n";
|
echo ' <p>' . sprintf($strNumSearchResultsTotal, $num_search_result_total) . '</p>' . "\n";
|
||||||
} // end several tables
|
} // end several tables
|
||||||
|
|
||||||
// Submit button if string found
|
|
||||||
if ($num_search_result_total) {
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" language="javascript">
|
|
||||||
<!--
|
|
||||||
// Fake js to allow the use of the <noscript> tag
|
|
||||||
//-->
|
|
||||||
</script>
|
|
||||||
<noscript>
|
|
||||||
<input type="submit" value="<?php echo $strGo; ?>" />
|
|
||||||
</noscript>
|
|
||||||
<?php
|
|
||||||
} // end if
|
|
||||||
|
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
</form>
|
|
||||||
<hr width="100%">
|
<hr width="100%">
|
||||||
<?php
|
<?php
|
||||||
} // end if (!empty($search_str) && !empty($search_option))
|
} // end if (!empty($search_str) && !empty($search_option))
|
||||||
|
Reference in New Issue
Block a user