@@ -259,7 +259,7 @@ |
||
| 259 | 259 | { |
| 260 | 260 | $retSet = []; |
| 261 | 261 | foreach ($this->options as $option) { |
| 262 | - if (1 == $this->getVar('set_' . $option)) { |
|
| 262 | + if (1 == $this->getVar('set_'.$option)) { |
|
| 263 | 263 | array_push($retSet, $option); |
| 264 | 264 | } |
| 265 | 265 | } |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $imageIcon = imagecreatefrompng($iconFile); |
| 385 | 385 | // Write text |
| 386 | 386 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 387 | - $spaceBorder = (92 - strlen($moduleDirname) * 7.5) / 2; |
|
| 387 | + $spaceBorder = (92-strlen($moduleDirname) * 7.5) / 2; |
|
| 388 | 388 | imagefttext($imageModule, 8.5, 0, $spaceBorder, 45, $textColor, $font, ucfirst($moduleDirname), []); |
| 389 | 389 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
| 390 | 390 | $logoImg = '/'.$moduleDirname.'_logo.png'; |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | { |
| 435 | 435 | $retModules = []; |
| 436 | 436 | foreach ($this->options as $option) { |
| 437 | - if (1 == $this->getVar('mod_' . $option)) { |
|
| 437 | + if (1 == $this->getVar('mod_'.$option)) { |
|
| 438 | 438 | array_push($retModules, $option); |
| 439 | 439 | } |
| 440 | 440 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $link = $sc->getSmartyDoubleVar('itm', 'link'); |
| 83 | 83 | $glyph = $hc->getHtmlTag('i', ['class' => 'glyphicon glyphicon-home'], '', false, true); |
| 84 | 84 | $anchor = $hc->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home'); |
| 85 | - $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t) . PHP_EOL; |
|
| 85 | + $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t).PHP_EOL; |
|
| 86 | 86 | $anchorIf = $hc->getHtmlAnchor($link, $title, $title, '', '', '', $t."\t").PHP_EOL; |
| 87 | 87 | $breadcrumb = $sc->getSmartyConditions('itm.link', '', '', $anchorIf, $titleElse, false, false, $t); |
| 88 | 88 | $foreach = $hc->getHtmlTag('li', ['class' => 'bc-item'], $breadcrumb, false, false, $t); |
@@ -96,12 +96,12 @@ |
||
| 96 | 96 | $stuFieldName = strtoupper($fieldName); |
| 97 | 97 | if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) { |
| 98 | 98 | $const = $hc->getSmartyConst($language, $stuFieldName); |
| 99 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const) . PHP_EOL; |
|
| 99 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const).PHP_EOL; |
|
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | - $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL; |
|
| 102 | + $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL; |
|
| 103 | 103 | |
| 104 | - return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr) . PHP_EOL; |
|
| 104 | + return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr).PHP_EOL; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
| 78 | 78 | $content .= $hc->getHtmlComment('About Page').PHP_EOL; |
| 79 | 79 | $single = $hc->getSmartySingleVar('about'); |
| 80 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 80 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 81 | 81 | $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
| 82 | 82 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 83 | 83 | |
@@ -85,8 +85,8 @@ |
||
| 85 | 85 | { |
| 86 | 86 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 87 | 87 | $form = $hc->getSmartySingleVar('form'); |
| 88 | - $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form) . PHP_EOL; |
|
| 89 | - $ret .= $hc->getHtmlTag('br', [], '', false) . PHP_EOL; |
|
| 88 | + $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form).PHP_EOL; |
|
| 89 | + $ret .= $hc->getHtmlTag('br', [], '', false).PHP_EOL; |
|
| 90 | 90 | |
| 91 | 91 | return $ret; |
| 92 | 92 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
| 79 | 79 | $content .= $hc->getHtmlComment('Index Page').PHP_EOL; |
| 80 | 80 | $single = $hc->getSmartySingleVar('index'); |
| 81 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 81 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 82 | 82 | $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
| 83 | 83 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 84 | 84 | |
@@ -75,9 +75,9 @@ |
||
| 75 | 75 | $moduleDirname = $module->getVar('mod_dirname'); |
| 76 | 76 | |
| 77 | 77 | $navigation = $hc->getSmartySingleVar('navigation'); |
| 78 | - $due = $hc->getHtmlTag('span', ['class' => 'left'], $navigation) . PHP_EOL; |
|
| 78 | + $due = $hc->getHtmlTag('span', ['class' => 'left'], $navigation).PHP_EOL; |
|
| 79 | 79 | $buttons = $hc->getSmartySingleVar('buttons'); |
| 80 | - $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons . ' '); |
|
| 80 | + $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons.' '); |
|
| 81 | 81 | $due .= $hc->getSmartyConditions('buttons', '', '', $right).PHP_EOL; |
| 82 | 82 | $content = $hc->getHtmlTag('div', ['class' => 'top'], $due); |
| 83 | 83 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $lang = $hc->getSmartyConst($language, 'FORM_ACTION'); |
| 110 | 110 | $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t"); |
| 111 | - $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL; |
|
| 111 | + $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL; |
|
| 112 | 112 | $ret = $hc->getHtmlTag('thead', [], $tr); |
| 113 | 113 | |
| 114 | 114 | return $ret; |
@@ -156,12 +156,12 @@ discard block |
||
| 156 | 156 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 157 | 157 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 158 | 158 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 159 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img); |
|
| 159 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img); |
|
| 160 | 160 | break; |
| 161 | 161 | case 13: |
| 162 | 162 | $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
| 163 | 163 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 164 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false); |
|
| 164 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false); |
|
| 165 | 165 | $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t"); |
| 166 | 166 | break; |
| 167 | 167 | default: |
@@ -177,13 +177,13 @@ discard block |
||
| 177 | 177 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 178 | 178 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png'); |
| 179 | 179 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 180 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img); |
|
| 180 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img); |
|
| 181 | 181 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 182 | 182 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 183 | 183 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png'); |
| 184 | 184 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 185 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img); |
|
| 186 | - $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n" . $anchor); |
|
| 185 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img); |
|
| 186 | + $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n".$anchor); |
|
| 187 | 187 | $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\''); |
| 188 | 188 | $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td); |
| 189 | 189 | $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr); |