} } echo '</tr>'; echo '</table>'; echo showlinksofcategory($myrow['id']); echo '</tr>'; } else { echo '<tr>'; echo '<table class="data_table">'; echo '<tr>'; echo '<th width="81%" style="font-weight: bold; text-align:left;padding-left: 5px;"><a href="' . api_get_self() . '?' . api_get_cidreq() . '&urlview='; echo is_array($view) ? implode('', $view) : $view; echo '">' . Display::return_icon('view_tree.png') . ' ' . Security::remove_XSS($myrow['category_title']) . $session_img; echo '</a><br /> '; echo $myrow['description']; if (api_is_allowed_to_edit(null, true)) { echo '<th style="text-align:center;">'; showcategoryadmintools($myrow['id']); echo '</th>'; } echo '</th>'; echo '</tr>'; echo '</table>'; echo '</tr>'; } // Displaying the link of the category $i++; } echo '</table>'; } Display::display_footer();
($display_tools? '<td></td>': '') . "<tr>"; } } else { $tool_content .= "<tr class='link-subcategory-title'><th class = 'text-left category-link'>".icon('fa-folder-o', $showall) . " <a href='$_SERVER[SCRIPT_NAME]?course=$course_code&urlview="; $tool_content .= is_array($view) ? implode('', $view) : $view; $tool_content .= $tinymce_params . "' class='open-category'>" . q($myrow->name) . "</a>"; $description = standard_text_escape($myrow->description); if (!empty($description)) { $tool_content .= "<br><span class='link-description'>$description</span</th>"; } else { $tool_content .= "</th>"; } if ($display_tools) { $tool_content .= "<td class='option-btn-cell'>"; showcategoryadmintools($myrow->id); $tool_content .= "</td>"; } $tool_content .= "</tr>"; } $i++; } $tool_content .= "</table></div></div></div>"; add_units_navigation(TRUE); } draw($tool_content, 2, null, $head_content);