/** * Shows help icon if context chapter available for current language * * @return string */ function web_HelpIconShow() { $lang = curlang(); $result = ''; if (cfr('HELP')) { if (isset($_GET['module'])) { $modulename = vf($_GET['module']); if (file_exists(DATA_PATH . "help/" . $lang . "/" . $modulename)) { $help_chapter = web_HelpChapterGet($modulename); $result = wf_modal(wf_img_sized("skins/help.gif", __('Context help'), 20), __('Context help'), $help_chapter, '', '600', '300'); } } } return $result; }
<?php if (cfr('HELP')) { if (wf_CheckGet(array('chapter'))) { $chapter = $_GET['chapter']; $chapter_content = web_HelpChapterGet($chapter); show_window(__('Context help'), $chapter_content); show_window('', wf_Link('javascript: history.go(-1);', 'Back', false, 'ubButton')); } } else { show_error(__('You cant control this module')); }