style upgrade
This commit is contained in:
@@ -5,7 +5,11 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-03-24 Michal Čihař <michal@cihar.com>
|
||||
2006-04-25 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* db_details_qbe.php:
|
||||
style upgrade
|
||||
|
||||
2006-04-24 Michal Čihař <michal@cihar.com>
|
||||
* main.php: Fix logout link (bug #1474694).
|
||||
|
||||
2006-04-21 Michal Čihař <michal@cihar.com>
|
||||
|
@@ -9,9 +9,9 @@
|
||||
/**
|
||||
* requirements
|
||||
*/
|
||||
require_once('./libraries/common.lib.php');
|
||||
require_once './libraries/common.lib.php';
|
||||
require_once './libraries/Table.class.php';
|
||||
require_once('./libraries/relation.lib.php');
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
|
||||
/**
|
||||
@@ -28,14 +28,14 @@ if ( isset( $_REQUEST['submit_sql'] )
|
||||
$goto = 'db_details.php';
|
||||
$zero_rows = htmlspecialchars($GLOBALS['strSuccess']);
|
||||
$sql_query = urldecode($_REQUEST['encoded_sql_query']);
|
||||
require('./sql.php');
|
||||
exit();
|
||||
require './sql.php';
|
||||
exit;
|
||||
} else {
|
||||
$sub_part = '_qbe';
|
||||
require('./libraries/db_details_common.inc.php');
|
||||
require './libraries/db_details_common.inc.php';
|
||||
$url_query .= '&goto=db_details_qbe.php';
|
||||
$url_params['goto'] = 'db_details_qbe.php';
|
||||
require('./libraries/db_details_db_info.inc.php');
|
||||
require './libraries/db_details_db_info.inc.php';
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['submit_sql'])
|
||||
@@ -170,11 +170,9 @@ function showColumnSelectCell( $columns, $column_number, $selected = '' )
|
||||
?>
|
||||
|
||||
<form action="db_details_qbe.php" method="post">
|
||||
<table>
|
||||
<tr class="odd">
|
||||
<th align="<?php echo $cell_align_right; ?>">
|
||||
<?php echo $strField; ?>:
|
||||
</th>
|
||||
<table class="data" style="width: 100%;">
|
||||
<tr class="odd noclick">
|
||||
<th><?php echo $strField; ?>:</th>
|
||||
<?php
|
||||
$z = 0;
|
||||
for ($x = 0; $x < $col; $x++) {
|
||||
@@ -199,16 +197,14 @@ for ($x = 0; $x < $col; $x++) {
|
||||
</tr>
|
||||
|
||||
<!-- Sort row -->
|
||||
<tr class="even">
|
||||
<th align="<?php echo $cell_align_right; ?>">
|
||||
<?php echo $strSort; ?>:
|
||||
</th>
|
||||
<tr class="even noclick">
|
||||
<th><?php echo $strSort; ?>:</th>
|
||||
<?php
|
||||
$z = 0;
|
||||
for ($x = 0; $x < $col; $x++) {
|
||||
if (!empty($ins_col) && isset($ins_col[$x]) && $ins_col[$x] == 'on') {
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||
<td align="center">
|
||||
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
|
||||
<option value=""></option>
|
||||
<option value="ASC"><?php echo $strAscending; ?></option>
|
||||
@@ -224,7 +220,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||
<td align="center">
|
||||
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
|
||||
<option value=""></option>
|
||||
<?php
|
||||
@@ -233,7 +229,8 @@ for ($x = 0; $x < $col; $x++) {
|
||||
// If they have chosen all fields using the * selector,
|
||||
// then sorting is not available
|
||||
// Robbat2 - Fix for Bug #570698
|
||||
if (isset($Sort[$x]) && isset($Field[$x]) && (substr(urldecode($Field[$x]),-2) == '.*')) {
|
||||
if (isset($Sort[$x]) && isset($Field[$x])
|
||||
&& substr(urldecode($Field[$x]), -2) == '.*') {
|
||||
$Sort[$x] = '';
|
||||
} //end if
|
||||
|
||||
@@ -264,16 +261,14 @@ for ($x = 0; $x < $col; $x++) {
|
||||
</tr>
|
||||
|
||||
<!-- Show row -->
|
||||
<tr>
|
||||
<td class="tblHeaders" align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strShow; ?>: </b>
|
||||
</td>
|
||||
<tr class="odd noclick">
|
||||
<th><?php echo $strShow; ?>:</th>
|
||||
<?php
|
||||
$z = 0;
|
||||
for ($x = 0; $x < $col; $x++) {
|
||||
if (!empty($ins_col) && isset($ins_col[$x]) && $ins_col[$x] == 'on') {
|
||||
?>
|
||||
<td class="tblHeaders" align="center" bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
||||
<td align="center">
|
||||
<input type="checkbox" name="Show[<?php echo $z; ?>]" />
|
||||
</td>
|
||||
<?php
|
||||
@@ -291,7 +286,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
$checked = '';
|
||||
}
|
||||
?>
|
||||
<td class="tblHeaders" align="center" bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
||||
<td align="center">
|
||||
<input type="checkbox" name="Show[<?php echo $z; ?>]"<?php echo $checked; ?> />
|
||||
</td>
|
||||
<?php
|
||||
@@ -302,16 +297,14 @@ for ($x = 0; $x < $col; $x++) {
|
||||
</tr>
|
||||
|
||||
<!-- Criteria row -->
|
||||
<tr>
|
||||
<td class="tblHeaders" align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strCriteria; ?>: </b>
|
||||
</td>
|
||||
<tr class="even noclick">
|
||||
<th><?php echo $strCriteria; ?>:</th>
|
||||
<?php
|
||||
$z = 0;
|
||||
for ($x = 0; $x < $col; $x++) {
|
||||
if (!empty($ins_col) && isset($ins_col[$x]) && $ins_col[$x] == 'on') {
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||
<td align="center">
|
||||
<input type="text" name="criteria[<?php echo $z; ?>]" value="" class="textfield" style="width: <?php echo $realwidth; ?>" size="20" />
|
||||
</td>
|
||||
<?php
|
||||
@@ -334,7 +327,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
$encoded_Criteria = $prev_criteria[$x];
|
||||
}
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||
<td align="center">
|
||||
<input type="hidden" name="prev_criteria[<?php echo $z; ?>]" value="<?php echo $encoded_Criteria; ?>" />
|
||||
<input type="text" name="criteria[<?php echo $z; ?>]" value="<?php echo htmlspecialchars($stripped_Criteria); ?>" class="textfield" style="width: <?php echo $realwidth; ?>" size="20" />
|
||||
</td>
|
||||
@@ -348,16 +341,16 @@ for ($x = 0; $x < $col; $x++) {
|
||||
<!-- And/Or columns and rows -->
|
||||
<?php
|
||||
$w = 0;
|
||||
$odd_row = true;
|
||||
for ($y = 0; $y <= $row; $y++) {
|
||||
$bgcolor = ($y % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'];
|
||||
if (isset($ins_row[$y]) && $ins_row[$y] == 'on') {
|
||||
$chk['or'] = ' checked="checked"';
|
||||
$chk['and'] = '';
|
||||
?>
|
||||
<tr>
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?> noclick">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<!-- Row controls -->
|
||||
<table bgcolor="<?php echo $bgcolor; ?>" cellpadding="0" cellspacing="0" border="0">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<small><?php echo $strQBEIns; ?>:</small>
|
||||
@@ -393,7 +386,7 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
echo "\n";
|
||||
$or = 'Or' . $w . '[' . $z . ']';
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||
<td align="center">
|
||||
<textarea cols="20" rows="2" style="width: <?php echo $realwidth; ?>" name="<?php echo $or; ?>" dir="<?php echo $text_dir; ?>"></textarea>
|
||||
</td>
|
||||
<?php
|
||||
@@ -406,7 +399,7 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
echo "\n";
|
||||
$or = 'Or' . $w . '[' . $z . ']';
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||
<td align="center">
|
||||
<textarea cols="20" rows="2" style="width: <?php echo $realwidth; ?>" name="<?php echo $or; ?>" dir="<?php echo $text_dir; ?>"></textarea>
|
||||
</td>
|
||||
<?php
|
||||
@@ -417,6 +410,7 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
$odd_row =! $odd_row;
|
||||
} // end if
|
||||
|
||||
if (isset($del_row[$y]) && $del_row[$y] == 'on') {
|
||||
@@ -435,10 +429,10 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
}
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?> noclick">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<!-- Row controls -->
|
||||
<table bgcolor="<?php echo $bgcolor; ?>" border="0" cellpadding="0" cellspacing="0">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<small><?php echo $strQBEIns; ?>:</small>
|
||||
@@ -472,7 +466,7 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
echo "\n";
|
||||
$or = 'Or' . $w . '[' . $z . ']';
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||
<td align="center">
|
||||
<textarea cols="20" rows="2" style="width: <?php echo $realwidth; ?>" name="<?php echo $or; ?>" dir="<?php echo $text_dir; ?>"></textarea>
|
||||
</td>
|
||||
<?php
|
||||
@@ -493,7 +487,7 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
$stripped_or = '';
|
||||
}
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||
<td align="center">
|
||||
<textarea cols="20" rows="2" style="width: <?php echo $realwidth; ?>" name="Or<?php echo $w . '[' . $z . ']'; ?>" dir="<?php echo $text_dir; ?>"><?php echo htmlspecialchars($stripped_or); ?></textarea>
|
||||
</td>
|
||||
<?php
|
||||
@@ -508,14 +502,12 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
$odd_row =! $odd_row;
|
||||
} // end for
|
||||
?>
|
||||
|
||||
<!-- Modify columns -->
|
||||
<tr>
|
||||
<td class="tblHeaders" align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strModify; ?>: </b>
|
||||
</td>
|
||||
<tr class="even noclick">
|
||||
<th><?php echo $strModify; ?>:</th>
|
||||
<?php
|
||||
$z = 0;
|
||||
for ($x = 0; $x < $col; $x++) {
|
||||
@@ -529,7 +521,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
$chk['or'] = '';
|
||||
}
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||
<td align="center">
|
||||
<b><?php echo $strOr; ?>:</b>
|
||||
<input type="radio" name="and_or_col[<?php echo $z; ?>]" value="or"<?php echo $chk['or']; ?> />
|
||||
<b><?php echo $strAnd; ?>:</b>
|
||||
@@ -560,7 +552,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
$chk['or'] = '';
|
||||
}
|
||||
?>
|
||||
<td align="center" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||
<td align="center">
|
||||
<b><?php echo $strOr; ?>:</b>
|
||||
<input type="radio" name="and_or_col[<?php echo $z; ?>]" value="or"<?php echo $chk['or']; ?> />
|
||||
<b><?php echo $strAnd; ?>:</b>
|
||||
@@ -580,15 +572,17 @@ for ($x = 0; $x < $col; $x++) {
|
||||
</table>
|
||||
|
||||
<!-- Other controls -->
|
||||
<?php echo PMA_generate_common_hidden_inputs(); ?>
|
||||
<table border="0" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
<td nowrap="nowrap"><input type="hidden" value="<?php echo htmlspecialchars($db); ?>" name="db" />
|
||||
<input type="hidden" value="<?php echo $z; ?>" name="col_cnt" />
|
||||
<?php
|
||||
$w--;
|
||||
$url_params['db'] = $db;
|
||||
$url_params['col_cnt'] = $z;
|
||||
$url_params['rows'] = $w;
|
||||
echo PMA_generate_common_hidden_inputs($url_params);
|
||||
?>
|
||||
<input type="hidden" value="<?php echo $w; ?>" name="rows" />
|
||||
<fieldset class="tblFooters">
|
||||
<table border="0" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
<td nowrap="nowrap">
|
||||
<?php echo $strAddDeleteRow; ?>:
|
||||
<select size="1" name="add_row" style="vertical-align: middle">
|
||||
<option value="-3">-3</option>
|
||||
@@ -616,16 +610,13 @@ for ($x = 0; $x < $col; $x++) {
|
||||
<!-- Generates a query -->
|
||||
<td><input type="submit" name="modify" value="<?php echo $strUpdateQuery; ?>" /></td>
|
||||
</tr>
|
||||
</table><br />
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<table border="0" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
<td class="tblHeaders"> <?php echo $strUseTables; ?>: </td>
|
||||
<td width="20"> </td>
|
||||
<td class="tblHeaders"> <?php echo sprintf($strQueryOnDb, htmlspecialchars($db)); ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
||||
<table>
|
||||
<tr><td>
|
||||
<fieldset>
|
||||
<legend><?php echo $strUseTables; ?></legend>
|
||||
<?php
|
||||
$strTableListOptions = '';
|
||||
$numTableListOptions = 0;
|
||||
@@ -635,14 +626,23 @@ foreach ($tbl_names AS $key => $val) {
|
||||
$numTableListOptions++;
|
||||
}
|
||||
?>
|
||||
<select name="TableList[]" size="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>" multiple="multiple" id="listTable">
|
||||
<select name="TableList[]" multiple="multiple" id="listTable"
|
||||
size="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>">
|
||||
<?php echo $strTableListOptions; ?>
|
||||
</select>
|
||||
</fieldset>
|
||||
<fieldset class="tblFooters">
|
||||
<input type="submit" name="modify" value="<?php echo $strUpdateQuery; ?>" />
|
||||
</fieldset>
|
||||
</td>
|
||||
<td> </td>
|
||||
<!-- Displays the current query -->
|
||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
||||
<textarea cols="30" rows="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>" name="sql_query" dir="<?php echo $text_dir; ?>" id="textSqlquery">
|
||||
<td width="20"> </td>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend><?php echo sprintf($strQueryOnDb, PMA_getDbLink($db)); ?>
|
||||
</legend>
|
||||
<textarea cols="30" name="sql_query" id="textSqlquery"
|
||||
rows="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>"
|
||||
dir="<?php echo $text_dir; ?>">
|
||||
<?php
|
||||
// 1. SELECT
|
||||
$last_select = 0;
|
||||
@@ -1014,20 +1014,17 @@ if (!empty($qry_orderby)) {
|
||||
?>
|
||||
</textarea>
|
||||
<input type="hidden" name="encoded_sql_query" value="<?php echo $encoded_qry; ?>" />
|
||||
</fieldset>
|
||||
<fieldset class="tblFooters">
|
||||
<input type="submit" name="submit_sql" value="<?php echo $strRunQuery; ?>" />
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- Generates a query -->
|
||||
<td align="right" class="tblHeaders"><input type="submit" name="modify" value="<?php echo $strUpdateQuery; ?>" /></td>
|
||||
<td> </td>
|
||||
<!-- Execute a query -->
|
||||
<td align="right" class="tblHeaders"><input type="submit" name="submit_sql" value="<?php echo $strRunQuery; ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
/**
|
||||
* Displays the footer
|
||||
*/
|
||||
require_once('./libraries/footer.inc.php');
|
||||
require_once './libraries/footer.inc.php';
|
||||
?>
|
||||
|
Reference in New Issue
Block a user