function showHtml($userInfo) { $test = getTreeArray(generateTreeJson($userInfo)); $html = "<head><title>View - Big Yaad Tree</title><meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'><link rel=\"stylesheet\" href=\"css/reset.css\"><link rel=\"shortcut icon\" href=\"img/favicon.ico\" type=\"image/x-icon\">\n <link rel=\"icon\" href=\"img/favicon.ico\" type=\"image/x-icon\"><script src=\"js/go.js\"></script><script id='code' src='js/tree.js'></script>\n <link rel='stylesheet prefetch' href='css/font-awesome.min.css'><link rel=\"stylesheet\" href=\"css/style.css\"><link rel=\"stylesheet\" href=\"css/animate.css\"></head><header>\n <div class=\"animated fadeIn\">\n <div class=\"nav\">\n <ul>\n <li class=\"logo\"><img class=\"animated lightSpeedIn\" src=\"img/logo.png\" style='height: 40px'></li>\n <li class=\"home\"><a href=\"index.php\">HOME</a></li>\n <li class=\"searchMenu\"><a class=\"active\" href=\"search.php\">SEARCH</a></li>\n </ul>\n </div></div>" . "<body onload=init('" . $test . "');>" . userDetailsHtml($userInfo) . "<div id=\"myDiagram\"></div>" . "</body>"; echo $html; }
function showHtml($userInfo) { $test = getTreeArray(generateTreeJson($userInfo)); $html = "\n <head><title>Big Yaad Tree</title><meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'><script src=\"../../js/go.js\"></script><script id='code' src='../../js/tree.js'></script>" . "<link rel=\"stylesheet\" href=\"../../css/reset.css\"><link rel=\"shortcut icon\" href=\"../../img/favicon.ico\" type=\"image/x-icon\">" . "<link rel=\"icon\" href=\"../../img/favicon.ico\" type=\"image/x-icon\"><script src='../../js/sweetalert.min.js'></script><script src='../../js/index.js'></script>" . "<link rel='stylesheet prefetch' href='../../css/font-awesome.min.css'><link rel=\"stylesheet\" href=\"../../css/style.css\"><link rel=\"stylesheet\" href=\"../../css/animate.css\"></head>\n <div class=\"animated slideInDown\">\n <div class=\"nav\">\n <ul>\n <li class=\"logo\"><img class='animated infinite pulse' src=\"../../img/logo.png\"></li>\n <li class=\"home\"><a href=\"home.php\">HOME</a></li>\n <li class=\"searchMenu\"><a class=\"active\" href=\"search.php\">SEARCH</a></li>\n <li class=\"childMenu\"><a href=\"#\">CLOSE ACCOUNT</a></li>\n <li class=\"logout\"><a href=\"../../index.php\">LOGOUT</a></li>\n </ul>\n </div></div>" . "<body onload=init('" . $test . "');>" . userDetailsHtml($userInfo) . "<div id=\"myDiagram\"></div>" . "</body>"; echo $html; }