Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7 | daniel-mar | 1 | <?php |
2 | |||
14 | daniel-mar | 3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
7 | daniel-mar | 4 | |
5 | global $suchbegriff; |
||
6 | if ((isset($suchbegriff)) && ($suchbegriff != '') && (function_exists('generate_search_query'))) |
||
7 | { |
||
8 | $rs = db_query(generate_search_query('ordner', 0, $suchbegriff, "AND `id` = '".db_escape($ary[$i]['id'])."'")); |
||
9 | if (db_num($rs) != 0) |
||
10 | { |
||
11 | $a = '<font color="#FF0000">'; |
||
12 | $b = '</font>'; |
||
13 | } |
||
14 | else |
||
15 | { |
||
16 | $a = ''; |
||
17 | $b = ''; |
||
18 | } |
||
19 | } |
||
20 | else |
||
21 | { |
||
22 | $a = ''; |
||
23 | $b = ''; |
||
24 | } |
||
25 | |||
26 | |||
27 | if (file_exists(__DIR__.'/images/menu/16.png')) { |
||
28 | $ordner_16_pic = 'modules/user_ordner/images/menu/16.png'; |
||
29 | } else if (file_exists(__DIR__.'/images/menu/16.gif')) { |
||
30 | $ordner_16_pic = 'modules/user_ordner/images/menu/16.gif'; |
||
31 | } else { |
||
32 | $ordner_16_pic = 'design/spacer.gif'; |
||
33 | } |
||
15 | daniel-mar | 34 | wb_draw_table_content('', '<a name="ordner'.$ary[$i]['id'].'"></a><img src="design/spacer.gif" width="'.($einzug*$ordnereinzug).'" height="1" alt=""><img src="'.$ordner_16_pic.'" alt="Ordner"><img src="design/spacer.gif" width="5" height="1" alt="">'.$a.$ary[$i]['name'].$b.'<br><img src="design/spacer.gif" alt="" width="1" height="1">', '150', '<a href="'.$_SERVER['PHP_SELF'].'?seite=edit&modul='.urlencode($modul).'&aktion=new&folder='.urlencode($ary[$i]['id']).'" class="menu">'.$a.'Neuer Eintrag'.$b.'</a>', '175', '<a href="'.$_SERVER['PHP_SELF'].'?seite=edit&modul=user_ordner&aktion=edit&id='.urlencode($ary[$i]['id']).'&kategorie='.urlencode($modul).'" class="menu">'.$a.'Bearbeiten / Verschieben'.$b.'</a>', '75', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?seite=kraftsetzung&modul=user_ordner&aktion=delete&kategorie='.urlencode($modul).'&id='.urlencode($ary[$i]['id']).'\');" class="menu">'.$a.'Löschen'.$b.'</a>'); |
7 | daniel-mar | 35 | |
3 | daniel-mar | 36 | ?> |