@@ -81,11 +81,11 @@ discard block |
||
| 81 | 81 | $fieldName = $fields[$f]->getVar('field_name'); |
| 82 | 82 | $stuFieldName = strtoupper($fieldName); |
| 83 | 83 | $lang = $hc->getSmartyConst($language, $stuFieldName); |
| 84 | - $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL; |
|
| 84 | + $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 85 | 85 | } |
| 86 | - $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL; |
|
| 86 | + $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL; |
|
| 87 | 87 | |
| 88 | - return $hc->getHtmlTableThead($tr) . PHP_EOL; |
|
| 88 | + return $hc->getHtmlTableThead($tr).PHP_EOL; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $td = ''; |
| 106 | 106 | if (1 == $tableAutoincrement) { |
| 107 | 107 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 108 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL; |
|
| 108 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL; |
|
| 109 | 109 | } |
| 110 | 110 | $fields = $this->getTableFields($tableMid, $tableId); |
| 111 | 111 | foreach (array_keys($fields) as $f) { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">... |
| 124 | 124 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 125 | 125 | $span = $hc->getHtmlTag('span', [], $double); |
| 126 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL; |
|
| 126 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL; |
|
| 127 | 127 | /*$ret .= <<<EOT |
| 128 | 128 | <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;"> </span></td>\n |
| 129 | 129 | EOT;*/ |
@@ -132,18 +132,18 @@ discard block |
||
| 132 | 132 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 133 | 133 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 134 | 134 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true); |
| 135 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL; |
|
| 135 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL; |
|
| 136 | 136 | break; |
| 137 | 137 | case 13: |
| 138 | - $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 138 | + $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 139 | 139 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 140 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true); |
|
| 141 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL; |
|
| 140 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true); |
|
| 141 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL; |
|
| 142 | 142 | break; |
| 143 | 143 | default: |
| 144 | 144 | if (0 != $f) { |
| 145 | 145 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 146 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL; |
|
| 146 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL; |
|
| 147 | 147 | } |
| 148 | 148 | break; |
| 149 | 149 | } |
@@ -153,19 +153,19 @@ discard block |
||
| 153 | 153 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 154 | 154 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png'); |
| 155 | 155 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true); |
| 156 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL; |
|
| 156 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL; |
|
| 157 | 157 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 158 | 158 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 159 | 159 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png'); |
| 160 | - $img = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true); |
|
| 161 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL; |
|
| 162 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL; |
|
| 160 | + $img = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true); |
|
| 161 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL; |
|
| 162 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL; |
|
| 163 | 163 | $cycle = $hc->getSmartyNoSimbol('cycle values="odd, even"'); |
| 164 | - $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL; |
|
| 165 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL; |
|
| 166 | - $tbody = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL; |
|
| 164 | + $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL; |
|
| 165 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL; |
|
| 166 | + $tbody = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL; |
|
| 167 | 167 | |
| 168 | - return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL; |
|
| 168 | + return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
@@ -175,10 +175,10 @@ discard block |
||
| 175 | 175 | private function getTemplatesBlocksTableTfoot() |
| 176 | 176 | { |
| 177 | 177 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 178 | - $td = $hc->getHtmlTag('td', [], ' ') . PHP_EOL; |
|
| 179 | - $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL; |
|
| 178 | + $td = $hc->getHtmlTag('td', [], ' ').PHP_EOL; |
|
| 179 | + $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL; |
|
| 180 | 180 | |
| 181 | - return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL; |
|
| 181 | + return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL; |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | $tbody .= $this->getTemplatesBlocksTableTfoot(); |
| 201 | 201 | $single = $hc->getSmartySingleVar('table_type'); |
| 202 | 202 | |
| 203 | - return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL; |
|
| 203 | + return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
@@ -480,10 +480,10 @@ discard block |
||
| 480 | 480 | break; |
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | - if (1 == $table->getVar('table_permissions')) { $table_permissions = 1;} |
|
| 484 | - if (1 == $table->getVar('table_admin')) { $table_admin = 1;} |
|
| 485 | - if (1 == $table->getVar('table_user')) { $table_user = 1;} |
|
| 486 | - if (1 == $table->getVar('table_tag')) { $table_tag = 1;} |
|
| 483 | + if (1 == $table->getVar('table_permissions')) { $table_permissions = 1; } |
|
| 484 | + if (1 == $table->getVar('table_admin')) { $table_admin = 1; } |
|
| 485 | + if (1 == $table->getVar('table_user')) { $table_user = 1; } |
|
| 486 | + if (1 == $table->getVar('table_tag')) { $table_tag = 1; } |
|
| 487 | 487 | } |
| 488 | 488 | |
| 489 | 489 | if (1 === $table_permissions) { |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | $ret .= $this->getSimpleString('++$c;'); |
| 523 | 523 | unset($this->keywords); |
| 524 | 524 | |
| 525 | - if ( 1 === $field_images) { |
|
| 525 | + if (1 === $field_images) { |
|
| 526 | 526 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image'); |
| 527 | 527 | $maxsize = [ |
| 528 | 528 | 'name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'", |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 229 | 229 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 230 | 230 | $t = "\t\t"; |
| 231 | - $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, $t); |
|
| 231 | + $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, $t); |
|
| 232 | 232 | $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
| 233 | 233 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
| 234 | 234 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/Frameworks/moduleclasses/icons/32'", null, false, $t); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 277 | 277 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 278 | 278 | $t = "\t\t\t"; |
| 279 | - $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, "\t\t"); |
|
| 279 | + $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, "\t\t"); |
|
| 280 | 280 | $contentIf = $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
| 281 | 281 | $contentIf .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
| 282 | 282 | $contentIf .= $xc->getXcEqualsOperator('$uploadDirectory', "'/uploads/{$moduleDirname}/images/shots'", null, false, $t); |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | $cc = ClassXoopsCode::getInstance(); |
| 328 | 328 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 329 | 329 | $t = "\t\t"; |
| 330 | - $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File ' . $ucfFieldName, $t); |
|
| 330 | + $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File '.$ucfFieldName, $t); |
|
| 331 | 331 | $ret .= $cc->getClassXoopsFormElementTray('formUrlFile', '_OPTIONS', '<br><br>', $t); |
| 332 | 332 | $ret .= $pc->getPhpCodeTernaryOperator('formUrl', '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')", $t); |
| 333 | 333 | $ret .= $cc->getClassXoopsFormText('formText', $language, $fieldName, 75, 255, 'formUrl', false, $t); |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 363 | 363 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 364 | 364 | $t = "\t\t"; |
| 365 | - $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image ' . $ucfFieldName, $t); |
|
| 365 | + $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image '.$ucfFieldName, $t); |
|
| 366 | 366 | $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
| 367 | 367 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
| 368 | 368 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/uploads/{$moduleDirname}/images/{$tableName}'", null, false, $t); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $paramLabel = "\"<br><img src='\".XOOPS_URL.\"/\".\$imageDirectory.\"/\".\${$ccFieldName}.\"' name='image1' id='image1' alt='' style='max-width:100px' />\""; |
| 379 | 379 | $xoopsFormLabel = $cc->getClassXoopsFormLabel('', "''", $paramLabel, true, ''); |
| 380 | 380 | $ret .= $cc->getClassAddElement('imageTray', $xoopsFormLabel, $t); |
| 381 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t); |
|
| 381 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t); |
|
| 382 | 382 | $ret .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t); |
| 383 | 383 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 384 | 384 | $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'FORM_UPLOAD_IMAGE_'.$stuTableName, 'attachedfile', $getConfig, true, ''); |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 412 | 412 | $stuTableName = strtoupper($tableName); |
| 413 | 413 | $t = "\t\t"; |
| 414 | - $ret = $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t); |
|
| 414 | + $ret = $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t); |
|
| 415 | 415 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 416 | 416 | $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'_'.$stuTableName, $fieldName, $getConfig, true, ''); |
| 417 | 417 | $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | $cc = ClassXoopsCode::getInstance(); |
| 438 | 438 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 439 | 439 | $t = "\t\t"; |
| 440 | - $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker ' . $ucfFieldName, $t); |
|
| 440 | + $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker '.$ucfFieldName, $t); |
|
| 441 | 441 | $getVar = $xc->getXcGetVar('', 'this', $fieldName, true); |
| 442 | 442 | $xoopsFormFile = $cc->getClassXoopsFormColorPicker('', $language, $fieldName, $getVar, true, ''); |
| 443 | 443 | $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | $t = "\t\t"; |
| 468 | 468 | $ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t); |
| 469 | 469 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $tableName, $t); |
| 470 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ucfTableName, $t); |
|
| 470 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'Select '.$ucfTableName, $t); |
|
| 471 | 471 | $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
| 472 | 472 | $ret .= $cc->getClassAddOption($ccFieldName.'Select', "'Empty'", $t); |
| 473 | 473 | $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$tableName}Handler->getList()", $t); |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | $cc = ClassXoopsCode::getInstance(); |
| 494 | 494 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 495 | 495 | $t = "\t\t"; |
| 496 | - $ret = $pc->getPhpCodeCommentLine('Form Select', 'User ' . $ucfFieldName, $t); |
|
| 496 | + $ret = $pc->getPhpCodeCommentLine('Form Select', 'User '.$ucfFieldName, $t); |
|
| 497 | 497 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 498 | 498 | $xoopsSelectUser = $cc->getClassXoopsFormSelectUser('', $language, $fieldName, 'false', $fieldName, true, $t); |
| 499 | 499 | $ret .= $cc->getClassAddElement('form', $xoopsSelectUser.$required, $t); |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 519 | 519 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 520 | 520 | $t = "\t\t"; |
| 521 | - $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No ' . $ucfFieldName, $t); |
|
| 521 | + $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No '.$ucfFieldName, $t); |
|
| 522 | 522 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 523 | 523 | $xoopsRadioYN = $cc->getClassXoopsFormRadioYN('', $language, $fieldName, $ccFieldName, true, $t); |
| 524 | 524 | $ret .= $cc->getClassAddElement('form', $xoopsRadioYN.$required, $t); |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | $t = "\t\t"; |
| 544 | 544 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 545 | 545 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 546 | - $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select ' . $ucfFieldName, $t); |
|
| 546 | + $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select '.$ucfFieldName, $t); |
|
| 547 | 547 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 548 | 548 | $xoopsTextDateSelect = $cc->getClassXoopsFormTextDateSelect('', $language, $fieldName, $fieldName, $ccFieldName, true, $t); |
| 549 | 549 | $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect.$required, $t); |