@@ -94,12 +94,12 @@ |
||
| 94 | 94 | $tableName = $table->getVar('table_name'); |
| 95 | 95 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 96 | 96 | $ret = ''; |
| 97 | - $ret .= $hc->getHtmlEmpty('', '',"\n"); |
|
| 97 | + $ret .= $hc->getHtmlEmpty('', '', "\n"); |
|
| 98 | 98 | $content = $hc->getHtmlHNumb('Services Panels', '2', 'page-header', "\t\t\t"); |
| 99 | 99 | $collg12 = $hc->getHtmlDiv($content, 'col-lg-12', "\t\t"); |
| 100 | 100 | $row = $hc->getHtmlDiv($collg12, 'row', "\t"); |
| 101 | 101 | $ret .= $hc->getHtmlDiv($row, 'container'); |
| 102 | - $ret .= $hc->getHtmlEmpty('', '',"\n"); |
|
| 102 | + $ret .= $hc->getHtmlEmpty('', '', "\n"); |
|
| 103 | 103 | |
| 104 | 104 | return $ret; |
| 105 | 105 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | { |
| 83 | 83 | $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true, '', "\n\n"); |
| 84 | 84 | $var = $this->htmlcode->getSmartySingleVar('ads', '', ''); |
| 85 | - $div = $this->htmlcode->getHtmlDiv($var, 'center', "\t","\n", false) ; |
|
| 85 | + $div = $this->htmlcode->getHtmlDiv($var, 'center', "\t", "\n", false); |
|
| 86 | 86 | $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div); |
| 87 | 87 | |
| 88 | 88 | return $ret; |
@@ -80,17 +80,17 @@ |
||
| 80 | 80 | $tf = Tdmcreate\Files\CreateFile::getInstance(); |
| 81 | 81 | $hsc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 82 | 82 | $title = $hsc->getSmartyDoubleVar('itm', 'title'); |
| 83 | - $titleElse = $hsc->getSmartyDoubleVar('itm', 'title', "\t\t\t", "\n") ; |
|
| 83 | + $titleElse = $hsc->getSmartyDoubleVar('itm', 'title', "\t\t\t", "\n"); |
|
| 84 | 84 | $link = $hsc->getSmartyDoubleVar('itm', 'link'); |
| 85 | 85 | $glyph = $hsc->getHtmlTag('i', ['class' => 'glyphicon glyphicon-home'], '', false, '', ''); |
| 86 | 86 | $anchor = $hsc->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home'); |
| 87 | 87 | $into = $hsc->getHtmlLi($anchor, 'bc-item', "\t"); |
| 88 | 88 | $anchorIf = $hsc->getHtmlAnchor($link, $title, $title, '', '', '', "\t\t\t", "\n"); |
| 89 | 89 | $breadcrumb = $hsc->getSmartyConditions('itm.link', '', '', $anchorIf, $titleElse, false, false, "\t\t", "\n"); |
| 90 | - $foreach = $hsc->getHtmlLi($breadcrumb, 'bc-item', "\t", "\n", true); |
|
| 91 | - $into .= $hsc->getSmartyForeach('itm', 'xoBreadcrumbs', $foreach, 'bcloop', '', "\t"); |
|
| 90 | + $foreach = $hsc->getHtmlLi($breadcrumb, 'bc-item', "\t", "\n", true); |
|
| 91 | + $into .= $hsc->getSmartyForeach('itm', 'xoBreadcrumbs', $foreach, 'bcloop', '', "\t"); |
|
| 92 | 92 | |
| 93 | - $content = $hsc->getHtmlOl($into, 'breadcrumb'); |
|
| 93 | + $content = $hsc->getHtmlOl($into, 'breadcrumb'); |
|
| 94 | 94 | |
| 95 | 95 | $tf->create($moduleDirname, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
| 96 | 96 | |
@@ -92,23 +92,23 @@ |
||
| 92 | 92 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 93 | 93 | |
| 94 | 94 | $const = $hc->getSmartyConst($language, 'SUBMIT_SUBMITONCE'); |
| 95 | - $li = $hc->getHtmlLi($const, '',"\t\t"); |
|
| 95 | + $li = $hc->getHtmlLi($const, '', "\t\t"); |
|
| 96 | 96 | $const = $hc->getSmartyConst($language, 'SUBMIT_ALLPENDING'); |
| 97 | - $li .= $hc->getHtmlLi($const, '',"\t\t"); |
|
| 97 | + $li .= $hc->getHtmlLi($const, '', "\t\t"); |
|
| 98 | 98 | $const = $hc->getSmartyConst($language, 'SUBMIT_DONTABUSE'); |
| 99 | - $li .= $hc->getHtmlLi($const, '',"\t\t"); |
|
| 99 | + $li .= $hc->getHtmlLi($const, '', "\t\t"); |
|
| 100 | 100 | $const = $hc->getSmartyConst($language, 'SUBMIT_TAKEDAYS'); |
| 101 | - $li .= $hc->getHtmlLi($const, '',"\t\t"); |
|
| 101 | + $li .= $hc->getHtmlLi($const, '', "\t\t"); |
|
| 102 | 102 | $ul = $hc->getHtmlUl($li, '', "\t"); |
| 103 | 103 | |
| 104 | - $ret = $hc->getHtmlEmpty('', '',"\n"); |
|
| 105 | - $ret .= $hc->getHtmlDiv($ul, $moduleDirname . '-tips'); |
|
| 104 | + $ret = $hc->getHtmlEmpty('', '', "\n"); |
|
| 105 | + $ret .= $hc->getHtmlDiv($ul, $moduleDirname.'-tips'); |
|
| 106 | 106 | $single = $hc->getSmartySingleVar('message_error'); |
| 107 | 107 | $divError = $hc->getHtmlDiv($single, 'errorMsg', "\t", "\n", false); |
| 108 | 108 | $ret .= $hc->getSmartyConditions('message_error', ' != ', '\'\'', $divError); |
| 109 | 109 | $single = $hc->getSmartySingleVar('form', "\t", "\n"); |
| 110 | - $ret .= $hc->getHtmlDiv($single, $moduleDirname . '-submitform'); |
|
| 111 | - $ret .= $hc->getHtmlEmpty('', '',"\n"); |
|
| 110 | + $ret .= $hc->getHtmlDiv($single, $moduleDirname.'-submitform'); |
|
| 111 | + $ret .= $hc->getHtmlEmpty('', '', "\n"); |
|
| 112 | 112 | |
| 113 | 113 | return $ret; |
| 114 | 114 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | - $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading'); |
|
| 105 | + $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading'); |
|
| 106 | 106 | $retElem = ''; |
| 107 | 107 | foreach (array_keys($fields) as $f) { |
| 108 | 108 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -115,41 +115,41 @@ discard block |
||
| 115 | 115 | $fieldName = $fields[$f]->getVar('field_name'); |
| 116 | 116 | $rpFieldName = $this->getRightString($fieldName); |
| 117 | 117 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 118 | - $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify', "\t"); |
|
| 118 | + $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify', "\t"); |
|
| 119 | 119 | break; |
| 120 | 120 | case 10: |
| 121 | 121 | $fieldName = $fields[$f]->getVar('field_name'); |
| 122 | 122 | $rpFieldName = $this->getRightString($fieldName); |
| 123 | 123 | $singleVar = $hc->getSmartySingleVar('xoops_icons32_url'); |
| 124 | 124 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 125 | - $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName); |
|
| 126 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t"); |
|
| 125 | + $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName); |
|
| 126 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t"); |
|
| 127 | 127 | unset($img); |
| 128 | 128 | break; |
| 129 | 129 | case 13: |
| 130 | 130 | $fieldName = $fields[$f]->getVar('field_name'); |
| 131 | 131 | $rpFieldName = $this->getRightString($fieldName); |
| 132 | - $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 132 | + $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 133 | 133 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 134 | - $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName); |
|
| 135 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3',"\t"); |
|
| 134 | + $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName); |
|
| 135 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t"); |
|
| 136 | 136 | unset($img); |
| 137 | 137 | break; |
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | - $ret .= $hc->getHtmlDiv($retElem, 'panel-body'); |
|
| 142 | + $ret .= $hc->getHtmlDiv($retElem, 'panel-body'); |
|
| 143 | 143 | $retFoot = ''; |
| 144 | 144 | foreach (array_keys($fields) as $f) { |
| 145 | 145 | if (1 == $fields[$f]->getVar('field_user')) { |
| 146 | 146 | if (1 == $fields[$f]->getVar('field_tfoot')) { |
| 147 | 147 | $fieldName = $fields[$f]->getVar('field_name'); |
| 148 | 148 | $rpFieldName = $this->getRightString($fieldName); |
| 149 | - $langConst = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName); |
|
| 149 | + $langConst = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName); |
|
| 150 | 150 | $lang = $hc->getSmartyConst($language, $langConst); |
| 151 | 151 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 152 | - $retFoot .= $hc->getHtmlSpan($lang . ': ' . $doubleVar, 'block-pie justify',"\t"); |
|
| 152 | + $retFoot .= $hc->getHtmlSpan($lang.': '.$doubleVar, 'block-pie justify', "\t"); |
|
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | } |
@@ -100,10 +100,10 @@ discard block |
||
| 100 | 100 | $stuFieldName = mb_strtoupper($fieldName); |
| 101 | 101 | if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) { |
| 102 | 102 | $const = $hc->getSmartyConst($language, $stuFieldName); |
| 103 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const, '', "\t\t\t"); |
|
| 103 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const, '', "\t\t\t"); |
|
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | - $tr = $hc->getHtmlTableRow($th, 'head',"\t\t"); |
|
| 106 | + $tr = $hc->getHtmlTableRow($th, 'head', "\t\t"); |
|
| 107 | 107 | |
| 108 | 108 | return $hc->getHtmlTableThead($tr, 'outer', "\t"); |
| 109 | 109 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | switch ($fieldElement) { |
| 133 | 133 | case 9: |
| 134 | 134 | $span = $hc->getHtmlSpan("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", "#<{\${$tableSoleName}.{$rpFieldName}}>"); |
| 135 | - $ret .= $hc->getHtmlTableData($span, 'center', '', "\t\t\t"); |
|
| 135 | + $ret .= $hc->getHtmlTableData($span, 'center', '', "\t\t\t"); |
|
| 136 | 136 | break; |
| 137 | 137 | case 10: |
| 138 | 138 | $img = $hc->getHtmlImage("<{xoModuleIcons32}><{\${$tableSoleName}.{$rpFieldName}}>", $tableName); |
@@ -140,15 +140,15 @@ discard block |
||
| 140 | 140 | break; |
| 141 | 141 | case 13: |
| 142 | 142 | $img = $hc->getHtmlImage("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", $tableName); |
| 143 | - $ret .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t") ; |
|
| 143 | + $ret .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t"); |
|
| 144 | 144 | break; |
| 145 | 145 | default: |
| 146 | - $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center', '', "\t\t\t") ; |
|
| 146 | + $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center', '', "\t\t\t"); |
|
| 147 | 147 | break; |
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | - $row = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>',"\t\t") ; |
|
| 151 | + $row = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>', "\t\t"); |
|
| 152 | 152 | $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $row, '', '', "\t\t"); |
| 153 | 153 | |
| 154 | 154 | return $hc->getHtmlTableTbody($foreach, '', "\t"); |
@@ -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->getTemplatesUserIndexTableThead($tableName, $language); |
| 98 | - $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language); |
|
| 98 | + $table .= $this->getTemplatesUserIndexTableTBody($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 | /** |
@@ -112,10 +112,10 @@ discard block |
||
| 112 | 112 | $stuTableName = mb_strtoupper($tableName); |
| 113 | 113 | $lang = $hc->getSmartyConst($language, $stuTableName); |
| 114 | 114 | $col = $hc->getSmartySingleVar('numb_col'); |
| 115 | - $th = $hc->getHtmlTableHead($lang, '', $col) . PHP_EOL; |
|
| 116 | - $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL; |
|
| 115 | + $th = $hc->getHtmlTableHead($lang, '', $col).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 | $type = $hc->getSmartySingleVar('panel_type'); |
| 133 | 133 | $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName); |
| 134 | - $div = $hc->getHtmlDiv($include, 'panel panel-' . $type); |
|
| 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; |
|
| 134 | + $div = $hc->getHtmlDiv($include, 'panel panel-'.$type); |
|
| 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 | 140 | |
| 141 | - return $hc->getHtmlTableTbody($tr) . PHP_EOL; |
|
| 141 | + return $hc->getHtmlTableTbody($tr).PHP_EOL; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
@@ -148,10 +148,10 @@ discard block |
||
| 148 | 148 | private function getTemplatesUserIndexTableTfoot() |
| 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 | /** |
@@ -179,11 +179,11 @@ discard block |
||
| 179 | 179 | <ul class="menu text-center"> |
| 180 | 180 | <li><a href="<{\${$moduleDirname}_url}>"><{\$smarty.const.{$language}INDEX}></a></li>\n |
| 181 | 181 | EOT; |
| 182 | - $tables = $this->getTableTables($module->getVar('mod_id'), 'table_order'); |
|
| 182 | + $tables = $this->getTableTables($module->getVar('mod_id'), 'table_order'); |
|
| 183 | 183 | foreach (array_keys($tables) as $i) { |
| 184 | 184 | $tableName = $tables[$i]->getVar('table_name'); |
| 185 | 185 | $stuTableName = mb_strtoupper($tableName); |
| 186 | - $ret .= <<<EOT |
|
| 186 | + $ret .= <<<EOT |
|
| 187 | 187 | <li><a href="<{\${$moduleDirname}_url}>/{$tableName}.php"><{\$smarty.const.{$language}{$stuTableName}}></a></li>\n |
| 188 | 188 | EOT; |
| 189 | 189 | } |
@@ -252,10 +252,10 @@ discard block |
||
| 252 | 252 | $single = $hc->getSmartySingleVar('table_type'); |
| 253 | 253 | $table = $this->getTemplatesUserIndexTableThead($tableName, $language); |
| 254 | 254 | $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language); |
| 255 | - $table .= $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL; |
|
| 256 | - $div = $hc->getHtmlDiv($table, 'table-responsive') . PHP_EOL; |
|
| 255 | + $table .= $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL; |
|
| 256 | + $div = $hc->getHtmlDiv($table, 'table-responsive').PHP_EOL; |
|
| 257 | 257 | |
| 258 | - return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/ . PHP_EOL; |
|
| 258 | + return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/.PHP_EOL; |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $moduleDirname = $module->getVar('mod_dirname'); |
| 320 | 320 | $language = $this->getLanguage($moduleDirname, 'MA'); |
| 321 | 321 | $content = $this->getTemplateUserIndexHeader($moduleDirname); |
| 322 | - $content .= $this->getTemplatesUserIndexBodyDefault($module, $table, $language); |
|
| 322 | + $content .= $this->getTemplatesUserIndexBodyDefault($module, $table, $language); |
|
| 323 | 323 | foreach (array_keys($tables) as $t) { |
| 324 | 324 | $tableName = $tables[$t]->getVar('table_name'); |
| 325 | 325 | $tableSoleName = $tables[$t]->getVar('table_solename'); |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | $content .= $this->getTemplateUserIndexTable($moduleDirname, $tableName, $tableSoleName, $language); |
| 334 | 334 | } |
| 335 | 335 | } |
| 336 | - $content .= $this->getTemplateUserIndexFooter($moduleDirname); |
|
| 336 | + $content .= $this->getTemplateUserIndexFooter($moduleDirname); |
|
| 337 | 337 | $tdmcfile = Tdmcreate\Files\CreateFile::getInstance(); |
| 338 | 338 | $tdmcfile->create($moduleDirname, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
| 339 | 339 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 79 | 79 | |
| 80 | - return $hc->getSmartyIncludeFile($moduleDirname, 'header', '','','',"\n\n"); |
|
| 80 | + return $hc->getSmartyIncludeFile($moduleDirname, 'header', '', '', '', "\n\n"); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $tbody .= $this->getTemplatesUserPagesTableTfoot(); |
| 97 | 97 | $single = $hc->getSmartySingleVar('table_type'); |
| 98 | 98 | |
| 99 | - return $hc->getHtmlTable($tbody, 'table table-' . $single, "\t"); |
|
| 99 | + return $hc->getHtmlTable($tbody, 'table table-'.$single, "\t"); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 111 | 111 | $stuTableName = mb_strtoupper($tableName); |
| 112 | 112 | $single = $hc->getSmartySingleVar('divideby'); |
| 113 | - $lang = $hc->getSmartyConst($language, $stuTableName . '_TITLE'); |
|
| 113 | + $lang = $hc->getSmartyConst($language, $stuTableName.'_TITLE'); |
|
| 114 | 114 | $th = $hc->getHtmlTableHead($lang, '', $single, "\t\t\t\t"); |
| 115 | 115 | $tr = $hc->getHtmlTableRow($th, 'head', "\t\t\t"); |
| 116 | 116 | |
@@ -130,14 +130,14 @@ discard block |
||
| 130 | 130 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 131 | 131 | $single = $hc->getSmartySingleVar('panel_type'); |
| 132 | 132 | $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName, "\t\t\t\t\t\t", "\n"); |
| 133 | - $div = $hc->getHtmlDiv($include, 'panel panel-' . $single, "\t\t\t\t\t", "\n"); |
|
| 133 | + $div = $hc->getHtmlDiv($include, 'panel panel-'.$single, "\t\t\t\t\t", "\n"); |
|
| 134 | 134 | $cont = $hc->getHtmlTableData($div, '', '', "\t\t\t\t", "\n", true); |
| 135 | 135 | $html = $hc->getHtmlEmpty('</tr><tr>', "\t\t\t\t\t", "\n"); |
| 136 | - $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html, '', '', '',"\t\t\t\t"); |
|
| 137 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont,'','',"\t\t\t\t"); |
|
| 138 | - $tr = $hc->getHtmlTableRow($foreach,'',"\t\t\t"); |
|
| 136 | + $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html, '', '', '', "\t\t\t\t"); |
|
| 137 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont, '', '', "\t\t\t\t"); |
|
| 138 | + $tr = $hc->getHtmlTableRow($foreach, '', "\t\t\t"); |
|
| 139 | 139 | |
| 140 | - return $hc->getHtmlTableTbody($tr,'',"\t\t"); |
|
| 140 | + return $hc->getHtmlTableTbody($tr, '', "\t\t"); |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
@@ -94,23 +94,23 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 96 | 96 | $th = ''; |
| 97 | - $langHeadId = mb_strtoupper($tableSoleName) . '_ID'; |
|
| 97 | + $langHeadId = mb_strtoupper($tableSoleName).'_ID'; |
|
| 98 | 98 | if (1 == $tableAutoincrement) { |
| 99 | 99 | $lang = $hc->getSmartyConst($language, $langHeadId); |
| 100 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t"); |
|
| 100 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t"); |
|
| 101 | 101 | } |
| 102 | 102 | foreach (array_keys($fields) as $f) { |
| 103 | 103 | $fieldName = $fields[$f]->getVar('field_name'); |
| 104 | 104 | $rpFieldName = $this->getRightString($fieldName); |
| 105 | - $langFieldName = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName); |
|
| 105 | + $langFieldName = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName); |
|
| 106 | 106 | if (1 == $fields[$f]->getVar('field_inlist')) { |
| 107 | 107 | $lang = $hc->getSmartyConst($language, $langFieldName); |
| 108 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t"); |
|
| 108 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t"); |
|
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $lang = $hc->getSmartyConst($language, 'FORM_ACTION'); |
| 113 | - $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t"); |
|
| 113 | + $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t"); |
|
| 114 | 114 | //$tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th, false, "\t\t\t"); |
| 115 | 115 | $tr = $hc->getHtmlTableRow($th, 'head', "\t\t\t"); |
| 116 | 116 | //$ret = $hc->getHtmlTag('thead', [], $tr, false, "\t\t"); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | if (1 == $tableAutoincrement) { |
| 137 | 137 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 138 | 138 | //$td .= $hc->getHtmlTableData($double, 'center'); |
| 139 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t"); |
|
| 139 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t"); |
|
| 140 | 140 | } |
| 141 | 141 | foreach (array_keys($fields) as $f) { |
| 142 | 142 | $fieldName = $fields[$f]->getVar('field_name'); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">... |
| 154 | 154 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 155 | 155 | $span = $hc->getHtmlTag('span', [], $double); |
| 156 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t\t"); |
|
| 156 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t\t"); |
|
| 157 | 157 | /*$ret .= <<<EOT |
| 158 | 158 | <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;"> </span></td>\n |
| 159 | 159 | EOT;*/ |
@@ -165,15 +165,15 @@ discard block |
||
| 165 | 165 | $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t"); |
| 166 | 166 | break; |
| 167 | 167 | case 13: |
| 168 | - $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 168 | + $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 169 | 169 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 170 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', ''); |
|
| 171 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t"); |
|
| 170 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', ''); |
|
| 171 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t"); |
|
| 172 | 172 | break; |
| 173 | 173 | default: |
| 174 | 174 | if (0 != $f) { |
| 175 | 175 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 176 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t"); |
|
| 176 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t"); |
|
| 177 | 177 | } |
| 178 | 178 | break; |
| 179 | 179 | } |
@@ -182,20 +182,20 @@ discard block |
||
| 182 | 182 | $lang = $hc->getSmartyConst('', '_EDIT'); |
| 183 | 183 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 184 | 184 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png'); |
| 185 | - $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'', ''); |
|
| 186 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t"); |
|
| 185 | + $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', ''); |
|
| 186 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t"); |
|
| 187 | 187 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 188 | 188 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 189 | 189 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png'); |
| 190 | 190 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', ''); |
| 191 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t"); |
|
| 192 | - $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n" . $anchor . "\t\t\t\t", false, "\t\t\t\t"); |
|
| 191 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t"); |
|
| 192 | + $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n".$anchor."\t\t\t\t", false, "\t\t\t\t"); |
|
| 193 | 193 | $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\''); |
| 194 | 194 | $tr = $hc->getHtmlTableRow($td, $cycle, "\t\t\t"); |
| 195 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr, '','', "\t\t\t"); |
|
| 196 | - $tbody = $hc->getHtmlTableTbody($foreach,'' , "\t\t"); |
|
| 195 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr, '', '', "\t\t\t"); |
|
| 196 | + $tbody = $hc->getHtmlTableTbody($foreach, '', "\t\t"); |
|
| 197 | 197 | |
| 198 | - return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody, '', false, false, "\t\t"); |
|
| 198 | + return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody, '', false, false, "\t\t"); |
|
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | /** |
@@ -235,8 +235,8 @@ discard block |
||
| 235 | 235 | $single = $hc->getSmartySingleVar('pagenav'); |
| 236 | 236 | $div = $hc->getHtmlTag('div', ['class' => 'xo-pagenav floatright'], $single, false, "\t\t"); |
| 237 | 237 | $div .= $hc->getHtmlTag('div', ['class' => 'clear spacer'], '', false, "\t\t", "\n"); |
| 238 | - $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t" ); |
|
| 239 | - $ifList = $hc->getSmartyConditions($tableName . '_list', '', '', $htmlTable); |
|
| 238 | + $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t"); |
|
| 239 | + $ifList = $hc->getSmartyConditions($tableName.'_list', '', '', $htmlTable); |
|
| 240 | 240 | $single = $hc->getSmartySingleVar('form', "\t", "\n"); |
| 241 | 241 | $divComm = $hc->getHtmlComment('Display navigation'); |
| 242 | 242 | //$divComm .= $hc->getHtmlTag('div', array('class' => 'errorMsg'), $single); |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | $strong = $hc->getHtmlTag('strong', [], $single, false, '', ''); |
| 246 | 246 | $div = $hc->getHtmlTag('div', ['class' => 'errorMsg'], $strong, false, "\t", "\n"); |
| 247 | 247 | $ifList .= $hc->getSmartyConditions('error', '', '', $div); |
| 248 | - $ifList .= $hc->getHtmlEmpty('', '', "\n");; |
|
| 248 | + $ifList .= $hc->getHtmlEmpty('', '', "\n"); ; |
|
| 249 | 249 | |
| 250 | 250 | return $ifList; |
| 251 | 251 | } |