[Fusionforge-commits] r11882 - trunk/src/common/widget
Franck VILLAUME
nerville at libremir.placard.fr.eu.org
Wed Dec 22 16:35:19 CET 2010
Author: nerville
Date: 2010-12-22 16:35:18 +0100 (Wed, 22 Dec 2010)
New Revision: 11882
Modified:
trunk/src/common/widget/Widget_MyMonitoredForums.class.php
Log:
use boxGetAltRowStyle and div warning
Modified: trunk/src/common/widget/Widget_MyMonitoredForums.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyMonitoredForums.class.php 2010-12-22 15:34:06 UTC (rev 11881)
+++ trunk/src/common/widget/Widget_MyMonitoredForums.class.php 2010-12-22 15:35:18 UTC (rev 11882)
@@ -54,7 +54,7 @@
$result=db_query_params($sql,array(user_getid()));
$rows=db_numrows($result);
if (!$result || $rows < 1) {
- $html_my_monitored_forums .= '<p><b>' . _("You are not monitoring any forums.") . '</b></p><p>' . _("If you monitor forums, you will be sent new posts in the form of an email, with a link to the new message.") . '</p><p>' . _("You can monitor forums by clicking on the appropriate menu item in the discussion forum itself.") . '</p>';
+ $html_my_monitored_forums .= '<div class="warning">' . _("You are not monitoring any forums.") . '</div><p>' . _("If you monitor forums, you will be sent new posts in the form of an email, with a link to the new message.") . '</p><p>' . _("You can monitor forums by clicking on the appropriate menu item in the discussion forum itself.") . '</p>';
} else {
$request =& HTTPRequest::instance();
$html_my_monitored_forums .= '<table style="width:100%">';
@@ -99,19 +99,10 @@
for ($i=0; $i<$rows2; $i++) {
if (!$hide_now) {
- if ($i % 2 == 0) {
- $class="bgcolor-white";
- }
- else {
- $class="bgcolor-grey";
- }
-
-
-
$group_forum_id = db_result($result2,$i,'group_forum_id');
$html .= '
- <TR class="'. $class .'"><TD WIDTH="99%">'.
+ <TR '. $GLOBAL['HTML']->boxGetAltRowStyle($i) .'"><TD WIDTH="99%">'.
' - <A HREF="/forum/forum.php?forum_id='.$group_forum_id.'">'.
stripslashes(db_result($result2,$i,'forum_name')).'</A></TD>'.
'<TD ALIGN="center"><A HREF="/my/stop_monitor.php?forum_id='.$group_forum_id.
More information about the Fusionforge-commits
mailing list