Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
3 | if (!defined('IBLEGAL')) die('Kann nicht ohne IronBASE ausgeführt werden.'); |
||
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']) |
||
16 | $email_weiter = '<div align="right"><a href="'.$_SERVER['PHP_SELF'].'?inhalt=inhalt&modul='.$m2.'" class="menu">Anzeigen >></a></div>'; |
||
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 | |||
31 | gfx_tablecontent('30', $a1.'<b>'.$ereignisse['email_neu'].'</b>'.$a2, $a1.''.$a2, $a1.'Post'.$plural_email.' mit neuen Nachrichten.'.$a2, $a1.''.$a2, $a1.$email_weiter.$a2); |
||
32 | |||
33 | ?> |