@@ -214,7 +214,7 @@ |
||
| 214 | 214 | $moduleDirname = $module->getVar('mod_dirname'); |
| 215 | 215 | $language = $this->getLanguage($moduleDirname, 'MA'); |
| 216 | 216 | $content = $this->getHeaderFilesComments($module, $filename); |
| 217 | - $content .= $this->getUserRss($moduleDirname, $language); |
|
| 217 | + $content .= $this->getUserRss($moduleDirname, $language); |
|
| 218 | 218 | $this->create($moduleDirname, '/', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
| 219 | 219 | |
| 220 | 220 | return $this->renderFile(); |
@@ -85,9 +85,9 @@ |
||
| 85 | 85 | $moduleDirname = $module->getVar('mod_dirname'); |
| 86 | 86 | $content = $this->getHeaderFilesComments($module, $filename); |
| 87 | 87 | $isset = $this->phpcode->getPhpCodeIsset('templateMain'); |
| 88 | - $display = "\t" . $this->xc->getXcTplAssign('maintainedby', '$' . $moduleDirname . "->getConfig('maintainedby')"); |
|
| 89 | - $display .= "\t" . $this->phpcode->getPhpCodeRemoveCarriageReturn($this->xc->getXcTplDisplay(), '', "\r"); |
|
| 90 | - $content .= $this->phpcode->getPhpCodeConditions($isset, '', '', $display, false, '') . PHP_EOL; |
|
| 88 | + $display = "\t".$this->xc->getXcTplAssign('maintainedby', '$'.$moduleDirname."->getConfig('maintainedby')"); |
|
| 89 | + $display .= "\t".$this->phpcode->getPhpCodeRemoveCarriageReturn($this->xc->getXcTplDisplay(), '', "\r"); |
|
| 90 | + $content .= $this->phpcode->getPhpCodeConditions($isset, '', '', $display, false, '').PHP_EOL; |
|
| 91 | 91 | $content .= $this->xc->getXcCPFooter(); |
| 92 | 92 | |
| 93 | 93 | $this->create($moduleDirname, 'admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | $moduleDirname = $module->getVar('mod_dirname'); |
| 106 | 106 | $content = $this->getTemplatesUserMoreFile(); |
| 107 | 107 | |
| 108 | - $this->create($moduleDirname, $this->folder, $filename . '.' . $this->extension, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 108 | + $this->create($moduleDirname, $this->folder, $filename.'.'.$this->extension, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 109 | 109 | |
| 110 | 110 | return $this->renderFile(); |
| 111 | 111 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 81 | 81 | |
| 82 | - return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL; |
|
| 82 | + return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -95,9 +95,9 @@ discard block |
||
| 95 | 95 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 96 | 96 | $single = $hc->getSmartySingleVar('table_type'); |
| 97 | 97 | $table = $this->getTemplatesAdminPagesTableThead($tableName, $language); |
| 98 | - $table .= $this->getTemplatesAdminPagesTableTBody($moduleDirname, $tableName, $tableSoleName, $language); |
|
| 98 | + $table .= $this->getTemplatesAdminPagesTableTBody($moduleDirname, $tableName, $tableSoleName, $language); |
|
| 99 | 99 | |
| 100 | - return $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL; |
|
| 100 | + return $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -110,12 +110,12 @@ discard block |
||
| 110 | 110 | { |
| 111 | 111 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 112 | 112 | $stuTableName = mb_strtoupper($tableName); |
| 113 | - $lang = $hc->getSmartyConst($language, $stuTableName . '_TITLE'); |
|
| 113 | + $lang = $hc->getSmartyConst($language, $stuTableName.'_TITLE'); |
|
| 114 | 114 | $single = $hc->getSmartySingleVar('numb_col'); |
| 115 | - $th = $hc->getHtmlTableHead($lang, '', $single) . PHP_EOL; |
|
| 116 | - $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL; |
|
| 115 | + $th = $hc->getHtmlTableHead($lang, '', $single).PHP_EOL; |
|
| 116 | + $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL; |
|
| 117 | 117 | |
| 118 | - return $hc->getHtmlTableThead($tr) . PHP_EOL; |
|
| 118 | + return $hc->getHtmlTableThead($tr).PHP_EOL; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
@@ -131,14 +131,14 @@ discard block |
||
| 131 | 131 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 132 | 132 | $single = $hc->getSmartySingleVar('panel_type'); |
| 133 | 133 | $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName); |
| 134 | - $div = $hc->getHtmlDiv($include, 'panel panel-' . $single); |
|
| 135 | - $cont = $hc->getHtmlTableData($div) . PHP_EOL; |
|
| 136 | - $html = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL; |
|
| 137 | - $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL; |
|
| 138 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL; |
|
| 139 | - $tr = $hc->getHtmlTableRow($foreach) . PHP_EOL; |
|
| 140 | - |
|
| 141 | - return $hc->getHtmlTableTbody($tr) . PHP_EOL; |
|
| 134 | + $div = $hc->getHtmlDiv($include, 'panel panel-'.$single); |
|
| 135 | + $cont = $hc->getHtmlTableData($div).PHP_EOL; |
|
| 136 | + $html = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL; |
|
| 137 | + $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL; |
|
| 138 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL; |
|
| 139 | + $tr = $hc->getHtmlTableRow($foreach).PHP_EOL; |
|
| 140 | + |
|
| 141 | + return $hc->getHtmlTableTbody($tr).PHP_EOL; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
@@ -148,10 +148,10 @@ discard block |
||
| 148 | 148 | private function getTemplatesUserCategoriesTfoot() |
| 149 | 149 | { |
| 150 | 150 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 151 | - $td = $hc->getHtmlTableData(' ') . PHP_EOL; |
|
| 152 | - $tr = $hc->getHtmlTableRow($td) . PHP_EOL; |
|
| 151 | + $td = $hc->getHtmlTableData(' ').PHP_EOL; |
|
| 152 | + $tr = $hc->getHtmlTableRow($td).PHP_EOL; |
|
| 153 | 153 | |
| 154 | - return $hc->getHtmlTableTfoot($tr) . PHP_EOL; |
|
| 154 | + return $hc->getHtmlTableTfoot($tr).PHP_EOL; |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -165,10 +165,10 @@ discard block |
||
| 165 | 165 | private function getTemplatesUserCategories($moduleDirname, $tableName, $tableSoleName, $language) |
| 166 | 166 | { |
| 167 | 167 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 168 | - $tab = $this->getTemplatesUserCategoriesTable($moduleDirname, $tableName, $tableSoleName, $language) . PHP_EOL; |
|
| 169 | - $div = $hc->getHtmlDiv($tab, 'table-responsive') . PHP_EOL; |
|
| 168 | + $tab = $this->getTemplatesUserCategoriesTable($moduleDirname, $tableName, $tableSoleName, $language).PHP_EOL; |
|
| 169 | + $div = $hc->getHtmlDiv($tab, 'table-responsive').PHP_EOL; |
|
| 170 | 170 | |
| 171 | - return $hc->getSmartyConditions($tableName, ' gt ', '0', $div, false, true) . PHP_EOL; |
|
| 171 | + return $hc->getSmartyConditions($tableName, ' gt ', '0', $div, false, true).PHP_EOL; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
@@ -196,16 +196,16 @@ discard block |
||
| 196 | 196 | </div>\n |
| 197 | 197 | EOT;*/ |
| 198 | 198 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 199 | - $incl = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName) . PHP_EOL; |
|
| 200 | - $html = $hc->getHtmlEmpty('<br>') . PHP_EOL; |
|
| 201 | - $incl .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$numb_col', $html) . PHP_EOL; |
|
| 202 | - $const = $hc->getSmartyConst($language, $stuTableName . '_TITLE'); |
|
| 203 | - $div = $hc->getHtmlDiv($const, 'panel-heading') . PHP_EOL; |
|
| 204 | - $cont = $hc->getHtmlDiv($incl, 'panel panel-body') . PHP_EOL; |
|
| 205 | - $div .= $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL; |
|
| 199 | + $incl = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName).PHP_EOL; |
|
| 200 | + $html = $hc->getHtmlEmpty('<br>').PHP_EOL; |
|
| 201 | + $incl .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL; |
|
| 202 | + $const = $hc->getSmartyConst($language, $stuTableName.'_TITLE'); |
|
| 203 | + $div = $hc->getHtmlDiv($const, 'panel-heading').PHP_EOL; |
|
| 204 | + $cont = $hc->getHtmlDiv($incl, 'panel panel-body').PHP_EOL; |
|
| 205 | + $div .= $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL; |
|
| 206 | 206 | $panelType = $hc->getSmartySingleVar('panel_type'); |
| 207 | 207 | |
| 208 | - return $hc->getHtmlDiv($div, 'panel panel-' . $panelType) . PHP_EOL; |
|
| 208 | + return $hc->getHtmlDiv($div, 'panel panel-'.$panelType).PHP_EOL; |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | $tableFieldname = $table->getVar('table_fieldname'); |
| 237 | 237 | $language = $this->getLanguage($moduleDirname, 'MA'); |
| 238 | 238 | $content = $this->getTemplatesUserCategoriesHeader($moduleDirname); |
| 239 | - $content .= $this->getTemplatesUserCategoriesPanel($moduleDirname, $tableName, $tableSoleName, $language); |
|
| 239 | + $content .= $this->getTemplatesUserCategoriesPanel($moduleDirname, $tableName, $tableSoleName, $language); |
|
| 240 | 240 | /* |
| 241 | 241 | $content .= $this->getTemplatesUserCategories($moduleDirname, $tableName, $tableSoleName, $language);*/ |
| 242 | 242 | $content .= $this->getTemplatesUserCategoriesFooter($moduleDirname); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | private function getTemplatesUserRateHeader($moduleDirname, $table, $language) |
| 81 | 81 | { |
| 82 | - $ret = <<<EOT |
|
| 82 | + $ret = <<<EOT |
|
| 83 | 83 | <{include file="db:{$moduleDirname}_header.tpl"}> |
| 84 | 84 | <table class="{$moduleDirname}"> |
| 85 | 85 | <thead class="outer"> |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 89 | 89 | foreach (array_keys($fields) as $f) { |
| 90 | 90 | $fieldName = $fields[$f]->getVar('field_name'); |
| 91 | - $langStuFieldName = $language . mb_strtoupper($fieldName); |
|
| 91 | + $langStuFieldName = $language.mb_strtoupper($fieldName); |
|
| 92 | 92 | if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) { |
| 93 | 93 | $ret .= <<<EOT |
| 94 | 94 | <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | <{foreach item=list from=\${$tableName}}> |
| 120 | 120 | <tr class="<{cycle values='odd, even'}>">\n |
| 121 | 121 | EOT; |
| 122 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 122 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 123 | 123 | foreach (array_keys($fields) as $f) { |
| 124 | 124 | $fieldName = $fields[$f]->getVar('field_name'); |
| 125 | 125 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | <{foreach item=list from=\${$tableName}}> |
| 176 | 176 | <tr class="<{cycle values='odd, even'}>">\n |
| 177 | 177 | EOT; |
| 178 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 178 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 179 | 179 | foreach (array_keys($fields) as $f) { |
| 180 | 180 | $fieldName = $fields[$f]->getVar('field_name'); |
| 181 | 181 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | private function getTemplatesUserCategoriesListThead($table, $language) |
| 94 | 94 | { |
| 95 | - $ret = <<<EOT |
|
| 95 | + $ret = <<<EOT |
|
| 96 | 96 | <thead> |
| 97 | 97 | <tr>\n |
| 98 | 98 | EOT; |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | if (1 == $fields[$f]->getVar('field_thead')) { |
| 103 | 103 | $fieldName = $fields[$f]->getVar('field_name'); |
| 104 | 104 | $rpFieldName = $this->getRightString($fieldName); |
| 105 | - $ret .= <<<EOT |
|
| 105 | + $ret .= <<<EOT |
|
| 106 | 106 | <th><{\$list.{$rpFieldName}}></th>\n |
| 107 | 107 | EOT; |
| 108 | 108 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | <tbody> |
| 132 | 132 | <tr>\n |
| 133 | 133 | EOT; |
| 134 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 134 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 135 | 135 | foreach (array_keys($fields) as $f) { |
| 136 | 136 | $fieldElement = $fields[$f]->getVar('field_element'); |
| 137 | 137 | if (1 == $fields[$f]->getVar('field_user')) { |
@@ -141,14 +141,14 @@ discard block |
||
| 141 | 141 | case 10: |
| 142 | 142 | $fieldName = $fields[$f]->getVar('field_name'); |
| 143 | 143 | $rpFieldName = $this->getRightString($fieldName); |
| 144 | - $ret .= <<<EOT |
|
| 144 | + $ret .= <<<EOT |
|
| 145 | 145 | <td class="center pad5"><img src="<{\$xoops_icons32_url}>/<{\$list.{$rpFieldName}}>" alt="{$tableName}" /></td>\n |
| 146 | 146 | EOT; |
| 147 | 147 | break; |
| 148 | 148 | case 13: |
| 149 | 149 | $fieldName = $fields[$f]->getVar('field_name'); |
| 150 | 150 | $rpFieldName = $this->getRightString($fieldName); |
| 151 | - $ret .= <<<EOT |
|
| 151 | + $ret .= <<<EOT |
|
| 152 | 152 | <td class="center pad5"><img src="<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\$list.{$rpFieldName}}>" alt="{$tableName}" /></td>\n |
| 153 | 153 | EOT; |
| 154 | 154 | break; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | case 4: |
| 158 | 158 | $fieldName = $fields[$f]->getVar('field_name'); |
| 159 | 159 | $rpFieldName = $this->getRightString($fieldName); |
| 160 | - $ret .= <<<EOT |
|
| 160 | + $ret .= <<<EOT |
|
| 161 | 161 | <td class="justify pad5"><{\$list.{$rpFieldName}}></td>\n |
| 162 | 162 | EOT; |
| 163 | 163 | break; |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | if (1 == $fields[$f]->getVar('field_tfoot')) { |
| 194 | 194 | $fieldName = $fields[$f]->getVar('field_name'); |
| 195 | 195 | $rpFieldName = $this->getRightString($fieldName); |
| 196 | - $ret .= <<<EOT |
|
| 196 | + $ret .= <<<EOT |
|
| 197 | 197 | <td class="center"><{\$list.{$rpFieldName}}></td>\n |
| 198 | 198 | EOT; |
| 199 | 199 | } |
@@ -249,35 +249,35 @@ discard block |
||
| 249 | 249 | case 2: |
| 250 | 250 | $rpFieldName = $this->getRightString($fieldName); |
| 251 | 251 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 252 | - $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2') . PHP_EOL; |
|
| 252 | + $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2').PHP_EOL; |
|
| 253 | 253 | break; |
| 254 | 254 | case 3: |
| 255 | 255 | case 4: |
| 256 | 256 | $rpFieldName = $this->getRightString($fieldName); |
| 257 | 257 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 258 | - $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify') . PHP_EOL; |
|
| 258 | + $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify').PHP_EOL; |
|
| 259 | 259 | break; |
| 260 | 260 | case 10: |
| 261 | 261 | $rpFieldName = $this->getRightString($fieldName); |
| 262 | 262 | $singleVar = $hc->getSmartySingleVar('xoops_icons32_url'); |
| 263 | 263 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 264 | - $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName); |
|
| 265 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL; |
|
| 264 | + $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName); |
|
| 265 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL; |
|
| 266 | 266 | unset($img); |
| 267 | 267 | break; |
| 268 | 268 | case 13: |
| 269 | 269 | $rpFieldName = $this->getRightString($fieldName); |
| 270 | - $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 270 | + $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 271 | 271 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 272 | - $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName); |
|
| 273 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL; |
|
| 272 | + $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName); |
|
| 273 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL; |
|
| 274 | 274 | unset($img); |
| 275 | 275 | break; |
| 276 | 276 | } |
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | - $ret .= $hc->getHtmlDiv($retElem, 'panel-body') . PHP_EOL; |
|
| 280 | + $ret .= $hc->getHtmlDiv($retElem, 'panel-body').PHP_EOL; |
|
| 281 | 281 | |
| 282 | 282 | return $ret; |
| 283 | 283 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | private function getTemplatesUserSearchHeader($moduleDirname, $table, $language) |
| 81 | 81 | { |
| 82 | - $ret = <<<EOT |
|
| 82 | + $ret = <<<EOT |
|
| 83 | 83 | <{include file="db:{$moduleDirname}_header.tpl"}> |
| 84 | 84 | <table class="{$moduleDirname}"> |
| 85 | 85 | <thead class="outer"> |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 89 | 89 | foreach (array_keys($fields) as $f) { |
| 90 | 90 | $fieldName = $fields[$f]->getVar('field_name'); |
| 91 | - $langStuFieldName = $language . mb_strtoupper($fieldName); |
|
| 91 | + $langStuFieldName = $language.mb_strtoupper($fieldName); |
|
| 92 | 92 | if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) { |
| 93 | 93 | $ret .= <<<EOT |
| 94 | 94 | <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | <{foreach item=list from=\${$tableName}}> |
| 120 | 120 | <tr class="<{cycle values='odd, even'}>">\n |
| 121 | 121 | EOT; |
| 122 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 122 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 123 | 123 | foreach (array_keys($fields) as $f) { |
| 124 | 124 | $fieldName = $fields[$f]->getVar('field_name'); |
| 125 | 125 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | <{foreach item=list from=\${$tableName}}> |
| 176 | 176 | <tr class="<{cycle values='odd, even'}>">\n |
| 177 | 177 | EOT; |
| 178 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 178 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 179 | 179 | foreach (array_keys($fields) as $f) { |
| 180 | 180 | $fieldName = $fields[$f]->getVar('field_name'); |
| 181 | 181 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | private function getTemplatesUserPrintHeader($moduleDirname, $table, $language) |
| 81 | 81 | { |
| 82 | - $ret = <<<EOT |
|
| 82 | + $ret = <<<EOT |
|
| 83 | 83 | <{include file="db:{$moduleDirname}_header.tpl"}> |
| 84 | 84 | <table class="{$moduleDirname}"> |
| 85 | 85 | <thead class="outer"> |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 89 | 89 | foreach (array_keys($fields) as $f) { |
| 90 | 90 | $fieldName = $fields[$f]->getVar('field_name'); |
| 91 | - $langStuFieldName = $language . mb_strtoupper($fieldName); |
|
| 91 | + $langStuFieldName = $language.mb_strtoupper($fieldName); |
|
| 92 | 92 | if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) { |
| 93 | 93 | $ret .= <<<EOT |
| 94 | 94 | <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | <{foreach item=list from=\${$tableName}}> |
| 120 | 120 | <tr class="<{cycle values='odd, even'}>">\n |
| 121 | 121 | EOT; |
| 122 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 122 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 123 | 123 | foreach (array_keys($fields) as $f) { |
| 124 | 124 | $fieldName = $fields[$f]->getVar('field_name'); |
| 125 | 125 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | <{foreach item=list from=\${$tableName}}> |
| 176 | 176 | <tr class="<{cycle values='odd, even'}>">\n |
| 177 | 177 | EOT; |
| 178 | - $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 178 | + $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 179 | 179 | foreach (array_keys($fields) as $f) { |
| 180 | 180 | $fieldName = $fields[$f]->getVar('field_name'); |
| 181 | 181 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -78,12 +78,12 @@ |
||
| 78 | 78 | $filename = $this->getFileName(); |
| 79 | 79 | $moduleDirname = $module->getVar('mod_dirname'); |
| 80 | 80 | |
| 81 | - $content = $hc->getHtmlComment('Header') . PHP_EOL; |
|
| 82 | - $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true) . PHP_EOL; |
|
| 83 | - $content .= $hc->getHtmlComment('Index Page') . PHP_EOL; |
|
| 81 | + $content = $hc->getHtmlComment('Header').PHP_EOL; |
|
| 82 | + $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
|
| 83 | + $content .= $hc->getHtmlComment('Index Page').PHP_EOL; |
|
| 84 | 84 | $single = $hc->getSmartySingleVar('index'); |
| 85 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 86 | - $content .= $hc->getHtmlComment('Footer') . PHP_EOL; |
|
| 85 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 86 | + $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
|
| 87 | 87 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 88 | 88 | |
| 89 | 89 | $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |