Пример #1
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage System
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$object_class = CValue::get("object_class");
$tree = CTag::getTree($object_class);
$smarty = new CSmartyDP("modules/system");
$smarty->assign("object_class", $object_class);
$smarty->assign("tree", $tree);
$smarty->assign("root", true);
$smarty->display("vw_object_tag_manager.tpl");
 /**
  * Returns the tag items tree with all the favoris
  *
  * @param int    $user_id      User id
  * @param string $favori_class Favori class name (CFavoriCCAM or CFavoriCIM10)
  *
  * @return array
  */
 static function getTreeGeneric($user_id, $favori_class)
 {
     $tree = CTag::getTree($favori_class);
     self::getFavorisTree($tree, $user_id, $favori_class);
     return $tree;
 }
Пример #3
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage System
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
$object_class = CValue::get("object_class");
$parent_tag_id = CValue::get("parent_tag_id");
$columns = CValue::get("col");
$group_id = CValue::get("group_id");
$parent_tag = new CTag();
$parent_tag->load($parent_tag_id);
$tree = CTag::getTree($object_class, $parent_tag);
$smarty = new CSmartyDP();
$smarty->assign("tree", $tree);
$smarty->assign("object_class", $object_class);
$smarty->assign("parent_tag", $parent_tag);
$smarty->assign("root", !$parent_tag->_id);
$smarty->assign("columns", $columns);
$smarty->assign("group_id", $group_id);
$smarty->display("inc_object_tag_tree.tpl");