26 include __DIR__ .
'/header.php';
35 $xoops->header(
'admin:system/system_help.tpl');
37 $xoops->theme()->addStylesheet(
'modules/system/css/admin.css');
38 $xoops->theme()->addStylesheet(
'modules/system/css/help.css');
49 if (
$module->getVar(
'dirname',
'e') ==
'system') {
64 $xoops->tpl()->appendByRef(
'help', $help);
74 $helplist =
$module->getInfo(
'helpsection');
76 if (is_array($helplist)) {
77 foreach ($helplist as $helpitem) {
78 if (($helpitem[
'name'] !=
'') && ($helpitem[
'link'] !=
'')) {
79 $list_help[
$j][
'name'] = $helpitem[
'name'];
80 $list_help[
$j][
'link'] =
'help.php?mid=' .
$mid .
'&' . $helpitem[
'link'];
88 if ((
$module->getInfo(
'help') !=
'' ) && (
$j == 0)) {
89 $help[
'name'] =
$module->getInfo(
'name');
90 $help[
'link'] =
'help.php?mid=' .
$mid .
'&' .
$module->getInfo(
'help');
99 $xoops->tpl()->assign(
'moddirname',
$module->getVar(
'dirname',
'e'));
118 $helpcontent =
$xoops->tpl()->fetch(
125 .
'/language/english/help/' .
$page .
'.html'
127 $helpcontent =
$xoops->tpl()->fetch(
129 .
'/language/english/help/' .
$page .
'.html'
132 $xoops->tpl()->assign(
'load_error', 1);
135 if (
$module->getVar(
'dirname',
'e') !=
'system') {
136 $xoops->tpl()->assign(
'help_module',
true);
138 $xoops->tpl()->assign(
'helpcontent', $helpcontent);
144 $helpcontent =
$xoops->tpl()->fetch(
150 .
'/language/' .
$xoops->getConfig(
'language') .
'/help/module_index.html'
152 $helpcontent =
$xoops->tpl()->fetch(
154 .
'/language/' .
$xoops->getConfig(
'language') .
'/help/module_index.html'
157 $helpcontent =
'<p>' .
$module->getInfo(
'description') .
'</p>';
159 $xoops->tpl()->assign(
'helpcontent', $helpcontent);
172 $list_help = array();
176 $listed_mods[
$i][
'version'] = round($module->getVar(
'version') / 100, 2);
178 $listed_mods[
$i][
'author'] = $module->getInfo(
'author');
179 $listed_mods[
$i][
'credits'] = $module->getInfo(
'credits');
180 $listed_mods[
$i][
'license'] = $module->getInfo(
'license');
181 $listed_mods[
$i][
'description'] = $module->getInfo(
'description');
183 if ($module->getVar(
'dirname',
'e') ==
'system') {
184 $admin_dir = XOOPS_ROOT_PATH .
'/modules/system/admin';
195 $list_help[
$j][
'link'] =
'help.php?mid=' . $module->getVar(
'mid',
'e')
204 $helplist = $module->getInfo(
'helpsection');
208 if (is_array($helplist)) {
209 foreach ($helplist as $helpitem) {
210 if (($helpitem[
'name'] !=
'') && ($helpitem[
'link'] !=
'')) {
211 $list_help[
$j][
'name'] = $helpitem[
'name'];
212 $list_help[
$j][
'link'] =
'help.php?mid=' . $module->getVar(
'mid',
'e')
213 .
'&' . $helpitem[
'link'];
222 if (( $module->getInfo(
'help') !=
'' ) && ($k == 0)) {
223 $list_help[
$j][
'name'] = $module->getInfo(
'name');
224 $list_help[
$j][
'link'] =
'help.php?mid=' . $module->getVar(
'mid',
'e')
225 .
'&' . $module->getInfo(
'help');
228 $listed_mods[
$i][
'help_page'] = $list_help;
229 if ($module->getInfo(
'help') ==
'') {
230 unset($listed_mods[
$i]);
241 .
$xoops->getConfig(
'language') .
'/help/help_center.html'
243 $helpcontent =
$xoops->tpl()->fetch(
245 .
'/help/help_center.html'
251 $xoops->tpl()->assign(
'helpcontent', $helpcontent);
static formatTimestamp($time, $format= 'l', $timeoffset=null)
const WELCOME_TO_XOOPS_HELP_CENTER
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
system_adminVersion($version, $value= '')