<?php
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.');
echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'suchbegriff\').focus();"', $header);
else
echo $header;
if ((!isset($onlyupdates)) || (!$onlyupdates))
{
echo '<h1>'.htmlentities($module_information->caption).'</h1>';
if (function_exists('show_modul_search')) show_modul_search
($modul, $seite);
wb_draw_table_begin();
// wb_draw_table_content('', '<b>Name</b>', '', '<b>Aktionen</b>', '', '', '', '');
gfx_zeichneordner($modul, $WBConfig->getMySQLPrefix().'links', 'ORDER BY `name`');
wb_draw_table_end();
echo '<a href="'.$_SERVER['PHP_SELF'].'?seite=edit&modul='.$modul.'&aktion=new">Einen neuen Link hinzufügen</a>';
echo '<br><a href="'.$_SERVER['PHP_SELF'].'?seite=edit&modul=user_folders&aktion=new&category='.$modul.'">Einen neuen Ordner hinzufügen</a>';
}
else
{
echo '<h1>'.htmlentities($module_information->caption).' (nur Updates)</h1>';
wb_draw_table_begin();
// wb_draw_table_content('', '<b>Name</b>', '', '<b>Aktionen</b>', '', '', '', '');
wb_draw_item_filter($modul, $WBConfig->getMySQLPrefix().'links', "WHERE `update_enabled` = '1' AND `user_cnid` = '".$benutzer['id']."' ORDER BY `name`");
wb_draw_table_end();
}
echo $footer;
?>