Typo "choosen" -> "chosen"

This commit is contained in:
Marc Delisle
2011-01-12 08:40:54 -05:00
parent 89552c74c4
commit cc9f99d303
4 changed files with 22 additions and 22 deletions

View File

@@ -182,7 +182,7 @@ class PMA_Export_Relation_Schema
/** /**
* Displays an error message * Displays an error message
* *
* @param integer pageNumber ID of the page choosen * @param integer pageNumber ID of the chosen page
* @param string type Schema Type * @param string type Schema Type
* @param string error_message the error mesage * @param string error_message the error mesage
* @global array the PMA configuration array * @global array the PMA configuration array

View File

@@ -18,7 +18,7 @@
class PMA_User_Schema class PMA_User_Schema
{ {
public $choosenPage; public $chosenPage;
public $autoLayoutForeign; public $autoLayoutForeign;
public $autoLayoutInternal; public $autoLayoutInternal;
public $pageNumber; public $pageNumber;
@@ -47,11 +47,11 @@ class PMA_User_Schema
if (isset($this->action)) { if (isset($this->action)) {
switch ($this->action) { switch ($this->action) {
case 'selectpage': case 'selectpage':
$this->choosenPage = $_REQUEST['chpage']; $this->chosenPage = $_REQUEST['chpage'];
if ($action_choose=="1") { if ($action_choose=="1") {
$this->deleteCoordinates($db, $cfgRelation, $this->choosenPage, $query_default_option); $this->deleteCoordinates($db, $cfgRelation, $this->chosenPage, $query_default_option);
$this->deletePages($db, $cfgRelation, $this->choosenPage, $query_default_option); $this->deletePages($db, $cfgRelation, $this->chosenPage, $query_default_option);
$this->choosenPage = 0; $this->chosenPage = 0;
} }
break; break;
case 'createpage': case 'createpage':
@@ -61,12 +61,12 @@ class PMA_User_Schema
$this->processRelations($db, $this->pageNumber,$cfgRelation,$query_default_option); $this->processRelations($db, $this->pageNumber,$cfgRelation,$query_default_option);
break; break;
case 'edcoord': case 'edcoord':
$this->choosenPage = $_POST['chpage']; $this->chosenPage = $_POST['chpage'];
$this->c_table_rows = $_POST['c_table_rows']; $this->c_table_rows = $_POST['c_table_rows'];
$this->_editCoordinates($db, $cfgRelation,$query_default_option); $this->_editCoordinates($db, $cfgRelation,$query_default_option);
break; break;
case 'deleteCrap': case 'deleteCrap':
$this->_deleteTableRows($delrow,$cfgRelation,$db,$this->choosenPage); $this->_deleteTableRows($delrow,$cfgRelation,$db,$this->chosenPage);
break; break;
case 'process_export': case 'process_export':
$this->_processExportSchema(); $this->_processExportSchema();
@@ -155,7 +155,7 @@ class PMA_User_Schema
while ($curr_page = PMA_DBI_fetch_assoc($page_rs)) { while ($curr_page = PMA_DBI_fetch_assoc($page_rs)) {
echo "\n" . ' ' echo "\n" . ' '
. '<option value="' . $curr_page['page_nr'] . '"'; . '<option value="' . $curr_page['page_nr'] . '"';
if (isset($this->choosenPage) && $this->choosenPage == $curr_page['page_nr']) { if (isset($this->chosenPage) && $this->chosenPage == $curr_page['page_nr']) {
echo ' selected="selected"'; echo ' selected="selected"';
} }
echo '>' . $curr_page['page_nr'] . ': ' . htmlspecialchars($curr_page['page_descr']) . '</option>'; echo '>' . $curr_page['page_nr'] . ': ' . htmlspecialchars($curr_page['page_descr']) . '</option>';
@@ -205,14 +205,14 @@ class PMA_User_Schema
* show the tables involved * show the tables involved
*/ */
if (isset($this->choosenPage) && $this->choosenPage > 0) { if (isset($this->chosenPage) && $this->chosenPage > 0) {
echo "\n"; echo "\n";
?> ?>
<h2><?php echo __('Select Tables') ;?></h2> <h2><?php echo __('Select Tables') ;?></h2>
<?php <?php
$page_query = 'SELECT * FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) $page_query = 'SELECT * FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->choosenPage) . '\''; . ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->chosenPage) . '\'';
$page_rs = PMA_query_as_controluser($page_query, FALSE, $query_default_option); $page_rs = PMA_query_as_controluser($page_query, FALSE, $query_default_option);
$array_sh_page = array(); $array_sh_page = array();
while ($temp_sh_page = @PMA_DBI_fetch_assoc($page_rs)) { while ($temp_sh_page = @PMA_DBI_fetch_assoc($page_rs)) {
@@ -230,7 +230,7 @@ class PMA_User_Schema
<form method="post" action="schema_edit.php" name="edcoord"> <form method="post" action="schema_edit.php" name="edcoord">
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?> <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="chpage" value="<?php echo htmlspecialchars($this->choosenPage); ?>" /> <input type="hidden" name="chpage" value="<?php echo htmlspecialchars($this->chosenPage); ?>" />
<input type="hidden" name="do" value="edcoord" /> <input type="hidden" name="do" value="edcoord" />
<table border="0"> <table border="0">
<tr> <tr>
@@ -318,7 +318,7 @@ class PMA_User_Schema
echo "\n" . '</form>' . "\n\n"; echo "\n" . '</form>' . "\n\n";
} // end if } // end if
$this->_deleteTables($db, $this->choosenPage, isset($tabExist)); $this->_deleteTables($db, $this->chosenPage, isset($tabExist));
} }
/** /**
@@ -369,7 +369,7 @@ class PMA_User_Schema
?> ?>
</select><br /> </select><br />
<?php } else { ?> <?php } else { ?>
<input type="hidden" name="pdf_page_number" value="<?php echo htmlspecialchars($this->choosenPage); ?>" /> <input type="hidden" name="pdf_page_number" value="<?php echo htmlspecialchars($this->chosenPage); ?>" />
<?php } ?> <?php } ?>
<input type="hidden" name="do" value="process_export" /> <input type="hidden" name="do" value="process_export" />
<input type="hidden" name="chpage" value="<?php echo $chpage; ?>" /> <input type="hidden" name="chpage" value="<?php echo $chpage; ?>" />
@@ -708,7 +708,7 @@ class PMA_User_Schema
$this->addRelationCoordinates($all_tables,$pageNumber,$db, $cfgRelation,$query_default_option); $this->addRelationCoordinates($all_tables,$pageNumber,$db, $cfgRelation,$query_default_option);
} }
$this->choosenPage = $pageNumber; $this->chosenPage = $pageNumber;
} }
/** /**
@@ -793,7 +793,7 @@ class PMA_User_Schema
$test_query = 'SELECT * FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) $test_query = 'SELECT * FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($arrvalue['name']) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($arrvalue['name']) . '\''
. ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->choosenPage) . '\''; . ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->chosenPage) . '\'';
$test_rs = PMA_query_as_controluser($test_query, FALSE, $query_default_option); $test_rs = PMA_query_as_controluser($test_query, FALSE, $query_default_option);
//echo $test_query; //echo $test_query;
if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) { if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) {
@@ -801,18 +801,18 @@ class PMA_User_Schema
$ch_query = 'DELETE FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) $ch_query = 'DELETE FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($arrvalue['name']) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($arrvalue['name']) . '\''
. ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->choosenPage) . '\''; . ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->chosenPage) . '\'';
} else { } else {
$ch_query = 'UPDATE ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) . ' ' $ch_query = 'UPDATE ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) . ' '
. 'SET x = ' . $arrvalue['x'] . ', y= ' . $arrvalue['y'] . 'SET x = ' . $arrvalue['x'] . ', y= ' . $arrvalue['y']
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($arrvalue['name']) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($arrvalue['name']) . '\''
. ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->choosenPage) . '\''; . ' AND pdf_page_number = \'' . PMA_sqlAddslashes($this->chosenPage) . '\'';
} }
} else { } else {
$ch_query = 'INSERT INTO ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) . ' ' $ch_query = 'INSERT INTO ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['table_coords']) . ' '
. '(db_name, table_name, pdf_page_number, x, y) ' . '(db_name, table_name, pdf_page_number, x, y) '
. 'VALUES (\'' . PMA_sqlAddslashes($db) . '\', \'' . PMA_sqlAddslashes($arrvalue['name']) . '\', \'' . PMA_sqlAddslashes($this->choosenPage) . '\',' . $arrvalue['x'] . ',' . $arrvalue['y'] . ')'; . 'VALUES (\'' . PMA_sqlAddslashes($db) . '\', \'' . PMA_sqlAddslashes($arrvalue['name']) . '\', \'' . PMA_sqlAddslashes($this->chosenPage) . '\',' . $arrvalue['x'] . ',' . $arrvalue['y'] . ')';
} }
//echo $ch_query; //echo $ch_query;
PMA_query_as_controluser($ch_query, FALSE, $query_default_option); PMA_query_as_controluser($ch_query, FALSE, $query_default_option);

View File

@@ -452,7 +452,7 @@ if (! PMA_langCheck()) {
. __FILE__ . '#' . $line . ', check hard coded fall back language.', . __FILE__ . '#' . $line . ', check hard coded fall back language.',
E_USER_WARNING); E_USER_WARNING);
// stop execution // stop execution
// and tell the user that his choosen language is invalid // and tell the user that his chosen language is invalid
PMA_fatalError('Could not load any language, please check your language settings and folder.'); PMA_fatalError('Could not load any language, please check your language settings and folder.');
} }
} }

View File

@@ -111,8 +111,8 @@ if ($cfgRelation['pdfwork']) {
if (isset($_REQUEST['do']) if (isset($_REQUEST['do'])
&& ($_REQUEST['do'] == 'edcoord' && ($_REQUEST['do'] == 'edcoord'
|| ($_REQUEST['do']== 'selectpage' && isset($user_schema->choosenPage) && $user_schema->choosenPage != 0) || ($_REQUEST['do']== 'selectpage' && isset($user_schema->chosenPage) && $user_schema->chosenPage != 0)
|| ($_REQUEST['do'] == 'createpage' && isset($user_schema->choosenPage) && $user_schema->choosenPage != 0))) { || ($_REQUEST['do'] == 'createpage' && isset($user_schema->chosenPage) && $user_schema->chosenPage != 0))) {
/** /**
* show Export schema generation options * show Export schema generation options