Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
include("./core_functions/affiliate_functions.php" );
include("./core_functions/dhtmlgoodies_tree.class.php");
$tree = new dhtmlgoodies_tree();
$res = db_query("select categoryID, name, parent from ".CATEGORIES_TABLE." where categoryID>1 order by sort_order, name ") or die(db_error());
while($inf = db_fetch_row($res)){
$tree->addToArray($inf["categoryID"], $inf["name"], $inf["parent"]==1?0:$inf["parent"], "index.php?categoryID=".$inf["categoryID"]);
}
{php}global $tree; $tree->writeJavascript();$tree->drawTree();{/php}
#dhtmlgoodies_tree li {list-style-type:none; font-family: arial; font-size:11px;}
#dhtmlgoodies_topNodes {margin-left:0px; padding-left:0px;}
#dhtmlgoodies_topNodes ul {margin-left:20px; padding-left:0px; display:none;}
#dhtmlgoodies_tree .tree_link {line-height:13px; padding-left:2px;}
#dhtmlgoodies_tree img {padding-top:2px;}
#dhtmlgoodies_tree a {color: #000000; text-decoration:none;}
.activeNodeLink {background-color: #316AC5; color: #FFFFFF; font-weight:bold;}
вставить этот код:Меняем содержимое файла includes/category_tree.php на:
<?php
?><?php
$res = db_query("select categoryID, name, parent from ".CATEGORIES_TABLE." where
categoryID>1 order by sort_order, name ") or die(db_error());
while($inf = db_fetch_row($res)){
$tree->addToArray($inf["categoryID"], $inf["name"], $inf["parent"]==1?0:$inf["parent"],
"index.php?categoryID=".$inf["categoryID"]);
}
?>