1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
<?php
// set version
$version = "0.9.7.3";
// load requiered files
require_once("/etc/knowledgeroot/config.inc.php");
require_once("include/init.php");
// init tree
$CLASS['tree'] = new categoryTree();
$CLASS['tree']->start($CLASS,TRUE,"#");
if($CLASS['vars']['knowledgeroot']['charset'] != "") {
header("Content-Type: text/html; charset=".$CLASS['vars']['knowledgeroot']['charset']."");
echo '<?xml version="1.0" encoding="'.$CLASS['vars']['knowledgeroot']['charset'].'"?>';
} else {
echo '<?xml version="1.0" encoding="iso-8859-1"?>';
}
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php
$CLASS['kr_header']->show_header();
?>
</head>
<body>
<div style="display: none;" id="messagebox">
<div id="msg" class="loading"><?php echo $CLASS['language']->get['messagebox']['loading']; ?></div>
</div>
<div class="movetitle">
<?php echo $CLASS['language']->get['moveto']; ?>
</div>
<table><tr>
<td id="treecontainer">
<!-- <a href="#" onClick="ShowHide('tree');">#</a> -->
<div id="treeopener" <?php if($CLASS['vars']['menu']['type'] == "static") { echo "style=\"display:none;\""; } else { echo "style=\"display:block;\""; } ?>>
<div id="treeshow">
<a href="#" border="0" onclick="ShowTree();" alt="<?php echo $CLASS['language']->get['tree']['showtree']; ?>"><img id="treeshowimg" src="images/right.gif" width="22" title="<?php echo $CLASS['language']->get['tree']['showtree']; ?>" /></a>
</div>
</div>
<div id="tree" <?php if($CLASS['vars']['menu']['type'] == "static") { echo "style=\"display:block;\""; } else { echo "style=\"display:none; position:absolute;\""; } ?>>
<?php
// show tree
$CLASS['tree']->open = $_SESSION['open'];
$CLASS['tree']->buildTree(0);
?>
</div>
</td>
</tr></table>
</body>
</html>
<?php
$CLASS['db']->close();
?>
|