function draw_accordion($categories_list, $widget_id, $widget_text) { $t_no_data_available = utf8_encode(_("No data available")); echo "\t\n\t<tr>\n\t\t<td class='nobborder'><br>\n\t\t\t<table align='center' width='97%' border='0'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='nobborder' style='text-align:center;'>"; if (is_array($categories_list) && !empty($categories_list)) { echo "<div id='accordion' style='overflow:auto'>"; $i = 1; foreach ($categories_list as $category => $widgets) { echo "<h3 id='{$i}'><a href='#'>{$category}</a></h3>"; echo "<div>"; echo draw_carrousel($i, $widgets, $widget_id); echo "</div>"; $i++; } echo "</div>"; } else { echo "<span>{$t_no_data_available}</span>"; } echo "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class='nobborder'>\t\t\t\t\t\t\t\t\n\t\t\t<br><br><br>\n\t\t</td>\n\t</tr>\t\t\t\n\t<tr>\n\t\t<td valign='top' class='nobborder' style='text-align:center;padding:2px 0px 0px 0px;'>\t\t\t\t\t\t\t\t\n\t\t\t<strong>" . _("Selected:") . "</strong> \n\t\t\t<span id='dassets'>" . $widget_text . "</span>\n\t\t</td>\n\t</tr>\t\t\n\t"; }
<div id='tree_button'> <button id='button_tree'><?php echo _("Select Users to Display"); ?> </button> </div> <div id='container_info'></div> <table id='perm_container' align='center' valign='middle' class='transparent' width='100%'; height='100%'> <tr> <td class='noborder' valign='top'> <div id='carrousel_container'> <?php if (!empty($users)) { echo draw_carrousel($conn, $users); } else { $config_nt = array('content' => _("No Users Found"), 'options' => array('type' => 'nf_warning', 'cancel_button' => true), 'style' => 'width: 60%; margin: 30px auto; text-align:center;'); $nt = new Notification('nt_1', $config_nt); $nt->show(); } ?> </div> </td> </tr> </table> <!-- Context Menu --> <ul id="myMenuTab" class="contextMenu"> <li class="addUser"><a href="#copyuser"><?php echo _("Copy this Tab to user");