Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
14 | daniel-mar | 3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
2 | daniel-mar | 4 | |
5 | // Neue E-Mails |
||
6 | |||
7 | $res = db_query("SELECT DISTINCT `konto` FROM `".$mysql_zugangsdaten['praefix']."popper_messages` WHERE `was_read` = '0' AND `user` = '".$benutzer['id']."'"); |
||
8 | $ereignisse['email_neu'] = db_num($res); |
||
9 | |||
10 | if ($ereignisse['email_neu'] != 1) |
||
11 | $plural_email = 'fächer'; |
||
12 | else |
||
13 | $plural_email = 'fach'; |
||
14 | |||
15 | if ($ereignisse['email_neu']) |
||
8 | daniel-mar | 16 | $email_weiter = '<div align="right"><a href="'.$_SERVER['PHP_SELF'].'?inhalt=inhalt&modul='.urlencode($m2).'" class="menu">Anzeigen >></a></div>'; |
2 | daniel-mar | 17 | else |
18 | $email_weiter = ''; |
||
19 | |||
20 | if ($ereignisse['email_neu'] > 0) |
||
21 | { |
||
22 | $a1 = '<font color="#FF0000">'; |
||
23 | $a2 = '</font>'; |
||
24 | } |
||
25 | else |
||
26 | { |
||
27 | $a1 = ''; |
||
28 | $a2 = ''; |
||
29 | } |
||
30 | |||
15 | daniel-mar | 31 | wb_draw_table_content('30', $a1.'<b>'.$ereignisse['email_neu'].'</b>'.$a2, $a1.''.$a2, $a1.'Post'.$plural_email.' mit neuen Nachrichten.'.$a2, $a1.''.$a2, $a1.$email_weiter.$a2); |
2 | daniel-mar | 32 | |
3 | daniel-mar | 33 | ?> |