bug 633422
This commit is contained in:
@@ -11,6 +11,7 @@ $Source$
|
||||
2002-11-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/ukrainian: update, thanks to Markijan Baran
|
||||
* 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>
|
||||
* lang/dutch-*.inc.php3: Updates, Thanks again to Ivo Teel.
|
||||
|
@@ -185,17 +185,16 @@ if (isset($submit_search)) {
|
||||
?>
|
||||
<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
|
||||
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
|
||||
if (isset($onetable)) {
|
||||
// Displays search string
|
||||
@@ -221,10 +220,14 @@ if (isset($submit_search)) {
|
||||
. ' ' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($onetable)) . "\n";
|
||||
|
||||
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 ' <label for="checkbox_select_' . $i . '">' . $strBrowse . '</label>' . "\n";
|
||||
echo ' <input id="checkbox_delete_' . $i . '" type="radio" name="sql_query" value="' . htmlspecialchars($newsearchsqls['delete']).'" onclick="this.form.submit()" />' . "\n";
|
||||
echo ' <label for="checkbox_delete_' . $i . '">' . $strDelete . '</label>' . "\n";
|
||||
echo ' <a href="sql.php3?' . $url_sql_query
|
||||
. '&sql_query=' .urlencode($newsearchsqls['select_fields'])
|
||||
. '">' . $strBrowse . '</a>' . "\n";
|
||||
|
||||
echo ' <a href="sql.php3?' . $url_sql_query
|
||||
. '&sql_query=' .urlencode($newsearchsqls['delete'])
|
||||
. '">' . $strDelete . '</a>' . "\n";
|
||||
|
||||
} // end if
|
||||
} // end only one table
|
||||
|
||||
@@ -255,10 +258,14 @@ if (isset($submit_search)) {
|
||||
. ' ' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($table_select[$i])) . "\n";
|
||||
|
||||
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 ' <label for="checkbox_select_' . $i . '">' . $strBrowse . '</label>' . "\n";
|
||||
echo ' <input id="checkbox_delete_' . $i . '" type="radio" name="sql_query" value="' . htmlspecialchars($newsearchsqls['delete']) . '" onclick="this.form.submit()" />' . "\n";
|
||||
echo ' <label for="checkbox_delete_' . $i . '">' . $strDelete . '</label>' . "\n";
|
||||
echo ' <a href="sql.php3?' . $url_sql_query
|
||||
. '&sql_query=' .urlencode($newsearchsqls['select_fields'])
|
||||
. '">' . $strBrowse . '</a>' . "\n";
|
||||
|
||||
echo ' <a href="sql.php3?' . $url_sql_query
|
||||
. '&sql_query=' .urlencode($newsearchsqls['delete'])
|
||||
. '">' . $strDelete . '</a>' . "\n";
|
||||
|
||||
} // end if
|
||||
|
||||
echo ' </li>' . "\n";
|
||||
@@ -268,23 +275,8 @@ if (isset($submit_search)) {
|
||||
echo ' <p>' . sprintf($strNumSearchResultsTotal, $num_search_result_total) . '</p>' . "\n";
|
||||
} // 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";
|
||||
?>
|
||||
</form>
|
||||
<hr width="100%">
|
||||
<?php
|
||||
} // end if (!empty($search_str) && !empty($search_option))
|
||||
|
Reference in New Issue
Block a user