@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | unset($build); |
| 84 | 84 | // Directory to saved all files |
| 85 | - $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname); |
|
| 85 | + $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname); |
|
| 86 | 86 | |
| 87 | 87 | // Copy this module in root modules |
| 88 | 88 | if (1 === $inroot_copy) { |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | $building->copyDir($fromDir, $toDir); |
| 100 | - $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir); |
|
| 100 | + $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir); |
|
| 101 | 101 | } |
| 102 | - $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory); |
|
| 102 | + $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory); |
|
| 103 | 103 | break; |
| 104 | 104 | case 'default': |
| 105 | 105 | default: |
@@ -25,12 +25,12 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | $templateMain = 'tdmcreate_building.tpl'; |
| 27 | 27 | |
| 28 | -include __DIR__ . '/header.php'; |
|
| 28 | +include __DIR__.'/header.php'; |
|
| 29 | 29 | $op = \Xmf\Request::getString('op', 'default'); |
| 30 | 30 | $mid = \Xmf\Request::getInt('mod_id'); |
| 31 | 31 | $inroot_copy = \Xmf\Request::getInt('inroot_copy'); |
| 32 | 32 | $moduleObj = $helper->getHandler('Modules')->get($mid); |
| 33 | -$cachePath = XOOPS_VAR_PATH . '/caches/tdmcreate_cache'; |
|
| 33 | +$cachePath = XOOPS_VAR_PATH.'/caches/tdmcreate_cache'; |
|
| 34 | 34 | if (!is_dir($cachePath)) { |
| 35 | 35 | if (!mkdir($cachePath, 0777) && !is_dir($cachePath)) { |
| 36 | 36 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $cachePath)); |
@@ -38,10 +38,10 @@ discard block |
||
| 38 | 38 | chmod($cachePath, 0777); |
| 39 | 39 | } |
| 40 | 40 | // Clear cache |
| 41 | -if (file_exists($cache = $cachePath . '/classpaths.cache')) { |
|
| 41 | +if (file_exists($cache = $cachePath.'/classpaths.cache')) { |
|
| 42 | 42 | unlink($cache); |
| 43 | 43 | } |
| 44 | -if (!file_exists($indexFile = $cachePath . '/index.html')) { |
|
| 44 | +if (!file_exists($indexFile = $cachePath.'/index.html')) { |
|
| 45 | 45 | copy('index.html', $indexFile); |
| 46 | 46 | } |
| 47 | 47 | // Switch option |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | // Get var module dirname |
| 52 | 52 | $moduleDirname = $moduleObj->getVar('mod_dirname'); |
| 53 | 53 | // Directories for copy from to |
| 54 | - $fromDir = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleDirname); |
|
| 55 | - $toDir = XOOPS_ROOT_PATH . '/modules/' . mb_strtolower($moduleDirname); |
|
| 54 | + $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleDirname); |
|
| 55 | + $toDir = XOOPS_ROOT_PATH.'/modules/'.mb_strtolower($moduleDirname); |
|
| 56 | 56 | // include_once TDMC_CLASS_PATH . '/building.php'; |
| 57 | 57 | if (isset($moduleDirname)) { |
| 58 | 58 | // Clear this module if it's in repository |
@@ -116,4 +116,4 @@ discard block |
||
| 116 | 116 | $GLOBALS['xoopsTpl']->assign('form', $form->render()); |
| 117 | 117 | break; |
| 118 | 118 | } |
| 119 | -include __DIR__ . '/footer.php'; |
|
| 119 | +include __DIR__.'/footer.php'; |
|
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | // Define main template |
| 26 | 26 | $templateMain = 'tdmcreate_morefiles.tpl'; |
| 27 | 27 | |
| 28 | -include __DIR__ . '/header.php'; |
|
| 28 | +include __DIR__.'/header.php'; |
|
| 29 | 29 | // Recovered value of argument op in the URL $ |
| 30 | 30 | $op = \Xmf\Request::getString('op', 'list'); |
| 31 | 31 | |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | unset($files); |
| 61 | 61 | } |
| 62 | 62 | if ($morefilesCount > $limit) { |
| 63 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 64 | - $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 63 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 64 | + $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 65 | 65 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 66 | 66 | } |
| 67 | 67 | } else { |
@@ -139,4 +139,4 @@ discard block |
||
| 139 | 139 | break; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | -include __DIR__ . '/footer.php'; |
|
| 142 | +include __DIR__.'/footer.php'; |
|
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | // Define main template |
| 26 | 26 | $templateMain = 'tdmcreate_tables.tpl'; |
| 27 | 27 | |
| 28 | -include __DIR__ . '/header.php'; |
|
| 28 | +include __DIR__.'/header.php'; |
|
| 29 | 29 | // Recovered value of arguments op in the URL $ |
| 30 | 30 | $op = \Xmf\Request::getString('op', 'list'); |
| 31 | 31 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add'); |
| 51 | 51 | $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left')); |
| 52 | 52 | $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL); |
| 53 | - $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16); |
|
| 53 | + $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16); |
|
| 54 | 54 | // Get the list of modules |
| 55 | 55 | $modulesCount = $helper->getHandler('Modules')->getCountModules(); |
| 56 | 56 | // Redirect if there aren't modules |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | unset($module); |
| 90 | 90 | } |
| 91 | 91 | if ($modulesCount > $limit) { |
| 92 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 93 | - $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 92 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 93 | + $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 94 | 94 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 95 | 95 | } |
| 96 | 96 | } else { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if ($tableMid > 0) { |
| 107 | 107 | $tablesObj->setVar('table_mid', $tableMid); |
| 108 | 108 | } |
| 109 | - $form = $tablesObj->getFormTables(); |
|
| 109 | + $form = $tablesObj->getFormTables(); |
|
| 110 | 110 | $GLOBALS['xoopsTpl']->assign('form', $form->render()); |
| 111 | 111 | break; |
| 112 | 112 | case 'save': |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | ] |
| 146 | 146 | ); |
| 147 | 147 | //Form table_image |
| 148 | - include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
| 148 | + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
| 149 | 149 | $uploaddir = is_dir(XOOPS_ICONS32_PATH) ? XOOPS_ICONS32_PATH : TDMC_UPLOAD_IMGTAB_PATH; |
| 150 | 150 | $uploader = new \XoopsMediaUploader( |
| 151 | 151 | $uploaddir, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null |
@@ -187,18 +187,18 @@ discard block |
||
| 187 | 187 | if ($tables->insert($tablesObj)) { |
| 188 | 188 | if ($tablesObj->isNew()) { |
| 189 | 189 | $tableTid = $GLOBALS['xoopsDB']->getInsertId(); |
| 190 | - $tableAction = '&field_mid=' . $tableMid . '&field_tid=' . $tableTid . '&field_numb=' . $tableNumbFields . '&field_name=' . $tableFieldname; |
|
| 190 | + $tableAction = '&field_mid='.$tableMid.'&field_tid='.$tableTid.'&field_numb='.$tableNumbFields.'&field_name='.$tableFieldname; |
|
| 191 | 191 | // Fields Elements Handler |
| 192 | 192 | $fieldelementObj = $helper->getHandler('Fieldelements')->create(); |
| 193 | 193 | $fieldelementObj->setVar('fieldelement_mid', $tableMid); |
| 194 | 194 | $fieldelementObj->setVar('fieldelement_tid', $tableTid); |
| 195 | - $fieldelementObj->setVar('fieldelement_name', 'Table : ' . ucfirst(\Xmf\Request::getString('table_name', '', 'POST'))); |
|
| 196 | - $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-' . ucfirst(\Xmf\Request::getString('table_name', '', 'POST'))); |
|
| 195 | + $fieldelementObj->setVar('fieldelement_name', 'Table : '.ucfirst(\Xmf\Request::getString('table_name', '', 'POST'))); |
|
| 196 | + $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-'.ucfirst(\Xmf\Request::getString('table_name', '', 'POST'))); |
|
| 197 | 197 | // Insert new field element id for table name |
| 198 | 198 | if (!$helper->getHandler('Fieldelements')->insert($fieldelementObj)) { |
| 199 | - $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element'); |
|
| 199 | + $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors().' Field element'); |
|
| 200 | 200 | } |
| 201 | - redirect_header('fields.php?op=new' . $tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, \Xmf\Request::getString('table_name', '', 'POST'))); |
|
| 201 | + redirect_header('fields.php?op=new'.$tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, \Xmf\Request::getString('table_name', '', 'POST'))); |
|
| 202 | 202 | } else { |
| 203 | 203 | redirect_header('tables.php', 5, sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK, \Xmf\Request::getString('table_name', '', 'POST'))); |
| 204 | 204 | } |
@@ -268,9 +268,9 @@ discard block |
||
| 268 | 268 | if ($mid > 0) { |
| 269 | 269 | $modulesObj = $helper->getHandler('Modules')->get($mid); |
| 270 | 270 | foreach ($modArray as $modField) { |
| 271 | - if (isset($_POST['mod_' . $modField])) { |
|
| 272 | - $mField = $modulesObj->getVar('mod_' . $modField); |
|
| 273 | - $modulesObj->setVar('mod_' . $modField, !$mField); |
|
| 271 | + if (isset($_POST['mod_'.$modField])) { |
|
| 272 | + $mField = $modulesObj->getVar('mod_'.$modField); |
|
| 273 | + $modulesObj->setVar('mod_'.$modField, !$mField); |
|
| 274 | 274 | } |
| 275 | 275 | } |
| 276 | 276 | if ($helper->getHandler('Modules')->insert($modulesObj)) { |
@@ -283,9 +283,9 @@ discard block |
||
| 283 | 283 | if ($tid > 0) { |
| 284 | 284 | $tablesObj = $helper->getHandler('Tables')->get($tid); |
| 285 | 285 | foreach ($tableArray as $tableField) { |
| 286 | - if (isset($_POST['table_' . $tableField])) { |
|
| 287 | - $tblField = $tablesObj->getVar('table_' . $tableField); |
|
| 288 | - $tablesObj->setVar('table_' . $tableField, !$tblField); |
|
| 286 | + if (isset($_POST['table_'.$tableField])) { |
|
| 287 | + $tblField = $tablesObj->getVar('table_'.$tableField); |
|
| 288 | + $tablesObj->setVar('table_'.$tableField, !$tblField); |
|
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | if ($helper->getHandler('Tables')->insert($tablesObj)) { |
@@ -295,4 +295,4 @@ discard block |
||
| 295 | 295 | } |
| 296 | 296 | break; |
| 297 | 297 | } |
| 298 | -include __DIR__ . '/footer.php'; |
|
| 298 | +include __DIR__.'/footer.php'; |
|
@@ -21,30 +21,30 @@ discard block |
||
| 21 | 21 | xoops_loadLanguage('common', $moduleDirName); |
| 22 | 22 | |
| 23 | 23 | return (object)[ |
| 24 | - 'name' => mb_strtoupper($moduleDirName) . ' ModuleConfigurator', |
|
| 24 | + 'name' => mb_strtoupper($moduleDirName).' ModuleConfigurator', |
|
| 25 | 25 | 'paths' => [ |
| 26 | 26 | 'dirname' => $moduleDirName, |
| 27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
| 28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
| 29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
| 30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
| 27 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
| 28 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
| 29 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
| 30 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 31 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
| 32 | 32 | ], |
| 33 | 33 | 'uploadFolders' => [ |
| 34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
| 34 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 35 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
| 36 | 36 | //XOOPS_UPLOAD_PATH . '/flags' |
| 37 | 37 | ], |
| 38 | 38 | 'copyBlankFiles' => [ |
| 39 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
| 39 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 40 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
| 41 | 41 | //XOOPS_UPLOAD_PATH . '/flags' |
| 42 | 42 | ], |
| 43 | 43 | |
| 44 | 44 | 'copyTestFolders' => [ |
| 45 | 45 | [ |
| 46 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images', |
|
| 47 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
| 46 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images', |
|
| 47 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
| 48 | 48 | ], |
| 49 | 49 | // [ |
| 50 | 50 | // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
@@ -81,5 +81,5 @@ discard block |
||
| 81 | 81 | // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
| 82 | 82 | ], |
| 83 | 83 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
| 84 | - <img src='" . XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/assets/images/logo/logoModule.png' . "' alt='XOOPS Project'></a>", |
|
| 84 | + <img src='" . XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/assets/images/logo/logoModule.png'."' alt='XOOPS Project'></a>", |
|
| 85 | 85 | ]; |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '') |
| 73 | 73 | { |
| 74 | 74 | $stuType = mb_strtoupper($type); |
| 75 | - $aM = $t . '$adminObject->addItemButton('; |
|
| 75 | + $aM = $t.'$adminObject->addItemButton('; |
|
| 76 | 76 | if ('add' === $type) { |
| 77 | - $ret = $aM . "{$language}ADD_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n"; |
|
| 77 | + $ret = $aM."{$language}ADD_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n"; |
|
| 78 | 78 | } else { |
| 79 | - $ret = $aM . "{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n"; |
|
| 79 | + $ret = $aM."{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n"; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | return $ret; |
@@ -118,11 +118,11 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '') |
| 120 | 120 | { |
| 121 | - $aMenu = $t . '$adminObject->addInfoBoxLine(sprintf('; |
|
| 121 | + $aMenu = $t.'$adminObject->addInfoBoxLine(sprintf('; |
|
| 122 | 122 | if ('' != $var) { |
| 123 | - $ret = $aMenu . " '<label>'.{$label}.'</label>', {$var}));\n"; |
|
| 123 | + $ret = $aMenu." '<label>'.{$label}.'</label>', {$var}));\n"; |
|
| 124 | 124 | } else { |
| 125 | - $ret = $aMenu . " '<label>'.{$label}.'</label>'));\n"; |
|
| 125 | + $ret = $aMenu." '<label>'.{$label}.'</label>'));\n"; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | return $ret; |
@@ -139,11 +139,11 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '') |
| 141 | 141 | { |
| 142 | - $aMenu = $t . '$adminObject->addConfigBoxLine('; |
|
| 142 | + $aMenu = $t.'$adminObject->addConfigBoxLine('; |
|
| 143 | 143 | if ('' != $var) { |
| 144 | - $ret = $aMenu . "{$language}, '{$label}', {$var});\n"; |
|
| 144 | + $ret = $aMenu."{$language}, '{$label}', {$var});\n"; |
|
| 145 | 145 | } else { |
| 146 | - $ret = $aMenu . "{$language}, '{$label}');\n"; |
|
| 146 | + $ret = $aMenu."{$language}, '{$label}');\n"; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | return $ret; |
@@ -167,15 +167,15 @@ discard block |
||
| 167 | 167 | $ret .= $pCodeImageList->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t); |
| 168 | 168 | $xRootPath = "XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32'"; |
| 169 | 169 | $ret .= $xCodeImageList->getXcMediaUploader('uploader', $xRootPath, $moduleDirname, $t); |
| 170 | - $post = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[' . $countUploader . ']'; |
|
| 170 | + $post = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'['.$countUploader.']'; |
|
| 171 | 171 | $fetchMedia = $this->getAxcFetchMedia('uploader', $post); |
| 172 | - $ifelse = $t . "\t//" . $this->getAxcSetPrefix('uploader', "{$fieldName}_") . ";\n"; |
|
| 173 | - $ifelse .= $t . "\t//{$fetchMedia};\n"; |
|
| 174 | - $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t"); |
|
| 175 | - $contentIf = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t"); |
|
| 176 | - $contentIf .= $xCodeImageList->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t"); |
|
| 177 | - $ifelse .= $pCodeImageList->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t"); |
|
| 178 | - $contentElseExt = $xCodeImageList->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t"); |
|
| 172 | + $ifelse = $t."\t//".$this->getAxcSetPrefix('uploader', "{$fieldName}_").";\n"; |
|
| 173 | + $ifelse .= $t."\t//{$fetchMedia};\n"; |
|
| 174 | + $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t"); |
|
| 175 | + $contentIf = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t"); |
|
| 176 | + $contentIf .= $xCodeImageList->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t"); |
|
| 177 | + $ifelse .= $pCodeImageList->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t"); |
|
| 178 | + $contentElseExt = $xCodeImageList->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t"); |
|
| 179 | 179 | |
| 180 | 180 | $ret .= $pCodeImageList->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t); |
| 181 | 181 | |
@@ -200,21 +200,21 @@ discard block |
||
| 200 | 200 | $ret = $pCodeUploadImage->getPhpCodeCommentLine('Set Var', $fieldName, $t); |
| 201 | 201 | $ret .= $pCodeUploadImage->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t); |
| 202 | 202 | $xUploadImage = "{$stuModuleDirname}_UPLOAD_IMAGE_PATH"; |
| 203 | - $ret .= $xCodeUploadImage->getXcMediaUploader('uploader', $xUploadImage . " . '/{$tableName}/'", $moduleDirname, $t); |
|
| 204 | - $post = $pCodeUploadImage->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[' . $countUploader . ']'; |
|
| 203 | + $ret .= $xCodeUploadImage->getXcMediaUploader('uploader', $xUploadImage." . '/{$tableName}/'", $moduleDirname, $t); |
|
| 204 | + $post = $pCodeUploadImage->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'['.$countUploader.']'; |
|
| 205 | 205 | $fetchMedia = $this->getAxcFetchMedia('uploader', $post); |
| 206 | - $file = $pCodeUploadImage->getPhpCodeGlobalsVariables('attachedfile', 'FILES') . "['name']"; |
|
| 206 | + $file = $pCodeUploadImage->getPhpCodeGlobalsVariables('attachedfile', 'FILES')."['name']"; |
|
| 207 | 207 | $expr = '/^.+\.([^.]+)$/sU'; |
| 208 | - $ifelse = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t . "\t"); |
|
| 208 | + $ifelse = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t"); |
|
| 209 | 209 | |
| 210 | - $ifelse .= $t . "\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n"; |
|
| 211 | - $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n"; |
|
| 212 | - $ifelse .= $t . "\t{$fetchMedia};\n"; |
|
| 213 | - $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t"); |
|
| 214 | - $contentIf = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t"); |
|
| 215 | - $contentIf .= $xCodeUploadImage->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t"); |
|
| 216 | - $ifelse .= $pCodeUploadImage->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t"); |
|
| 217 | - $contentElseExt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t"); |
|
| 210 | + $ifelse .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n"; |
|
| 211 | + $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n"; |
|
| 212 | + $ifelse .= $t."\t{$fetchMedia};\n"; |
|
| 213 | + $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t"); |
|
| 214 | + $contentIf = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t"); |
|
| 215 | + $contentIf .= $xCodeUploadImage->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t"); |
|
| 216 | + $ifelse .= $pCodeUploadImage->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t"); |
|
| 217 | + $contentElseExt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t"); |
|
| 218 | 218 | |
| 219 | 219 | $ret .= $pCodeUploadImage->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t); |
| 220 | 220 | |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | public function getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName, $formatUrl = false, $t = '', $countUploader, $fieldMain) |
| 236 | 236 | { |
| 237 | 237 | $stuModuleDirname = mb_strtoupper($moduleDirname); |
| 238 | - $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname . '_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t, $countUploader, $fieldMain); |
|
| 238 | + $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname.'_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t, $countUploader, $fieldMain); |
|
| 239 | 239 | |
| 240 | 240 | return $ret; |
| 241 | 241 | } |
@@ -262,25 +262,25 @@ discard block |
||
| 262 | 262 | $contentIf = ''; |
| 263 | 263 | |
| 264 | 264 | if ($formatUrl) { |
| 265 | - $ret .= $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "formatUrl(\$_REQUEST['{$fieldName}'])", $t); |
|
| 265 | + $ret .= $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "formatUrl(\$_REQUEST['{$fieldName}'])", $t); |
|
| 266 | 266 | } |
| 267 | 267 | $ret .= $pCodeFileSetVar->getPhpCodeCommentLine('Set Var', $fieldName, $t); |
| 268 | 268 | $ret .= $pCodeFileSetVar->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t); |
| 269 | - $ret .= $xCodeFileSetVar->getXcMediaUploader('uploader', $dirname . " . '/{$tableName}{$files}/'", $moduleDirname, $t); |
|
| 270 | - $post = $pCodeFileSetVar->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[' . $countUploader . ']'; |
|
| 269 | + $ret .= $xCodeFileSetVar->getXcMediaUploader('uploader', $dirname." . '/{$tableName}{$files}/'", $moduleDirname, $t); |
|
| 270 | + $post = $pCodeFileSetVar->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'['.$countUploader.']'; |
|
| 271 | 271 | $fetchMedia = $this->getAxcFetchMedia('uploader', $post); |
| 272 | - $file = $pCodeFileSetVar->getPhpCodeGlobalsVariables($fieldName, 'FILES') . "['name']"; |
|
| 272 | + $file = $pCodeFileSetVar->getPhpCodeGlobalsVariables($fieldName, 'FILES')."['name']"; |
|
| 273 | 273 | $expr = '/^.+\.([^.]+)$/sU'; |
| 274 | - $ifelse .= $pCodeFileSetVar->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t . "\t"); |
|
| 274 | + $ifelse .= $pCodeFileSetVar->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t"); |
|
| 275 | 275 | |
| 276 | - $ifelse .= $t . "\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n"; |
|
| 277 | - $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n"; |
|
| 278 | - $ifelse .= $t . "\t{$fetchMedia};\n"; |
|
| 279 | - $contentElseInt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t"); |
|
| 280 | - $contentIf .= $xCodeFileSetVar->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t"); |
|
| 281 | - $contentIf .= $xCodeFileSetVar->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t"); |
|
| 282 | - $ifelse .= $pCodeFileSetVar->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t"); |
|
| 283 | - $contentElseExt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t"); |
|
| 276 | + $ifelse .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n"; |
|
| 277 | + $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n"; |
|
| 278 | + $ifelse .= $t."\t{$fetchMedia};\n"; |
|
| 279 | + $contentElseInt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t"); |
|
| 280 | + $contentIf .= $xCodeFileSetVar->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t"); |
|
| 281 | + $contentIf .= $xCodeFileSetVar->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t"); |
|
| 282 | + $ifelse .= $pCodeFileSetVar->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t"); |
|
| 283 | + $contentElseExt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t"); |
|
| 284 | 284 | |
| 285 | 285 | $ret .= $pCodeFileSetVar->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t); |
| 286 | 286 | |
@@ -397,25 +397,25 @@ discard block |
||
| 397 | 397 | $phpCodeCaseDelete = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 398 | 398 | $xCodeCaseDelete = Tdmcreate\Files\CreateXoopsCode::getInstance(); |
| 399 | 399 | $ccFieldId = Tdmcreate\Files\CreateFile::getInstance()->getCamelCase($fieldId, false, true); |
| 400 | - $ret = $xCodeCaseDelete->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler'); |
|
| 400 | + $ret = $xCodeCaseDelete->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler'); |
|
| 401 | 401 | |
| 402 | 402 | $reqOk = "_REQUEST['ok']"; |
| 403 | 403 | $isset = $phpCodeCaseDelete->getPhpCodeIsset($reqOk); |
| 404 | 404 | $xoopsSecurityCheck = $xCodeCaseDelete->getXcSecurityCheck(); |
| 405 | 405 | $xoopsSecurityErrors = $xCodeCaseDelete->getXcSecurityErrors(); |
| 406 | 406 | $implode = $phpCodeCaseDelete->getPhpCodeImplode(', ', $xoopsSecurityErrors); |
| 407 | - $redirectHeaderErrors = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t\t"); |
|
| 407 | + $redirectHeaderErrors = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t\t"); |
|
| 408 | 408 | |
| 409 | 409 | $delete = $xCodeCaseDelete->getXcDelete($tableName, $tableName, 'Obj', 'Handler'); |
| 410 | - $condition = $phpCodeCaseDelete->getPhpCodeConditions('!' . $xoopsSecurityCheck, '', '', $redirectHeaderErrors, false, $t . "\t"); |
|
| 410 | + $condition = $phpCodeCaseDelete->getPhpCodeConditions('!'.$xoopsSecurityCheck, '', '', $redirectHeaderErrors, false, $t."\t"); |
|
| 411 | 411 | |
| 412 | - $redirectHeaderLanguage = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', "{$language}FORM_DELETE_OK", true, $t . "\t\t"); |
|
| 412 | + $redirectHeaderLanguage = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', "{$language}FORM_DELETE_OK", true, $t."\t\t"); |
|
| 413 | 413 | $htmlErrors = $xCodeCaseDelete->getXcHtmlErrors($tableName, true); |
| 414 | - $internalElse = $xCodeCaseDelete->getXcTplAssign('error', $htmlErrors, true, $t . "\t\t"); |
|
| 415 | - $condition .= $phpCodeCaseDelete->getPhpCodeConditions($delete, '', '', $redirectHeaderLanguage, $internalElse, $t . "\t"); |
|
| 414 | + $internalElse = $xCodeCaseDelete->getXcTplAssign('error', $htmlErrors, true, $t."\t\t"); |
|
| 415 | + $condition .= $phpCodeCaseDelete->getPhpCodeConditions($delete, '', '', $redirectHeaderLanguage, $internalElse, $t."\t"); |
|
| 416 | 416 | |
| 417 | - $mainElse = $xCodeCaseDelete->getXcXoopsConfirm($tableName, $language, $fieldId, $fieldMain, 'delete', $t . "\t"); |
|
| 418 | - $ret .= $phpCodeCaseDelete->getPhpCodeConditions($isset, ' && ', "1 == \${$reqOk}", $condition, $mainElse, $t); |
|
| 417 | + $mainElse = $xCodeCaseDelete->getXcXoopsConfirm($tableName, $language, $fieldId, $fieldMain, 'delete', $t."\t"); |
|
| 418 | + $ret .= $phpCodeCaseDelete->getPhpCodeConditions($isset, ' && ', "1 == \${$reqOk}", $condition, $mainElse, $t); |
|
| 419 | 419 | |
| 420 | 420 | return $ret; |
| 421 | 421 | } |
@@ -150,11 +150,11 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | $ret .= $pc->getPhpCodeCommentLine('Table view', $tableName, $t); |
| 152 | 152 | $contentForeach = $xc->getXcGetValues($tableName, $tableSoleName, 'i', false, "\t"); |
| 153 | - $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t . "\t\t"); |
|
| 154 | - $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t . "\t\t"); |
|
| 155 | - $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t . "\t"); |
|
| 156 | - $condIf .= $xc->getXcPageNav($tableName, $t . "\t"); |
|
| 157 | - $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t . "\t"); |
|
| 153 | + $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t."\t\t"); |
|
| 154 | + $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t."\t\t"); |
|
| 155 | + $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t."\t"); |
|
| 156 | + $condIf .= $xc->getXcPageNav($tableName, $t."\t"); |
|
| 157 | + $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t."\t"); |
|
| 158 | 158 | $ret .= $pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, $condElse, $t); |
| 159 | 159 | |
| 160 | 160 | return $ret; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $stuTableName = mb_strtoupper($tableName); |
| 179 | 179 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 180 | 180 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 181 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 181 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 182 | 182 | |
| 183 | 183 | if (in_array(1, $fieldInForm)) { |
| 184 | 184 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableName, '', 'list', $t); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | $ret = $pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t"); |
| 211 | 211 | $content = $xc->getXcAddRight('gpermHandler', "{$moduleDirname}_{$perm}", '$permId', '$onegroupId', "\$GLOBALS['xoopsModule']->getVar('mid')", false, "\t"); |
| 212 | 212 | $foreach = $pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t"); |
| 213 | - $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 213 | + $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 214 | 214 | |
| 215 | 215 | return $ret; |
| 216 | 216 | } |
@@ -239,11 +239,11 @@ discard block |
||
| 239 | 239 | $xoopsSecurityCheck = $xc->getXcSecurityCheck('!'); |
| 240 | 240 | $securityError = $xc->getXcSecurityErrors(); |
| 241 | 241 | $implode = $pc->getPhpCodeImplode(',', $securityError); |
| 242 | - $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t"); |
|
| 243 | - $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 242 | + $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t"); |
|
| 243 | + $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 244 | 244 | |
| 245 | 245 | $isset = $pc->getPhpCodeIsset($ccFieldId); |
| 246 | - $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t . "\t"); |
|
| 246 | + $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t."\t"); |
|
| 247 | 247 | $contentElse = $xc->getXcObjHandlerCreate($tableName, "\t\t\t"); |
| 248 | 248 | $ret .= $pc->getPhpCodeConditions($isset, '', '', $contentIf, $contentElse, $t); |
| 249 | 249 | $ret .= $pc->getPhpCodeCommentLine('Set Vars', null, "\t\t"); |
@@ -290,21 +290,21 @@ discard block |
||
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | - $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 293 | + $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 294 | 294 | $insert = $xc->getXcInsert($tableName, $tableName, 'Obj'); |
| 295 | 295 | $contentInsert = ''; |
| 296 | 296 | //if (1 == $tableCategory) { |
| 297 | 297 | if (1 == $tablePerms) { |
| 298 | 298 | $ucfTableName = ucfirst($tableName); |
| 299 | - $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t . "\t"); |
|
| 299 | + $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t."\t"); |
|
| 300 | 300 | $ucfFieldId = $this->getCamelCase($fieldId, true); |
| 301 | - $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t . "\t"); |
|
| 302 | - $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, false, $t . "\t"); |
|
| 303 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId); |
|
| 304 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'submit'); |
|
| 305 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'approve'); |
|
| 301 | + $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t."\t"); |
|
| 302 | + $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, false, $t."\t"); |
|
| 303 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId); |
|
| 304 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'submit'); |
|
| 305 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'approve'); |
|
| 306 | 306 | } |
| 307 | - $contentInsert .= $xc->getXcRedirectHeader($tableName . '', '?op=list', '2', "{$language}FORM_OK", true, $t . "\t"); |
|
| 307 | + $contentInsert .= $xc->getXcRedirectHeader($tableName.'', '?op=list', '2', "{$language}FORM_OK", true, $t."\t"); |
|
| 308 | 308 | $ret .= $pc->getPhpCodeConditions($insert, '', '', $contentInsert, false, $t); |
| 309 | 309 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 310 | 310 | $ret .= $xc->getXcTplAssign('error', "\${$tableName}Obj->getHtmlErrors()", true, $t); |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | |
| 342 | 342 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 343 | 343 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 344 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 344 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 345 | 345 | |
| 346 | 346 | if (in_array(1, $fieldInForm)) { |
| 347 | 347 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add', $t); |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | $ret .= $xc->getXcTplAssign('buttons', '$adminObject->displayButton(\'left\')', true, $t); |
| 350 | 350 | } |
| 351 | 351 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 352 | - $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t); |
|
| 352 | + $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t); |
|
| 353 | 353 | $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t); |
| 354 | 354 | $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t); |
| 355 | 355 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | } |
| 415 | 415 | $delete = $this->getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, "\t\t"); |
| 416 | 416 | |
| 417 | - $cases = [ |
|
| 417 | + $cases = [ |
|
| 418 | 418 | 'list' => [$list], |
| 419 | 419 | 'new' => [$new], |
| 420 | 420 | 'save' => [$save], |
@@ -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 | |