Subversion Repositories personal-webbase

Rev

Rev 14 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 15
1
<?php
1
<?php
2
 
2
 
3
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
3
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
4
 
4
 
5
  if (function_exists('show_modul_search'))
5
  if (function_exists('show_modul_search'))
6
    echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'suchbegriff\').focus();"', $header);
6
    echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'suchbegriff\').focus();"', $header);
7
  else
7
  else
8
    echo $header;
8
    echo $header;
9
 
9
 
10
  if ($modulueberschrift == '') $modulueberschrift = $modul;
10
  if ($modulueberschrift == '') $modulueberschrift = $modul;
11
 
11
 
12
  if ((!isset($onlyupdates)) || (!$onlyupdates))
12
  if ((!isset($onlyupdates)) || (!$onlyupdates))
13
  {
13
  {
14
    echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>';
14
    echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>';
15
 
15
 
16
    if (function_exists('show_modul_search')) show_modul_search($modul, $seite);
16
    if (function_exists('show_modul_search')) show_modul_search($modul, $seite);
17
 
17
 
18
    gfx_begintable();
18
    wb_draw_table_begin();
19
 
19
 
20
    // gfx_tablecontent('', '<b>Name</b>', '', '<b>Aktionen</b>', '', '', '', '');
20
    // wb_draw_table_content('', '<b>Name</b>', '', '<b>Aktionen</b>', '', '', '', '');
21
    gfx_zeichneordner($modul, $mysql_zugangsdaten['praefix'].'links', 'ORDER BY `name`');
21
    gfx_zeichneordner($modul, $mysql_zugangsdaten['praefix'].'links', 'ORDER BY `name`');
22
    gfx_endtable();
22
    wb_draw_table_end();
23
    echo '<a href="'.$_SERVER['PHP_SELF'].'?seite=edit&amp;modul='.urlencode($modul).'&amp;aktion=new">Einen neuen Link hinzuf&uuml;gen</a>';
23
    echo '<a href="'.$_SERVER['PHP_SELF'].'?seite=edit&amp;modul='.urlencode($modul).'&amp;aktion=new">Einen neuen Link hinzuf&uuml;gen</a>';
24
    echo '<br><a href="'.$_SERVER['PHP_SELF'].'?seite=edit&amp;modul=user_ordner&amp;aktion=new&amp;kategorie='.urlencode($modul).'">Einen neuen Ordner hinzuf&uuml;gen</a>';
24
    echo '<br><a href="'.$_SERVER['PHP_SELF'].'?seite=edit&amp;modul=user_ordner&amp;aktion=new&amp;kategorie='.urlencode($modul).'">Einen neuen Ordner hinzuf&uuml;gen</a>';
25
  }
25
  }
26
  else
26
  else
27
  {
27
  {
28
    echo '<h1>'.my_htmlentities($modulueberschrift).' (nur Updates)</h1>';
28
    echo '<h1>'.my_htmlentities($modulueberschrift).' (nur Updates)</h1>';
29
    gfx_begintable();
29
    wb_draw_table_begin();
30
 
30
 
31
    // gfx_tablecontent('', '<b>Name</b>', '', '<b>Aktionen</b>', '', '', '', '');
31
    // wb_draw_table_content('', '<b>Name</b>', '', '<b>Aktionen</b>', '', '', '', '');
32
    gfx_zeichneitems_filter($modul, $mysql_zugangsdaten['praefix'].'links', "WHERE `update_enabled` = '1' AND `user` = '".$benutzer['id']."' ORDER BY `name`");
32
    gfx_zeichneitems_filter($modul, $mysql_zugangsdaten['praefix'].'links', "WHERE `update_enabled` = '1' AND `user` = '".$benutzer['id']."' ORDER BY `name`");
33
    gfx_endtable();
33
    wb_draw_table_end();
34
  }
34
  }
35
 
35
 
36
  echo $footer;
36
  echo $footer;
37
 
37
 
38
?>
38
?>
39
 
39