. */ /** * @brief Show the contact tree * * @file * @author * @date $date$ * @version $Revision$ * @ingroup admin */ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); require_once("apps".DIRECTORY_SEPARATOR."maarch_entreprise".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_contacts_v2.php"); $core_tools = new core_tools(); $core_tools->load_lang(); $func = new functions(); $db = new Database(); $core_tools->load_html(); $core_tools->load_header('', true, false); $f_level = array(); ?> query($query); $contactv2 = new contacts_v2(); while($res1 = $stmt->fetchObject()) { $s_level = array(array()); array_push($f_level, array('contact_type_id' => $res1->id, 'contact_type_label' => ucfirst($func->show_string($res1->label, true)), 'second_level' => $s_level)); } array_push($search_customer_results, array('contact' => _VIEW_TREE_CONTACTS . ' ' . _TREE_INFO, 'content' => $f_level)); $openlink = $_SESSION['config']['businessappurl']."index.php?display=true&page=get_tree_children_contact"; ?>
load_js(); ?>