} ?> </tbody> </table> </div> <div class="btn-toolbar" style="margin-top:0;padding-top:0"> <button class="btn btn-link" type="button" onclick="ms_windowLoc('?p=accountman')"><i class="icon-remove"></i> <?php echo mswCleanData($msg_levels11); ?> </button> </div> <?php if ($countedRows > 0 && $countedRows > $limit) { ?> <div class="pagination pagination-small pagination-right"> <?php define('PER_PAGE', $limit); $PGS = new pagination($countedRows, '?p=' . $cmd . mswQueryParams(array('p', 'next')) . '&next='); echo $PGS->display(); ?> </div> <?php } // Footer links.. include PATH . 'templates/footer-links.php'; ?> </div> </div> </div>
if (!in_array($word, $searchSkipWords)) { $SQL .= (!$SQL ? 'WHERE (' : 'OR (') . "`question` LIKE '%" . mswCleanData(mswSafeImportString($word)) . "%' OR `answer` LIKE '%" . mswCleanData(mswSafeImportString($word)) . "%')"; } } } // Are we searching for anything.. if ($SQL) { $html = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'no')); $dataCount = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'yes')); } } // Pagination.. if ($dataCount > $SETTINGS->quePerPage) { define('PER_PAGE', $SETTINGS->quePerPage); $PTION = new pagination($dataCount, '?q=' . urlencode($_GET['q']) . mswQueryParams(array('q', 'p', 'next')) . '&next='); $pageNumbers = $PTION->display(); } // Header.. include PATH . 'control/header.php'; // Template initialisation.. $tpl = new Savant3(); $tpl->assign('TXT', array($msg_pkbase, $msg_header4, $msg_kbase53)); $tpl->assign('SCH_TXT', $msg_header4); $tpl->assign('FAQ', $html); $tpl->assign('RESULTS', $dataCount); $tpl->assign('MSDT', $MSDT); $tpl->assign('PAGES', $pageNumbers); // Global vars.. include PATH . 'control/lib/global.php'; // Global vars.. $tpl->display('content/' . MS_TEMPLATE_SET . '/faq-search.tpl.php');