diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2018-03-15 03:18:43 +0300 |
---|---|---|
committer | Felipe Figueroa <amenadiel@gmail.com> | 2018-03-15 03:18:43 +0300 |
commit | 1eb1d45690e3a88c33ad7e9247e3d3f9b4de0ab6 (patch) | |
tree | e5cce2580b1937ce2f6f8b4edf5f3eb178e7a6ec /src/controllers/ViewpropertiesController.php | |
parent | 2f3fc300fe7d73c492e75cde7ac550a18083b65d (diff) |
fixes wrong parameter tpe
Diffstat (limited to 'src/controllers/ViewpropertiesController.php')
-rw-r--r-- | src/controllers/ViewpropertiesController.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/controllers/ViewpropertiesController.php b/src/controllers/ViewpropertiesController.php index 0d0c8a73..73b01e9f 100644 --- a/src/controllers/ViewpropertiesController.php +++ b/src/controllers/ViewpropertiesController.php @@ -29,7 +29,7 @@ class ViewpropertiesController extends BaseController return $this->doTree(); } - $this->printHeader($lang['strviews'].' - '.$_REQUEST['view']); + $this->printHeader($lang['strviews'] . ' - ' . $_REQUEST['view']); $this->printBody(); switch ($action) { @@ -70,7 +70,7 @@ class ViewpropertiesController extends BaseController break; case 'confirm_alter': - doAlter(true); + $this->doAlter(true); break; case 'drop': @@ -123,13 +123,13 @@ class ViewpropertiesController extends BaseController } $columns = [ - 'column' => [ + 'column' => [ 'title' => $lang['strcolumn'], 'field' => Decorator::field('attname'), - 'url' => "colproperties.php?subject=column&{$this->misc->href}&view=".urlencode($_REQUEST['view']).'&', + 'url' => "colproperties.php?subject=column&{$this->misc->href}&view=" . urlencode($_REQUEST['view']) . '&', 'vars' => ['column' => 'attname'], ], - 'type' => [ + 'type' => [ 'title' => $lang['strtype'], 'field' => Decorator::field('+type'), ], @@ -168,7 +168,7 @@ class ViewpropertiesController extends BaseController $navlinks = [ 'browse' => [ - 'attr' => [ + 'attr' => [ 'href' => [ 'url' => 'display.php', 'urlvars' => [ @@ -184,7 +184,7 @@ class ViewpropertiesController extends BaseController 'content' => $lang['strbrowse'], ], 'select' => [ - 'attr' => [ + 'attr' => [ 'href' => [ 'url' => 'views.php', 'urlvars' => [ @@ -198,8 +198,8 @@ class ViewpropertiesController extends BaseController ], 'content' => $lang['strselect'], ], - 'drop' => [ - 'attr' => [ + 'drop' => [ + 'attr' => [ 'href' => [ 'url' => 'views.php', 'urlvars' => [ @@ -213,8 +213,8 @@ class ViewpropertiesController extends BaseController ], 'content' => $lang['strdrop'], ], - 'alter' => [ - 'attr' => [ + 'alter' => [ + 'attr' => [ 'href' => [ 'url' => 'viewproperties.php', 'urlvars' => [ @@ -242,8 +242,8 @@ class ViewpropertiesController extends BaseController $columns = $data->getTableAttributes($_REQUEST['view']); $attrs = [ - 'text' => Decorator::field('attname'), - 'action' => Decorator::actionurl( + 'text' => Decorator::field('attname'), + 'action' => Decorator::actionurl( 'colproperties.php', $reqvars, [ @@ -267,7 +267,7 @@ class ViewpropertiesController extends BaseController ), ] ), - 'toolTip' => Decorator::field('comment'), + 'toolTip' => Decorator::field('comment'), ]; return $this->printTree($columns, $attrs, 'viewcolumns'); @@ -311,7 +311,7 @@ class ViewpropertiesController extends BaseController $_POST['formComment'] = $viewdata->fields['relcomment']; } - echo '<form action="'.\SUBFOLDER."/src/views/viewproperties.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/viewproperties.php\" method=\"post\">\n"; echo "<table style=\"width: 100%\">\n"; echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strdefinition']}</th>\n"; echo "\t\t<td class=\"data1\"><textarea style=\"width: 100%;\" rows=\"20\" cols=\"50\" name=\"formDefinition\">", @@ -348,7 +348,7 @@ class ViewpropertiesController extends BaseController $this->printTabs('view', 'export'); $this->printMsg($msg); - echo '<form action="'.\SUBFOLDER."/src/views/dataexport.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/dataexport.php\" method=\"post\">\n"; echo "<table>\n"; echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n"; // Data only @@ -426,7 +426,7 @@ class ViewpropertiesController extends BaseController } $this->printNavLinks(['alter' => [ - 'attr' => [ + 'attr' => [ 'href' => [ 'url' => 'viewproperties.php', 'urlvars' => [ @@ -463,7 +463,7 @@ class ViewpropertiesController extends BaseController $this->printTitle($lang['stralter'], 'pg.column.alter'); $this->printMsg($msg); - echo '<form action="'.\SUBFOLDER."/src/views/viewproperties.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/viewproperties.php\" method=\"post\">\n"; // Output view header echo "<table>\n"; @@ -569,7 +569,7 @@ class ViewpropertiesController extends BaseController $_POST['comment'] = $view->fields['relcomment']; } - echo '<form action="'.\SUBFOLDER."/src/views/viewproperties.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/viewproperties.php\" method=\"post\">\n"; echo "<table>\n"; echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; echo '<td class="data1">'; |