/**
  * show error message and close button
  */
 function show_no_permission_error_page()
 {
     xoops_header();
     echo _MD_XOONIPS_ITEM_FORBIDDEN . '<br /><input type="button"' . ' onclick="javascript:window.close();" value="' . _CLOSE . '" />';
     xoops_footer();
     exit;
 }
 function render()
 {
     global $xoopsConfig;
     require_once XOOPS_ROOT_PATH . '/class/template.php';
     $xoopsTpl = new XoopsTpl();
     xoops_header(false);
     $xoopsTpl->assign('template_file_name', 'db:' . $this->_params['template_file_name']);
     $xoopsTpl->assign('template_vars', $this->_params['template_vars']);
     $xoopsTpl->display('db:xoonips_transfer_user_requested_item_detail.html');
     xoops_footer();
 }
 function end()
 {
     global $xoopsConfig, $xoopsOption, $xoopsModule, $xoopsTpl, $xoopsUser, $xoopsUserIsAdmin, $xoopsLogger;
     if (!$this->mAction->mDialogMode) {
         include XOOPS_ROOT_PATH . '/footer.php';
     } else {
         if (class_exists('XCube_Root')) {
             include XOOPS_ROOT_PATH . '/footer.php';
         } else {
             xoops_footer();
         }
     }
 }
Пример #4
0
                        } else {
                            if ($counter > $currentpage - 4 && $counter < $currentpage + 4 || $counter == 1 || $counter == $totalpages) {
                                if ($counter == $totalpages && $currentpage < $totalpages - 4) {
                                    $hiddenform .= "... ";
                                }
                                $hiddenform .= "<a href='#" . $counter . "' onclick='javascript:document.findnext.start.value=" . ($counter - 1) * $limit . ";document.findnext.submit();'>" . $counter . "</a> ";
                                if ($counter == 1 && $currentpage > 5) {
                                    $hiddenform .= "... ";
                                }
                            }
                        }
                        $counter++;
                    }
                }
                $next = $start + $limit;
                if (isset($total) && $total > $next || !isset($total) && count($foundusers) >= $limit) {
                    $hiddenform .= "&nbsp;<a href='#" . $total . "' onclick='javascript:document.findnext.start.value=" . $next . ";document.findnext.submit();'>" . _MA_USER_NEXT . "</a>\n";
                }
            }
            $hiddenform .= "</form>";
            echo "<div>" . $hiddenform;
            if (isset($total)) {
                echo "<br />" . sprintf(_MA_USER_USERSFOUND, $total) . "&nbsp;";
            }
            echo "<a href='#' onclick='javascript:document.findnext.start.value=0;document.findnext.user_submit.value=0;document.findnext.submit();'>" . _MA_USER_SEARCHAGAIN . "</a>\n";
            echo "</div>";
        }
    }
}
xoops_footer();