} $row = $TMinrow; $row = str_replace('[icon]', $icon, $row); $row = str_replace('[cellcol]', $i % 2 == 0 ? '[CellA]' : '[CellB]', $row); $row = str_replace('[topic]', $in['pm_topic'], $row); $row = str_replace('[autor]', $in['pm_autor'], $row); $row = str_replace('[time]', datum($in['pm_time']), $row); $row = str_replace('[back]', $back, $row); $row = str_replace('[back_alt]', $back_alt, $row); $row = str_replace('[saved]', $saved, $row); $row = str_replace('[pmid]', $in['pm_id'], $row); $data['in_rows'] .= $row; $i++; } $data['in_count'] = $i; $data['proz'] = proz($config['max_pm_count'], $i); } $data['out_rows'] = ''; // postausgang $data['out_count'] = 0; $r_out = db_query("SELECT\n\t pm_id,\n\t\t pm_autor,\n\t\t pm_empf,\n\t\t pm_time,\n\t\t pm_topic,\n\t\t pm_gelesen,\n\t\t pm_antwort,\n\t\t pm_saved\n\t FROM " . $pref . "pm WHERE pm_autor='" . U_NAME . "' AND pm_outbox='1' ORDER BY pm_time DESC"); if (db_rows($r_out) < 1) { $data['out_rows'] = '<tr><td class="cellb" colspan="7"><center>[smallfont]Keine Nachrichten im Postausgang.[smallfontend]</center></td></tr>'; } else { $TMoutrow = Get_Template('templates/' . $style['styletemplate'] . '/moutrow.html'); $i = 0; while ($out = db_result($r_out)) { $icon = '<img src="templates/' . $style['styletemplate'] . '/images/space.gif" border="0" />'; if ($out['pm_gelesen'] == 1) { $icon = '<img src="templates/' . $style['styletemplate'] . '/images/read.gif" border="0" />'; }
function createStat($name, $posts, $deleted, $count, $permission) { global $style; $width = proz($posts, $count); $real = proz($posts + $deleted, $count); $back = '<table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="blank"> [smallfont]' . $name . ': ' . $count . ' / ' . $posts . ($permission == 1 ? ' / <font color="[col_link]">' . $deleted . '</font>' : '') . '[smallfontend] </td> </tr> <tr> <td class="blank"> <img src="templates/' . $style['styletemplate'] . '/images/mini2.png" style="width:' . $width . 'px; height:10px" border="0" />[smallfont] ' . $width . '%[smallfontend]'; if ($permission == 1) { $back .= '<br /> <img src="templates/' . $style['styletemplate'] . '/images/mini1.png" style="width:' . $real . 'px; height:10px" border="0" /><font color="[col_link]">[smallfont] ' . $real . '%[smallfontend]</font>'; } $back .= '</td></tr></table>'; return $back; }