include ("../include/before.php");
include ("../include/show_page_title.php");
include ("../include/classes/clinklist.php");
include ("../include/classes/ccategory.php");
include ("../include/resources_func.php");
include ("../include/utils.php");
include_once ("../include/tables.php");
include_once ("../include/classes/cselect.php");
include_once ("../include/classes/cfilter.php");
include_once ("../include/classes/ctype.php");
$category_id=(int)$_GET["category"];
$categ=new CCategory("links_category","links");
$ctype = new CType("category_id","name","articles_categories");
$ARTICLE_CATEGORIES=$ctype->get_types_as_array();
$ctype = new CType("discipline_id","discipline","disciplines");
$DISCIPLINES=$ctype->get_types_as_array();
$res=$categ->get_categories($category_id);
$i=0;
$left_col=$right_col=array();
while ($info=$conn->fetch_array($res))
{
if ($i%2==0)
$left_col[]=$info["category_id"];
else $right_col[]=$info["category_id"];
$i++;
}
show_page_title("RESOURCES","");
$query = "SELECT text_page FROM site_pages WHERE page='resources'";
$page_db = $conn->query($query);
$page = $conn->fetch_array($page_db);
?>
=unhtmlentities(nl2br($page["text_page"]));?>
$filter_cond=show_filter($_SESSION["resources_filter"]);?>
if ($category_id)
{
echo "
|
||||||
| back |