} if (!$catdone) { echo $aInt->lang("support", "nocatsfound") . "<br>"; } echo "<p><b>Articles</b></p>\n"; $result = select_query("tblknowledgebase", "", array("categoryid" => $cat), "title", "ASC", "", "tblknowledgebaselinks ON tblknowledgebase.id=tblknowledgebaselinks.articleid"); while ($data = mysql_fetch_array($result)) { $id = $data['id']; $category = $data['category']; $title = $data['title']; $article = $data['article']; $views = $data['views']; $article = strip_tags($article); $article = trim($article); $article = substr($article, 0, 100) . "..."; echo "<a href=\"#\" onClick=\"insertKBLink('" . $id . "');\"><b>" . $title . "</b></a><br>" . $article . "<br>"; $articledone = true; } if (!$articledone) { echo $aInt->lang("support", "noarticlesfound") . "<br>"; } echo "\n<p><a href=\"javascript:history.go(-1)\">"; echo "<"; echo "< "; echo $aInt->lang("global", "back"); echo "</a></p>\n\n"; $content = ob_get_contents(); ob_end_clean(); $aInt->content = $content; $aInt->displayPopUp();