Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2018-06-08 00:59:03 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-06-08 00:59:03 +0300
commit86d4dac391f1beca18d4b0c3ced41aa07554bbd6 (patch)
tree421a44bf6a0a33089ad30a074a75a7bfd28c369c /src/controllers/SqleditController.php
parent211bd7f9b8f41bc86d6c09e1cd08b5982ab2ae24 (diff)
replace usage of "\n" with PHP_EOL
Diffstat (limited to 'src/controllers/SqleditController.php')
-rw-r--r--src/controllers/SqleditController.php80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/controllers/SqleditController.php b/src/controllers/SqleditController.php
index 143a1d18..ac0d968a 100644
--- a/src/controllers/SqleditController.php
+++ b/src/controllers/SqleditController.php
@@ -68,25 +68,25 @@ class SqleditController extends BaseController
$default_html = $this->printTabs($this->misc->getNavTabs('popup'), 'sql', false);
$default_html .= '<form action="'.\SUBFOLDER.'/src/views/sql" method="post" enctype="multipart/form-data" class="sqlform" id="sqlform" target="detail">';
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
$default_html .= $this->printConnection('sql', false);
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
$default_html .= ' <div class="searchpath">';
$default_html .= '<label>';
$default_html .= $this->misc->printHelp($this->lang['strsearchpath'], 'pg.schema.search_path', false);
$default_html .= ': <input type="text" name="search_path" id="search_path" size="45" value="'.$search_path.'" />';
- $default_html .= "</label>\n";
+ $default_html .= '</label>'.PHP_EOL;
- $default_html .= "</div>\n";
+ $default_html .= '</div>'.PHP_EOL;
$default_html .= '<div id="queryedition" style="padding:1%;width:98%;float:left;">';
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
$default_html .= '<textarea style="width:98%;" rows="10" cols="50" name="query" id="query" resizable="true">'.$sqlquery.'</textarea>';
- $default_html .= "\n";
- $default_html .= "</div>\n";
+ $default_html .= PHP_EOL;
+ $default_html .= '</div>'.PHP_EOL;
$default_html .= '<div class="sqledit_bottom_inputs" >';
@@ -96,10 +96,10 @@ class SqleditController extends BaseController
if (is_double($max_size) && $max_size > 0) {
$default_html .= '<p class="upload_sql_script">';
$default_html .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.$max_size.'" />';
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
$default_html .= '<label for="script">'.$this->lang['struploadscript'].'</label>';
$default_html .= '&nbsp;&nbsp; <input class="btn btn-small" id="script" name="script" type="file" /></p>';
- $default_html .= "</p>\n";
+ $default_html .= '</p>'.PHP_EOL;
}
}
@@ -107,20 +107,20 @@ class SqleditController extends BaseController
$checked = (isset($_REQUEST['paginate']) ? ' checked="checked"' : '');
$default_html .= '<p><input type="submit" class="btn btn-small" name="execute" accesskey="r" value="'.$this->lang['strexecute'].'" />';
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
$default_html .= '<input type="reset" class="btn btn-small" accesskey="q" value="'.$this->lang['strreset'].'" /></p>';
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
$default_html .= '<p>';
$default_html .= '<label for="paginate">';
$default_html .= '<input type="checkbox" id="paginate" name="paginate"'.$checked.' />&nbsp;'.$this->lang['strpaginate'].'&nbsp;';
- $default_html .= "</label>\n";
- $default_html .= "</p>\n";
+ $default_html .= '</label>'.PHP_EOL;
+ $default_html .= '</p>'.PHP_EOL;
- $default_html .= "</div>\n";
+ $default_html .= '</div>'.PHP_EOL;
$default_html .= '</form>';
- $default_html .= "\n";
+ $default_html .= PHP_EOL;
// Default focus
//$this->setFocus('forms[0].query');
@@ -140,37 +140,37 @@ class SqleditController extends BaseController
$default_html = $this->printTabs($this->misc->getNavTabs('popup'), 'find', false);
- $default_html .= "<form action=\"database\" method=\"post\" target=\"detail\">\n";
+ $default_html .= '<form action="database" method="post" target="detail">'.PHP_EOL;
$default_html .= $this->printConnection('find', false);
- $default_html .= '<p><input class="focusme" name="term" id="term" value="'.htmlspecialchars($_REQUEST['term'])."\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />\n";
+ $default_html .= '<p><input class="focusme" name="term" id="term" value="'.htmlspecialchars($_REQUEST['term'])."\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />".PHP_EOL;
// Output list of filters. This is complex due to all the 'has' and 'conf' feature possibilities
- $default_html .= "<select id='filter' name=\"filter\">\n";
- $default_html .= "\t<option value=\"\"".('' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strallobjects']}</option>\n";
- $default_html .= "\t<option value=\"SCHEMA\"".('SCHEMA' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strschemas']}</option>\n";
- $default_html .= "\t<option value=\"TABLE\"".('TABLE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strtables']}</option>\n";
- $default_html .= "\t<option value=\"VIEW\"".('VIEW' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strviews']}</option>\n";
- $default_html .= "\t<option value=\"SEQUENCE\"".('SEQUENCE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strsequences']}</option>\n";
- $default_html .= "\t<option value=\"COLUMN\"".('COLUMN' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strcolumns']}</option>\n";
- $default_html .= "\t<option value=\"RULE\"".('RULE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strrules']}</option>\n";
- $default_html .= "\t<option value=\"INDEX\"".('INDEX' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strindexes']}</option>\n";
- $default_html .= "\t<option value=\"TRIGGER\"".('TRIGGER' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strtriggers']}</option>\n";
- $default_html .= "\t<option value=\"CONSTRAINT\"".('CONSTRAINT' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strconstraints']}</option>\n";
- $default_html .= "\t<option value=\"FUNCTION\"".('FUNCTION' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strfunctions']}</option>\n";
- $default_html .= "\t<option value=\"DOMAIN\"".('DOMAIN' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strdomains']}</option>\n";
+ $default_html .= "<select id='filter' name=\"filter\">".PHP_EOL;
+ $default_html .= "\t<option value=\"\"".('' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strallobjects']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"SCHEMA\"".('SCHEMA' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strschemas']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"TABLE\"".('TABLE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strtables']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"VIEW\"".('VIEW' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strviews']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"SEQUENCE\"".('SEQUENCE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strsequences']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"COLUMN\"".('COLUMN' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strcolumns']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"RULE\"".('RULE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strrules']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"INDEX\"".('INDEX' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strindexes']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"TRIGGER\"".('TRIGGER' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strtriggers']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"CONSTRAINT\"".('CONSTRAINT' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strconstraints']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"FUNCTION\"".('FUNCTION' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strfunctions']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"DOMAIN\"".('DOMAIN' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strdomains']}</option>".PHP_EOL;
if ($this->conf['show_advanced']) {
- $default_html .= "\t<option value=\"AGGREGATE\"".('AGGREGATE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['straggregates']}</option>\n";
- $default_html .= "\t<option value=\"TYPE\"".('TYPE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strtypes']}</option>\n";
- $default_html .= "\t<option value=\"OPERATOR\"".('OPERATOR' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['stroperators']}</option>\n";
- $default_html .= "\t<option value=\"OPCLASS\"".('OPCLASS' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['stropclasses']}</option>\n";
- $default_html .= "\t<option value=\"CONVERSION\"".('CONVERSION' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strconversions']}</option>\n";
- $default_html .= "\t<option value=\"LANGUAGE\"".('LANGUAGE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strlanguages']}</option>\n";
+ $default_html .= "\t<option value=\"AGGREGATE\"".('AGGREGATE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['straggregates']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"TYPE\"".('TYPE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strtypes']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"OPERATOR\"".('OPERATOR' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['stroperators']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"OPCLASS\"".('OPCLASS' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['stropclasses']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"CONVERSION\"".('CONVERSION' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strconversions']}</option>".PHP_EOL;
+ $default_html .= "\t<option value=\"LANGUAGE\"".('LANGUAGE' == $_REQUEST['filter'] ? ' selected="selected" ' : '').">{$this->lang['strlanguages']}</option>".PHP_EOL;
}
- $default_html .= "</select>\n";
+ $default_html .= '</select>'.PHP_EOL;
- $default_html .= "<input type=\"submit\" value=\"{$this->lang['strfind']}\" />\n";
- $default_html .= "<input type=\"hidden\" name=\"action\" value=\"find\" /></p>\n";
- $default_html .= "</form>\n";
+ $default_html .= "<input type=\"submit\" value=\"{$this->lang['strfind']}\" />".PHP_EOL;
+ $default_html .= '<input type="hidden" name="action" value="find" /></p>'.PHP_EOL;
+ $default_html .= '</form>'.PHP_EOL;
// Default focus
$this->setFocus('forms[0].term');