@@ -41,20 +41,20 @@ discard block |
||
| 41 | 41 | $scripts = ''; |
| 42 | 42 | /* normal flow */ |
| 43 | 43 | if ($action == 'locks' || $action == 'processes') { |
| 44 | - $scripts .= '<script src="'.SUBFOLDER.'/js/database.js" type="text/javascript"></script>'; |
|
| 44 | + $scripts .= '<script src="' . SUBFOLDER . '/js/database.js" type="text/javascript"></script>'; |
|
| 45 | 45 | |
| 46 | 46 | $refreshTime = $conf['ajax_refresh'] * 1000; |
| 47 | 47 | |
| 48 | 48 | $scripts .= "<script type=\"text/javascript\">\n"; |
| 49 | 49 | $scripts .= "var Database = {\n"; |
| 50 | 50 | $scripts .= "ajax_time_refresh: {$refreshTime},\n"; |
| 51 | - $scripts .= "str_start: {text:'{$lang['strstart']}',icon: '".$misc->icon('Execute')."'},\n"; |
|
| 52 | - $scripts .= "str_stop: {text:'{$lang['strstop']}',icon: '".$misc->icon('Stop')."'},\n"; |
|
| 53 | - $scripts .= "load_icon: '".$misc->icon('Loading')."',\n"; |
|
| 51 | + $scripts .= "str_start: {text:'{$lang['strstart']}',icon: '" . $misc->icon('Execute') . "'},\n"; |
|
| 52 | + $scripts .= "str_stop: {text:'{$lang['strstop']}',icon: '" . $misc->icon('Stop') . "'},\n"; |
|
| 53 | + $scripts .= "load_icon: '" . $misc->icon('Loading') . "',\n"; |
|
| 54 | 54 | $scripts .= "server:'{$_REQUEST['server']}',\n"; |
| 55 | 55 | $scripts .= "dbname:'{$_REQUEST['database']}',\n"; |
| 56 | 56 | $scripts .= "action:'refresh_{$action}',\n"; |
| 57 | - $scripts .= "errmsg: '".str_replace("'", "\'", $lang['strconnectionfail'])."'\n"; |
|
| 57 | + $scripts .= "errmsg: '" . str_replace("'", "\'", $lang['strconnectionfail']) . "'\n"; |
|
| 58 | 58 | $scripts .= "};\n"; |
| 59 | 59 | $scripts .= "</script>\n"; |
| 60 | 60 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $this->printTabs('database', 'find'); |
| 176 | 176 | $this->printMsg($msg); |
| 177 | 177 | |
| 178 | - echo '<form action="'.SUBFOLDER."/src/views/database.php\" method=\"post\">\n"; |
|
| 178 | + echo '<form action="' . SUBFOLDER . "/src/views/database.php\" method=\"post\">\n"; |
|
| 179 | 179 | echo '<p><input name="term" value="', htmlspecialchars($_REQUEST['term']), |
| 180 | 180 | "\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />\n"; |
| 181 | 181 | // Output list of filters. This is complex due to all the 'has' and 'conf' feature possibilities |
@@ -296,18 +296,18 @@ discard block |
||
| 296 | 296 | |
| 297 | 297 | switch ($curr) { |
| 298 | 298 | case 'SCHEMA': |
| 299 | - echo '<li><a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", $misc->printVal($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
|
| 299 | + echo '<li><a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", $misc->printVal($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
|
| 300 | 300 | break; |
| 301 | 301 | case 'TABLE': |
| 302 | 302 | echo '<li>'; |
| 303 | 303 | echo "<a href=\"tables.php?subject=schema&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
| 304 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
|
| 304 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
|
| 305 | 305 | urlencode($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 306 | 306 | break; |
| 307 | 307 | case 'VIEW': |
| 308 | 308 | echo '<li>'; |
| 309 | 309 | echo "<a href=\"views.php?subject=schema&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
| 310 | - echo '<a href="'.SUBFOLDER."/redirect/view?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&view=', |
|
| 310 | + echo '<a href="' . SUBFOLDER . "/redirect/view?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&view=', |
|
| 311 | 311 | urlencode($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 312 | 312 | break; |
| 313 | 313 | case 'SEQUENCE': |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | break; |
| 319 | 319 | case 'COLUMNTABLE': |
| 320 | 320 | echo '<li>'; |
| 321 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 321 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 322 | 322 | echo "<a href=\"tblproperties.php?subject=table&{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
| 323 | 323 | echo "<a href=\"colproperties.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
| 324 | 324 | urlencode($rs->fields['relname']), '&column=', urlencode($rs->fields['name']), '">', |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | break; |
| 327 | 327 | case 'COLUMNVIEW': |
| 328 | 328 | echo '<li>'; |
| 329 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 329 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 330 | 330 | echo "<a href=\"viewproperties.php?subject=view&{$misc->href}&view=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
| 331 | 331 | echo "<a href=\"colproperties.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&view=', |
| 332 | 332 | urlencode($rs->fields['relname']), '&column=', urlencode($rs->fields['name']), '">', |
@@ -334,14 +334,14 @@ discard block |
||
| 334 | 334 | break; |
| 335 | 335 | case 'INDEX': |
| 336 | 336 | echo '<li>'; |
| 337 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 338 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 337 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 338 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 339 | 339 | echo "<a href=\"indexes.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 340 | 340 | break; |
| 341 | 341 | case 'CONSTRAINTTABLE': |
| 342 | 342 | echo '<li>'; |
| 343 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 344 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 343 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 344 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 345 | 345 | echo "<a href=\"constraints.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
| 346 | 346 | urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 347 | 347 | break; |
@@ -353,22 +353,22 @@ discard block |
||
| 353 | 353 | break; |
| 354 | 354 | case 'TRIGGER': |
| 355 | 355 | echo '<li>'; |
| 356 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 357 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 356 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 357 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 358 | 358 | echo "<a href=\"triggers.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', urlencode($rs->fields['relname']), '">', |
| 359 | 359 | $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 360 | 360 | break; |
| 361 | 361 | case 'RULETABLE': |
| 362 | 362 | echo '<li>'; |
| 363 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 364 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 363 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 364 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 365 | 365 | echo "<a href=\"rules.php?subject=table&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&reltype=table&table=', |
| 366 | 366 | urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 367 | 367 | break; |
| 368 | 368 | case 'RULEVIEW': |
| 369 | 369 | echo '<li>'; |
| 370 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 371 | - echo '<a href="'.SUBFOLDER."/redirect/view?{$misc->href}&view=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 370 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 371 | + echo '<a href="' . SUBFOLDER . "/redirect/view?{$misc->href}&view=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 372 | 372 | echo "<a href=\"rules.php?subject=view&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&reltype=view&view=', |
| 373 | 373 | urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 374 | 374 | break; |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | break; |
| 415 | 415 | case 'OPCLASS': |
| 416 | 416 | echo '<li>'; |
| 417 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 417 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 418 | 418 | echo "<a href=\"opclasses.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', |
| 419 | 419 | $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 420 | 420 | break; |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | $this->printTabs('database', 'export'); |
| 445 | 445 | $this->printMsg($msg); |
| 446 | 446 | |
| 447 | - echo '<form action="'.SUBFOLDER."/src/views/dbexport.php\" method=\"post\">\n"; |
|
| 447 | + echo '<form action="' . SUBFOLDER . "/src/views/dbexport.php\" method=\"post\">\n"; |
|
| 448 | 448 | echo "<table>\n"; |
| 449 | 449 | echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n"; |
| 450 | 450 | // Data only |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | $this->printMsg($msg); |
| 534 | 534 | |
| 535 | 535 | if (strlen($msg) === 0) { |
| 536 | - echo '<br /><a id="control" href=""><img src="'.$misc->icon('Refresh')."\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 536 | + echo '<br /><a id="control" href=""><img src="' . $misc->icon('Refresh') . "\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | echo '<div id="data_block">'; |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | $this->printTrail('database'); |
| 735 | 735 | $this->printTabs('database', 'locks'); |
| 736 | 736 | |
| 737 | - echo '<br /><a id="control" href=""><img src="'.$misc->icon('Refresh')."\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 737 | + echo '<br /><a id="control" href=""><img src="' . $misc->icon('Refresh') . "\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 738 | 738 | |
| 739 | 739 | echo '<div id="data_block">'; |
| 740 | 740 | $this->currentLocks(); |
@@ -759,7 +759,7 @@ discard block |
||
| 759 | 759 | $this->printTrail('database'); |
| 760 | 760 | $this->printTabs('database', 'sql'); |
| 761 | 761 | echo "<p>{$lang['strentersql']}</p>\n"; |
| 762 | - echo '<form action="'.SUBFOLDER.'/src/views/sql.php" method="post" enctype="multipart/form-data" id="sqlform">'."\n"; |
|
| 762 | + echo '<form action="' . SUBFOLDER . '/src/views/sql.php" method="post" enctype="multipart/form-data" id="sqlform">' . "\n"; |
|
| 763 | 763 | echo "<p>{$lang['strsql']}<br />\n"; |
| 764 | 764 | echo '<textarea style="width:95%;" rows="15" cols="50" name="query" id="query">', |
| 765 | 765 | htmlspecialchars($_SESSION['sqlquery']), "</textarea></p>\n"; |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | $this->printTitle($lang['strproperties'], 'pg.type'); |
| 246 | 246 | $this->printMsg($msg); |
| 247 | 247 | |
| 248 | - $attPre = function (&$rowdata) use ($data) { |
|
| 248 | + $attPre = function(&$rowdata) use ($data) { |
|
| 249 | 249 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 250 | 250 | }; |
| 251 | 251 | |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | echo '<p>', sprintf($lang['strconfdroptype'], $misc->printVal($_REQUEST['type'])), "</p>\n"; |
| 340 | 340 | |
| 341 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 341 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 342 | 342 | echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n"; |
| 343 | 343 | echo "<p><input type=\"hidden\" name=\"action\" value=\"drop\" />\n"; |
| 344 | 344 | echo '<input type="hidden" name="type" value="', htmlspecialchars($_REQUEST['type']), "\" />\n"; |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | $this->printTitle($lang['strcreatecomptype'], 'pg.type.create'); |
| 389 | 389 | $this->printMsg($msg); |
| 390 | 390 | |
| 391 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 391 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 392 | 392 | echo "<table>\n"; |
| 393 | 393 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 394 | 394 | echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | $this->printTitle($lang['strcreatecomptype'], 'pg.type.create'); |
| 432 | 432 | $this->printMsg($msg); |
| 433 | 433 | |
| 434 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 434 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 435 | 435 | |
| 436 | 436 | // Output table header |
| 437 | 437 | echo "<table>\n"; |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | $this->printTitle($lang['strcreateenumtype'], 'pg.type.create'); |
| 560 | 560 | $this->printMsg($msg); |
| 561 | 561 | |
| 562 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 562 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 563 | 563 | echo "<table>\n"; |
| 564 | 564 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 565 | 565 | echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | $this->printTitle($lang['strcreateenumtype'], 'pg.type.create'); |
| 601 | 601 | $this->printMsg($msg); |
| 602 | 602 | |
| 603 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 603 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 604 | 604 | |
| 605 | 605 | // Output table header |
| 606 | 606 | echo "<table>\n"; |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | $this->printTitle($lang['strcreatetype'], 'pg.type.create'); |
| 719 | 719 | $this->printMsg($msg); |
| 720 | 720 | |
| 721 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 721 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 722 | 722 | echo "<table>\n"; |
| 723 | 723 | echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 724 | 724 | echo "<td class=\"data1\"><input name=\"typname\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | $funcs->moveNext(); |
| 743 | 743 | } |
| 744 | 744 | echo "</select></td></tr>\n"; |
| 745 | - echo '<tr><th class="data left'.(version_compare($data->major_version, '7.4', '<') ? ' required' : '')."\">{$lang['strlength']}</th>\n"; |
|
| 745 | + echo '<tr><th class="data left' . (version_compare($data->major_version, '7.4', '<') ? ' required' : '') . "\">{$lang['strlength']}</th>\n"; |
|
| 746 | 746 | echo '<td class="data1"><input name="typlen" size="8" value="', |
| 747 | 747 | htmlspecialchars($_POST['typlen']), '" /></td></tr>'; |
| 748 | 748 | echo "<tr><th class=\"data left\">{$lang['strdefault']}</th>\n"; |
@@ -35,47 +35,47 @@ |
||
| 35 | 35 | |
| 36 | 36 | $intro_html .= $this->printTabs('root', 'intro', false); |
| 37 | 37 | |
| 38 | - $intro_html .= '<h1>'.$this->appName.' '.$this->appVersion.' (PHP '.PHP_VERSION.')</h1>'; |
|
| 38 | + $intro_html .= '<h1>' . $this->appName . ' ' . $this->appVersion . ' (PHP ' . PHP_VERSION . ')</h1>'; |
|
| 39 | 39 | |
| 40 | 40 | $intro_html .= '<form method="get" action="intro.php">'; |
| 41 | 41 | $intro_html .= '<table>'; |
| 42 | 42 | $intro_html .= '<tr class="data1">'; |
| 43 | - $intro_html .= '<th class="data">'.$this->lang['strlanguage'].'</th>'; |
|
| 43 | + $intro_html .= '<th class="data">' . $this->lang['strlanguage'] . '</th>'; |
|
| 44 | 44 | $intro_html .= '<td>'; |
| 45 | 45 | $intro_html .= '<select name="language" onchange="this.form.submit()">'; |
| 46 | 46 | |
| 47 | 47 | $this->language = isset($_SESSION['webdbLanguage']) ? $_SESSION['webdbLanguage'] : 'english'; |
| 48 | 48 | foreach ($this->appLangFiles as $k => $v) { |
| 49 | 49 | $selected = ($k == $this->language) ? ' selected="selected"' : ''; |
| 50 | - $intro_html .= "\t<option value=\"{$k}\"".$selected.">{$v}</option>\n"; |
|
| 50 | + $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n"; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | $intro_html .= '</select>'; |
| 54 | 54 | $intro_html .= '</td>'; |
| 55 | 55 | $intro_html .= '</tr>'; |
| 56 | 56 | $intro_html .= '<tr class="data2">'; |
| 57 | - $intro_html .= '<th class="data">'.$this->lang['strtheme'].'</th>'; |
|
| 57 | + $intro_html .= '<th class="data">' . $this->lang['strtheme'] . '</th>'; |
|
| 58 | 58 | $intro_html .= '<td>'; |
| 59 | 59 | $intro_html .= '<select name="theme" onchange="this.form.submit()">'; |
| 60 | 60 | |
| 61 | 61 | foreach ($this->appThemes as $k => $v) { |
| 62 | 62 | $selected = ($k == $this->conf['theme']) ? ' selected="selected"' : ''; |
| 63 | - $intro_html .= "\t<option value=\"{$k}\"".$selected.">{$v}</option>\n"; |
|
| 63 | + $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n"; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | $intro_html .= '</select>'; |
| 67 | 67 | $intro_html .= '</td>'; |
| 68 | 68 | $intro_html .= '</tr>'; |
| 69 | 69 | $intro_html .= '</table>'; |
| 70 | - $intro_html .= '<noscript><p><input type="submit" value="'.$this->lang['stralter'].'" /></p></noscript>'; |
|
| 70 | + $intro_html .= '<noscript><p><input type="submit" value="' . $this->lang['stralter'] . '" /></p></noscript>'; |
|
| 71 | 71 | $intro_html .= '</form>'; |
| 72 | 72 | |
| 73 | - $intro_html .= '<p>'.$this->lang['strintro'].'</p>'; |
|
| 73 | + $intro_html .= '<p>' . $this->lang['strintro'] . '</p>'; |
|
| 74 | 74 | |
| 75 | 75 | $intro_html .= '<ul class="intro">'; |
| 76 | - $intro_html .= ' <li><a href="https://github.com/HuasoFoundries/phpPgAdmin6">'.$this->lang['strppahome'].'</a></li>'; |
|
| 77 | - $intro_html .= '<li><a href="'.$this->lang['strpgsqlhome_url'].'">'.$this->lang['strpgsqlhome'].'</a></li>'; |
|
| 78 | - $intro_html .= '<li><a href="https://github.com/HuasoFoundries/phpPgAdmin6/issues">'.$this->lang['strreportbug'].'</a></li>'; |
|
| 76 | + $intro_html .= ' <li><a href="https://github.com/HuasoFoundries/phpPgAdmin6">' . $this->lang['strppahome'] . '</a></li>'; |
|
| 77 | + $intro_html .= '<li><a href="' . $this->lang['strpgsqlhome_url'] . '">' . $this->lang['strpgsqlhome'] . '</a></li>'; |
|
| 78 | + $intro_html .= '<li><a href="https://github.com/HuasoFoundries/phpPgAdmin6/issues">' . $this->lang['strreportbug'] . '</a></li>'; |
|
| 79 | 79 | //$intro_html .= '<li><a href="' . $this->lang['strviewfaq_url'] . '">' . $this->lang['strviewfaq'] . '</a></li>'; |
| 80 | 80 | $intro_html .= '</ul>'; |
| 81 | 81 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | $action = $this->action; |
| 21 | 21 | |
| 22 | - $this->printHeader($lang['strtables'].' - '.$_REQUEST['table'].' - '.$lang['strinfo']); |
|
| 22 | + $this->printHeader($lang['strtables'] . ' - ' . $_REQUEST['table'] . ' - ' . $lang['strinfo']); |
|
| 23 | 23 | $this->printBody(); |
| 24 | 24 | |
| 25 | 25 | switch ($action) { |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | set_time_limit(0); |
| 27 | 27 | |
| 28 | - $scripts = '<script src="'.SUBFOLDER.'/js/display.js" type="text/javascript"></script>'; |
|
| 28 | + $scripts = '<script src="' . SUBFOLDER . '/js/display.js" type="text/javascript"></script>'; |
|
| 29 | 29 | |
| 30 | - $scripts .= '<script type="text/javascript">'."\n"; |
|
| 30 | + $scripts .= '<script type="text/javascript">' . "\n"; |
|
| 31 | 31 | $scripts .= "var Display = {\n"; |
| 32 | - $scripts .= "errmsg: '".str_replace("'", "\'", $lang['strconnectionfail'])."'\n"; |
|
| 32 | + $scripts .= "errmsg: '" . str_replace("'", "\'", $lang['strconnectionfail']) . "'\n"; |
|
| 33 | 33 | $scripts .= "};\n"; |
| 34 | - $scripts .= '</script>'."\n"; |
|
| 34 | + $scripts .= '</script>' . "\n"; |
|
| 35 | 35 | |
| 36 | 36 | $footer_template = 'footer.twig'; |
| 37 | 37 | $header_template = 'header.twig'; |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | // Set the title based on the subject of the request |
| 76 | 76 | if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']])) { |
| 77 | 77 | if ($_REQUEST['subject'] == 'table') { |
| 78 | - $this->printHeader($lang['strtables'].': '.$_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 78 | + $this->printHeader($lang['strtables'] . ': ' . $_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 79 | 79 | } elseif ($_REQUEST['subject'] == 'view') { |
| 80 | - $this->printHeader($lang['strviews'].': '.$_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 80 | + $this->printHeader($lang['strviews'] . ': ' . $_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 81 | 81 | } elseif ($_REQUEST['subject'] == 'matview') { |
| 82 | - $this->printHeader('M'.$lang['strviews'].': '.$_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 82 | + $this->printHeader('M' . $lang['strviews'] . ': ' . $_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 83 | 83 | } elseif ($_REQUEST['subject'] == 'column') { |
| 84 | - $this->printHeader($lang['strcolumn'].': '.$_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 84 | + $this->printHeader($lang['strcolumn'] . ': ' . $_REQUEST[$_REQUEST['subject']], $scripts, true, $header_template); |
|
| 85 | 85 | } |
| 86 | 86 | } else { |
| 87 | 87 | $this->printHeader($lang['strqueryresults'], $scripts, true, $header_template); |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $this->prtrace($query); |
| 268 | 268 | //die(htmlspecialchars($query)); |
| 269 | 269 | |
| 270 | - echo '<form method="post" id="sqlform" action="'.$_SERVER['REQUEST_URI'].'">'; |
|
| 270 | + echo '<form method="post" id="sqlform" action="' . $_SERVER['REQUEST_URI'] . '">'; |
|
| 271 | 271 | echo '<textarea width="90%" name="query" id="query" rows="5" cols="100" resizable="true">'; |
| 272 | 272 | |
| 273 | 273 | echo htmlspecialchars($query); |
@@ -340,19 +340,19 @@ discard block |
||
| 340 | 340 | // Display edit and delete actions if we have a key |
| 341 | 341 | $colspan = count($buttons); |
| 342 | 342 | if ($colspan > 0 and count($key) > 0) { |
| 343 | - echo "<th colspan=\"{$colspan}\" class=\"data\">{$lang['stractions']}</th>"."\n"; |
|
| 343 | + echo "<th colspan=\"{$colspan}\" class=\"data\">{$lang['stractions']}</th>" . "\n"; |
|
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | /* we show OIDs only if we are in TABLE or SELECT type browsing */ |
| 347 | 347 | $this->printTableHeaderCells($rs, $_gets, isset($object)); |
| 348 | 348 | |
| 349 | - echo '</tr>'."\n"; |
|
| 349 | + echo '</tr>' . "\n"; |
|
| 350 | 350 | |
| 351 | 351 | $i = 0; |
| 352 | 352 | reset($rs->fields); |
| 353 | 353 | while (!$rs->EOF) { |
| 354 | 354 | $id = (($i % 2) == 0 ? '1' : '2'); |
| 355 | - echo "<tr class=\"data{$id}\">"."\n"; |
|
| 355 | + echo "<tr class=\"data{$id}\">" . "\n"; |
|
| 356 | 356 | // Display edit and delete links if we have a key |
| 357 | 357 | if ($colspan > 0 and count($key) > 0) { |
| 358 | 358 | $keys_array = []; |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | $keys_array["key[{$v}]"] = $rs->fields[$v]; |
| 366 | 366 | } |
| 367 | 367 | if ($has_nulls) { |
| 368 | - echo "<td colspan=\"{$colspan}\"> </td>"."\n"; |
|
| 368 | + echo "<td colspan=\"{$colspan}\"> </td>" . "\n"; |
|
| 369 | 369 | } else { |
| 370 | 370 | if (isset($actions['actionbuttons']['edit'])) { |
| 371 | 371 | $actions['actionbuttons']['edit'] = $edit_params; |
@@ -386,24 +386,24 @@ discard block |
||
| 386 | 386 | foreach ($actions['actionbuttons'] as $action) { |
| 387 | 387 | echo "<td class=\"opbutton{$id}\">"; |
| 388 | 388 | $this->printLink($action, true, __METHOD__); |
| 389 | - echo '</td>'."\n"; |
|
| 389 | + echo '</td>' . "\n"; |
|
| 390 | 390 | } |
| 391 | 391 | } |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | $this->printTableRowCells($rs, $fkey_information, isset($object)); |
| 395 | 395 | |
| 396 | - echo '</tr>'."\n"; |
|
| 396 | + echo '</tr>' . "\n"; |
|
| 397 | 397 | $rs->moveNext(); |
| 398 | 398 | $i++; |
| 399 | 399 | } |
| 400 | - echo '</table>'."\n"; |
|
| 400 | + echo '</table>' . "\n"; |
|
| 401 | 401 | |
| 402 | - echo '<p>', $rs->recordCount(), " {$lang['strrows']}</p>"."\n"; |
|
| 402 | + echo '<p>', $rs->recordCount(), " {$lang['strrows']}</p>" . "\n"; |
|
| 403 | 403 | // Show page navigation |
| 404 | 404 | $misc->printPages($_REQUEST['page'], $max_pages, $_gets); |
| 405 | 405 | } else { |
| 406 | - echo "<p>{$lang['strnodata']}</p>"."\n"; |
|
| 406 | + echo "<p>{$lang['strnodata']}</p>" . "\n"; |
|
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | // Navigation links |
@@ -585,7 +585,7 @@ discard block |
||
| 585 | 585 | $fksprops = false; |
| 586 | 586 | } |
| 587 | 587 | |
| 588 | - echo '<form action="'.SUBFOLDER.'/src/views/display.php" method="post" id="ac_form">'."\n"; |
|
| 588 | + echo '<form action="' . SUBFOLDER . '/src/views/display.php" method="post" id="ac_form">' . "\n"; |
|
| 589 | 589 | |
| 590 | 590 | /*echo '<p>'; |
| 591 | 591 | if (!$error) { |
@@ -599,11 +599,11 @@ discard block |
||
| 599 | 599 | $elements = 0; |
| 600 | 600 | $error = true; |
| 601 | 601 | if ($rs->recordCount() == 1 && $attrs->recordCount() > 0) { |
| 602 | - echo '<table>'."\n"; |
|
| 602 | + echo '<table>' . "\n"; |
|
| 603 | 603 | |
| 604 | 604 | // Output table header |
| 605 | 605 | echo "<tr><th class=\"data\">{$lang['strcolumn']}</th><th class=\"data\">{$lang['strtype']}</th>"; |
| 606 | - echo "<th class=\"data\">{$lang['strformat']}</th>"."\n"; |
|
| 606 | + echo "<th class=\"data\">{$lang['strformat']}</th>" . "\n"; |
|
| 607 | 607 | echo "<th class=\"data\">{$lang['strnull']}</th><th class=\"data\">{$lang['strvalue']}</th></tr>"; |
| 608 | 608 | |
| 609 | 609 | $i = 0; |
@@ -616,19 +616,19 @@ discard block |
||
| 616 | 616 | $_REQUEST['format'][$attrs->fields['attname']] = 'VALUE'; |
| 617 | 617 | } |
| 618 | 618 | |
| 619 | - echo "<tr class=\"data{$id}\">"."\n"; |
|
| 619 | + echo "<tr class=\"data{$id}\">" . "\n"; |
|
| 620 | 620 | echo '<td style="white-space:nowrap;">', $misc->printVal($attrs->fields['attname']), '</td>'; |
| 621 | - echo '<td style="white-space:nowrap;">'."\n"; |
|
| 621 | + echo '<td style="white-space:nowrap;">' . "\n"; |
|
| 622 | 622 | echo $misc->printVal($data->formatType($attrs->fields['type'], $attrs->fields['atttypmod'])); |
| 623 | 623 | echo '<input type="hidden" name="types[', htmlspecialchars($attrs->fields['attname']), ']" value="', |
| 624 | 624 | htmlspecialchars($attrs->fields['type']), '" /></td>'; |
| 625 | 625 | $elements++; |
| 626 | - echo '<td style="white-space:nowrap;">'."\n"; |
|
| 627 | - echo '<select name="format['.htmlspecialchars($attrs->fields['attname']), ']">'."\n"; |
|
| 628 | - echo '<option value="VALUE"', ($_REQUEST['format'][$attrs->fields['attname']] == 'VALUE') ? ' selected="selected"' : '', ">{$lang['strvalue']}</option>"."\n"; |
|
| 626 | + echo '<td style="white-space:nowrap;">' . "\n"; |
|
| 627 | + echo '<select name="format[' . htmlspecialchars($attrs->fields['attname']), ']">' . "\n"; |
|
| 628 | + echo '<option value="VALUE"', ($_REQUEST['format'][$attrs->fields['attname']] == 'VALUE') ? ' selected="selected"' : '', ">{$lang['strvalue']}</option>" . "\n"; |
|
| 629 | 629 | $selected = ($_REQUEST['format'][$attrs->fields['attname']] == 'EXPRESSION') ? ' selected="selected"' : ''; |
| 630 | - echo '<option value="EXPRESSION"'.$selected.">{$lang['strexpression']}</option>"."\n"; |
|
| 631 | - echo "</select>\n</td>"."\n"; |
|
| 630 | + echo '<option value="EXPRESSION"' . $selected . ">{$lang['strexpression']}</option>" . "\n"; |
|
| 631 | + echo "</select>\n</td>" . "\n"; |
|
| 632 | 632 | $elements++; |
| 633 | 633 | echo '<td style="white-space:nowrap;">'; |
| 634 | 634 | // Output null box if the column allows nulls (doesn't look at CHECKs or ASSERTIONS) |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | $_REQUEST['nulls'][$attrs->fields['attname']] = 'on'; |
| 639 | 639 | } |
| 640 | 640 | echo "<label><span><input type=\"checkbox\" name=\"nulls[{$attrs->fields['attname']}]\"", |
| 641 | - isset($_REQUEST['nulls'][$attrs->fields['attname']]) ? ' checked="checked"' : '', ' /></span></label></td>'."\n"; |
|
| 641 | + isset($_REQUEST['nulls'][$attrs->fields['attname']]) ? ' checked="checked"' : '', ' /></span></label></td>' . "\n"; |
|
| 642 | 642 | $elements++; |
| 643 | 643 | } else { |
| 644 | 644 | echo ' </td>'; |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | // keep track of which element offset we're up to. We can't refer to the null checkbox by name |
| 654 | 654 | // as it contains '[' and ']' characters. |
| 655 | 655 | if (!$attrs->fields['attnotnull']) { |
| 656 | - $extras['onChange'] = 'elements['.($elements - 1).'].checked = false;'; |
|
| 656 | + $extras['onChange'] = 'elements[' . ($elements - 1) . '].checked = false;'; |
|
| 657 | 657 | } |
| 658 | 658 | |
| 659 | 659 | if (($fksprops !== false) && isset($fksprops['byfield'][$attrs->fields['attnum']])) { |
@@ -665,63 +665,63 @@ discard block |
||
| 665 | 665 | |
| 666 | 666 | echo '</td>'; |
| 667 | 667 | $elements++; |
| 668 | - echo '</tr>'."\n"; |
|
| 668 | + echo '</tr>' . "\n"; |
|
| 669 | 669 | $i++; |
| 670 | 670 | $attrs->moveNext(); |
| 671 | 671 | } |
| 672 | - echo '</table>'."\n"; |
|
| 672 | + echo '</table>' . "\n"; |
|
| 673 | 673 | |
| 674 | 674 | $error = false; |
| 675 | 675 | } elseif ($rs->recordCount() != 1) { |
| 676 | - echo "<p>{$lang['strrownotunique']}</p>"."\n"; |
|
| 676 | + echo "<p>{$lang['strrownotunique']}</p>" . "\n"; |
|
| 677 | 677 | } else { |
| 678 | - echo "<p>{$lang['strinvalidparam']}</p>"."\n"; |
|
| 678 | + echo "<p>{$lang['strinvalidparam']}</p>" . "\n"; |
|
| 679 | 679 | } |
| 680 | 680 | |
| 681 | - echo '<input type="hidden" name="action" value="editrow" />'."\n"; |
|
| 681 | + echo '<input type="hidden" name="action" value="editrow" />' . "\n"; |
|
| 682 | 682 | echo $misc->form; |
| 683 | 683 | if (isset($_REQUEST['table'])) { |
| 684 | - echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), '" />'."\n"; |
|
| 684 | + echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), '" />' . "\n"; |
|
| 685 | 685 | } |
| 686 | 686 | |
| 687 | 687 | if (isset($_REQUEST['subject'])) { |
| 688 | - echo '<input type="hidden" name="subject" value="', htmlspecialchars($_REQUEST['subject']), '" />'."\n"; |
|
| 688 | + echo '<input type="hidden" name="subject" value="', htmlspecialchars($_REQUEST['subject']), '" />' . "\n"; |
|
| 689 | 689 | } |
| 690 | 690 | |
| 691 | 691 | if (isset($_REQUEST['query'])) { |
| 692 | - echo '<input type="hidden" name="query" value="', htmlspecialchars($_REQUEST['query']), '" />'."\n"; |
|
| 692 | + echo '<input type="hidden" name="query" value="', htmlspecialchars($_REQUEST['query']), '" />' . "\n"; |
|
| 693 | 693 | } |
| 694 | 694 | |
| 695 | 695 | if (isset($_REQUEST['count'])) { |
| 696 | - echo '<input type="hidden" name="count" value="', htmlspecialchars($_REQUEST['count']), '" />'."\n"; |
|
| 696 | + echo '<input type="hidden" name="count" value="', htmlspecialchars($_REQUEST['count']), '" />' . "\n"; |
|
| 697 | 697 | } |
| 698 | 698 | |
| 699 | 699 | if (isset($_REQUEST['return'])) { |
| 700 | - echo '<input type="hidden" name="return" value="', htmlspecialchars($_REQUEST['return']), '" />'."\n"; |
|
| 700 | + echo '<input type="hidden" name="return" value="', htmlspecialchars($_REQUEST['return']), '" />' . "\n"; |
|
| 701 | 701 | } |
| 702 | 702 | |
| 703 | - echo '<input type="hidden" name="page" value="', htmlspecialchars($_REQUEST['page']), '" />'."\n"; |
|
| 704 | - echo '<input type="hidden" name="sortkey" value="', htmlspecialchars($_REQUEST['sortkey']), '" />'."\n"; |
|
| 705 | - echo '<input type="hidden" name="sortdir" value="', htmlspecialchars($_REQUEST['sortdir']), '" />'."\n"; |
|
| 706 | - echo '<input type="hidden" name="strings" value="', htmlspecialchars($_REQUEST['strings']), '" />'."\n"; |
|
| 707 | - echo '<input type="hidden" name="key" value="', htmlspecialchars(urlencode(serialize($key))), '" />'."\n"; |
|
| 703 | + echo '<input type="hidden" name="page" value="', htmlspecialchars($_REQUEST['page']), '" />' . "\n"; |
|
| 704 | + echo '<input type="hidden" name="sortkey" value="', htmlspecialchars($_REQUEST['sortkey']), '" />' . "\n"; |
|
| 705 | + echo '<input type="hidden" name="sortdir" value="', htmlspecialchars($_REQUEST['sortdir']), '" />' . "\n"; |
|
| 706 | + echo '<input type="hidden" name="strings" value="', htmlspecialchars($_REQUEST['strings']), '" />' . "\n"; |
|
| 707 | + echo '<input type="hidden" name="key" value="', htmlspecialchars(urlencode(serialize($key))), '" />' . "\n"; |
|
| 708 | 708 | echo '<p>'; |
| 709 | 709 | if (!$error) { |
| 710 | - echo "<input type=\"submit\" name=\"save\" accesskey=\"r\" value=\"{$lang['strsave']}\" />"."\n"; |
|
| 710 | + echo "<input type=\"submit\" name=\"save\" accesskey=\"r\" value=\"{$lang['strsave']}\" />" . "\n"; |
|
| 711 | 711 | } |
| 712 | 712 | |
| 713 | - echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />"."\n"; |
|
| 713 | + echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />" . "\n"; |
|
| 714 | 714 | |
| 715 | 715 | if ($fksprops !== false) { |
| 716 | 716 | if ($conf['autocomplete'] != 'default off') { |
| 717 | - echo "<input type=\"checkbox\" id=\"no_ac\" value=\"1\" checked=\"checked\" /><label for=\"no_ac\">{$lang['strac']}</label>"."\n"; |
|
| 717 | + echo "<input type=\"checkbox\" id=\"no_ac\" value=\"1\" checked=\"checked\" /><label for=\"no_ac\">{$lang['strac']}</label>" . "\n"; |
|
| 718 | 718 | } else { |
| 719 | - echo "<input type=\"checkbox\" id=\"no_ac\" value=\"0\" /><label for=\"no_ac\">{$lang['strac']}</label>"."\n"; |
|
| 719 | + echo "<input type=\"checkbox\" id=\"no_ac\" value=\"0\" /><label for=\"no_ac\">{$lang['strac']}</label>" . "\n"; |
|
| 720 | 720 | } |
| 721 | 721 | } |
| 722 | 722 | |
| 723 | - echo '</p>'."\n"; |
|
| 724 | - echo '</form>'."\n"; |
|
| 723 | + echo '</p>' . "\n"; |
|
| 724 | + echo '</form>' . "\n"; |
|
| 725 | 725 | } else { |
| 726 | 726 | if (!isset($_POST['values'])) { |
| 727 | 727 | $_POST['values'] = []; |
@@ -759,58 +759,58 @@ discard block |
||
| 759 | 759 | |
| 760 | 760 | $rs = $data->browseRow($_REQUEST['table'], $_REQUEST['key']); |
| 761 | 761 | |
| 762 | - echo '<form action="'.SUBFOLDER.'/src/views/display.php" method="post">'."\n"; |
|
| 762 | + echo '<form action="' . SUBFOLDER . '/src/views/display.php" method="post">' . "\n"; |
|
| 763 | 763 | echo $misc->form; |
| 764 | 764 | |
| 765 | 765 | if ($rs->recordCount() == 1) { |
| 766 | - echo "<p>{$lang['strconfdeleterow']}</p>"."\n"; |
|
| 766 | + echo "<p>{$lang['strconfdeleterow']}</p>" . "\n"; |
|
| 767 | 767 | |
| 768 | 768 | $fkinfo = []; |
| 769 | 769 | echo '<table><tr>'; |
| 770 | 770 | $this->printTableHeaderCells($rs, false, true); |
| 771 | 771 | echo '</tr>'; |
| 772 | - echo '<tr class="data1">'."\n"; |
|
| 772 | + echo '<tr class="data1">' . "\n"; |
|
| 773 | 773 | $this->printTableRowCells($rs, $fkinfo, true); |
| 774 | - echo '</tr>'."\n"; |
|
| 775 | - echo '</table>'."\n"; |
|
| 776 | - echo '<br />'."\n"; |
|
| 774 | + echo '</tr>' . "\n"; |
|
| 775 | + echo '</table>' . "\n"; |
|
| 776 | + echo '<br />' . "\n"; |
|
| 777 | 777 | |
| 778 | - echo '<input type="hidden" name="action" value="delrow" />'."\n"; |
|
| 779 | - echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" />"."\n"; |
|
| 780 | - echo "<input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />"."\n"; |
|
| 778 | + echo '<input type="hidden" name="action" value="delrow" />' . "\n"; |
|
| 779 | + echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" />" . "\n"; |
|
| 780 | + echo "<input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />" . "\n"; |
|
| 781 | 781 | } elseif ($rs->recordCount() != 1) { |
| 782 | - echo "<p>{$lang['strrownotunique']}</p>"."\n"; |
|
| 783 | - echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />"."\n"; |
|
| 782 | + echo "<p>{$lang['strrownotunique']}</p>" . "\n"; |
|
| 783 | + echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />" . "\n"; |
|
| 784 | 784 | } else { |
| 785 | - echo "<p>{$lang['strinvalidparam']}</p>"."\n"; |
|
| 786 | - echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />"."\n"; |
|
| 785 | + echo "<p>{$lang['strinvalidparam']}</p>" . "\n"; |
|
| 786 | + echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />" . "\n"; |
|
| 787 | 787 | } |
| 788 | 788 | if (isset($_REQUEST['table'])) { |
| 789 | - echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), '" />'."\n"; |
|
| 789 | + echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), '" />' . "\n"; |
|
| 790 | 790 | } |
| 791 | 791 | |
| 792 | 792 | if (isset($_REQUEST['subject'])) { |
| 793 | - echo '<input type="hidden" name="subject" value="', htmlspecialchars($_REQUEST['subject']), '" />'."\n"; |
|
| 793 | + echo '<input type="hidden" name="subject" value="', htmlspecialchars($_REQUEST['subject']), '" />' . "\n"; |
|
| 794 | 794 | } |
| 795 | 795 | |
| 796 | 796 | if (isset($_REQUEST['query'])) { |
| 797 | - echo '<input type="hidden" name="query" value="', htmlspecialchars($_REQUEST['query']), '" />'."\n"; |
|
| 797 | + echo '<input type="hidden" name="query" value="', htmlspecialchars($_REQUEST['query']), '" />' . "\n"; |
|
| 798 | 798 | } |
| 799 | 799 | |
| 800 | 800 | if (isset($_REQUEST['count'])) { |
| 801 | - echo '<input type="hidden" name="count" value="', htmlspecialchars($_REQUEST['count']), '" />'."\n"; |
|
| 801 | + echo '<input type="hidden" name="count" value="', htmlspecialchars($_REQUEST['count']), '" />' . "\n"; |
|
| 802 | 802 | } |
| 803 | 803 | |
| 804 | 804 | if (isset($_REQUEST['return'])) { |
| 805 | - echo '<input type="hidden" name="return" value="', htmlspecialchars($_REQUEST['return']), '" />'."\n"; |
|
| 805 | + echo '<input type="hidden" name="return" value="', htmlspecialchars($_REQUEST['return']), '" />' . "\n"; |
|
| 806 | 806 | } |
| 807 | 807 | |
| 808 | - echo '<input type="hidden" name="page" value="', htmlspecialchars($_REQUEST['page']), '" />'."\n"; |
|
| 809 | - echo '<input type="hidden" name="sortkey" value="', htmlspecialchars($_REQUEST['sortkey']), '" />'."\n"; |
|
| 810 | - echo '<input type="hidden" name="sortdir" value="', htmlspecialchars($_REQUEST['sortdir']), '" />'."\n"; |
|
| 811 | - echo '<input type="hidden" name="strings" value="', htmlspecialchars($_REQUEST['strings']), '" />'."\n"; |
|
| 812 | - echo '<input type="hidden" name="key" value="', htmlspecialchars(urlencode(serialize($_REQUEST['key']))), '" />'."\n"; |
|
| 813 | - echo '</form>'."\n"; |
|
| 808 | + echo '<input type="hidden" name="page" value="', htmlspecialchars($_REQUEST['page']), '" />' . "\n"; |
|
| 809 | + echo '<input type="hidden" name="sortkey" value="', htmlspecialchars($_REQUEST['sortkey']), '" />' . "\n"; |
|
| 810 | + echo '<input type="hidden" name="sortdir" value="', htmlspecialchars($_REQUEST['sortdir']), '" />' . "\n"; |
|
| 811 | + echo '<input type="hidden" name="strings" value="', htmlspecialchars($_REQUEST['strings']), '" />' . "\n"; |
|
| 812 | + echo '<input type="hidden" name="key" value="', htmlspecialchars(urlencode(serialize($_REQUEST['key']))), '" />' . "\n"; |
|
| 813 | + echo '</form>' . "\n"; |
|
| 814 | 814 | } else { |
| 815 | 815 | $status = $data->deleteRow($_POST['table'], unserialize(urldecode($_POST['key']))); |
| 816 | 816 | if ($status == 0) { |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | if (isset($_REQUEST['table'])) { |
| 843 | 843 | $constraints = $data->getConstraintsWithFields($_REQUEST['table']); |
| 844 | 844 | if ($constraints->recordCount() > 0) { |
| 845 | - $fkey_information['common_url'] = $misc->getHREF('schema').'&subject=table'; |
|
| 845 | + $fkey_information['common_url'] = $misc->getHREF('schema') . '&subject=table'; |
|
| 846 | 846 | |
| 847 | 847 | /* build the FK constraints data structure */ |
| 848 | 848 | while (!$constraints->EOF) { |
@@ -850,7 +850,7 @@ discard block |
||
| 850 | 850 | if ($constr['contype'] == 'f') { |
| 851 | 851 | if (!isset($fkey_information['byconstr'][$constr['conid']])) { |
| 852 | 852 | $fkey_information['byconstr'][$constr['conid']] = [ |
| 853 | - 'url_data' => 'table='.urlencode($constr['f_table']).'&schema='.urlencode($constr['f_schema']), |
|
| 853 | + 'url_data' => 'table=' . urlencode($constr['f_table']) . '&schema=' . urlencode($constr['f_schema']), |
|
| 854 | 854 | 'fkeys' => [], |
| 855 | 855 | 'consrc' => $constr['consrc'], |
| 856 | 856 | ]; |
@@ -893,7 +893,7 @@ discard block |
||
| 893 | 893 | $finfo = $rs->fetchField($j); |
| 894 | 894 | |
| 895 | 895 | if ($args === false) { |
| 896 | - echo '<th class="data">', $misc->printVal($finfo->name), '</th>'."\n"; |
|
| 896 | + echo '<th class="data">', $misc->printVal($finfo->name), '</th>' . "\n"; |
|
| 897 | 897 | } else { |
| 898 | 898 | $args['page'] = $_REQUEST['page']; |
| 899 | 899 | $args['sortkey'] = $j + 1; |
@@ -909,12 +909,12 @@ discard block |
||
| 909 | 909 | , $misc->printVal($finfo->name); |
| 910 | 910 | if ($_REQUEST['sortkey'] == ($j + 1)) { |
| 911 | 911 | if ($_REQUEST['sortdir'] == 'asc') { |
| 912 | - echo '<img src="'.$misc->icon('RaiseArgument').'" alt="asc">'; |
|
| 912 | + echo '<img src="' . $misc->icon('RaiseArgument') . '" alt="asc">'; |
|
| 913 | 913 | } else { |
| 914 | - echo '<img src="'.$misc->icon('LowerArgument').'" alt="desc">'; |
|
| 914 | + echo '<img src="' . $misc->icon('LowerArgument') . '" alt="desc">'; |
|
| 915 | 915 | } |
| 916 | 916 | } |
| 917 | - echo '</a></th>'."\n"; |
|
| 917 | + echo '</a></th>' . "\n"; |
|
| 918 | 918 | } |
| 919 | 919 | $j++; |
| 920 | 920 | } |
@@ -950,14 +950,14 @@ discard block |
||
| 950 | 950 | $query_params = $fkey_information['byconstr'][$conid]['url_data']; |
| 951 | 951 | |
| 952 | 952 | foreach ($fkey_information['byconstr'][$conid]['fkeys'] as $p_field => $f_field) { |
| 953 | - $query_params .= '&'.urlencode("fkey[{$f_field}]").'='.urlencode($rs->fields[$p_field]); |
|
| 953 | + $query_params .= '&' . urlencode("fkey[{$f_field}]") . '=' . urlencode($rs->fields[$p_field]); |
|
| 954 | 954 | } |
| 955 | 955 | |
| 956 | 956 | /* $fkey_information['common_url'] is already urlencoded */ |
| 957 | - $query_params .= '&'.$fkey_information['common_url']; |
|
| 957 | + $query_params .= '&' . $fkey_information['common_url']; |
|
| 958 | 958 | echo '<div style="display:inline-block;">'; |
| 959 | - echo '<a class="fk fk_'.htmlentities($conid, ENT_QUOTES, 'UTF-8')."\" href=\"display.php?{$query_params}\">"; |
|
| 960 | - echo '<img src="'.$misc->icon('ForeignKey').'" style="vertical-align:middle;" alt="[fk]" title="' |
|
| 959 | + echo '<a class="fk fk_' . htmlentities($conid, ENT_QUOTES, 'UTF-8') . "\" href=\"display.php?{$query_params}\">"; |
|
| 960 | + echo '<img src="' . $misc->icon('ForeignKey') . '" style="vertical-align:middle;" alt="[fk]" title="' |
|
| 961 | 961 | .htmlentities($fkey_information['byconstr'][$conid]['consrc'], ENT_QUOTES, 'UTF-8') |
| 962 | 962 | .'" />'; |
| 963 | 963 | echo '</a>'; |
@@ -994,7 +994,7 @@ discard block |
||
| 994 | 994 | $rs = $data->browseQuery('SELECT', $_REQUEST['table'], $_REQUEST['query'], |
| 995 | 995 | null, null, 1, 1, $max_pages); |
| 996 | 996 | |
| 997 | - echo '<a href="javascript:void(0);" style="display:table-cell;" class="fk_delete"><img alt="[delete]" src="'.$misc->icon('Delete').'" /></a>'."\n"; |
|
| 997 | + echo '<a href="javascript:void(0);" style="display:table-cell;" class="fk_delete"><img alt="[delete]" src="' . $misc->icon('Delete') . '" /></a>' . "\n"; |
|
| 998 | 998 | echo '<div style="display:table-cell;">'; |
| 999 | 999 | |
| 1000 | 1000 | if (is_object($rs) && $rs->recordCount() > 0) { |
@@ -1006,10 +1006,10 @@ discard block |
||
| 1006 | 1006 | echo '<table><tr>'; |
| 1007 | 1007 | $this->printTableHeaderCells($rs, false, true); |
| 1008 | 1008 | echo '</tr>'; |
| 1009 | - echo '<tr class="data1">'."\n"; |
|
| 1009 | + echo '<tr class="data1">' . "\n"; |
|
| 1010 | 1010 | $this->printTableRowCells($rs, $fkinfo, true); |
| 1011 | - echo '</tr>'."\n"; |
|
| 1012 | - echo '</table>'."\n"; |
|
| 1011 | + echo '</tr>' . "\n"; |
|
| 1012 | + echo '</table>' . "\n"; |
|
| 1013 | 1013 | } else { |
| 1014 | 1014 | echo $lang['strnodata']; |
| 1015 | 1015 | } |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | $this->printTitle($lang['strdrop'], 'pg.sequence.drop'); |
| 398 | 398 | $this->printMsg($msg); |
| 399 | 399 | |
| 400 | - echo '<form action="'.SUBFOLDER."/src/views/sequences.php\" method=\"post\">\n"; |
|
| 400 | + echo '<form action="' . SUBFOLDER . "/src/views/sequences.php\" method=\"post\">\n"; |
|
| 401 | 401 | |
| 402 | 402 | //If multi drop |
| 403 | 403 | if (isset($_REQUEST['ma'])) { |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | $this->printTitle($lang['strcreatesequence'], 'pg.sequence.create'); |
| 492 | 492 | $this->printMsg($msg); |
| 493 | 493 | |
| 494 | - echo '<form action="'.SUBFOLDER."/src/views/sequences.php\" method=\"post\">\n"; |
|
| 494 | + echo '<form action="' . SUBFOLDER . "/src/views/sequences.php\" method=\"post\">\n"; |
|
| 495 | 495 | echo "<table>\n"; |
| 496 | 496 | |
| 497 | 497 | echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | $sequence = $data->getSequence($_REQUEST['sequence']); |
| 647 | 647 | |
| 648 | 648 | if (is_object($sequence) && $sequence->recordCount() > 0) { |
| 649 | - echo '<form action="'.SUBFOLDER."/src/views/sequences.php\" method=\"post\">\n"; |
|
| 649 | + echo '<form action="' . SUBFOLDER . "/src/views/sequences.php\" method=\"post\">\n"; |
|
| 650 | 650 | echo '<table border="0">'; |
| 651 | 651 | echo "<tr><th class=\"data left required\">{$lang['strlastvalue']}</th>\n"; |
| 652 | 652 | echo '<td class="data1">'; |
@@ -772,7 +772,7 @@ discard block |
||
| 772 | 772 | $_POST['formCycledValue'] = 'on'; |
| 773 | 773 | } |
| 774 | 774 | |
| 775 | - echo '<form action="'.SUBFOLDER."/src/views/sequences.php\" method=\"post\">\n"; |
|
| 775 | + echo '<form action="' . SUBFOLDER . "/src/views/sequences.php\" method=\"post\">\n"; |
|
| 776 | 776 | echo "<table>\n"; |
| 777 | 777 | |
| 778 | 778 | echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | echo '<p>', sprintf($lang['strconfdropmember'], $misc->printVal($_REQUEST['user']), $misc->printVal($_REQUEST['group'])), "</p>\n"; |
| 165 | 165 | |
| 166 | - echo '<form action="'.SUBFOLDER."/src/views/groups.php\" method=\"post\">\n"; |
|
| 166 | + echo '<form action="' . SUBFOLDER . "/src/views/groups.php\" method=\"post\">\n"; |
|
| 167 | 167 | echo $misc->form; |
| 168 | 168 | echo "<input type=\"hidden\" name=\"action\" value=\"drop_member\" />\n"; |
| 169 | 169 | echo '<input type="hidden" name="group" value="', htmlspecialchars($_REQUEST['group']), "\" />\n"; |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | // Display form for adding a user to the group |
| 236 | - echo '<form action="'.SUBFOLDER."/src/views/groups.php\" method=\"post\">\n"; |
|
| 236 | + echo '<form action="' . SUBFOLDER . "/src/views/groups.php\" method=\"post\">\n"; |
|
| 237 | 237 | echo '<select name="user">'; |
| 238 | 238 | while (!$users->EOF) { |
| 239 | 239 | $uname = $misc->printVal($users->fields['usename']); |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | |
| 278 | 278 | echo '<p>', sprintf($lang['strconfdropgroup'], $misc->printVal($_REQUEST['group'])), "</p>\n"; |
| 279 | 279 | |
| 280 | - echo '<form action="'.SUBFOLDER."/src/views/groups.php\" method=\"post\">\n"; |
|
| 280 | + echo '<form action="' . SUBFOLDER . "/src/views/groups.php\" method=\"post\">\n"; |
|
| 281 | 281 | echo $misc->form; |
| 282 | 282 | echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n"; |
| 283 | 283 | echo '<input type="hidden" name="group" value="', htmlspecialchars($_REQUEST['group']), "\" />\n"; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | return $this->doTree(); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - $this->printHeader($lang['strviews'].' - '.$_REQUEST['matview']); |
|
| 25 | + $this->printHeader($lang['strviews'] . ' - ' . $_REQUEST['matview']); |
|
| 26 | 26 | $this->printBody(); |
| 27 | 27 | |
| 28 | 28 | switch ($action) { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $lang = $this->lang; |
| 92 | 92 | $data = $misc->getDatabaseAccessor(); |
| 93 | 93 | |
| 94 | - $attPre = function (&$rowdata) use ($data) { |
|
| 94 | + $attPre = function(&$rowdata) use ($data) { |
|
| 95 | 95 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 96 | 96 | }; |
| 97 | 97 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'column' => [ |
| 114 | 114 | 'title' => $lang['strcolumn'], |
| 115 | 115 | 'field' => Decorator::field('attname'), |
| 116 | - 'url' => "colproperties.php?subject=column&{$misc->href}&view=".urlencode($_REQUEST['matview']).'&', |
|
| 116 | + 'url' => "colproperties.php?subject=column&{$misc->href}&view=" . urlencode($_REQUEST['matview']) . '&', |
|
| 117 | 117 | 'vars' => ['column' => 'attname'], |
| 118 | 118 | ], |
| 119 | 119 | 'type' => [ |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | $_POST['formComment'] = $viewdata->fields['relcomment']; |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviewproperties.php\" method=\"post\">\n"; |
|
| 303 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviewproperties.php\" method=\"post\">\n"; |
|
| 304 | 304 | echo "<table style=\"width: 100%\">\n"; |
| 305 | 305 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strdefinition']}</th>\n"; |
| 306 | 306 | echo "\t\t<td class=\"data1\"><textarea style=\"width: 100%;\" rows=\"20\" cols=\"50\" name=\"formDefinition\">", |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | $this->printTabs('view', 'export'); |
| 339 | 339 | $this->printMsg($msg); |
| 340 | 340 | |
| 341 | - echo '<form action="'.SUBFOLDER."/src/views/dataexport.php\" method=\"post\">\n"; |
|
| 341 | + echo '<form action="' . SUBFOLDER . "/src/views/dataexport.php\" method=\"post\">\n"; |
|
| 342 | 342 | echo "<table>\n"; |
| 343 | 343 | echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n"; |
| 344 | 344 | // Data only |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | $this->printTitle($lang['stralter'], 'pg.column.alter'); |
| 454 | 454 | $this->printMsg($msg); |
| 455 | 455 | |
| 456 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviewproperties.php\" method=\"post\">\n"; |
|
| 456 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviewproperties.php\" method=\"post\">\n"; |
|
| 457 | 457 | |
| 458 | 458 | // Output view header |
| 459 | 459 | echo "<table>\n"; |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | $_POST['comment'] = $view->fields['relcomment']; |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviewproperties.php\" method=\"post\">\n"; |
|
| 552 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviewproperties.php\" method=\"post\">\n"; |
|
| 553 | 553 | echo "<table>\n"; |
| 554 | 554 | echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 555 | 555 | echo '<td class="data1">'; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | return $this->doTree(); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - $this->printHeader($lang['strviews'].' - '.$_REQUEST['view']); |
|
| 25 | + $this->printHeader($lang['strviews'] . ' - ' . $_REQUEST['view']); |
|
| 26 | 26 | $this->printBody(); |
| 27 | 27 | |
| 28 | 28 | switch ($action) { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $lang = $this->lang; |
| 92 | 92 | $data = $misc->getDatabaseAccessor(); |
| 93 | 93 | |
| 94 | - $attPre = function (&$rowdata) use ($data) { |
|
| 94 | + $attPre = function(&$rowdata) use ($data) { |
|
| 95 | 95 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 96 | 96 | }; |
| 97 | 97 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'column' => [ |
| 114 | 114 | 'title' => $lang['strcolumn'], |
| 115 | 115 | 'field' => Decorator::field('attname'), |
| 116 | - 'url' => "colproperties.php?subject=column&{$misc->href}&view=".urlencode($_REQUEST['view']).'&', |
|
| 116 | + 'url' => "colproperties.php?subject=column&{$misc->href}&view=" . urlencode($_REQUEST['view']) . '&', |
|
| 117 | 117 | 'vars' => ['column' => 'attname'], |
| 118 | 118 | ], |
| 119 | 119 | 'type' => [ |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | $_POST['formComment'] = $viewdata->fields['relcomment']; |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - echo '<form action="'.SUBFOLDER."/src/views/viewproperties.php\" method=\"post\">\n"; |
|
| 303 | + echo '<form action="' . SUBFOLDER . "/src/views/viewproperties.php\" method=\"post\">\n"; |
|
| 304 | 304 | echo "<table style=\"width: 100%\">\n"; |
| 305 | 305 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strdefinition']}</th>\n"; |
| 306 | 306 | echo "\t\t<td class=\"data1\"><textarea style=\"width: 100%;\" rows=\"20\" cols=\"50\" name=\"formDefinition\">", |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | $this->printTabs('view', 'export'); |
| 339 | 339 | $this->printMsg($msg); |
| 340 | 340 | |
| 341 | - echo '<form action="'.SUBFOLDER."/src/views/dataexport.php\" method=\"post\">\n"; |
|
| 341 | + echo '<form action="' . SUBFOLDER . "/src/views/dataexport.php\" method=\"post\">\n"; |
|
| 342 | 342 | echo "<table>\n"; |
| 343 | 343 | echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n"; |
| 344 | 344 | // Data only |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | $this->printTitle($lang['stralter'], 'pg.column.alter'); |
| 454 | 454 | $this->printMsg($msg); |
| 455 | 455 | |
| 456 | - echo '<form action="'.SUBFOLDER."/src/views/viewproperties.php\" method=\"post\">\n"; |
|
| 456 | + echo '<form action="' . SUBFOLDER . "/src/views/viewproperties.php\" method=\"post\">\n"; |
|
| 457 | 457 | |
| 458 | 458 | // Output view header |
| 459 | 459 | echo "<table>\n"; |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | $_POST['comment'] = $view->fields['relcomment']; |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | - echo '<form action="'.SUBFOLDER."/src/views/viewproperties.php\" method=\"post\">\n"; |
|
| 552 | + echo '<form action="' . SUBFOLDER . "/src/views/viewproperties.php\" method=\"post\">\n"; |
|
| 553 | 553 | echo "<table>\n"; |
| 554 | 554 | echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 555 | 555 | echo '<td class="data1">'; |