Merge branch 'master' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin

This commit is contained in:
Madhura Jayaratne 2011-10-08 17:27:26 +05:30
commit eef315c635
74 changed files with 33235 additions and 33802 deletions

View File

@ -49,6 +49,7 @@ phpMyAdmin - ChangeLog
+ [interface] 'Function based search' for GIS data
+ Support Drizzle database
- bug #3356456 [interface] Interface problems for queries having LIMIT clauses
+ [interface] Remove DefaultPropDisplay feature
3.4.7.0 (not yet released)
- bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false

View File

@ -2003,18 +2003,6 @@ $cfg['TrustedProxies'] =
otherwise.
</dd>
<dt id="DefaultPropDisplay">
<span id="cfg_DefaultPropDisplay">$cfg['DefaultPropDisplay']</span>
string or integer</dt>
<dd>When editing/creating new columns in a table all fields normally get
lined up one field a line. (default: 'horizontal'). If you set this to
'vertical' you can have each field lined up vertically beneath each
other. You can save up a lot of place on the horizontal direction and
no longer have to scroll. If you set this to integer, editing of fewer
columns will appear in 'vertical' mode, while editing of more columns
still in 'horizontal' mode. This way you can still effectively edit
large number of columns, while having full view on few of them.</dd>
<dt id="cfg_ShowBrowseComments">$cfg['ShowBrowseComments'] boolean<br />
<span id="cfg_ShowPropertyComments">$cfg['ShowPropertyComments'] </span>boolean
</dt>

View File

@ -2300,15 +2300,6 @@ $cfg['DefaultDisplay'] = 'horizontal';
*/
$cfg['RememberSorting'] = true;
/**
* default display direction for altering/creating columns (tbl_properties)
* (horizontal|vertical|<number>)
* number indicates maximum number for which vertical model is used
*
* @global integer $cfg['DefaultPropDisplay']
*/
$cfg['DefaultPropDisplay'] = 3;
/**
* table-header rotation via faking or CSS? (css|fake|auto)
* NOTE: CSS only works in IE browsers!

View File

@ -150,7 +150,6 @@ $cfg_db['_overrides']['Servers/1/extension'] = extension_loaded('mysqli')
$cfg_db['_validators'] = array(
'CharTextareaCols' => 'validate_positive_number',
'CharTextareaRows' => 'validate_positive_number',
'DefaultPropDisplay' => array(array('validate_by_regex', '/^(?:horizontal|vertical|\d+)$/')),
'ExecTimeLimit' => 'validate_non_negative_number',
'Export/sql_max_query_size' => 'validate_positive_number',
'ForeignKeyMaxLimit' => 'validate_positive_number',

View File

@ -43,8 +43,6 @@ $strConfigConfirm_desc = __('Whether a warning (&quot;Are your really sure...&qu
$strConfigConfirm_name = __('Confirm DROP queries');
$strConfigDBG_sql_name = __('Debug SQL');
$strConfigDefaultDisplay_name = __('Default display direction');
$strConfigDefaultPropDisplay_desc = __('[kbd]horizontal[/kbd], [kbd]vertical[/kbd] or a number that indicates maximum number for which vertical model is used');
$strConfigDefaultPropDisplay_name = __('Display direction for altering/creating columns');
$strConfigDefaultTabDatabase_desc = __('Tab that is displayed when entering a database');
$strConfigDefaultTabDatabase_name = __('Default database tab');
$strConfigDefaultTabServer_desc = __('Tab that is displayed when entering a server');

View File

@ -219,8 +219,7 @@ $forms['Main_frame']['Edit'] = array(
'LongtextDoubleTextarea',
'InsertRows',
'ForeignKeyDropdownOrder',
'ForeignKeyMaxLimit',
'DefaultPropDisplay');
'ForeignKeyMaxLimit');
$forms['Main_frame']['Tabs'] = array(
'LightTabs',
'PropertiesIconic',

View File

@ -122,8 +122,7 @@ $forms['Main_frame']['Edit'] = array(
'ShowFieldTypesInDataEditView',
'InsertRows',
'ForeignKeyDropdownOrder',
'ForeignKeyMaxLimit',
'DefaultPropDisplay');
'ForeignKeyMaxLimit');
$forms['Main_frame']['Tabs'] = array(
'LightTabs',
'DefaultTabServer',

View File

@ -34,21 +34,7 @@ if (PMA_DRIZZLE) {
include_once './libraries/data_mysql.inc.php';
}
if (is_int($cfg['DefaultPropDisplay'])) {
if ($num_fields <= $cfg['DefaultPropDisplay']) {
$display_type = 'vertical';
} else {
$display_type = 'horizontal';
}
} else {
$display_type = $cfg['DefaultPropDisplay'];
}
if ('horizontal' == $display_type) {
$length_values_input_size = 8;
} else {
$length_values_input_size = 30;
}
$length_values_input_size = 8;
$_form_params = array(
'db' => $db,
@ -123,7 +109,7 @@ if (!$is_backup) {
$header_cells[] = __('Index');
}
$header_cells[] = '<abbr title="AUTO_INCREMENT">' . ($display_type == 'horizontal' ? 'A_I' : 'AUTO_INCREMENT') . '</abbr>';
$header_cells[] = '<abbr title="AUTO_INCREMENT">A_I</abbr>';
require_once './libraries/transformations.lib.php';
$cfgRelation = PMA_getRelationsParam();
@ -279,7 +265,7 @@ for ($i = 0; $i < $num_fields; $i++) {
$content_cells[$i][$ci] = '<input id="field_' . $i . '_' . ($ci - $ci_offset) . '"'
. ' type="text" name="field_name[' . $i . ']"'
. ' maxlength="64" class="textfield" title="' . __('Column') . '"'
. ' size="' . ($GLOBALS['cfg']['DefaultPropDisplay'] == 'horizontal' ? '10' : '30') . '"'
. ' size="10"'
. ' value="' . (isset($row['Field']) ? htmlspecialchars($row['Field']) : '') . '"'
. ' />';
$ci++;
@ -562,7 +548,7 @@ for ($i = 0; $i < $num_fields; $i++) {
<script src="./js/keyhandler.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
var switch_movement = <?php echo $display_type == 'horizontal' ? '0' : '1'; ?>;
var switch_movement = 0;
document.onkeydown = onKeyDownArrowsHandler;
// ]]>
</script>
@ -602,48 +588,27 @@ if (is_array($content_cells) && is_array($header_cells)) {
echo '<table id="table_columns" class="noclick">';
echo '<caption class="tblHeaders">' . __('Structure') . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_TABLE') . '</caption>';
if ($display_type == 'horizontal') {
?>
<tr>
<?php foreach ($header_cells as $header_val) { ?>
<?php foreach ($header_cells as $header_val) { ?>
<th><?php echo $header_val; ?></th>
<?php } ?>
<?php } ?>
</tr>
<?php
<?php
$odd_row = true;
foreach ($content_cells as $content_row) {
echo '<tr class="' . ($odd_row ? 'odd' : 'even') . '">';
$odd_row = ! $odd_row;
$odd_row = true;
foreach ($content_cells as $content_row) {
echo '<tr class="' . ($odd_row ? 'odd' : 'even') . '">';
$odd_row = ! $odd_row;
if (is_array($content_row)) {
foreach ($content_row as $content_row_val) {
?>
if (is_array($content_row)) {
foreach ($content_row as $content_row_val) {
?>
<td align="center"><?php echo $content_row_val; ?></td>
<?php
}
<?php
}
echo '</tr>';
}
} else {
$i = 0;
$odd_row = true;
foreach ($header_cells as $header_val) {
echo '<tr class="' . ($odd_row ? 'odd' : 'even') . '">';
$odd_row = ! $odd_row;
?>
<th><?php echo $header_val; ?></th>
<?php
foreach ($content_cells as $content_cell) {
if (isset($content_cell[$i]) && $content_cell[$i] != '') {
?>
<td><?php echo $content_cell[$i]; ?></td>
<?php
}
}
echo '</tr>';
$i++;
}
echo '</tr>';
}
?>
</table>

1025
po/af.po

File diff suppressed because it is too large Load Diff

1037
po/ar.po

File diff suppressed because it is too large Load Diff

1025
po/az.po

File diff suppressed because it is too large Load Diff

1025
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1025
po/bg.po

File diff suppressed because it is too large Load Diff

1025
po/bn.po

File diff suppressed because it is too large Load Diff

1037
po/br.po

File diff suppressed because it is too large Load Diff

1025
po/bs.po

File diff suppressed because it is too large Load Diff

1037
po/ca.po

File diff suppressed because it is too large Load Diff

1037
po/cs.po

File diff suppressed because it is too large Load Diff

1025
po/cy.po

File diff suppressed because it is too large Load Diff

1037
po/da.po

File diff suppressed because it is too large Load Diff

1037
po/de.po

File diff suppressed because it is too large Load Diff

1037
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1037
po/es.po

File diff suppressed because it is too large Load Diff

1025
po/et.po

File diff suppressed because it is too large Load Diff

1025
po/eu.po

File diff suppressed because it is too large Load Diff

1025
po/fa.po

File diff suppressed because it is too large Load Diff

1025
po/fi.po

File diff suppressed because it is too large Load Diff

1037
po/fr.po

File diff suppressed because it is too large Load Diff

1025
po/gl.po

File diff suppressed because it is too large Load Diff

1025
po/he.po

File diff suppressed because it is too large Load Diff

1037
po/hi.po

File diff suppressed because it is too large Load Diff

1025
po/hr.po

File diff suppressed because it is too large Load Diff

1037
po/hu.po

File diff suppressed because it is too large Load Diff

1025
po/id.po

File diff suppressed because it is too large Load Diff

1037
po/it.po

File diff suppressed because it is too large Load Diff

1037
po/ja.po

File diff suppressed because it is too large Load Diff

1025
po/ka.po

File diff suppressed because it is too large Load Diff

1025
po/ko.po

File diff suppressed because it is too large Load Diff

1037
po/lt.po

File diff suppressed because it is too large Load Diff

1025
po/lv.po

File diff suppressed because it is too large Load Diff

1025
po/mk.po

File diff suppressed because it is too large Load Diff

1025
po/ml.po

File diff suppressed because it is too large Load Diff

1025
po/mn.po

File diff suppressed because it is too large Load Diff

1025
po/ms.po

File diff suppressed because it is too large Load Diff

1037
po/nb.po

File diff suppressed because it is too large Load Diff

1037
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1028
po/pl.po

File diff suppressed because it is too large Load Diff

1025
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1025
po/ro.po

File diff suppressed because it is too large Load Diff

1037
po/ru.po

File diff suppressed because it is too large Load Diff

1025
po/si.po

File diff suppressed because it is too large Load Diff

1037
po/sk.po

File diff suppressed because it is too large Load Diff

1037
po/sl.po

File diff suppressed because it is too large Load Diff

1025
po/sq.po

File diff suppressed because it is too large Load Diff

1025
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1037
po/sv.po

File diff suppressed because it is too large Load Diff

1025
po/ta.po

File diff suppressed because it is too large Load Diff

1025
po/te.po

File diff suppressed because it is too large Load Diff

1025
po/th.po

File diff suppressed because it is too large Load Diff

1037
po/tr.po

File diff suppressed because it is too large Load Diff

1025
po/tt.po

File diff suppressed because it is too large Load Diff

1025
po/ug.po

File diff suppressed because it is too large Load Diff

1025
po/uk.po

File diff suppressed because it is too large Load Diff

1037
po/ur.po

File diff suppressed because it is too large Load Diff

1025
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,7 @@ if (isset($_REQUEST['submit_num_fields'])) {
} elseif (isset($_REQUEST['num_fields']) && intval($_REQUEST['num_fields']) > 0) {
$num_fields = (int) $_REQUEST['num_fields'];
} else {
$num_fields = 2;
$num_fields = 4;
}
/**