[relations] Dropped WYSIWYG-PDF configuration variable.

This commit is contained in:
Michal Čihař
2010-08-23 11:05:12 +02:00
parent 8a011f77b8
commit 5a51858352
5 changed files with 40 additions and 46 deletions

View File

@@ -105,6 +105,7 @@ $Id$
- patch #3038312 [export] JSON export, - patch #3038312 [export] JSON export,
thanks to Hauke Henningsen - blubberkeks152 thanks to Hauke Henningsen - blubberkeks152
- rfe #2973909 Users preferences - rfe #2973909 Users preferences
- [relations] Dropped WYSIWYG-PDF configuration variable.
3.3.6.0 (not yet released) 3.3.6.0 (not yet released)
- bug #3033063 [core] Navi gets wrong db name - bug #3033063 [core] Navi gets wrong db name

View File

@@ -2138,32 +2138,6 @@ setfacl -d -m "g:www-data:rwx" tmp
any row counting. any row counting.
</dd> </dd>
<dt id="wysiwyg">
<span id="cfg_WYSIWYG-PDF">$cfg['WYSIWYG-PDF'] </span>boolean</dt>
<dd>Utilizes a WYSIWYG editing control to easily place elements of a
<abbr title="Portable Document Format">PDF</abbr>
page. By clicking on the button 'toggle scratchboard' on the page
where you edit x/y coordinates of those elements you can activate a
scratchboard where all your elements are placed. By clicking on an
element, you can move them around in the pre-defined area and the x/y
coordinates will get updated dynamically. Likewise, when entering a
new position directly into the input field, the new position in the
scratchboard changes after your cursor leaves the input field.<br />
You have to click on the 'OK'-button below the tables to save the new
positions. If you want to place a new element, first add it to the
table of elements and then you can drag the new element around.<br />
By changing the paper size and the orientation you can change the size
of the scratchboard as well. You can do so by just changing the
dropdown field below, and the scratchboard will resize automatically,
without interfering with the current placement of the elements.<br />
If ever an element gets out of range you can either enlarge the paper
size or click on the 'reset' button to place all elements below each
other.<br />
<b>NOTE:</b> You have to use a recent browser like IE6 or Mozilla to
get this control to work. The basic Drag&amp;Drop script functionality
was kindly borrowed from www.youngpup.net and is underlying so
specific license.</dd>
<dt id="cfg_NaturalOrder">$cfg['NaturalOrder'] boolean</dt> <dt id="cfg_NaturalOrder">$cfg['NaturalOrder'] boolean</dt>
<dd>Sorts database and table names according to natural order (for example, <dd>Sorts database and table names according to natural order (for example,
t1, t2, t10). Currently implemented in the left panel (Light mode) t1, t2, t10). Currently implemented in the left panel (Light mode)
@@ -4362,6 +4336,35 @@ chmod o+rwx tmp
<dd>phpMyAdmin with version</dd> <dd>phpMyAdmin with version</dd>
</dl> </dl>
<h4 id="wysiwyg">
<a href="#wysiwyg">6.28 How can I easily edit relational schema for export?</a></h4>
<p>
By clicking on the button 'toggle scratchboard' on the page
where you edit x/y coordinates of those elements you can activate a
scratchboard where all your elements are placed. By clicking on an
element, you can move them around in the pre-defined area and the x/y
coordinates will get updated dynamically. Likewise, when entering a
new position directly into the input field, the new position in the
scratchboard changes after your cursor leaves the input field.
</p>
<p>
You have to click on the 'OK'-button below the tables to save the new
positions. If you want to place a new element, first add it to the
table of elements and then you can drag the new element around.
</p>
<p>
By changing the paper size and the orientation you can change the size
of the scratchboard as well. You can do so by just changing the
dropdown field below, and the scratchboard will resize automatically,
without interfering with the current placement of the elements.
</p>
<p>
If ever an element gets out of range you can either enlarge the paper
size or click on the 'reset' button to place all elements below each
other.
<p>
<h3 id="faqproject">phpMyAdmin project</h3> <h3 id="faqproject">phpMyAdmin project</h3>
<h4 id="faq7_1"> <h4 id="faq7_1">

View File

@@ -1421,7 +1421,7 @@ function getElement(e,f){
} }
/** /**
* Refresh the WYSIWYG-PDF scratchboard after changes have been made * Refresh the WYSIWYG scratchboard after changes have been made
*/ */
function refreshDragOption(e) { function refreshDragOption(e) {
var elm = $('#' + e); var elm = $('#' + e);
@@ -1431,7 +1431,7 @@ function refreshDragOption(e) {
} }
/** /**
* Refresh/resize the WYSIWYG-PDF scratchboard * Refresh/resize the WYSIWYG scratchboard
*/ */
function refreshLayout() { function refreshLayout() {
var elm = $('#pdflayout') var elm = $('#pdflayout')
@@ -1453,7 +1453,7 @@ function refreshLayout() {
} }
/** /**
* Show/hide the WYSIWYG-PDF scratchboard * Show/hide the WYSIWYG scratchboard
*/ */
function ToggleDragDrop(e) { function ToggleDragDrop(e) {
var elm = $('#' + e); var elm = $('#' + e);

View File

@@ -2332,14 +2332,6 @@ $cfg['MaxExactCount'] = 20000;
*/ */
$cfg['MaxExactCountViews'] = 0; $cfg['MaxExactCountViews'] = 0;
/**
* Utilize DHTML/JS capabilities to allow WYSIWYG editing of
* the PDF page editor. Requires an IE6/Gecko based browser.
*
* @global boolean $cfg['WYSIWYG-PDF']
*/
$cfg['WYSIWYG-PDF'] = true;
/** /**
* Sort table and database in natural order * Sort table and database in natural order
* *

View File

@@ -224,15 +224,13 @@ class PMA_User_Schema
$array_sh_page[] = $temp_sh_page; $array_sh_page[] = $temp_sh_page;
} }
/* /*
* Display WYSIWYG-PDF parts? * Display WYSIWYG parts
*/ */
if ($cfg['WYSIWYG-PDF']) { if (!isset($_POST['with_field_names']) && !isset($_POST['showwysiwyg'])) {
if (!isset($_POST['with_field_names']) && !isset($_POST['showwysiwyg'])) { $with_field_names = TRUE;
$with_field_names = TRUE;
}
$this->_displayScratchboardTables($array_sh_page,$draginit,$reset_draginit);
} }
$this->_displayScratchboardTables($array_sh_page,$draginit,$reset_draginit);
?> ?>
<form method="post" action="schema_edit.php" name="edcoord"> <form method="post" action="schema_edit.php" name="edcoord">
@@ -280,10 +278,10 @@ class PMA_User_Schema
. "\n" . ' <input type="checkbox" name="c_table_' . $i . '[delete]" value="y" />' . __('Delete'); . "\n" . ' <input type="checkbox" name="c_table_' . $i . '[delete]" value="y" />' . __('Delete');
echo "\n" . ' </td>'; echo "\n" . ' </td>';
echo "\n" . ' <td>' echo "\n" . ' <td>'
. "\n" . ' <input type="text" ' . ($cfg['WYSIWYG-PDF'] ? 'onchange="dragPlace(' . $i . ', \'x\', this.value)"' : '') . ' name="c_table_' . $i . '[x]" value="' . $sh_page['x'] . '" />'; . "\n" . ' <input type="text" onchange="dragPlace(' . $i . ', \'x\', this.value)" name="c_table_' . $i . '[x]" value="' . $sh_page['x'] . '" />';
echo "\n" . ' </td>'; echo "\n" . ' </td>';
echo "\n" . ' <td>' echo "\n" . ' <td>'
. "\n" . ' <input type="text" ' . ($cfg['WYSIWYG-PDF'] ? 'onchange="dragPlace(' . $i . ', \'y\', this.value)"' : '') . ' name="c_table_' . $i . '[y]" value="' . $sh_page['y'] . '" />'; . "\n" . ' <input type="text" onchange="dragPlace(' . $i . ', \'y\', this.value)" name="c_table_' . $i . '[y]" value="' . $sh_page['y'] . '" />';
echo "\n" . ' </td>'; echo "\n" . ' </td>';
echo "\n" . ' </tr>'; echo "\n" . ' </tr>';
$i++; $i++;
@@ -319,7 +317,7 @@ class PMA_User_Schema
echo "\n" . ' </table>' . "\n"; echo "\n" . ' </table>' . "\n";
echo "\n" . ' <input type="hidden" name="c_table_rows" value="' . ($i + 1) . '" />'; echo "\n" . ' <input type="hidden" name="c_table_rows" value="' . ($i + 1) . '" />';
echo ($cfg['WYSIWYG-PDF'] ? "\n" . ' <input type="hidden" id="showwysiwyg" name="showwysiwyg" value="' . ((isset($showwysiwyg) && $showwysiwyg == '1') ? '1' : '0') . '" />' : ''); echo "\n" . ' <input type="hidden" id="showwysiwyg" name="showwysiwyg" value="' . ((isset($showwysiwyg) && $showwysiwyg == '1') ? '1' : '0') . '" />';
echo "\n" . ' <input type="checkbox" name="with_field_names" ' . (isset($with_field_names) ? 'checked="checked"' : ''). ' />' . __('Column names') . '<br />'; echo "\n" . ' <input type="checkbox" name="with_field_names" ' . (isset($with_field_names) ? 'checked="checked"' : ''). ' />' . __('Column names') . '<br />';
echo "\n" . ' <input type="submit" value="' . __('Save') . '" />'; echo "\n" . ' <input type="submit" value="' . __('Save') . '" />';
echo "\n" . '</form>' . "\n\n"; echo "\n" . '</form>' . "\n\n";