@@ -206,7 +206,7 @@ |
||
| 206 | 206 | $ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename'); |
| 207 | 207 | $ret .= $this->phpcode->getPhpCodeCommentLine('Output'); |
| 208 | 208 | $ret .= $this->xc->getXcTplAssign('pdfoutput', "\$pdf->Output('{$tableName}.pdf', 'I')"); |
| 209 | - $ret .= $this->xc->getXcTplDisplay($moduleDirname . "_pdf.tpl", '', false); |
|
| 209 | + $ret .= $this->xc->getXcTplDisplay($moduleDirname."_pdf.tpl", '', false); |
|
| 210 | 210 | |
| 211 | 211 | return $ret; |
| 212 | 212 | } |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | $pTopic = TDMCreatePhpCode::getInstance(); |
| 475 | 475 | $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 476 | 476 | $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 477 | - $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t); |
|
| 477 | + $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t); |
|
| 478 | 478 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 479 | 479 | |
| 480 | 480 | return $ret; |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | { |
| 497 | 497 | $pParentTopic = TDMCreatePhpCode::getInstance(); |
| 498 | 498 | $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t"); |
| 499 | - $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t"); |
|
| 499 | + $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t"); |
|
| 500 | 500 | $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS'); |
| 501 | 501 | $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups); |
| 502 | 502 | $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t); |
@@ -519,7 +519,7 @@ discard block |
||
| 519 | 519 | $pVarFromID = TDMCreatePhpCode::getInstance(); |
| 520 | 520 | $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t); |
| 521 | 521 | $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, ''); |
| 522 | - $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID); |
|
| 522 | + $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID); |
|
| 523 | 523 | $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t); |
| 524 | 524 | |
| 525 | 525 | return $ret; |
@@ -849,7 +849,7 @@ discard block |
||
| 849 | 849 | if ($usedoublequotes) { |
| 850 | 850 | return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n"; |
| 851 | 851 | } else { |
| 852 | - return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n"; |
|
| 852 | + return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n"; |
|
| 853 | 853 | } |
| 854 | 854 | } |
| 855 | 855 | |
@@ -1091,7 +1091,7 @@ discard block |
||
| 1091 | 1091 | $phpCodeSecurity = TDMCreatePhpCode::getInstance(); |
| 1092 | 1092 | $securityError = $this->getXcSecurityErrors(); |
| 1093 | 1093 | $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError); |
| 1094 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1094 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1095 | 1095 | $securityCheck = $this->getXcSecurityCheck(); |
| 1096 | 1096 | |
| 1097 | 1097 | return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t); |
@@ -1107,7 +1107,7 @@ discard block |
||
| 1107 | 1107 | public function getXcInsertData($tableName, $language, $t = '') |
| 1108 | 1108 | { |
| 1109 | 1109 | $phpCodeInsertData = TDMCreatePhpCode::getInstance(); |
| 1110 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1110 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1111 | 1111 | $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj'); |
| 1112 | 1112 | |
| 1113 | 1113 | return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t); |
@@ -1154,7 +1154,7 @@ discard block |
||
| 1154 | 1154 | $phpXoopsConfirm = TDMCreatePhpCode::getInstance(); |
| 1155 | 1155 | $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')"; |
| 1156 | 1156 | $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER'); |
| 1157 | - $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, ''); |
|
| 1157 | + $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, ''); |
|
| 1158 | 1158 | $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar); |
| 1159 | 1159 | $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n"; |
| 1160 | 1160 | |
@@ -1328,7 +1328,7 @@ discard block |
||
| 1328 | 1328 | { |
| 1329 | 1329 | $ret = TDMCreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 1330 | 1330 | $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 1331 | - $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t); |
|
| 1331 | + $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t); |
|
| 1332 | 1332 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 1333 | 1333 | |
| 1334 | 1334 | return $ret; |
@@ -1416,18 +1416,18 @@ discard block |
||
| 1416 | 1416 | $fieldMain = $fieldName; |
| 1417 | 1417 | } |
| 1418 | 1418 | if ((5 == $fieldElement) || (6 == $fieldElement)) { |
| 1419 | - $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName); |
|
| 1419 | + $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName); |
|
| 1420 | 1420 | } elseif (13 == $fieldElement) { |
| 1421 | 1421 | $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain); |
| 1422 | 1422 | } elseif (14 == $fieldElement) { |
| 1423 | 1423 | $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName); |
| 1424 | 1424 | } elseif (15 == $fieldElement) { |
| 1425 | - $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName); |
|
| 1425 | + $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName); |
|
| 1426 | 1426 | } else { |
| 1427 | 1427 | if ((0 != $f) && 1 == $tableAutoincrement) { |
| 1428 | - $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1428 | + $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1429 | 1429 | } elseif ((0 == $f) && 0 == $tableAutoincrement) { |
| 1430 | - $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1430 | + $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1431 | 1431 | } |
| 1432 | 1432 | } |
| 1433 | 1433 | } |
@@ -1449,7 +1449,7 @@ discard block |
||
| 1449 | 1449 | $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t); |
| 1450 | 1450 | $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t"); |
| 1451 | 1451 | $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t"); |
| 1452 | - $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t"); |
|
| 1452 | + $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t"); |
|
| 1453 | 1453 | $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t); |
| 1454 | 1454 | |
| 1455 | 1455 | return $ret; |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | if ($usedoubleqoute) { |
| 93 | 93 | $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "\"{$description}\""); |
| 94 | 94 | } else { |
| 95 | - $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'" . $description . "'"); |
|
| 95 | + $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'".$description."'"); |
|
| 96 | 96 | } |
| 97 | 97 | return $ret; |
| 98 | 98 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $ucfModuleDirname = ucfirst($moduleDirname); |
| 170 | 170 | $ucfTableName = ucfirst($tableName); |
| 171 | 171 | $ret = $pc->getPhpCodeDefined(); |
| 172 | - $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname . $ucfTableName]); |
|
| 172 | + $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname.$ucfTableName]); |
|
| 173 | 173 | $cCl = ''; |
| 174 | 174 | |
| 175 | 175 | $fieldInForm = []; |
@@ -527,7 +527,7 @@ discard block |
||
| 527 | 527 | $ucfTableName = ucfirst($tableName); |
| 528 | 528 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 529 | 529 | $ucfModuleTable = $ucfModuleDirname.$ucfTableName; |
| 530 | - $multiLineCom = ['Class Object Handler' => $ucfModuleDirname . $ucfTableName]; |
|
| 530 | + $multiLineCom = ['Class Object Handler' => $ucfModuleDirname.$ucfTableName]; |
|
| 531 | 531 | $ret = $pc->getPhpCodeCommentMultiLine($multiLineCom); |
| 532 | 532 | |
| 533 | 533 | $cClh = $pc->getPhpCodeCommentMultiLine(['Constructor' => '', '' => '', '@param' => 'null|XoopsDatabase $db'], "\t"); |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | $xc = TDMCreateXoopsCode::getInstance(); |
| 614 | 614 | $cc = ClassXoopsCode::getInstance(); |
| 615 | 615 | $ucfTableName = ucfirst($tableName); |
| 616 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get Count ' . $ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 616 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get Count '.$ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 617 | 617 | |
| 618 | 618 | $critCount = $cc->getClassCriteriaCompo('crCount'.$ucfTableName, "\t\t"); |
| 619 | 619 | $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
@@ -641,7 +641,7 @@ discard block |
||
| 641 | 641 | $xc = TDMCreateXoopsCode::getInstance(); |
| 642 | 642 | $cc = ClassXoopsCode::getInstance(); |
| 643 | 643 | $ucfTableName = ucfirst($tableName); |
| 644 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get All ' . $ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t"); |
|
| 644 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get All '.$ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t"); |
|
| 645 | 645 | |
| 646 | 646 | $critAll = $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t"); |
| 647 | 647 | $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | $pc = TDMCreatePhpCode::getInstance(); |
| 719 | 719 | $cc = ClassXoopsCode::getInstance(); |
| 720 | 720 | $ucfTableName = ucfirst($tableName); |
| 721 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria ' . $ucfTableName, '@param ' => "\$cr{$ucfTableName}", '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 721 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria '.$ucfTableName, '@param ' => "\$cr{$ucfTableName}", '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 722 | 722 | |
| 723 | 723 | $paramsAllCriteria = "\$cr{$ucfTableName}, \$start, \$limit, \$sort, \$order"; |
| 724 | 724 | |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | $tableSoleName = $table->getVar('table_solename'); |
| 751 | 751 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 752 | 752 | $ccTableSoleName = $this->getCamelCase($tableSoleName, true); |
| 753 | - $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName . ' from id', '' => '', '@return' => 'string'], "\t"); |
|
| 753 | + $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName.' from id', '' => '', '@return' => 'string'], "\t"); |
|
| 754 | 754 | $soleName = $xc->getXcEqualsOperator("\${$tableSoleName}Id", "(int)( \${$tableSoleName}Id )", null, false, "\t\t"); |
| 755 | 755 | $soleName .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, false, "\t\t"); |
| 756 | 756 | |
@@ -78,12 +78,12 @@ |
||
| 78 | 78 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 79 | 79 | |
| 80 | 80 | $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif'); |
| 81 | - $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true) . PHP_EOL; |
|
| 82 | - $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) . PHP_EOL; |
|
| 83 | - $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor) . PHP_EOL; |
|
| 81 | + $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true).PHP_EOL; |
|
| 82 | + $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img).PHP_EOL; |
|
| 83 | + $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor).PHP_EOL; |
|
| 84 | 84 | $tree = $hc->getHtmlTag('strong', [], $moduleName); |
| 85 | 85 | $tree .= $hc->getSmartyConst($language, 'MAINTAINEDBY').PHP_EOL; |
| 86 | - $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 86 | + $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 87 | 87 | $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], $tree); |
| 88 | 88 | |
| 89 | 89 | $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
@@ -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); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | //include_once XOOPS_ROOT_PATH . '/modules/TDMCreate/include/common.php'; |
| 26 | 26 | |
| 27 | 27 | if (function_exists($_GET['f'])) { // get function name and parameter $_GET['f']($_GET["p"]); |
| 28 | - include_once __DIR__ . '/logoGenerator.php'; |
|
| 28 | + include_once __DIR__.'/logoGenerator.php'; |
|
| 29 | 29 | $ret = logoGenerator::createLogo($_GET['iconName'], $_GET['caption']); |
| 30 | 30 | phpFunction($ret); |
| 31 | 31 | } else { |