[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1590-g922d6ad
Marc-Etienne VARGENAU
vargenau at libremir.placard.fr.eu.org
Fri Mar 24 10:12:17 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 922d6ad4dbece9c15c25ec0ed1a0289731df049a (commit)
from 55b2a335738add36d283acdb073c3f93651239fb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=922d6ad4dbece9c15c25ec0ed1a0289731df049a
commit 922d6ad4dbece9c15c25ec0ed1a0289731df049a
Author: Marc-Etienne Vargenau <marc-etienne.vargenau at nokia.com>
Date: Fri Mar 24 10:12:04 2017 +0100
Let us alternate colors with CSS 3
diff --git a/src/common/forum/ForumAdmin.class.php b/src/common/forum/ForumAdmin.class.php
index 28d9a53..3265c40 100644
--- a/src/common/forum/ForumAdmin.class.php
+++ b/src/common/forum/ForumAdmin.class.php
@@ -332,7 +332,7 @@ class ForumAdmin extends FFError {
echo $HTML->listTableTop($title);
while ($onemsg = db_fetch_array($res)) {
echo "
- <tr " . $HTML->boxGetAltRowStyle($i++). ">
+ <tr>
<td>$onemsg[forum_name]</td>
<td><a href=\"#\" onclick=\"window.open('pendingmsgdetail.php?msg_id=$onemsg[msg_id]&forum_id=$onemsg[group_forum_id]&group_id=$group_id','PendingMessageDetail','width=800,height=600,status=no,resizable=yes');\">$onemsg[subject]</a></td>
<td><div class=\"align-right\">" . html_build_select_box_from_assoc($options,"doaction[]",1) . "</div></td>
diff --git a/src/common/forum/ForumHTML.class.php b/src/common/forum/ForumHTML.class.php
index e5eae7c..cbdcaf7 100644
--- a/src/common/forum/ForumHTML.class.php
+++ b/src/common/forum/ForumHTML.class.php
@@ -418,7 +418,7 @@ class ForumHTML extends FFError {
$total_rows++;
$ret_val .= '
- <tr '. $HTML->boxGetAltRowStyle($total_rows) .'><td style="white-space: nowrap;">';
+ <tr><td style="white-space: nowrap;">';
/*
How far should it indent?
*/
diff --git a/src/common/frs/views/admin.php b/src/common/frs/views/admin.php
index 9effa24..216c94a 100644
--- a/src/common/frs/views/admin.php
+++ b/src/common/frs/views/admin.php
@@ -131,7 +131,7 @@ if (count($FRSPackages) == 0) {
$content .= util_make_link('/frs/?view=showreleases&package_id='.$FRSPackage->getID().'&group_id='.$group_id, $HTML->getConfigurePic(_('Edit Releases'), _('Edit Releases')));
}
$cells[] = array($content, 'style' => 'white-space: nowrap;', 'align' => 'center');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true), 'id' => 'pkgid'.$FRSPackage->getID()), $cells);
+ echo $HTML->multiTableRow(array('id' => 'pkgid'.$FRSPackage->getID()), $cells);
}
echo $HTML->listTableBottom();
if ($permissionlevel >= 4) { // admin
diff --git a/src/common/frs/views/editrelease.php b/src/common/frs/views/editrelease.php
index 772b953..c09b1f1 100644
--- a/src/common/frs/views/editrelease.php
+++ b/src/common/frs/views/editrelease.php
@@ -184,7 +184,7 @@ if(count($files)) {
$cells[][] = '<input type="text" name="release_time" value="'.date('Y-m-d', $file->getReleaseTime()).'" size="10" maxlength="10" />';
$deleteUrlAction = util_make_uri('/frs/?action=deletefile&package_id='.$package_id.'&group_id='.$group_id.'&file_id='.$file->getID());
$cells[][] = '<input type="submit" name="submit" value="'._('Update/Refresh').'" />'.util_make_link('#', $HTML->getDeletePic(_('Delete this file'), _('Delete file')), array('onclick' => 'javascript:controllerFRS.toggleConfirmBox({idconfirmbox: \'confirmbox1\', do: \''._('Delete the file').' '.$file->getName().'\', cancel: \''._('Cancel').'\', height: 150, width: 400, action: \''.$deleteUrlAction.'\'})' ), true);
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
echo $HTML->listTableBottom();
echo $HTML->closeForm();
}
diff --git a/src/common/frs/views/linktrackerroadmap.php b/src/common/frs/views/linktrackerroadmap.php
index d886378..7dc9a6e 100644
--- a/src/common/frs/views/linktrackerroadmap.php
+++ b/src/common/frs/views/linktrackerroadmap.php
@@ -59,7 +59,7 @@ if (count($enabledRoadmaps)) {
//$cells[] = array(html_e('input', array('type' => 'checkbox', 'value' => $enabledRoadmap->getID(), 'class' => 'checkedrelidroadactive', 'title' => _('Select / Deselect this roadmap for massaction'), 'onClick' => 'controllerFRS.checkgeneral("roadactive")')), 'style' => 'width: 2%; padding: 0px;');
$cells[] = array($enabledRoadmap->getName().' - '.$releaseRoadmap, 'style' => 'white-space: nowrap; width: 30%');
$cells[][] = '<input type="hidden" name="roadmap_release" value="'.$releaseRoadmap.'"><input type="submit" name="submit" value="'.$labelInput.'" />';
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
echo $HTML->listTableBottom();
echo $HTML->closeForm();
$i++;
diff --git a/src/common/frs/views/showreleases.php b/src/common/frs/views/showreleases.php
index bc01ae1..b244e4a 100644
--- a/src/common/frs/views/showreleases.php
+++ b/src/common/frs/views/showreleases.php
@@ -88,7 +88,7 @@ if (count($rs) < 1) {
$content .= util_make_link('#', $HTML->getDeletePic(_('Delete this release'), _('Delete release')), array('onclick' => 'javascript:controllerFRS.toggleConfirmBox({idconfirmbox: \'confirmbox1\', do: \''._('Delete the release').' '.$rs[$i]->getName().'\', cancel: \''._('Cancel').'\', height: 150, width: 300, action: \''.$deleteUrlAction.'\'})' ), true);
}
$cells[][] = $content;
- echo $HTML->multiTableRow(array('id' => 'releaseid'.$rs[$i]->getID(), 'class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array('id' => 'releaseid'.$rs[$i]->getID()), $cells);
}
echo $HTML->listTableBottom();
if ($permissionlevel >= 3) {
diff --git a/src/common/include/utils.php b/src/common/include/utils.php
index 0fa2c8c..08b2bea 100644
--- a/src/common/include/utils.php
+++ b/src/common/include/utils.php
@@ -595,7 +595,7 @@ function ShowResultSet($result, $title = '', $linkify = false, $displayHeaders =
/* Create the rows */
for ($j = 0; $j < $rows; $j++) {
- echo '<tr '.$HTML->boxGetAltRowStyle($j).'>';
+ echo '<tr>';
for ($i = 0; $i < $cols; $i++) {
if (in_array($i, $colsToKeep)) {
if ($linkify && $i == 0) {
diff --git a/src/common/tracker/actions/admin-ind.php b/src/common/tracker/actions/admin-ind.php
index 81e5a2e..bdf2659 100644
--- a/src/common/tracker/actions/admin-ind.php
+++ b/src/common/tracker/actions/admin-ind.php
@@ -104,7 +104,7 @@ if (!isset($at_arr) || !$at_arr || count($at_arr) < 1) {
$cells = array();
$cells[][] = util_make_link('/tracker/admin/?atid='.$at_arr[$j]->getID().'&group_id='.$group_id, $HTML->getFollowPic().' '.$at_arr[$j]->getName());
$cells[][] = $at_arr[$j]->getDescription();
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($j, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
diff --git a/src/common/tracker/actions/effort_units.php b/src/common/tracker/actions/effort_units.php
index 75002e5..6d0da75 100644
--- a/src/common/tracker/actions/effort_units.php
+++ b/src/common/tracker/actions/effort_units.php
@@ -239,7 +239,6 @@ function show_units(&$effortUnitSet){
$thTitleArray = array();
$thOtherAttrsArray = array();
echo $HTML->listTableTop($titleArray, $linksArray, $class, $id, $thClassArray, $thTitleArray, $thOtherAttrsArray);
- $i=0;
foreach($units as $unit) {
$cells = array();
if ($isEditable) {
@@ -265,8 +264,7 @@ function show_units(&$effortUnitSet){
}
$cells[][] = $content;
$cells[][] = ($unit->isBaseUnit()?_('Base Unit'):$unit->getConversionFactor().' x '.$unit->getToUnitName());
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
- $i += 1;
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/common/tracker/include/ArtifactHtml.class.php b/src/common/tracker/include/ArtifactHtml.class.php
index 262ab18..58b0cad 100644
--- a/src/common/tracker/include/ArtifactHtml.class.php
+++ b/src/common/tracker/include/ArtifactHtml.class.php
@@ -53,8 +53,8 @@ class ArtifactHtml extends Artifact {
$title_arr[] = _('Detailed description');
}
$return .= $HTML->listTableTop($title_arr);
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle(0, true), 'id' => 'editdescription', 'style' => 'display:none'), array(array(html_e('textarea', array_merge($editattrs, array('id' => 'tracker-description', 'required' => 'required', 'name' => 'description', 'rows' => 20, 'style' => 'box-sizing: box-border; width: 99%;', 'title' => util_html_secure(html_get_tooltip_description('description')))), $result), 'style' => 'display: block; box-sizing:border-box;')));
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle(0, true), 'id' => 'showdescription'), array(array($result_html)));
+ $return .= $HTML->multiTableRow(array('id' => 'editdescription', 'style' => 'display:none'), array(array(html_e('textarea', array_merge($editattrs, array('id' => 'tracker-description', 'required' => 'required', 'name' => 'description', 'rows' => 20, 'style' => 'box-sizing: box-border; width: 99%;', 'title' => util_html_secure(html_get_tooltip_description('description')))), $result), 'style' => 'display: block; box-sizing:border-box;')));
+ $return .= $HTML->multiTableRow(array('id' => 'showdescription'), array(array($result_html)));
$return .= $HTML->listTableBottom();
return $return;
}
@@ -155,7 +155,7 @@ function hide_edit_button(id) {
for ($i=0; $i < $rows; $i++) {
$field=db_result($result, $i, 'field_name');
$return .= '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td>'.$field.'</td><td>';
+ <tr><td>'.$field.'</td><td>';
if ($field == 'status_id') {
diff --git a/src/common/tracker/views/form-addcanned.php b/src/common/tracker/views/form-addcanned.php
index fdcf9dc..3687814 100644
--- a/src/common/tracker/views/form-addcanned.php
+++ b/src/common/tracker/views/form-addcanned.php
@@ -48,7 +48,7 @@ if ($result && $rows > 0) {
for ($i=0; $i < $rows; $i++) {
$id = db_result($result, $i, 'id');
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'>'.
+ echo '<tr>'.
'<td>'.$id.'</td>'.
'<td>'.util_make_link('/tracker/admin/?update_canned=1&id='.$id.'&group_id='.$group_id.'&atid='.$ath->getID(), db_result($result, $i, 'title')).'</td>
<td>'.util_make_link('/tracker/admin/?delete_canned=1&id='.$id.'&group_id='.$group_id.'&atid='. $ath->getID(), _('Delete')).'</td></tr>';
diff --git a/src/common/tracker/views/form-addextrafieldoption.php b/src/common/tracker/views/form-addextrafieldoption.php
index 2e39edc..1b77347 100644
--- a/src/common/tracker/views/form-addextrafieldoption.php
+++ b/src/common/tracker/views/form-addextrafieldoption.php
@@ -95,7 +95,7 @@ if (!$ac || !is_object($ac)) {
$title_arr[]='';
echo $HTML->listTableTop($title_arr, false, ' ');
if (in_array($efType, unserialize(ARTIFACT_EXTRAFIELDTYPEGROUP_CHOICE))) {
- $row_attrs = array('class'=>$HTML->boxGetAltRowStyle(-1,true));
+ $row_attrs = array();
$cells = array();
$cells[] = array('', 'class'=>'align-right');
if ($efType == ARTIFACT_EXTRAFIELDTYPE_STATUS) {
@@ -131,7 +131,7 @@ if (!$ac || !is_object($ac)) {
echo $HTML->multiTableRow($row_attrs, $cells);
}
for ($i=0; $i < $rows; $i++) {
- $row_attrs = array('class'=>$HTML->boxGetAltRowStyle($i,true));
+ $row_attrs = array();
$cells = array();
$content = ($i + 1).' -->'.html_e('input', array('type'=>'text', 'name'=>'order['. $efearr[$i]['element_id'] .']', 'value'=>'', 'size'=>'3', 'maxlength'=>'3'));
$cells[] = array($content, 'class'=>'align-right');
diff --git a/src/common/tracker/views/form-adminroadmap.php b/src/common/tracker/views/form-adminroadmap.php
index df11c3c..586467f 100644
--- a/src/common/tracker/views/form-adminroadmap.php
+++ b/src/common/tracker/views/form-adminroadmap.php
@@ -363,7 +363,7 @@ if (getIntFromRequest('manage_release') ||
$rows = array();
for ($pos = count($release_order) - 1; $pos >= 0; $pos--) {
- $rows[$pos] = '<tr '. $HTML->boxGetAltRowStyle($pos) .'>'.'<td>'.' '.$release_order[$pos].'</td>'."\n".
+ $rows[$pos] = '<tr>'.'<td>'.' '.$release_order[$pos].'</td>'."\n".
'<td class="align-right">'.
($pos + 1).' --> <input type="text" name="order['.$release_order[$pos].']" value="" size="3" maxlength="3" />'.
'</td>'."\n".
@@ -438,7 +438,7 @@ if (! isset($ihm) || $ihm !== true) {
} elseif ($roadmap->isError()) {
echo $roadmap->getErrorMessage();
} else {
- $rows[$pos] = '<tr '. $HTML->boxGetAltRowStyle($pos) .'>'.
+ $rows[$pos] = '<tr>'.
'<td><input type="checkbox" name="roadmap_states['.$roadmap->getID().']" value="1"'.($roadmap->getState() ? ' checked="checked"' : '').' /></td>'.
'<td>'.$roadmap->getName().'</td>'."\n".
'<td class="align-center"><input type="radio" name="default_roadmap" value="'.$roadmap->getID().'"'.($roadmap->isDefault() ? ' checked="checked"' : '').' /></td>'.
diff --git a/src/common/tracker/views/form-customizelist.php b/src/common/tracker/views/form-customizelist.php
index 381095c..deea448 100644
--- a/src/common/tracker/views/form-customizelist.php
+++ b/src/common/tracker/views/form-customizelist.php
@@ -72,7 +72,7 @@ $select = '';
foreach ($fields as $f => $name) {
$pos = array_search($f, $browse_fields);
if ($pos !== false) {
- $rows[$pos] = '<tr '. $HTML->boxGetAltRowStyle($pos) .'>'.'<td>'.$name.'</td>'."\n".
+ $rows[$pos] = '<tr>'.'<td>'.$name.'</td>'."\n".
'<td class="align-right">'.
($pos + 1).' --> <input type="text" name="order['.$f.']" value="" size="3" maxlength="3" />'.
'</td>'."\n".
diff --git a/src/common/tracker/views/form-editformula.php b/src/common/tracker/views/form-editformula.php
index 4845720..623dca8 100644
--- a/src/common/tracker/views/form-editformula.php
+++ b/src/common/tracker/views/form-editformula.php
@@ -97,7 +97,7 @@ if ($rows > 0) {
for ($k=0; $k < $rows; $k++) {
$i=$keys[$k];
$rownb++;
- $row_attrs = array('class'=>$HTML->boxGetAltRowStyle($rownb,true));
+ $row_attrs = array();
$cells = array();
$cells[] = array($efarr[$i]['field_name'], 'class'=>'align-right');
$cells[] = array(html_e('span',array('class'=>'insert'),$efarr[$i]['alias']), 'class'=>'align-right');
@@ -189,7 +189,7 @@ echo $HTML->listTableTop($title_arr, array(), 'full sortable', 'sortable_fuction
$rownb = 0;
foreach ($functions as $function) {
$rownb++;
- $row_attrs = array('class'=>$HTML->boxGetAltRowStyle($rownb,true));
+ $row_attrs = array();
$cells = array();
$cells[] = array(html_e('span', array('class'=>'insert'), $function), 'class'=>'align-right');
$cells[] = array($expression->getFunctionDescription($function), 'class'=>'align-right');
@@ -216,7 +216,7 @@ foreach ($operatorTypes as $operatorType) {
$rownb = 0;
foreach ($operators as $operator) {
$rownb++;
- $row_attrs = array('class'=>$HTML->boxGetAltRowStyle($rownb,true));
+ $row_attrs = array();
$cells = array();
$cells[] = array(html_e('span', array('class'=>'insert'), $operator[0]), 'class'=>'align-right');
$cells[] = array($operator[1], 'class'=>'align-right');
diff --git a/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php b/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php
index 1002e7b..0cf1b08 100644
--- a/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php
+++ b/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php
@@ -69,7 +69,6 @@ class Widget_HomeDetailActivityMostActiveProjectWeek extends Widget {
usort($activities, 'Widget_HomeDetailActivityMostActiveProjectWeek::date_compare');
$displayTableTop = 0;
$last_day = 0;
- $j = 0;
foreach ($activities as $activity) {
$docmanerror = 0;
if (!$this->check_perm_for_activity($activity)) {
@@ -172,7 +171,7 @@ class Widget_HomeDetailActivityMostActiveProjectWeek extends Widget {
} else {
$cells[][] = $activity['realname'];
}
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($j++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
if ($displayTableTop) {
echo $HTML->listTableBottom();
diff --git a/src/common/widget/Widget_MyAdmin.class.php b/src/common/widget/Widget_MyAdmin.class.php
index 32e9c76..08f6199 100644
--- a/src/common/widget/Widget_MyAdmin.class.php
+++ b/src/common/widget/Widget_MyAdmin.class.php
@@ -106,6 +106,6 @@ class Widget_MyAdmin extends Widget {
$cells = array();
$cells[][] = $text;
$cells[] = array($value, 'style' => 'white-space:nowrap; width:20%; background:'. $bgcolor .'; color:'. $textcolor .'; padding: 2px 8px; font-weight:bold; text-align:center;');
- return $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ return $HTML->multiTableRow(array(), $cells);
}
}
diff --git a/src/common/widget/Widget_MyArtifacts.class.php b/src/common/widget/Widget_MyArtifacts.class.php
index 88210a9..ea6ea6e 100644
--- a/src/common/widget/Widget_MyArtifacts.class.php
+++ b/src/common/widget/Widget_MyArtifacts.class.php
@@ -259,7 +259,7 @@ class Widget_MyArtifacts extends Widget {
$cells[] = array($trackers_array->getPriority(), 'class' => 'priority'.$trackers_array->getPriority());
$cells[][] = util_make_link('/tracker/?func=detail&group_id='.$group_id.'&aid='.$aid.'&atid='.$atid, stripslashes($summary), array('title' => _('Browse this artifact')));
$cells[] = array($AS_flag, 'title' => $AS_title, 'class' => 'small');
- $html .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($count_aids, true)), $cells);
+ $html .= $HTML->multiTableRow(array(), $cells);
}
}
$aid_old = $aid;
diff --git a/src/common/widget/Widget_MyBookmarks.class.php b/src/common/widget/Widget_MyBookmarks.class.php
index 60de265..4788c17 100644
--- a/src/common/widget/Widget_MyBookmarks.class.php
+++ b/src/common/widget/Widget_MyBookmarks.class.php
@@ -55,7 +55,7 @@ class Widget_MyBookmarks extends Widget {
$cells[] = array(util_make_link('/my/bookmark_delete.php?bookmark_id='.db_result($result,$i,'bookmark_id'),
$HTML->getDeletePic(_('Delete'), _('Delete'), array('onClick' => 'return confirm("'._('Delete this bookmark?').'")'))),
'style' => 'text-align:right');
- $html_my_bookmarks .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $html_my_bookmarks .= $HTML->multiTableRow(array(), $cells);
}
$html_my_bookmarks .= $HTML->listTableBottom();
}
diff --git a/src/common/widget/Widget_MyLatestCommits.class.php b/src/common/widget/Widget_MyLatestCommits.class.php
index e4b2091..a1b13e7 100644
--- a/src/common/widget/Widget_MyLatestCommits.class.php
+++ b/src/common/widget/Widget_MyLatestCommits.class.php
@@ -94,7 +94,7 @@ class Widget_MyLatestCommits extends Widget {
if (strlen($revision['description']) > 255) {
$revisionDescription .= ' [...]';
}
- $html .= html_e('div', array('class' => $HTML->boxGetAltRowStyle($key, true), 'style' => 'border-bottom:1px solid #ddd'),
+ $html .= html_e('div', array('style' => 'border-bottom:1px solid #ddd'),
html_e('div', array('style' => 'font-size:0.98em'),
$this->_getLinkToCommit($project, $revision['commit_id'], $revision['pluginName']).
' '._('on').' '.
diff --git a/src/common/widget/Widget_MyMonitoredDocuments.class.php b/src/common/widget/Widget_MyMonitoredDocuments.class.php
index b18bfd3..49fba77 100644
--- a/src/common/widget/Widget_MyMonitoredDocuments.class.php
+++ b/src/common/widget/Widget_MyMonitoredDocuments.class.php
@@ -93,7 +93,7 @@ class Widget_MyMonitoredDocuments extends Widget {
$cells[] = array(util_make_link('/docman/?group_id='.$distinctMonitorGroupId.'&action=monitorfile&option=stop&view=listfile&dirid='.$documentObject->getDocGroupID().'&fileid='.$documentObject->getID(),
$HTML->getDeletePic(_('Stop monitoring'), _('Stop monitoring'), array('onClick' => 'return confirm("'._('Stop monitoring this document?').'")'))),
'class' => 'align-center');
- $html .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ $html .= $HTML->multiTableRow(array(), $cells);
}
}
diff --git a/src/common/widget/Widget_MyMonitoredForums.class.php b/src/common/widget/Widget_MyMonitoredForums.class.php
index 355b077..57599dc 100644
--- a/src/common/widget/Widget_MyMonitoredForums.class.php
+++ b/src/common/widget/Widget_MyMonitoredForums.class.php
@@ -105,7 +105,7 @@ class Widget_MyMonitoredForums extends Widget {
$cells[] = array(util_make_link('/forum/monitor.php?forum_id='.$validMonitoredForumId.'&group_id='.$groupObject->getID().'&stop=1',
$HTML->getDeletePic(_('Stop monitoring'), _('Stop monitoring'), array('onClick' => 'return confirm("'._('Stop monitoring this forum?').'")'))),
'class' => 'align-center');
- $html .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ $html .= $HTML->multiTableRow(array(), $cells);
}
}
$html_my_monitored_forums .= $html_hdr.$html;
diff --git a/src/common/widget/Widget_MyMonitoredFp.class.php b/src/common/widget/Widget_MyMonitoredFp.class.php
index 7b2a5b7..367fb83 100644
--- a/src/common/widget/Widget_MyMonitoredFp.class.php
+++ b/src/common/widget/Widget_MyMonitoredFp.class.php
@@ -101,7 +101,7 @@ class Widget_MyMonitoredFp extends Widget {
$package_monitor = util_make_link($url, $HTML->getDeletePic($title, $title, array('onClick' => 'return confirm("'._('Stop monitoring this package?').'")')));
$cells[] = array(' - '.util_make_link('/frs/?group_id='.$validDistinctMonitorGroupId, $frsPackageObject->getName()), 'width' => '99%');
$cells[][] = $package_monitor;
- $html .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ $html .= $HTML->multiTableRow(array(), $cells);
}
}
$html_my_monitored_fp .= $html_hdr .$html;
diff --git a/src/common/widget/Widget_MyProjects.class.php b/src/common/widget/Widget_MyProjects.class.php
index 8b41370..35f68fd 100644
--- a/src/common/widget/Widget_MyProjects.class.php
+++ b/src/common/widget/Widget_MyProjects.class.php
@@ -58,7 +58,7 @@ class Widget_MyProjects extends Widget {
if ($g->getStatus() != 'A') continue;
$i++;
$html_my_projects .= '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td style="width:99%">'.
+ <tr><td style="width:99%">'.
util_make_link('/projects/'.$g->getUnixName(), $g->getPublicName());
$isadmin = false;
diff --git a/src/common/widget/Widget_MyProjectsLastDocuments.class.php b/src/common/widget/Widget_MyProjectsLastDocuments.class.php
index e2e5729..2e5c002 100644
--- a/src/common/widget/Widget_MyProjectsLastDocuments.class.php
+++ b/src/common/widget/Widget_MyProjectsLastDocuments.class.php
@@ -103,7 +103,7 @@ class Widget_MyProjectsLastDocuments extends Widget {
$count = count($df->Documents[$key]);
for ($i=0; $i < $count; $i++) {
$doc =& $df->Documents[$key][$i];
- $html .= '<tr '. $HTML->boxGetAltRowStyle($j) .'>';
+ $html .= '<tr>';
switch ($doc->getFileType()) {
case "URL": {
$docurl = util_make_link($doc->getFileName(), html_image($doc->getFileTypeImage(), 22, 22, array('alt'=>$doc->getFileType())), array(), true);
diff --git a/src/common/widget/Widget_MySurveys.class.php b/src/common/widget/Widget_MySurveys.class.php
index d140c22..f8f22d9 100644
--- a/src/common/widget/Widget_MySurveys.class.php
+++ b/src/common/widget/Widget_MySurveys.class.php
@@ -122,7 +122,7 @@ class Widget_MySurveys extends Widget {
$group_survey_id = $survey->getID();
$survey_title = $survey->getTitle();
$html .= '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td style="width:99%">'.
+ <tr><td style="width:99%">'.
' - '.
util_make_link('/survey/survey.php?group_id='.$group_id.'&survey_id='.$group_survey_id, $survey_title).
'</td></tr>';
diff --git a/src/common/widget/Widget_MySystasks.class.php b/src/common/widget/Widget_MySystasks.class.php
index fe39b4b..90b8467 100644
--- a/src/common/widget/Widget_MySystasks.class.php
+++ b/src/common/widget/Widget_MySystasks.class.php
@@ -94,7 +94,7 @@ class Widget_MySystasks extends Widget {
. ' (+' . round(db_result($res, $i,'queued'), 1) . 's)';
$cells[][] = date("H:i:s", db_result($res, $i,'stopped'))
. ' (+' . round(db_result($res, $i,'run'), 1) . 's)';
- $html_my_systasks .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i+1, true)), $cells);
+ $html_my_systasks .= $HTML->multiTableRow(array(), $cells);
}
$html_my_systasks .= $HTML->listTableBottom();
diff --git a/src/common/widget/Widget_ProjectLatestCommits.class.php b/src/common/widget/Widget_ProjectLatestCommits.class.php
index bc033da..ff6abf5 100644
--- a/src/common/widget/Widget_ProjectLatestCommits.class.php
+++ b/src/common/widget/Widget_ProjectLatestCommits.class.php
@@ -67,7 +67,7 @@ class Widget_ProjectLatestCommits extends Widget {
if (strlen($revision['description']) > 255) {
$revisionDescription .= ' [...]';
}
- $html .= html_e('div', array('class' => $HTML->boxGetAltRowStyle($key, true), 'style' => 'border-bottom:1px solid #ddd'),
+ $html .= html_e('div', array('style' => 'border-bottom:1px solid #ddd'),
html_e('div', array('style' => 'font-size:0.98em'),
$this->_getLinkToCommit($project, $revision['commit_id']).
' '._('on').' '.
diff --git a/src/common/widget/Widget_Rss.class.php b/src/common/widget/Widget_Rss.class.php
index 773f800..0f36af4 100644
--- a/src/common/widget/Widget_Rss.class.php
+++ b/src/common/widget/Widget_Rss.class.php
@@ -65,7 +65,7 @@ require_once 'Widget.class.php';
$content .= $HTML->listTableTop();
$i = 0;
foreach($items as $key => $item){
- $content .= '<tr '.$HTML->boxGetAltRowStyle($key).'><td width="99%">';
+ $content .= '<tr><td width="99%">';
if ($image = $item->get_link(0, 'image')) {
//hack to display twitter avatar
$content .= '<img src="'. $hp->purify($image, CODENDI_PURIFIER_CONVERT_HTML) .'" style="float:left; margin-right:1em;" />';
diff --git a/src/common/widget/Widget_TrackerContent.class.php b/src/common/widget/Widget_TrackerContent.class.php
index 32f1073..0e86223 100644
--- a/src/common/widget/Widget_TrackerContent.class.php
+++ b/src/common/widget/Widget_TrackerContent.class.php
@@ -260,12 +260,12 @@ EOS;
for ($i = 0; count($stillAvailableExtraFields) > $i; $i++) {
$cells[] = array(html_e('div', array('id' => 'ef'.$stillAvailableExtraFields[$i][0], 'class' => 'wb_extrafield', 'style' => 'background: #e6e6e6 none repeat scroll 0 0; padding: 2px; text-align: center;'), util_unconvert_htmlspecialchars($stillAvailableExtraFields[$i]['field_name']).'<div id="xef'.$stillAvailableExtraFields[$i][0].'" style="display: none" class="ef-widget-remove">x</div>'), 'id' => 'tdef'.$stillAvailableExtraFields[$i][0], 'class' => 'td-droppable', 'width' => '50%');
if ($i % 2) {
- $content .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $content .= $HTML->multiTableRow(array(), $cells);
$cells = array();
}
}
if (count($cells)) {
- $content .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $content .= $HTML->multiTableRow(array(), $cells);
}
}
if (count($arr) > 0) {
@@ -273,12 +273,12 @@ EOS;
for ($i = 0; count($arr) > $i; $i++) {
$cells[] = array('', 'id' => 'tdef'.$arr[$i], 'width' => '50%');
if ($i % 2) {
- $content .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $content .= $HTML->multiTableRow(array(), $cells);
$cells = array();
}
}
if (count($cells)) {
- $content .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $content .= $HTML->multiTableRow(array(), $cells);
}
}
if (count($stillAvailableExtraFields) > 0 || count($arr) > 0) {
@@ -621,7 +621,7 @@ EOS;
}
$cells[] = array($cellContent, 'width' => $extrafieldID[$keys[0]][0].'%', 'style' => 'vertical-align: top;');
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($row_id, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$return .= $HTML->listTableBottom();
}
$return .= $ath->javascript();
diff --git a/src/common/widget/Widget_TrackerDefaultActions.class.php b/src/common/widget/Widget_TrackerDefaultActions.class.php
index 76b78b8..bc57810 100644
--- a/src/common/widget/Widget_TrackerDefaultActions.class.php
+++ b/src/common/widget/Widget_TrackerDefaultActions.class.php
@@ -71,9 +71,8 @@ class Widget_TrackerDefaultActions extends Widget {
$img="mail16w.png";
$text=_('Monitor');
}
- $i = 0;
$cells[][] = util_make_link('/tracker/?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor', html_e('strong', array(), html_image('ic/'.$img, 20, 20).' '.$text), array('id' => 'tracker-monitor', 'title' => util_html_secure(html_get_tooltip_description('monitor'))));
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$votes = $ah->getVotes();
if ($votes[1]) {
$cells = array();
@@ -89,12 +88,12 @@ class Widget_TrackerDefaultActions extends Widget {
$cellContent .= util_make_link('/tracker/?group_id='.$group_id.'&aid='.$ah->getID().'&atid='.$ath->getID().'&func='.$key, html_image('ic/'.$key.'.png', 16, 16), array('id' => 'tracker-vote', 'alt' => $txt, 'title' => util_html_secure(html_get_tooltip_description('vote'))));
}
$cells[][] = $cellContent;
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
}
if (forge_check_perm('tracker', $atid, 'manager')) {
$cells = array();
$cells[][] = util_make_link('/tracker/?func=deleteartifact&aid='.$aid.'&group_id='.$group_id.'&atid='.$atid, $HTML->getDeletePic().html_e('strong', array(), _('Delete')));
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
}
$return .= $HTML->listTableBottom();
return $return;
diff --git a/src/common/widget/Widget_TrackerGeneral.class.php b/src/common/widget/Widget_TrackerGeneral.class.php
index 7d3308e..564b133 100644
--- a/src/common/widget/Widget_TrackerGeneral.class.php
+++ b/src/common/widget/Widget_TrackerGeneral.class.php
@@ -68,7 +68,6 @@ class Widget_TrackerGeneral extends Widget {
$return .= $HTML->information('No specific instruction');
}
} elseif ($func == 'detail') {
- $i = 0;
$return = $HTML->listTableTop();
$cells = array();
$cells[][] = html_e('strong', array(), _('Submitted by')._(':'));
@@ -77,11 +76,11 @@ class Widget_TrackerGeneral extends Widget {
} else {
$cells[][] = $ah->getSubmittedRealName();
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$cells = array();
$cells[][] = html_e('strong', array(), _('Date Submitted')._(':'));
$cells[][] = date(_('Y-m-d H:i'), $ah->getOpenDate());
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$cells = array();
$cells[][] = html_e('strong', array(), _('Last Modified by')._(':'));
if($ah->getLastModifiedBy() != 100) {
@@ -89,22 +88,22 @@ class Widget_TrackerGeneral extends Widget {
} else {
$cells[][] = $ah->getLastModifiedRealName();
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$cells = array();
$cells[][] = html_e('strong', array(), _('Last Modified')._(':'));
$cells[][] = date(_('Y-m-d H:i'), $ah->getLastModifiedDate());
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$close_date = $ah->getCloseDate();
if ($ah->getStatusID()==2 && $close_date > 1) {
$cells = array();
$cells[][] = html_e('strong', array(), _('Date Closed')._(':'));
$cells[][] = date(_('Y-m-d H:i'), $close_date);
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
}
$cells = array();
$cells[][] = html_e('strong', array(), util_make_link($ah->getPermalink(), _('Permalink'))._(':'));
$cells[][] = util_make_url($ah->getPermalink());
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$return .= $HTML->listTableBottom();
}
return $return;
diff --git a/src/common/widget/Widget_TrackerMain.class.php b/src/common/widget/Widget_TrackerMain.class.php
index abd9637..f970001 100644
--- a/src/common/widget/Widget_TrackerMain.class.php
+++ b/src/common/widget/Widget_TrackerMain.class.php
@@ -62,7 +62,6 @@ class Widget_TrackerMain extends Widget {
global $priority;
$return = $HTML->listTableTop();
- $i = 0;
$atf = new ArtifactTypeFactory ($group);
$fieldInFormula = $ath->getFieldsInFormula();
$cells = array();
@@ -85,7 +84,7 @@ class Widget_TrackerMain extends Widget {
$cells[][] = html_e('strong', array(), _('Data Type')._(': '));
$cells[][] = $ath->getName();
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$cells = array();
$cells[][] = html_e('strong', array(), _('Assigned to')._(': '));
if (forge_check_perm('tracker', $atid, 'manager')) {
@@ -102,7 +101,7 @@ class Widget_TrackerMain extends Widget {
} else {
$cells[][] = $ah->getAssignedRealName().' ('.$ah->getAssignedUnixName().')';
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
if (!$ath->usesCustomStatuses()) {
$cells = array();
$cells[][] = html_e('strong', array(), _('State')._(': '));
@@ -120,7 +119,7 @@ class Widget_TrackerMain extends Widget {
} else {
$cells[][] = $ah->getStatusName();
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
}
$cells = array();
$cells[][] = html_e('strong', array(), _('Priority')._(': '));
@@ -138,7 +137,7 @@ class Widget_TrackerMain extends Widget {
} else {
$cells[][] = $ah->getPriority();
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$return .= $HTML->listTableBottom();
if (forge_check_perm('tracker', $atid, 'tech')) {
$return .= html_e('p', array('class' => 'middleRight'), html_e('input', array('form' => 'trackerform', 'type' => 'submit', 'name' => 'submit', 'value' => _('Save Changes'), 'title' => _('Save is validating the complete form'), 'onClick' => 'iefixform()')));
diff --git a/src/plugins/authopenid/www/index.php b/src/plugins/authopenid/www/index.php
index a3ebed5..b4c8de9 100644
--- a/src/plugins/authopenid/www/index.php
+++ b/src/plugins/authopenid/www/index.php
@@ -154,7 +154,7 @@ if($res) {
while ($row = db_fetch_array($res)) {
$openid_identity = $row['openid_identity'];
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'>';
+ echo '<tr>';
echo '<td>'. $openid_identity .'</td>';
echo '<td>'.util_make_link('/plugins/authopenid/?openid_identity='.urlencode($openid_identity).'&delete=1', _('delete')).'</td>';
echo '</tr>';
diff --git a/src/plugins/authwebid/www/index.php b/src/plugins/authwebid/www/index.php
index f66ce2a..32ed34d 100644
--- a/src/plugins/authwebid/www/index.php
+++ b/src/plugins/authwebid/www/index.php
@@ -104,7 +104,7 @@ if( count($pendingwebids) ) {
$i = 0;
foreach($pendingwebids as $webid_identity) {
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'>';
+ echo '<tr>';
echo '<td><i>'. $webid_identity .'</i></td>';
echo '<td><b>'. $plugin->displayAuthentifyViaIdPLink(util_make_uri('/plugins/authwebid/index.php'), _('Confirm binding')) . '</b></td>';
echo '<td>'.util_make_link('/plugins/authwebid/?webid_identity='.urlencode('pending:'.$webid_identity).'&delete=1', _('remove')).'</td>';
@@ -145,7 +145,7 @@ if(count($boundwebids)) {
$i = 0;
foreach($boundwebids as $webid_identity) {
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'>';
+ echo '<tr>';
echo '<td>'. $webid_identity .'</td>';
echo '<td>'.util_make_link('/plugins/authwebid/?webid_identity='.urlencode($webid_identity).'&delete=1', _('remove')).'</td>';
echo '</tr>';
diff --git a/src/plugins/blocks/www/index.php b/src/plugins/blocks/www/index.php
index 2fd9ea3..0522ed4 100644
--- a/src/plugins/blocks/www/index.php
+++ b/src/plugins/blocks/www/index.php
@@ -212,7 +212,7 @@ if ($type == 'admin') {
$cells[] = array(html_e('input', $inputAttr), 'class' => 'align-center');
$cells[][] = $help;
$cells[][] = util_make_link('/plugins/blocks/?id='.$id.'&type=configure&pluginname=blocks&name='.urlencode($b), _('Configure'));
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($b, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
print '<p class="align-center"><input type="submit" value="' .
diff --git a/src/plugins/cvstracker/common/cvstrackerPlugin.class.php b/src/plugins/cvstracker/common/cvstrackerPlugin.class.php
index 2521f27..f0bcee3 100644
--- a/src/plugins/cvstracker/common/cvstrackerPlugin.class.php
+++ b/src/plugins/cvstracker/common/cvstrackerPlugin.class.php
@@ -73,7 +73,7 @@ class cvstrackerPlugin extends Plugin {
for ($i=0; $i<$Rows; $i++) {
$Row = db_fetch_array($DBResult);
- echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'.
+ echo '<tr>'.
'<td>'. $this->getFileLink($group->getUnixName(),
$Row['file'],$Row['actual_version']). '</td>'.
'<td>'. date(_('Y-m-d'), $Row['cvs_date']).'</td>'.
diff --git a/src/plugins/globalactivity/www/index.php b/src/plugins/globalactivity/www/index.php
index 0912a62..758be71 100644
--- a/src/plugins/globalactivity/www/index.php
+++ b/src/plugins/globalactivity/www/index.php
@@ -141,7 +141,6 @@ if (count($ids) < 1) {
$displayTableTop = 0;
- $j = 0;
$last_day = 0;
foreach ($results as $arr) {
$group_id = $arr['group_id'];
@@ -231,7 +230,7 @@ if (count($ids) < 1) {
} else {
$cells[][] = $arr['realname'];
}
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($j++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
if ($displayTableTop) {
echo $HTML->listTableBottom();
diff --git a/src/plugins/globaldashboard/www/admin/manage_accounts.php b/src/plugins/globaldashboard/www/admin/manage_accounts.php
index 9f27f52..4fd8766 100644
--- a/src/plugins/globaldashboard/www/admin/manage_accounts.php
+++ b/src/plugins/globaldashboard/www/admin/manage_accounts.php
@@ -87,7 +87,7 @@ function listStoredRemoteAccounts($user_id) {
$cells[][] = util_make_link($account['forge_account_uri'], $account['forge_account_uri'], array(), true);
$cells[][] = util_make_link('/plugins/globaldashboard/admin/edit_account_page.php?type=user&id='.$user_id.'&pluginname=globaldashboard&action=edit&account_id='.$account['account_id'], _('Edit'), array()).
util_make_link('/plugins/globaldashboard/admin/delete_account.php?account_id='.$account['account_id'].'&user_id='.$account['user_id'], _('Delete'), array());
- $html .= $HTML->multitableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ $html .= $HTML->multitableRow(array(), $cells);
}
$html .= $HTML->listTableBottom();
echo $html;
diff --git a/src/plugins/globalsearch/common/globalsearch_edit_utils.php b/src/plugins/globalsearch/common/globalsearch_edit_utils.php
index b660a57..bfd661c 100644
--- a/src/plugins/globalsearch/common/globalsearch_edit_utils.php
+++ b/src/plugins/globalsearch/common/globalsearch_edit_utils.php
@@ -215,7 +215,7 @@ function globalsearch_admin_table_show () {
echo '</tr>';
for ($j = 0; $j < $rows; $j++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($j) . '>';
+ echo '<tr>';
$id = db_result($result,$j,0);
echo '<td>'.util_make_link(getStringFromServer('PHP_SELF').'?function=edit&id='.$id, '['._('edit').']');
diff --git a/src/plugins/globalsearch/www/index.php b/src/plugins/globalsearch/www/index.php
index ed09b07..8c1d4d2 100644
--- a/src/plugins/globalsearch/www/index.php
+++ b/src/plugins/globalsearch/www/index.php
@@ -166,7 +166,7 @@ if (!$result || $rows < 1) {
echo $GLOBALS['HTML']->listTableTop($title_arr);
for ( $i = 0; $i < $rows; $i++ ) {
- print "<tr ". $HTML->boxGetAltRowStyle($i)."><td><a href=\""
+ print "<tr><td><a href=\""
. db_result($result, $i, 'project_link')."\" target=\"blank\">"
. html_image("ic/msg.png", 10, 12)." "
. highlight_target_words($array,db_result($result, $i, 'project_title'))."</a></td>
diff --git a/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php b/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
index c40ef26..b865344 100644
--- a/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
+++ b/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
@@ -100,7 +100,7 @@ class hudson_Widget_ProjectJobsOverview extends HudsonOverviewWidget {
$cells = array();
$cells[][] = html_abs_image($job->getStatusIcon(), '15', '15', array('title' => $job->getStatus()));
$cells[] = array(util_make_link('/plugins/hudson/?action=view_job&group_id='.$this->group_id.'&job_id='.$job_id, $job->getName()), 'style' => 'width: 99%');
- $html .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($job_id, true)), $cells);
+ $html .= $HTML->multiTableRow(array(), $cells);
} catch (Exception $e) {
// Do not display wrong jobs
}
diff --git a/src/plugins/mailman/include/mailmanPlugin.class.php b/src/plugins/mailman/include/mailmanPlugin.class.php
index 72e69c7..8921124 100644
--- a/src/plugins/mailman/include/mailmanPlugin.class.php
+++ b/src/plugins/mailman/include/mailmanPlugin.class.php
@@ -174,10 +174,10 @@ class mailmanPlugin extends Plugin {
foreach ($lists as $l) {
$group = $l->getGroup();
if ($group->getID() != $last_group) {
- echo ' <tr '. $HTML->boxGetAltRowStyle(1) .'><td colspan="2">'.util_make_link ('/plugins/mailman/index.php?group_id='.$group->getID(),$group->getPublicName()).'</td></tr>';
+ echo ' <tr><td colspan="2">'.util_make_link ('/plugins/mailman/index.php?group_id='.$group->getID(),$group->getPublicName()).'</td></tr>';
}
echo '
- <tr '.$HTML->boxGetAltRowStyle(0).'>
+ <tr>
<td class="align-center">'.util_make_link('/plugins/mailman/index.php?group_id='.$group->getID().'&action=unsubscribe&id='.$l->getID(), $HTML->getDeletePic(_('Unsubscribe from this mailing-list.'), _('Unsubscribe'))).
'</td>
<td style="width:99%">'.util_make_link('/plugins/mailman/index.php?group_id='.$group->getID().'&action=options&id='.$l->getID(),$l->getName()).'</td></tr>';
diff --git a/src/plugins/mantisbt/view/admin/StatPerStatus.php b/src/plugins/mantisbt/view/admin/StatPerStatus.php
index 0e71229..2fbb9a7 100644
--- a/src/plugins/mantisbt/view/admin/StatPerStatus.php
+++ b/src/plugins/mantisbt/view/admin/StatPerStatus.php
@@ -51,13 +51,12 @@ if (!isset($errorPage)){
echo '<th>'._('Closed').'</th>';
echo '<th>'._('Total').'</th>';
echo '</tr>';
- $nbligne = 1;
foreach ($stats as $stat) {
$indentation = "";
for($i = 1; $i < $stat->project_level; $i++){
$indentation = $indentation .' ';
}
- echo '<tr '.$HTML->boxGetAltRowStyle($nbligne).'">';
+ echo '<tr>';
if ($stat->project_level > 1){
echo sprintf('<td>%s >> <a class="DataLink" href="?type=group&group_id=%s&pluginname=%s">%s</a></td>',$indentation,group_get_objectid_by_publicname($stat->project_name), $mantisbt->name, $stat->project_name);
@@ -75,7 +74,6 @@ if (!isset($errorPage)){
$total['resolved'] += $stat->resolved;
$total['closed'] += $stat->closed;
$total['total'] += $stat->total;
- $nbligne++;
}
echo '<tr>';
echo '<td></td>';
diff --git a/src/plugins/mantisbt/view/admin/viewCategorie.php b/src/plugins/mantisbt/view/admin/viewCategorie.php
index 71f6990..d8e6501 100644
--- a/src/plugins/mantisbt/view/admin/viewCategorie.php
+++ b/src/plugins/mantisbt/view/admin/viewCategorie.php
@@ -64,7 +64,7 @@ if (!isset($errorPage)){
'<input type="submit" value="'._('Delete').'" />'.
$HTML->closeForm();
}
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/plugins/mantisbt/view/admin/viewVersion.php b/src/plugins/mantisbt/view/admin/viewVersion.php
index c2d45a5..4dcbf00 100644
--- a/src/plugins/mantisbt/view/admin/viewVersion.php
+++ b/src/plugins/mantisbt/view/admin/viewVersion.php
@@ -59,7 +59,7 @@ if (!isset($errorPage)){
$cells[][] = _('Milestone');
}
$cells[][] = util_make_link('/plugins/'.$mantisbt->name.'/?type=admin&group_id='.$group_id.'&view=editVersion&idVersion='.$version->id, _('Update'));
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/plugins/mantisbt/view/viewAttachment.php b/src/plugins/mantisbt/view/viewAttachment.php
index 710c53d..b791c8a 100644
--- a/src/plugins/mantisbt/view/viewAttachment.php
+++ b/src/plugins/mantisbt/view/viewAttachment.php
@@ -54,7 +54,7 @@ if (empty($msg)) {
$contentCell .= '<input type=button value="'._('Delete').'" onclick="window.location.href=\'/plugins/'.$mantisbt->name.'/?type='.$type.'&group_id='.$group_id.'&idBug='.$idBug.'&idAttachment='.$attachement->id.'&action=deleteAttachment&view=viewIssue\'">';
$cells[][] = $contentCell;
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/plugins/oauthconsumer/www/access_tokens.php b/src/plugins/oauthconsumer/www/access_tokens.php
index 741aa42..c7cd9d1 100644
--- a/src/plugins/oauthconsumer/www/access_tokens.php
+++ b/src/plugins/oauthconsumer/www/access_tokens.php
@@ -13,7 +13,7 @@ if(count($access_tokens)>0) {
echo $HTML->listTableTop(array(_('Provider'), _('Token Key'), _('Token Secret'), '', ''));
$i = 0;
foreach( $access_tokens as $token ) { ?>
- <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+ <tr>
<td class="center"><?php echo ( OAuthProvider::get_provider($token->get_provider_id())->get_name() ) ?></td>
<td class="center"><?php echo ( $token->get_token_key() ) ?></td>
<td class="center"><?php echo ( $token->get_token_secret() ) ?></td>
diff --git a/src/plugins/oauthconsumer/www/provider_edit.php b/src/plugins/oauthconsumer/www/provider_edit.php
index 67d7cfb..20012d6 100644
--- a/src/plugins/oauthconsumer/www/provider_edit.php
+++ b/src/plugins/oauthconsumer/www/provider_edit.php
@@ -15,8 +15,6 @@ $f_consumer_secret = getStringFromPost( 'consumer_secret' );
$f_request_token_url = getStringFromPost( 'request_token_url' );
$f_authorize_url = getStringFromPost( 'authorize_url' );
$f_access_token_url = getStringFromPost( 'access_token_url' );
-
-$i = 0;
?>
<br/>
@@ -30,37 +28,37 @@ $i = 0;
<td class="right"><?php print util_make_link("/plugins/".$pluginname.'/providers.php', _('Cancel') ); ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Name') ?></td>
<td><input name="provider_name" maxlength="128" size="60" value="<?php echo ($f_provider_name)?$f_provider_name:$provider->get_name() ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Description') ?></td>
<td><input name="provider_desc" maxlength="250" size="60" value="<?php echo ($f_provider_desc)?$f_provider_desc:$provider->get_description() ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Consumer Key') ?></td>
<td><input name="consumer_key" maxlength="250" size="60" value="<?php echo ($f_consumer_key)?$f_consumer_key:$provider->get_consumer_key() ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Consumer Secret') ?></td>
<td><input name="consumer_secret" maxlength="250" size="60" value="<?php echo ($f_consumer_secret)?$f_consumer_secret:$provider->get_consumer_secret() ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Request Token URL') ?></td>
<td><input name="request_token_url" maxlength="250" size="60" value="<?php echo ($f_request_token_url)?$f_request_token_url:$provider->get_request_token_url() ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Authorization URL') ?></td>
<td><input name="authorize_url" maxlength="250" size="60" value="<?php echo ($f_authorize_url)?$f_authorize_url:$provider->get_authorize_url() ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Access Token URL') ?></td>
<td><input name="access_token_url" maxlength="250" size="60" value="<?php echo ($f_access_token_url)?$f_access_token_url:$provider->get_access_token_url() ?>"/></td>
</tr>
diff --git a/src/plugins/oauthconsumer/www/providers.php b/src/plugins/oauthconsumer/www/providers.php
index 3f4f3e7..3b59efe 100644
--- a/src/plugins/oauthconsumer/www/providers.php
+++ b/src/plugins/oauthconsumer/www/providers.php
@@ -14,7 +14,7 @@ if(count($providers)>0) {
echo $HTML->listTableTop(array(_('Name'), _('Description'), _('Consumer Key'), _('Consumer Secret'), _('Request Token URL'), _('Authorization URL'), _('Access Token URL'), '', ''));
$i = 0;
foreach( $providers as $provider ) { ?>
- <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+ <tr>
<td class="center"><?php echo ( $provider->get_name() ) ?></td>
<td class="center"><?php echo ( $provider->get_description() ) ?></td>
<td class="center"><?php echo ( $provider->get_consumer_key() ) ?></td>
diff --git a/src/plugins/oauthprovider/www/access_tokens.php b/src/plugins/oauthprovider/www/access_tokens.php
index 05af398..9b8f31f 100644
--- a/src/plugins/oauthprovider/www/access_tokens.php
+++ b/src/plugins/oauthprovider/www/access_tokens.php
@@ -67,7 +67,7 @@ if(count($t_tokens)>0) {
$i = 0;
foreach( $t_tokens as $t_token ) {
$consumer = OauthAuthzConsumer::load($t_token->getConsumerId());
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'>';
+ echo '<tr>';
if(forge_check_global_perm ('forge_admin')) {
echo '<td>'.util_make_link('/plugins/'.$pluginname.'/consumer_manage.php?consumer_id=' . $t_token->getConsumerId(), $consumer->getName()).'</td>';
}else {
diff --git a/src/plugins/oauthprovider/www/consumer.php b/src/plugins/oauthprovider/www/consumer.php
index 41bd25e..53c13b3 100644
--- a/src/plugins/oauthprovider/www/consumer.php
+++ b/src/plugins/oauthprovider/www/consumer.php
@@ -45,7 +45,7 @@ if(count($t_consumers)>0) {
$i = 0;
foreach( $t_consumers as $t_consumer ) { ?>
- <tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+ <tr>
<td><?php echo ( $t_consumer->getName() ) ?></td>
<td class="center"><?php echo ( $t_consumer->getURL() ) ?></td>
<td class="center"><?php echo ( $t_consumer->getDesc() ) ?></td>
diff --git a/src/plugins/oauthprovider/www/consumer_manage.php b/src/plugins/oauthprovider/www/consumer_manage.php
index bc37c65..25687ed 100644
--- a/src/plugins/oauthprovider/www/consumer_manage.php
+++ b/src/plugins/oauthprovider/www/consumer_manage.php
@@ -35,8 +35,6 @@ session_require_global_perm('forge_admin');
$f_consumer_id = getIntFromGet( 'consumer_id' );
$t_consumer = OauthAuthzConsumer::load( $f_consumer_id );
-
-$i = 0;
?>
<br/>
@@ -51,33 +49,32 @@ $i = 0;
</td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
-
+<tr>
<td class="category"><?php echo _('Name') ?></td>
<td colspan="2"><?php echo ( $t_consumer->getName() ) ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('URL') ?></td>
<td colspan="2"><?php echo ( $t_consumer->getUrl() ) ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Description') ?></td>
<td colspan="2"><?php echo ( $t_consumer->getDesc() ) ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Email') ?></td>
<td colspan="2"><?php echo ( $t_consumer->getEmail() ) ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Key') ?></td>
<td colspan="2"><?php echo ( $t_consumer->key ) ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Secret') ?></td>
<td colspan="2"><?php echo ( $t_consumer->secret ) ?></td>
</tr>
diff --git a/src/plugins/oauthprovider/www/consumer_update_page.php b/src/plugins/oauthprovider/www/consumer_update_page.php
index 3e58c26..b6d4e94 100644
--- a/src/plugins/oauthprovider/www/consumer_update_page.php
+++ b/src/plugins/oauthprovider/www/consumer_update_page.php
@@ -50,32 +50,32 @@ $i=0;
<td class="right"><?php print util_make_link("/plugins/".$pluginname.'/consumer_manage.php?consumer_id=' . $t_consumer->getId(), _('Cancel') ); ?></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Name') ?></td>
<td><input name="consumer_name" maxlength="128" size="40" value="<?php echo ( $t_consumer->getName() ) ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('URL') ?></td>
<td><input name="consumer_url" maxlength="250" size="40" value="<?php echo ( $t_consumer->getUrl() ) ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Description') ?></td>
<td><input name="consumer_desc" maxlength="250" size="40" value="<?php echo ( $t_consumer->getDesc() ) ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Email') ?></td>
<td><input name="consumer_email" maxlength="250" size="40" value="<?php echo ( $t_consumer->getEmail() ) ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Key') ?></td>
<td><input name="consumer_key" readonly="readonly" maxlength="250" size="40" value="<?php echo ( $t_consumer->key ) ?>"/></td>
</tr>
-<tr <?php echo $HTML->boxGetAltRowStyle($i++) ?>>
+<tr>
<td class="category"><?php echo _('Secret') ?></td>
<td><input name="consumer_secret" readonly="readonly" maxlength="250" size="40" value="<?php echo ( $t_consumer->secret ) ?>"/></td>
</tr>
diff --git a/src/plugins/oauthprovider/www/request_tokens.php b/src/plugins/oauthprovider/www/request_tokens.php
index ee2e6b8..fef6323 100644
--- a/src/plugins/oauthprovider/www/request_tokens.php
+++ b/src/plugins/oauthprovider/www/request_tokens.php
@@ -68,7 +68,7 @@ if(count($t_tokens)>0) {
$i=0;
foreach( $t_tokens as $t_token ) {
$consumer = OauthAuthzConsumer::load($t_token->getConsumerId());
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'>';
+ echo '<tr>';
if(forge_check_global_perm ('forge_admin')) {
echo '<td>'.util_make_link('/plugins/'.$pluginname.'/consumer_manage.php?consumer_id=' . $t_token->getConsumerId(), $consumer->getName()).'</td>';
}else {
diff --git a/src/plugins/scmcvs/common/CVSPlugin.class.php b/src/plugins/scmcvs/common/CVSPlugin.class.php
index e281698..da2f355 100644
--- a/src/plugins/scmcvs/common/CVSPlugin.class.php
+++ b/src/plugins/scmcvs/common/CVSPlugin.class.php
@@ -187,7 +187,7 @@ over it to the project's administrator.");
$cells[] = array(util_display_user($data['user_name'], $data['user_id'], $data['realname']), 'class' => 'halfwidth');
$cells[] = array($data['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($data['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$total['adds'] += $data['adds'];
$total['updates'] += $data['commits'];
$i++;
@@ -196,7 +196,7 @@ over it to the project's administrator.");
$cells[] = array(html_e('strong', array(), _('Total')._(':')), 'class' => 'halfwidth');
$cells[] = array($total['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($total['commits'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$b .= $HTML->listTableBottom();
} else {
$b .= $HTML->information(_('No history yet'));
diff --git a/src/plugins/scmdarcs/common/DarcsPlugin.class.php b/src/plugins/scmdarcs/common/DarcsPlugin.class.php
index 3cd4c32..dd24272 100644
--- a/src/plugins/scmdarcs/common/DarcsPlugin.class.php
+++ b/src/plugins/scmdarcs/common/DarcsPlugin.class.php
@@ -202,7 +202,7 @@ over it to the project's administrator.");
$total = array('adds' => 0, 'commits' => 0);
while($data = db_fetch_array($result)) {
- $b .= '<tr '. $HTML->boxGetAltRowStyle($i) .'>';
+ $b .= '<tr>';
$b .= '<td width="50%">';
$b .= util_make_link_u($data['user_name'], $data['user_id'], $data['realname']);
$b .= '</td><td width="25%" align="right">'.$data['adds']. '</td>'.
@@ -211,7 +211,7 @@ over it to the project's administrator.");
$total['commits'] += $data['commits'];
$i++;
}
- $b .= '<tr '. $HTML->boxGetAltRowStyle($i) .'>';
+ $b .= '<tr>';
$b .= '<td width="50%"><strong>'._('Total').':</strong></td>'.
'<td width="25%" align="right"><strong>'.$total['adds']. '</strong></td>'.
'<td width="25%" align="right"><strong>'.$total['commits'].'</strong></td>';
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index b7a4c66..2e63270 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -377,7 +377,7 @@ control over it to the project's administrator.");
$cells[] = array(util_display_user($data['user_name'], $data['user_id'], $data['realname']), 'class' => 'halfwidth');
$cells[] = array($data['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($data['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$total['adds'] += $data['adds'];
$total['updates'] += $data['updates'];
$i++;
@@ -386,7 +386,7 @@ control over it to the project's administrator.");
$cells[] = array(html_e('strong', array(), _('Total')._(':')), 'class' => 'halfwidth');
$cells[] = array($total['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($total['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$b .= $HTML->listTableBottom();
} else {
$b .= $HTML->information(_('No history yet'));
@@ -1180,7 +1180,7 @@ control over it to the project's administrator.");
$deleteForm .= html_e('input', array('type' => 'submit', 'name' => 'submit', 'value' => _('Delete')));
$deleteForm .= $HTML->closeForm();
$cells[][] = $deleteForm;
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
}
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php b/src/plugins/scmhg/common/HgPlugin.class.php
index 1eacbcc..9ce966c 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -213,7 +213,7 @@ Offer DAV or SSH access.");
$cells[] = array(util_display_user($data['user_name'], $data['user_id'], $data['realname']), 'class' => 'halfwidth');
$cells[] = array($data['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($data['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$total['adds'] += $data['adds'];
$total['updates'] += $data['updates'];
$i++;
@@ -222,7 +222,7 @@ Offer DAV or SSH access.");
$cells[] = array(html_e('strong', array(), _('Total')._(':')), 'class' => 'halfwidth');
$cells[] = array($total['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($total['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$b .= $HTML->listTableBottom();
} else {
$b .= $HTML->information(_('No history yet'));
@@ -825,7 +825,7 @@ Offer DAV or SSH access.");
// $deleteForm .= html_e('input', array('type' => 'submit', 'name' => 'submit', 'value' => _('Delete')));
// $deleteForm .= $HTML->closeForm();
// $cells[][] = $deleteForm;
-// echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+// echo $HTML->multiTableRow(array(), $cells);
// }
// echo $HTML->listTableBottom();
// }
diff --git a/src/plugins/scmhook/library/scmgit/commitTracker.class.php b/src/plugins/scmhook/library/scmgit/commitTracker.class.php
index f82dc1a..f1428ba 100644
--- a/src/plugins/scmhook/library/scmgit/commitTracker.class.php
+++ b/src/plugins/scmhook/library/scmgit/commitTracker.class.php
@@ -123,7 +123,7 @@ class GitCommitTracker extends scmhook {
$cells[][] = $this->getActualVersionLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = htmlspecialchars($Row['log_text']);
$cells[][] = util_make_link_u($Row['author'], user_get_object_by_name($Row['author'])->getId(), $Row['author']);
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
}
$return .= $HTML->listTableBottom();
$return .= '</td></tr>';
diff --git a/src/plugins/scmhook/library/scmsvn/commitTracker.class.php b/src/plugins/scmhook/library/scmsvn/commitTracker.class.php
index c2f3020..1712534 100644
--- a/src/plugins/scmhook/library/scmsvn/commitTracker.class.php
+++ b/src/plugins/scmhook/library/scmsvn/commitTracker.class.php
@@ -111,7 +111,7 @@ class SvnCommitTracker extends scmhook {
$cells[][] = $this->getActualVersionLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = htmlspecialchars($Row['log_text']);
$cells[][] = util_make_link_u($Row['author'], user_get_object_by_name($Row['author'])->getId(), $Row['author']);
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
echo "</td>\n";
diff --git a/src/plugins/scmsvn/common/SVNPlugin.class.php b/src/plugins/scmsvn/common/SVNPlugin.class.php
index 0aa5470..1df1077 100644
--- a/src/plugins/scmsvn/common/SVNPlugin.class.php
+++ b/src/plugins/scmsvn/common/SVNPlugin.class.php
@@ -233,7 +233,7 @@ some control over it to the project's administrator.");
$cells[] = array(util_display_user($data['user_name'], $data['user_id'], $data['realname']), 'class' => 'halfwidth');
$cells[] = array($data['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($data['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$total['adds'] += $data['adds'];
$total['updates'] += $data['updates'];
$i++;
@@ -242,7 +242,7 @@ some control over it to the project's administrator.");
$cells[] = array(html_e('strong', array(), _('Total')._(':')), 'class' => 'halfwidth');
$cells[] = array($total['adds'], 'class' => 'onequarterwidth align-right');
$cells[] = array($total['updates'], 'class' => 'onequarterwidth align-right');
- $b .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ $b .= $HTML->multiTableRow(array(), $cells);
$b .= $HTML->listTableBottom();
} else {
$b .= $HTML->information(_('No history yet'));
diff --git a/src/plugins/wiki/common/WikiHtmlSearchRenderer.class.php b/src/plugins/wiki/common/WikiHtmlSearchRenderer.class.php
index 3380b23..38efff6 100644
--- a/src/plugins/wiki/common/WikiHtmlSearchRenderer.class.php
+++ b/src/plugins/wiki/common/WikiHtmlSearchRenderer.class.php
@@ -63,7 +63,7 @@ class WikiHtmlSearchRenderer extends HtmlGroupSearchRenderer {
foreach ($result as $row) {
$data = unserialize($row['versiondata']);
$page_name = preg_replace('/%2f/i', '/', rawurlencode($row['pagename']));
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'
+ $return .= '<tr>'
. '<td><a href="/wiki/g/'. $group_name.'/'. $page_name .'">'
. html_image('ic/msg.png', 10, 12)
. ' '.$row['pagename'].'</a></td>
diff --git a/src/plugins/wiki/www/wikilist.php b/src/plugins/wiki/www/wikilist.php
index 44abe03..e0f2ae9 100644
--- a/src/plugins/wiki/www/wikilist.php
+++ b/src/plugins/wiki/www/wikilist.php
@@ -72,7 +72,7 @@ while ($grp = db_fetch_array($res)) {
if ($grp['register_time'] != 0) {
$time_display = date('Y-m-d H:i', $grp['register_time']);
}
- echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '>';
+ echo '<tr>';
echo '<td><a href="/wiki/g/' . $grp['unix_group_name'] . '/">' . $grp['group_name'] . '</a></td>';
echo '<td>' . $time_display . '</td>';
echo '<td>' . $grp['unix_group_name'] . '</td>';
diff --git a/src/www/activity/index.php b/src/www/activity/index.php
index ed7e4a5..ea91019 100644
--- a/src/www/activity/index.php
+++ b/src/www/activity/index.php
@@ -404,7 +404,7 @@ echo $HTML->closeForm();
} else {
$cells[][] = $arr['realname'];
}
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($j++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
if ($displayTableTop) {
echo $HTML->listTableBottom();
diff --git a/src/www/admin/admin_table.php b/src/www/admin/admin_table.php
index eb2632a..59dafdd 100644
--- a/src/www/admin/admin_table.php
+++ b/src/www/admin/admin_table.php
@@ -307,8 +307,7 @@ function admin_table_show($table, $unit, $primary_key) {
echo '</tr>';
for ($j = 0; $j < $rows; $j++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($j) . '>';
-
+ echo '<tr>';
$id = db_result($result,$j,0);
echo '<td>'.util_make_link(getStringFromServer('PHP_SELF').'?function=edit&id='.$id, '['._('Edit').']');
echo util_make_link(getStringFromServer('PHP_SELF').'?function=confirmdelete&id='.$id, '['._('Delete').']').'</td>';
diff --git a/src/www/admin/configman.php b/src/www/admin/configman.php
index ecebd44..c469312 100644
--- a/src/www/admin/configman.php
+++ b/src/www/admin/configman.php
@@ -102,7 +102,7 @@ foreach ($sections as $section) {
} else {
$class = '';
}
- echo '<tr '. $HTML->boxGetAltRowStyle($counter++) .'><td>'.$var ;
+ echo '<tr><td>'.$var ;
if ($c->is_bool ($section, $var)) {
print " (boolean)" ;
}
diff --git a/src/www/admin/cronman.php b/src/www/admin/cronman.php
index 97e7a56..7e50a21 100644
--- a/src/www/admin/cronman.php
+++ b/src/www/admin/cronman.php
@@ -79,7 +79,7 @@ if ($totalCount) {
$cells[][] = date(_('Y-m-d H:i'), db_result($res,$i,'rundate'));
$cells[][] = $cron_arr[db_result($res,$i,'job')];
$cells[][] = nl2br(htmlentities(db_result($res,$i,'output')));
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i+1, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
diff --git a/src/www/admin/globalroleedit.php b/src/www/admin/globalroleedit.php
index c3a3680..a14d45c 100644
--- a/src/www/admin/globalroleedit.php
+++ b/src/www/admin/globalroleedit.php
@@ -224,7 +224,7 @@ for ($i=0; $i<count($keys); $i++) {
$cells = array();
$cells[] = array('<strong>'.$rbac_edit_section_names[$keys[$i]].'</strong>', 'colspan' => 2);
$cells[][] = html_build_select_box_from_assoc($role->getRoleVals($keys[$i]), "data[".$keys[$i]."][-1]", $role->getVal($keys[$i],-1), false, false );
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
diff --git a/src/www/admin/grouplist.php b/src/www/admin/grouplist.php
index b27679a..f2dddb3 100644
--- a/src/www/admin/grouplist.php
+++ b/src/www/admin/grouplist.php
@@ -195,7 +195,7 @@ if (count($rows)) {
$cells[][] = $grp['license_name'];
$cells[][] = $grp['members'];
$cells[][] = $grp['is_template'];
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
echo $HTML->paging_bottom($start, $paging, $totalProjects, '/admin/grouplist.php?sortorder='.$sortorder.$filter);
diff --git a/src/www/admin/massmail.php b/src/www/admin/massmail.php
index e3b774e..1150721 100644
--- a/src/www/admin/massmail.php
+++ b/src/www/admin/massmail.php
@@ -155,7 +155,6 @@ echo html_e('h2', array('id' => 'active'), _('Active Deliveries')._(':'));
$seen = false;
-$i = 0;
while ($row = db_fetch_array($res)) {
if (!$seen) {
echo $HTML->listTableTop($title);
@@ -168,7 +167,7 @@ while ($row = db_fetch_array($res)) {
$cells[][] = $row['subject'];
$cells[][] = date(_('Y-m-d H:i'), $row['queued_date']);
$cells[][] = $row['last_userid'];
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
if ($seen) {
diff --git a/src/www/admin/pluginman.php b/src/www/admin/pluginman.php
index bd263da..67a7b04 100644
--- a/src/www/admin/pluginman.php
+++ b/src/www/admin/pluginman.php
@@ -278,7 +278,7 @@ foreach ($filelist as $key => $filename) {
$cells[] = array($users, 'class' => 'align-left');
$cells[] = array($groups, 'class' => 'align-left');
$cells[] = array($adminlink, 'class' => 'align-left');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
diff --git a/src/www/admin/search.php b/src/www/admin/search.php
index 41caec9..5302496 100644
--- a/src/www/admin/search.php
+++ b/src/www/admin/search.php
@@ -82,7 +82,7 @@ if ($usersearch) {
$i = 0 ;
while ($row = db_fetch_array($result)) {
print '
- <tr '.$HTML->boxGetAltRowStyle($i++).'>
+ <tr>
<td>'.util_make_link('/admin/useredit.php?user_id='.$row['user_id'], $row['user_id']).'</td>
<td>'.format_name($row['user_name'], $row['status']).'</td>
<td>'.$row['realname'].'</td>
@@ -162,7 +162,7 @@ if (getStringFromRequest('groupsearch')) {
}
print '
- <tr '.$HTML->boxGetAltRowStyle($i++).'>
+ <tr>
<td>'.util_make_link('/admin/groupedit.php?group_id='.$row['group_id'], $row['group_id']).'</td>
<td>'.format_name($row['unix_group_name'], $row['status']).'</td>
<td>'.$row['group_name'].'</td>
diff --git a/src/www/admin/unsubscribe.php b/src/www/admin/unsubscribe.php
index fcec0e1..6941d04 100644
--- a/src/www/admin/unsubscribe.php
+++ b/src/www/admin/unsubscribe.php
@@ -117,7 +117,7 @@ if ($pattern) {
$cells[][] = $row['email'];
$cells[][] = $row['mail_siteupdates'];
$cells[][] = $row['mail_va'];
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/www/admin/useredit.php b/src/www/admin/useredit.php
index 062b107..0e86ae5 100644
--- a/src/www/admin/useredit.php
+++ b/src/www/admin/useredit.php
@@ -276,7 +276,7 @@ foreach ($projects as $p) {
$cells[][] = util_unconvert_htmlspecialchars(htmlspecialchars($p->getPublicName()));
$cells[][] = $p->getUnixName();
$cells[] = array(util_make_link('/project/admin/?group_id='.$p->getID(),'['._('Project Admin').']'), 'width' => '40%');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
$userProjectsIdArray[] = $p->getID();
}
@@ -305,7 +305,7 @@ if ($fullListProjectsQueryResult) {
$cells[][] = $projectObject->getUnixName();
$cells[][] = util_make_link('/project/admin/?group_id='.$projectObject->getID(),'['._('Project Admin').']');
$cells[][] = role_box($projectObject->getID(),'role_id-'.$projectObject->getID());
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
}
echo $HTML->listTableBottom();
diff --git a/src/www/admin/userlist.php b/src/www/admin/userlist.php
index 0e2d2ce..cb5754c 100644
--- a/src/www/admin/userlist.php
+++ b/src/www/admin/userlist.php
@@ -150,7 +150,7 @@ function show_users_list($users, $filter = '', $sortorder = 'realname', $start,
}
$cells[] = array($nextcell, 'width' => '15%', 'class' => 'align-center');
$cells[] = array(util_make_link('/admin/passedit.php?user_id='.$u->getID().$filter,_('Change Password')), 'width' => '12%', 'class' => 'align-center');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($key, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
echo $HTML->paging_bottom($start, $paging, $totalUsers, '/admin/userlist.php?sortorder='.$sortorder.$filter);
diff --git a/src/www/developer/diary.php b/src/www/developer/diary.php
index 51c3e97..4ad7d7c 100644
--- a/src/www/developer/diary.php
+++ b/src/www/developer/diary.php
@@ -84,7 +84,7 @@ if ($diary_user) {
</tr>';
for ($i=0; $i<$rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td>'.util_make_link('/developer/diary.php?diary_id='.db_result($result,$i,'id').'&diary_user='. $diary_user, db_result($result,$i,'summary')).'</td>'.
+ <tr><td>'.util_make_link('/developer/diary.php?diary_id='.db_result($result,$i,'id').'&diary_user='. $diary_user, db_result($result,$i,'summary')).'</td>'.
'<td>'. date(_('Y-m-d H:i'), db_result($result,$i,'date_posted')).'</td></tr>';
}
echo '
diff --git a/src/www/forum/forum.php b/src/www/forum/forum.php
index 899cbbf..8e892c6 100644
--- a/src/www/forum/forum.php
+++ b/src/www/forum/forum.php
@@ -279,7 +279,7 @@ if ($forum_id) {
$cells[][] = util_make_link('/forum/message.php?msg_id='.$msg->getID().'&group_id='.$group_id.'&reply=0', html_image('ic/msg.png').' '.$msgSubject);
$cells[][] = util_display_user($msg->getPosterName(), $msg->getPosterID(), $msg->getPosterRealName());
$cells[][] = relative_date($msg->getPostDate());
- $ret_val .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($total_rows, true)), $cells);
+ $ret_val .= $HTML->multiTableRow(array(), $cells);
if ($msg->hasFollowups()) {
$ret_val .= $fh->showSubmessages($msg_arr,$msg->getID(),1);
}
@@ -346,7 +346,7 @@ if ($forum_id) {
/*
show the subject and poster
*/
- $ret_val .= '<tr '. $HTML->boxGetAltRowStyle($i) .'><td>'
+ $ret_val .= '<tr><td>'
.util_make_link('/forum/forum.php?thread_id='.$row['thread_id'].'&forum_id='.$forum_id.'&group_id='.$group_id,
html_image('ic/cfolder15.png').' '. $subject).'</td>'
.'<td>'.util_display_user($row['user_name'], $row['user_id'], $row['realname']).'</td>'.
diff --git a/src/www/forum/message.php b/src/www/forum/message.php
index 740f3e7..39939c3 100644
--- a/src/www/forum/message.php
+++ b/src/www/forum/message.php
@@ -184,7 +184,7 @@ if ($msg_id) {
$ah_begin='';
$ah_end='';
}
- $ret_val .= '<tr '. $HTML->boxGetAltRowStyle($total_rows) .'>
+ $ret_val .= '<tr>
<td>'. $ah_begin .
html_image('ic/msg.png').' ';
/*
diff --git a/src/www/include/Layout.class.php b/src/www/include/Layout.class.php
index d70f12c..33ed873 100644
--- a/src/www/include/Layout.class.php
+++ b/src/www/include/Layout.class.php
@@ -628,26 +628,6 @@ if (isset($params['group']) && $params['group']) {
}
/**
- * boxGetAltRowStyle() - Get an alternating row style for tables.
- *
- * @param int $i Row number
- * @param bool $classonly Return class name only
- * @return string the class code
- */
- function boxGetAltRowStyle($i, $classonly = false) {
- if ($i % 2 == 0) {
- $ret = 'altRowStyleEven';
- } else {
- $ret = 'altRowStyleOdd';
- }
- if ($classonly) {
- return $ret;
- } else {
- return 'class="'.$ret.'"';
- }
- }
-
- /**
* listTableTop() - Takes an array of titles and builds the first row of a new table.
*
* @param array $titleArray The array of titles
diff --git a/src/www/mail/admin/index.php b/src/www/mail/admin/index.php
index 0c65f82..2df18fe 100644
--- a/src/www/mail/admin/index.php
+++ b/src/www/mail/admin/index.php
@@ -164,11 +164,11 @@ if ($group_id) {
for ($j = 0; $j < $mlCount; $j++) {
$currentList =& $mlArray[$j];
if ($currentList->isError()) {
- echo '<tr '. $HTML->boxGetAltRowStyle($j) . '><td>';
+ echo '<tr><td>';
echo $currentList->getErrorMessage();
echo '</td></tr>';
} else {
- echo '<tr '. $HTML->boxGetAltRowStyle($j) . '><td>'.$currentList->getName().'</td></tr>';
+ echo '<tr><td>'.$currentList->getName().'</td></tr>';
}
}
echo $HTML->listTableBottom();
@@ -273,11 +273,11 @@ if ($group_id) {
for ($i = 0; $i < $mlCount; $i++) {
$currentList =& $mlArray[$i];
if ($currentList->isError()) {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'><td colspan="4">';
+ echo '<tr><td colspan="4">';
echo $currentList->getErrorMessage();
echo '</td></tr>';
} else {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) . '><td>'.
+ echo '<tr><td>'.
'<strong>'.$currentList->getName().'</strong><br />'.
htmlspecialchars($currentList->getDescription()).'</td>';
echo '<td class="align-center">';
diff --git a/src/www/mail/index.php b/src/www/mail/index.php
index 2a96c2e..3f4acac 100644
--- a/src/www/mail/index.php
+++ b/src/www/mail/index.php
@@ -85,7 +85,7 @@ if ($group_id) {
for ($j = 0; $j < $mlCount; $j++) {
$currentList =& $mlArray[$j];
if (!$currentList->isPermissionDeniedError()) {
- echo '<tr '. $HTML->boxGetAltRowStyle($j) .'>';
+ echo "<tr>\n";
if ($currentList->isError()) {
echo '<td colspan="4">'.$currentList->getErrorMessage().'</td>';
} elseif ($currentList->getStatus() == MAIL__MAILING_LIST_IS_REQUESTED) {
@@ -99,7 +99,7 @@ if ($group_id) {
'<td class="onequarterwidth align-center"><a href="mailto:'.$currentList->getListEmail().'">'.$currentList->getListEmail(). '</a></td>'.
'<td class="onequarterwidth">'.htmlspecialchars($currentList->getDescription()). '</td>'.
'<td class="onequarterwidth align-center"><a href="'.$currentList->getExternalInfoUrl().'">'._('Subscribe/Unsubscribe/Preferences').'</a>'.
- '</td>';
+ "</td>\n";
}
echo '</tr>';
}
diff --git a/src/www/my/dashboard.php b/src/www/my/dashboard.php
index 5bf0e1b..e126cf8 100644
--- a/src/www/my/dashboard.php
+++ b/src/www/my/dashboard.php
@@ -128,11 +128,10 @@ if (!session_loggedin()) {
$cell_attrs = array('colspan' => (array_sum($display_col)+1), 'align' => 'left', 'style' => 'color: darkred; border-bottom: 1px solid #A0A0C0; border-top: 1px dotted #A0A0C0; background-color: #CACADA;');
$cell_data = array(array_merge((array)$cell_text, $cell_attrs));
echo $HTML->multiTableRow(array(), $cell_data);
- $toggle=0;
foreach($art_arr as $art) {
$cell_data = array();
- $row_attrs = array('class' => $HTML->boxGetAltRowStyle($toggle++, true));
+ $row_attrs = array();
$cell_attrs = array('class' => 'align-center');
$cell_text = $art->getID();
$cell_data [] = array_merge((array)$cell_text, $cell_attrs);
diff --git a/src/www/my/diary.php b/src/www/my/diary.php
index 5077921..e54627a 100644
--- a/src/www/my/diary.php
+++ b/src/www/my/diary.php
@@ -218,7 +218,7 @@ if (!session_loggedin()) {
for ($i=0; $i<$rows; $i++) {
$date = relative_date(db_result($result,$i,'date_posted'));
$public = db_result($result,$i,'is_public') ? _('Public') : _('Private');
- $row_attrs = array('class' => $HTML->boxGetAltRowStyle($i,true));
+ $row_attrs = array();
$cell_data = array();
$cell_data [] = array(util_make_link('/my/diary.php?diary_id='.db_result($result,$i,'id'), db_result($result,$i,'summary')));
$cell_data [] = array($date);
diff --git a/src/www/my/systasks.php b/src/www/my/systasks.php
index 40c35cd..c8bb821 100644
--- a/src/www/my/systasks.php
+++ b/src/www/my/systasks.php
@@ -93,7 +93,7 @@ for ($i=0; $i<db_numrows($res); $i++) {
. ' (+' . round(db_result($res, $i,'queued'), 1) . 's)';
$cells[][] = date("H:i:s", db_result($res, $i,'stopped'))
. ' (+' . round(db_result($res, $i,'run'), 1) . 's)';
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i+1, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
diff --git a/src/www/news/admin/news_admin_utils.php b/src/www/news/admin/news_admin_utils.php
index 33445f9..ff6a40b 100644
--- a/src/www/news/admin/news_admin_utils.php
+++ b/src/www/news/admin/news_admin_utils.php
@@ -36,7 +36,7 @@ function show_news_approve_form($qpa_pending, $qpa_rejected, $qpa_approved, $for
function show_news_item($row, $i, $approved, $selectable, $form_url) {
global $HTML;
- echo '<tr '. $HTML->boxGetAltRowStyle($i) . '><td>';
+ echo '<tr><td>';
if ($selectable) {
echo '<input type="checkbox" '
.'name="news_id[]" value="'
diff --git a/src/www/people/people_utils.php b/src/www/people/people_utils.php
index 981a766..d0d26f2 100644
--- a/src/www/people/people_utils.php
+++ b/src/www/people/people_utils.php
@@ -141,7 +141,7 @@ function people_show_skill_inventory($user_id) {
} else {
for ($i=0; $i < $rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'>
+ <tr>
<td>'.db_result($result,$i,'skill_name').'</td>
<td>'.db_result($result,$i,'level_name').'</td>
<td>'.db_result($result,$i,'year_name').'</td></tr>';
@@ -174,13 +174,13 @@ function people_edit_skill_inventory($user_id) {
echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF'), 'method' => 'post'));
echo '
<input type="hidden" name="skill_inventory_id" value="'.db_result($result,$i,'skill_inventory_id').'" />
- <tr '. $HTML->boxGetAltRowStyle($i) .'>
+ <tr>
<td>'. people_get_skill_name(db_result($result,$i,'skill_id')) .'</td>
<td>'. people_skill_level_box('skill_level_id',db_result($result,$i,'skill_level_id')). '</td>
<td>'. people_skill_year_box('skill_year_id',db_result($result,$i,'skill_year_id')). '</td>
<td style="white-space:nowrap"><input type="submit" name="update_skill_inventory" value="'._('Update').'" />
<input type="submit" name="delete_from_skill_inventory" value="'._('Delete').'" /></td>
- </tr>';
+ </tr>';
echo $HTML->closeForm();
}
@@ -190,7 +190,7 @@ function people_edit_skill_inventory($user_id) {
echo '<tr class="tableheading"><td colspan="4">'._('Add a new skill').'/td></tr>';
echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF'), 'method' => 'post'));
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'>
+ echo '<tr>
<td>'. people_skill_box('skill_id'). '</td>
<td>'. people_skill_level_box('skill_level_id'). '</td>
<td>'. people_skill_year_box('skill_year_id'). '</td>
@@ -255,10 +255,11 @@ function people_show_job_inventory($job_id) {
} else {
for ($i=0; $i < $rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'>
+ <tr>
<td>'.db_result($result,$i,'skill_name').'</td>
<td>'.db_result($result,$i,'level_name').'</td>
- <td>'.db_result($result,$i,'year_name').'</td></tr>';
+ <td>'.db_result($result,$i,'year_name').'</td>
+ </tr>';
}
}
@@ -319,7 +320,7 @@ function people_edit_job_inventory($job_id,$group_id) {
}
} else {
for ($i=0; $i < $rows; $i++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) . '>';
+ echo '<tr>';
echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF'), 'method' => 'post'));
echo '<input type="hidden" name="job_inventory_id" value="'. db_result($result,$i,'job_inventory_id') .'" />
<input type="hidden" name="job_id" value="'. db_result($result,$i,'job_id') .'" />
@@ -337,7 +338,7 @@ function people_edit_job_inventory($job_id,$group_id) {
(isset($i)) ? $i++ : $i = 0; //for row coloring
echo '<tr><td colspan="4"><h3>'._('Add a new skill').'</h3></td></tr>
- <tr '. $HTML->boxGetAltRowStyle($i) . '>';
+ <tr>';
echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF'), 'method' => 'post'));
echo '<input type="hidden" name="job_id" value="'. $job_id .'" />
<input type="hidden" name="group_id" value="'.$group_id.'" />
@@ -396,7 +397,7 @@ function people_show_category_table() {
} else {
$return = $HTML->listTableTop($title_arr);
for ($i = 0; $i< count($categories); $i++) {
- $return .= '<tr '. $HTML->boxGetAltRowStyle($i) .'>
+ $return .= '<tr>
<td>'.util_make_link('/people/?category_id='.$categories[$i]['category_id'], $categories[$i]['name']).' ('.$categories[$i]['total'].')</td>
</tr>';
}
@@ -454,7 +455,7 @@ function people_show_job_list($result) {
$return = $HTML->listTableTop($title_arr);
for ($i = 0; $i < count($projects); $i++) {
$return .= '
- <tr '. $HTML->boxGetAltRowStyle($i) . '>
+ <tr>
<td>'.util_make_link('/people/viewjob.php?group_id='.$projects[$i]['group_id'].'&job_id='.$projects[$i]['job_id'], $projects[$i]['title']) .'</td>
<td>'.$projects[$i]['category_name'].'</td>
<td>'.date(_('Y-m-d H:i'), $projects[$i]['post_date']).'</td>
diff --git a/src/www/people/skills_utils.php b/src/www/people/skills_utils.php
index 8d8f3aa..de04e09 100644
--- a/src/www/people/skills_utils.php
+++ b/src/www/people/skills_utils.php
@@ -80,7 +80,7 @@ function displayUserSkills($user_id, $allowEdit) {
}
/* now print out the row, formatted nicely */
- echo '<tr '. $HTML->boxGetAltRowStyle($i+1) . '>';
+ echo '<tr>';
if($allowEdit) {
echo '<td><input type="checkbox" name="skill_edit[]" value="'.db_result($result, $i, 'skills_data_id').'" /></td>';
echo '<td><input type="checkbox" name="skill_delete[]" value="'.db_result($result, $i, 'skills_data_id').'" /></td>';
@@ -146,7 +146,7 @@ function handle_multi_edit($skill_ids = array()) {
$finishM = substr($finish, 4, 2);
echo '<table>'.
- '<tr '.$HTML->boxGetAltRowStyle($i+1).'>'.
+ '<tr>'.
'<td><h3>'.db_result($result, $i,'title').'</h3></td></tr>'.
'<tr><td>'.
'<table class="fullwidth">'.
@@ -155,7 +155,7 @@ function handle_multi_edit($skill_ids = array()) {
'<td >'._('Start Date').'</td>'.
'<td >'._('End Date').'</td>'.
'</tr>';
- echo '<tr '.$HTML->boxGetAltRowStyle($i+1).'>'.
+ echo '<tr>'.
'<td>'.html_build_select_box($skills, 'type[]',db_result($result, $i,'type') , false, '').'</td>'.
'<td>'.html_build_select_box_from_arrays($monthArrayVals,$monthArray, 'startM[]', $startM, false, '').
html_build_select_box_from_arrays($yearArray,$yearArray, 'startY[]', $startY, false, '').'</td>'.
@@ -164,7 +164,7 @@ function handle_multi_edit($skill_ids = array()) {
'</tr>'.
'</table>'.
'</td></tr>'.
- '<tr '.$HTML->boxGetAltRowStyle($i+1).'><td>'.
+ '<tr><td>'.
'<table>'.
'<tr class="tableheading">'.
'<td>'._('Title (max 100 characters)').'</td>'.
diff --git a/src/www/pm/admin/index.php b/src/www/pm/admin/index.php
index 170959c..1ed7801 100644
--- a/src/www/pm/admin/index.php
+++ b/src/www/pm/admin/index.php
@@ -194,7 +194,7 @@ if ($add_cat && $group_project_id) {
$cells[][] = db_result($result, $i, 'category_id');
$cells[][] = util_make_link('/pm/admin/?update_cat=1&id='.db_result($result, $i, 'category_id').'&group_id='.$group_id.'&group_project_id='. $pg->getID(),
db_result($result, $i, 'category_name'));
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/www/pm/include/ProjectTaskHTML.class.php b/src/www/pm/include/ProjectTaskHTML.class.php
index 9af7f82..e687714 100644
--- a/src/www/pm/include/ProjectTaskHTML.class.php
+++ b/src/www/pm/include/ProjectTaskHTML.class.php
@@ -78,7 +78,7 @@ class ProjectTaskHTML extends ProjectTask {
$cells = array();
$cells[][] = util_make_link('/pm/task.php?func=detailtask&project_task_id='. db_result($result, $i, 'project_task_id'). '&group_id='. $this->ProjectGroup->Group->getID() . '&group_project_id='. $this->ProjectGroup->getID(), db_result($result, $i, 'project_task_id'));
$cells[][] = db_result($result, $i, 'summary');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
@@ -118,7 +118,7 @@ class ProjectTaskHTML extends ProjectTask {
if ($is_admin) {
$cells[][] = '<input type="checkbox" name="rem_artifact_id[]" value="'.db_result($res,$i,'artifact_id').'" />';
}
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
@@ -162,7 +162,7 @@ class ProjectTaskHTML extends ProjectTask {
}
$cells[][] = date(_('Y-m-d H:i'),db_result($result, $i, 'postdate'));
$cells[][] = db_result($result, $i, 'user_name');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
@@ -212,7 +212,7 @@ class ProjectTaskHTML extends ProjectTask {
$cells[][] = $content;
$cells[][] = date(_('Y-m-d H:i'),db_result($result, $i, 'mod_date'));
$cells[][] = db_result($result, $i, 'user_name');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
} else {
diff --git a/src/www/pm/index.php b/src/www/pm/index.php
index 24ce957..5800c77 100644
--- a/src/www/pm/index.php
+++ b/src/www/pm/index.php
@@ -167,7 +167,7 @@ if (count($pg_arr) < 1 || $pg_arr == false) {
echo $pg_arr[$j]->getErrorMessage();
} else {
echo '
- <tr '. $HTML->boxGetAltRowStyle($j) . '>
+ <tr>
<td>'.util_make_link('/pm/task.php?group_project_id='.$pg_arr[$j]->getID().'&group_id='.$group_id.'&func=browse', html_image("ic/taskman20w.png", 20, 20) . ' '.$pg_arr[$j]->getID()).'</td>
<td>'.util_make_link('/pm/task.php?group_project_id='.$pg_arr[$j]->getID().'&group_id='.$group_id.'&func=browse', $pg_arr[$j]->getName()).'</td>
<td>'.$pg_arr[$j]->getDescription() .'</td>
@@ -177,7 +177,6 @@ if (count($pg_arr) < 1 || $pg_arr == false) {
}
}
echo $HTML->listTableBottom();
-
}
pm_footer();
diff --git a/src/www/pm/mod_task.php b/src/www/pm/mod_task.php
index 4881fc2..26d265d 100644
--- a/src/www/pm/mod_task.php
+++ b/src/www/pm/mod_task.php
@@ -260,8 +260,6 @@ $title_arr[]=_('Category');
$title_arr[]=_('User');
$title_arr[]=' ';
-$xi = 0;
-
$report=new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage(), 'pm');
@@ -272,7 +270,7 @@ echo $HTML->openForm(array('array' => '/reporting/timeadd.php', 'id' => 'time-tr
echo '<input type="hidden" name="project_task_id" value="'.$project_task_id.'" />
<input type="hidden" name="submit" value="1" />';
echo $HTML->listTableTop ($title_arr);
-echo '<tr '.$HTML->boxGetAltRowStyle($xi++).'>
+echo '<tr>
<td class="align-center">'. report_weeks_box($report, 'week') .'</td>
<td class="align-center">'. report_day_adjust_box() .'</td>
<td class="align-center"><input id="time-tracking-hours" type="text" required="required" name="hours" value="" size="3" maxlength="3" /></td>
@@ -299,7 +297,7 @@ $total_hours =0;
for ($i=0; $i<db_numrows($res); $i++) {
echo '
- <tr '.$HTML->boxGetAltRowStyle($xi++).'>
+ <tr>
<td></td>
<td>'.date(_('Y-m-d H:i'),db_result($res,$i,'report_date')).'</td>
<td>'.db_result($res,$i,'hours').'</td>
@@ -311,7 +309,7 @@ for ($i=0; $i<db_numrows($res); $i++) {
}
echo '
-<tr '.$HTML->boxGetAltRowStyle($xi++).'>
+<tr>
<td><strong>'._('Total')._(': ').'</strong></td>
<td></td>
<td>'.$total_hours.'</td>
diff --git a/src/www/project/admin/editimages.php b/src/www/project/admin/editimages.php
index 663f2a5..9781a15 100644
--- a/src/www/project/admin/editimages.php
+++ b/src/www/project/admin/editimages.php
@@ -287,7 +287,7 @@ for ($i=0; $i<$rows; $i++) {
}
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'>'
+ <tr>'
.'<td class="align-center">'
.util_make_link(getStringFromServer('PHP_SELF').'?submit=1&group_id='.$group_id.'&remove=1&id='.db_result($result,$i,'id'), '['._('Del').']')
.util_make_link(getStringFromServer('PHP_SELF').'?&group_id='.$group_id.'&mode=edit&id='.db_result($result,$i,'id'), '['._('Edit').']')
diff --git a/src/www/project/admin/massadd.php b/src/www/project/admin/massadd.php
index 03eff96..578b5ab 100644
--- a/src/www/project/admin/massadd.php
+++ b/src/www/project/admin/massadd.php
@@ -97,7 +97,7 @@ if (!$res || db_numrows($res) < 1) {
//
for ($i=0; $i<db_numrows($res); $i++) {
$uid = db_result($res,$i,'user_id');
- echo '<tr '. $HTML->boxGetAltRowStyle($i) . '>
+ echo '<tr>
<td>'.db_result($res,$i,'lastname').', '.db_result($res,$i,'firstname').'</td>
<td>'.db_result($res,$i,'user_name').'</td>
<td><input type="checkbox" name="newids[]" value="'. $uid .'"';
diff --git a/src/www/project/admin/massfinish.php b/src/www/project/admin/massfinish.php
index 87c3e94..123d126 100644
--- a/src/www/project/admin/massfinish.php
+++ b/src/www/project/admin/massfinish.php
@@ -82,11 +82,10 @@ if (!$res || db_numrows($res) < 1) {
//
for ($i=0; $i<db_numrows($res); $i++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) . '>
+ echo '<tr>
<td>'.db_result($res,$i,'realname').'</td>
<td>'.db_result($res,$i,'user_name').'</td>
<td>'.role_box($group_id,'addrole['. db_result($res,$i,'user_id') .']','').'</td></tr>';
-
}
echo $HTML->listTableBottom();
diff --git a/src/www/project/admin/project_admin_utils.php b/src/www/project/admin/project_admin_utils.php
index 1c2c56e..d91db97 100644
--- a/src/www/project/admin/project_admin_utils.php
+++ b/src/www/project/admin/project_admin_utils.php
@@ -178,7 +178,7 @@ function show_grouphistory($group_id) {
}
$cells[][] = date(_('Y-m-d H:i'),db_result($result, $i, 'adddate'));
$cells[][] = db_result($result, $i, 'user_name');
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
diff --git a/src/www/project/admin/roleedit.php b/src/www/project/admin/roleedit.php
index 9d8dae1..f2c4cc3 100644
--- a/src/www/project/admin/roleedit.php
+++ b/src/www/project/admin/roleedit.php
@@ -200,7 +200,7 @@ for ($i=0; $i<count($keys); $i++) {
} else {
$txt='';
}
- echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
+ echo '<tr>
<td style="padding-left: 4em;">'.$rbac_edit_section_names[$keys[$i]].'</td>
<td>'.db_result($res,$q,'forum_name').'</td>
<td>'.html_build_select_box_from_assoc(
@@ -219,7 +219,7 @@ for ($i=0; $i<count($keys); $i++) {
FROM project_group_list WHERE group_id=$1',
array($group_id));
for ($q=0; $q<db_numrows($res); $q++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
+ echo '<tr>
<td style="padding-left: 4em;">'.$rbac_edit_section_names[$keys[$i]].'</td>
<td>'.db_result($res,$q,'project_name').'</td>
<td>'.html_build_select_box_from_assoc(
@@ -254,7 +254,7 @@ for ($i=0; $i<count($keys); $i++) {
} else {
$txt='';
}
- echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
+ echo '<tr>
<td style="padding-left: 4em;">'.$rbac_edit_section_names[$keys[$i]].'</td>
<td>'.db_result($res,$q,'name').'</td>
<td>'.html_build_select_box_from_assoc(
@@ -279,13 +279,13 @@ for ($i=0; $i<count($keys); $i++) {
$role->getVal($keys[$i],db_result($res,$q,'package_id')),
false,
false);
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($j++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
//
// Handle all other settings for all roles
//
} else {
- echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
+ echo '<tr>
<td colspan="2"><strong>'.$rbac_edit_section_names[$keys[$i]].'</strong></td>
<td>';
echo html_build_select_box_from_assoc($role->getRoleVals($keys[$i]), "data[".$keys[$i]."][$group_id]", $role->getVal($keys[$i],$group_id), false, false ) ;
diff --git a/src/www/project/admin/users.php b/src/www/project/admin/users.php
index b35a5ca..b19e731 100644
--- a/src/www/project/admin/users.php
+++ b/src/www/project/admin/users.php
@@ -276,7 +276,7 @@ foreach ($members as $user) {
html_e('input', array('type' => 'hidden', 'name' => 'role_id', 'value' => $role->getID())).
html_e('input', array('type' => 'submit', 'name' => 'rmuser', 'value' => _('Remove'))).
$HTML->closeForm()), 'colspan' => 2);
- $content .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $localcells);
+ $content .= $HTML->multiTableRow(array(), $localcells);
}
$localcells = array();
@@ -287,7 +287,7 @@ foreach ($members as $user) {
html_e('div', array('class' => 'float_left'), role_box($group_id,'role_id',$role->getID())).
html_e('div', array('class' => 'float_right'), html_e('input', array('type' => 'submit', 'name' => 'adduser', 'value' => _('Grant extra role')))).
$HTML->closeForm(), 'colspan' => 2);
- $content .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), $localcells);
+ $content .= $HTML->multiTableRow(array(), $localcells);
}
$content .= $HTML->listTableBottom();
$content .= $HTML->boxBottom();
diff --git a/src/www/project/memberlist.php b/src/www/project/memberlist.php
index 8d31733..8bd35df 100644
--- a/src/www/project/memberlist.php
+++ b/src/www/project/memberlist.php
@@ -90,7 +90,7 @@ foreach ($members as $user) {
if (forge_get_config('use_people')) {
$cells[] = array(util_make_link('/people/viewprofile.php?user_id='.$user->getID(), _('View')), 'class' => 'align-center');
}
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
// end of community member description block
echo $HTML->listTableBottom();
diff --git a/src/www/reporting/customstatus.php b/src/www/reporting/customstatus.php
index 7a4b4bd..ab59a91 100644
--- a/src/www/reporting/customstatus.php
+++ b/src/www/reporting/customstatus.php
@@ -78,7 +78,7 @@ if ($status_id) {
echo $HTML->listTableTop($arr);
for ($i=0; $i<db_numrows($res); $i++) {
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'><td>'.db_result($res,$i,'status_id').'</td>
+ echo '<tr><td>'.db_result($res,$i,'status_id').'</td>
<td>'.util_make_link('/reporting/customstatus.php?status_id='.db_result($res,$i,'status_id'), db_result($res,$i,'status_name')).'</td></tr>';
}
diff --git a/src/www/reporting/projecttime.php b/src/www/reporting/projecttime.php
index 5ce2ec7..d4c1b2c 100644
--- a/src/www/reporting/projecttime.php
+++ b/src/www/reporting/projecttime.php
@@ -95,7 +95,7 @@ if ($g_id && $typ=='r') {
echo $HTML->listTableTop(array(_('Type'), _('Time')));
for ($i=0; $i<count($labels); $i++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'>'.
+ echo '<tr>'.
'<td>'. $labels[$i] .'</td><td>'. $data[$i] .'</td></tr>';
}
diff --git a/src/www/reporting/sitetime.php b/src/www/reporting/sitetime.php
index 185319e..82faf1a 100644
--- a/src/www/reporting/sitetime.php
+++ b/src/www/reporting/sitetime.php
@@ -95,7 +95,7 @@ if ($typ =='r') {
echo $HTML->listTableTop(array(_('Type'), _('Time')));
for ($i=0; $i<count($labels); $i++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'>'.
+ echo '<tr>'.
'<td>'. $labels[$i] .'</td><td>'. $data[$i] .'</td></tr>';
}
diff --git a/src/www/reporting/sitetimebar.php b/src/www/reporting/sitetimebar.php
index 1a13b11..f6afe91 100644
--- a/src/www/reporting/sitetimebar.php
+++ b/src/www/reporting/sitetimebar.php
@@ -98,7 +98,7 @@ if ($typ=='r') {
for ($i=0; $i<count($labels); $i++) {
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'>'.
+ echo '<tr>'.
'<td>'. $labels[$i] .'</td><td>'. $data[$i] .'</td></tr>';
}
diff --git a/src/www/reporting/timeadd.php b/src/www/reporting/timeadd.php
index a1be33b..1e9d42c 100644
--- a/src/www/reporting/timeadd.php
+++ b/src/www/reporting/timeadd.php
@@ -152,7 +152,7 @@ if ($week) {
echo $HTML->listTableTop($title_arr);
while ($r=db_fetch_array($res)) {
- echo '<tr '.$HTML->boxGetAltRowStyle($xi++).'>
+ echo '<tr>
<td class="align-center">'.$r['name'].'</td>
<td class="align-center">'. date( 'D, M d, Y',$r['report_date']) .'</td>
<td class="align-center"><!-- <input type="text" name="hours" value="'. $r['hours'] .'" size="3" maxlength="3" /> -->'.$r['hours'].'</td>
@@ -177,7 +177,7 @@ if ($week) {
echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF').'?week='.$week, 'method' => 'post'));
echo '<input type="hidden" name="submit" value="1" />
<input type="hidden" name="week" value="'.$week.'" />
- <tr '.$HTML->boxGetAltRowStyle($xi++).'>
+ <tr>
<td class="align-center">'. html_build_select_box ($respt,'project_task_id',false,false) .'</td>
<td class="align-center">'.report_day_adjust_box().'</td>
<td class="align-center"><input type="text" name="hours" value="" size="3" maxlength="3" /></td>
@@ -188,7 +188,7 @@ if ($week) {
echo $HTML->closeForm();
}
if (!isset($total_hours)) $total_hours = '';
- echo '<tr '.$HTML->boxGetAltRowStyle($xi++).'><td colspan="2"><strong>'._('Total Hours')._(':').'</strong></td>';
+ echo '<tr><td colspan="2"><strong>'._('Total Hours')._(':').'</strong></td>';
echo '<td class="align-center"><strong>'.$total_hours.'</strong></td><td colspan="2"></td></tr>';
echo $HTML->listTableBottom();
}
diff --git a/src/www/reporting/timecategory.php b/src/www/reporting/timecategory.php
index b44648d..e63cafc 100644
--- a/src/www/reporting/timecategory.php
+++ b/src/www/reporting/timecategory.php
@@ -73,7 +73,7 @@ $arr[]=_('Category Name');
echo $HTML->listTableTop($arr);
for ($i=0; $i<db_numrows($res); $i++) {
- echo '<tr '.$HTML->boxGetAltRowStyle($i).'><td>'.db_result($res,$i,'time_code').'</td>
+ echo '<tr><td>'.db_result($res,$i,'time_code').'</td>
<td><a href="timecategory.php?time_code='.db_result($res,$i,'time_code').'">'.db_result($res,$i,'category_name').'</a></td></tr>';
}
diff --git a/src/www/reporting/usersummary.php b/src/www/reporting/usersummary.php
index 7082268..a826ad7 100644
--- a/src/www/reporting/usersummary.php
+++ b/src/www/reporting/usersummary.php
@@ -113,14 +113,14 @@ if (!$res || db_numrows($res) < 1) {
$name=db_result($res,$i,'realname');
if ($last_name != $name) {
echo '
- <tr '.$HTML->boxGetAltRowStyle(0).'>
+ <tr>
<td colspan="6"><strong>'.$name.'</strong></td>
</tr>';
$last_name = $name;
}
echo '
- <tr '.$HTML->boxGetAltRowStyle(1).'>
- <td> </td>
+ <tr>
+ <td></td>
<td>'.util_make_link('/pm/task.php?func=detailtask&group_id='.db_result($res,$i,'group_id').'&project_task_id='.db_result($res,$i,'project_task_id') .'&group_project_id='.db_result($res,$i,'group_project_id'),db_result($res,$i,'summary')) .'
</td>
<td>'.db_result($res,$i,'status_name').'</td>
@@ -145,7 +145,7 @@ if (!$res || db_numrows($res) < 1) {
for ($j=0; $j<db_numrows($res2); $j++) {
$tracker=db_result($res2,$j,'group_name'). '*' .db_result($res2,$j,'name');
echo '
- <tr '.$HTML->boxGetAltRowStyle(1).'>
+ <tr>
<td colspan="3"> </td>
<td>';
if ($last_tracker != $tracker) {
diff --git a/src/www/reporting/usertime.php b/src/www/reporting/usertime.php
index 78a91e6..24f73e3 100644
--- a/src/www/reporting/usertime.php
+++ b/src/www/reporting/usertime.php
@@ -109,10 +109,7 @@ if ($sw) {
echo $HTML->listTableTop(array(_('Type'), _('Time')));
for ($i=0; $i<count($labels); $i++) {
-
- echo '<tr '. $HTML->boxGetAltRowStyle($i) .'>'.
- '<td>'. $labels[$i] .'</td><td>'. $data[$i] .'</td></tr>';
-
+ echo '<tr>'.'<td>'. $labels[$i] .'</td><td>'. $data[$i] .'</td></tr>';
}
echo $HTML->listTableBottom();
diff --git a/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php b/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
index 5b6817f..8bedcdc 100644
--- a/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
@@ -71,7 +71,7 @@ class ArtifactHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$return = '';
$i = 0;
foreach ($result as $row) {
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'
+ $return .= '<tr>'
.'<td>'.$row['artifact_id'].'</td>'
.'<td><a href="'.util_make_url ('/tracker/?group_id='.$groupId.'&atid=' . $row['group_artifact_id'] . '&func=detail&aid=' . $row['artifact_id']).'"> '
. html_image('ic/tracker20g.png')
diff --git a/src/www/search/include/renderers/DocsAllHtmlSearchRenderer.class.php b/src/www/search/include/renderers/DocsAllHtmlSearchRenderer.class.php
index 6c8d1a3..009c7b3 100644
--- a/src/www/search/include/renderers/DocsAllHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/DocsAllHtmlSearchRenderer.class.php
@@ -111,7 +111,7 @@ class DocsAllHtmlSearchRenderer extends HtmlSearchRenderer {
}
$cells[][] = $row['title'];
$cells[][] = $row['description'];
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($rowColor, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$rowColor++;
}
return $return;
diff --git a/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php b/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php
index 53f540f..736cc37 100644
--- a/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php
@@ -140,7 +140,7 @@ class DocsHtmlSearchRenderer extends HtmlGroupSearchRenderer {
} else {
$cells[][] = ' ';
}
- $return .= $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($rowColor, true)), $cells);
+ $return .= $HTML->multiTableRow(array(), $cells);
$rowColor++;
}
$content = html_ao('span', array('id' => 'massactionactive', 'class' => 'hide'));
diff --git a/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php b/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php
index 3fdc85a..91c2386 100644
--- a/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php
@@ -68,7 +68,7 @@ class ForumHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$return = '';
$i = 0;
foreach ($result as $row) {
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td class="halfwidth"><a href="'.util_make_url ('/forum/message.php?msg_id=' . $row['msg_id']).'">'
+ $return .= '<tr><td class="halfwidth"><a href="'.util_make_url ('/forum/message.php?msg_id=' . $row['msg_id']).'">'
. html_image('ic/msg.png', 10, 12)
. ' '.$row['subject'].'</a></td>'
. '<td style="width: 30%">'.$row['realname'].'</td>'
diff --git a/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php b/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php
index 2d48051..dde6789 100644
--- a/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php
@@ -68,7 +68,7 @@ class ForumsHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$lastForumName = $currentForumName;
$rowColor = 0;
}
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) .'>'
+ $return .= '<tr>'
. '<td width="5%"></td>'
. '<td><a href="'.util_make_url ('/forum/message.php?msg_id='. $row['msg_id']).'">'
. html_image('ic/msg.png').' '.$row['subject']
diff --git a/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php b/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php
index b26c78b..ae66feb 100644
--- a/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php
@@ -69,7 +69,7 @@ class FrsHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$lastPackage = $currentPackage;
$rowColor = 0;
}
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) .'>'
+ $return .= '<tr>'
. '<td style="width: 5%"> </td>'
. '<td>'.util_make_link ('/frs/?view=shownotes&group_id='.$group_id.'&release_id='.$row['release_id'],$row['release_name']).'</td>'
. '<td style="width: 15%">'.$row['realname'].'</td>'
diff --git a/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php b/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php
index 834ea1e..8b1be86 100644
--- a/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php
@@ -58,9 +58,8 @@ class NewsHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$rowsCount = count($result);
$return = '';
- $i = 0;
foreach ($result as $row) {
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'
+ $return .= '<tr>'
. '<td><a href="'.util_make_url ('/forum/forum.php?forum_id='. $row['forum_id']).'">'
. html_image('ic/msg.png', 10, 12)
. ' '.$row['summary'].'</a></td>
diff --git a/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php b/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php
index 04af18b..dc4d15d 100644
--- a/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php
@@ -64,7 +64,7 @@ class PeopleHtmlSearchRenderer extends HtmlSearchRenderer {
$i = 0;
foreach ($result as $row) {
$i++;
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'.
+ $return .= '<tr>'.
'<td style="width: 40%"><a href="'.util_make_url_u ($row['user_name'],$row['user_id']).'">'.html_image('ic/msg.png', 10, 12).' '.$row['user_name'].'</a></td>'.
'<td style="width: 60%">'.$row['realname'].'</td>'.
'</tr>';
diff --git a/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php b/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
index 93f19c7..53d7769 100644
--- a/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
@@ -66,7 +66,7 @@ class ProjectHtmlSearchRenderer extends HtmlSearchRenderer {
foreach ($result as $row) {
$i++;
- $return .= '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle($i).'>'
+ $return .= '<tr>'
.'<td style="width: 30%"><a href="'.util_make_url('/projects/'.$row['unix_group_name'].'/').'">'
.html_image('ic/msg.png', 10, 12)
.' '.$this->highlightTargetWords($row['group_name']).'</a></td>'
diff --git a/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php b/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php
index 8445618..eb829da 100644
--- a/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php
@@ -83,7 +83,7 @@ class SkillHtmlSearchRenderer extends HtmlSearchRenderer {
$finishMonth = substr($finish, 4, 2);
$return .= '
- <tr '.$GLOBALS['HTML']->boxGetAltRowStyle($i).'>
+ <tr>
<td>'.util_make_link_u ($row['user_name'],$row['user_id'],$row['realname']).'</td>
<td>'.$row['type_name'].'</td>
<td>'.$row['title'].'</td>
diff --git a/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php b/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
index b71fc70..9a1c964 100644
--- a/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
@@ -71,7 +71,7 @@ class TasksHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$lastProjectName = $currentProjectName;
$rowColor = 0;
}
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) .'>'
+ $return .= '<tr>'
. ' <td style="width: 5%"> </td>'
. ' <td>'.$row['project_task_id'].'</td>'
. ' <td>'
diff --git a/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php b/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php
index a279d03..ed20acf 100644
--- a/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php
+++ b/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php
@@ -70,7 +70,7 @@ class TrackersHtmlSearchRenderer extends HtmlGroupSearchRenderer {
$lastTracker = $currentTracker;
$rowColor = 0;
}
- $return .= '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) .'>'
+ $return .= '<tr>'
. '<td style="width: 5%"> </td>'
. '<td>'.$row['artifact_id'].'</td>'
. '<td>'.util_make_link('/tracker/?func=detail&group_id='.$this->groupId.'&aid='.$row['artifact_id'].'&atid='.$row['group_artifact_id'],
diff --git a/src/www/snippet/add_snippet_to_package.php b/src/www/snippet/add_snippet_to_package.php
index be5c6b2..2e4648a 100644
--- a/src/www/snippet/add_snippet_to_package.php
+++ b/src/www/snippet/add_snippet_to_package.php
@@ -188,7 +188,7 @@ for ($i=0; $i<$combolistrows; $i++)
echo $HTML->listTableTop();
for ($i=0; $i<$rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td class="align-center">'.
+ <tr><td class="align-center">'.
util_make_link('/snippet/delete.php?type=frompackage&snippet_version_id='.db_result($result,$i,'snippet_version_id').'&snippet_package_version_id='.$snippet_package_version_id,
$HTML->getDeletePic(_('Remove this snippet version'), _('Delete'))).'</td><td style="width:99%">'.
db_result($result,$i,'name').' '.db_result($result,$i,'version')."</td></tr>";
diff --git a/src/www/snippet/browse.php b/src/www/snippet/browse.php
index b4ec23a..b6dc59c 100644
--- a/src/www/snippet/browse.php
+++ b/src/www/snippet/browse.php
@@ -96,12 +96,12 @@ if ((!$result || $rows < 1) && (!$result2 || $rows2 < 1)) {
}
for ($i=0; $i<$rows2; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td rowspan="2">'.
+ <tr><td rowspan="2">'.
util_make_link ('/snippet/detail.php?type=package&id='.db_result($result2,$i,'snippet_package_id'),'<strong>'.db_result($result2,$i,'snippet_package_id').'</strong>').'</td><td><strong>'.
db_result($result2,$i,'name').'</td><td>'.
util_make_link_u (db_result($result2, $i, 'user_name'), db_result($result2, $i, 'user_id'), db_result($result2, $i, 'realname')).'</td></tr>';
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td colspan="2">'.util_make_links(nl2br(db_result($result2,$i,'description'))).'</td></tr>';
+ <tr><td colspan="2">'.util_make_links(nl2br(db_result($result2,$i,'description'))).'</td></tr>';
}
// List snippets if there are any
@@ -111,14 +111,14 @@ if ((!$result || $rows < 1) && (!$result2 || $rows2 < 1)) {
}
for ($i=0; $i<$rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td rowspan="2">'.
+ <tr><td rowspan="2">'.
util_make_link ('/snippet/detail.php?type=snippet&id='.db_result($result,$i,'snippet_id'),'<strong>'.db_result($result,$i,'snippet_id').'</strong>').
'</td><td><strong>'.
util_make_link ('/snippet/detail.php?type=snippet&id='.db_result($result,$i,'snippet_id'),db_result($result,$i,'name')).
'</strong></td><td>'.
util_make_link_u (db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'), db_result($result, $i, 'realname')).'</td></tr>';
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td colspan="2">'.util_make_links(nl2br(db_result($result,$i,'description'))).'</td></tr>';
+ <tr><td colspan="2">'.util_make_links(nl2br(db_result($result,$i,'description'))).'</td></tr>';
}
echo $HTML->listTableBottom();
}
diff --git a/src/www/snippet/detail.php b/src/www/snippet/detail.php
index 8bff5ff..b07ce14 100644
--- a/src/www/snippet/detail.php
+++ b/src/www/snippet/detail.php
@@ -78,7 +78,7 @@ if ($type=='snippet') {
for ($i=0; $i<$rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td>'.db_result($result,$i,'snippet_version_id').
+ <tr><td>'.db_result($result,$i,'snippet_version_id').
'</td><td>'.
util_make_link('/snippet/download.php?type=snippet&id='.db_result($result,$i,'snippet_version_id'), '<strong>'. db_result($result,$i,'version').'</strong>').'</td><td>'.
date(_('Y-m-d H:i'),db_result($result,$i,'post_date')).'</td><td>'.
@@ -163,7 +163,7 @@ if ($type=='snippet') {
for ($i=0; $i<$rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td>'.
+ <tr><td>'.
util_make_link('/snippet/detail.php?type=packagever&id='.db_result($result,$i,'snippet_package_version_id'), '<strong>'.db_result($result,$i,'version').'</strong>').'</td><td>'.
date(_('Y-m-d H:i'),db_result($result,$i,'post_date')).'</td><td>'.
util_make_link_u (db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'),db_result($result, $i, 'realname')).'</td>'.
diff --git a/src/www/snippet/snippet_utils.php b/src/www/snippet/snippet_utils.php
index d7fd238..21ef86e 100644
--- a/src/www/snippet/snippet_utils.php
+++ b/src/www/snippet/snippet_utils.php
@@ -159,7 +159,7 @@ function snippet_show_package_snippets($version) {
for ($i=0; $i<$rows; $i++) {
echo '
- <tr '. $HTML->boxGetAltRowStyle($i) .'><td>'.db_result($result,$i,'snippet_version_id').
+ <tr><td>'.db_result($result,$i,'snippet_version_id').
'</td><td>'.
util_make_link('/snippet/download.php?type=snippet&id='.db_result($result,$i,'snippet_version_id'),db_result($result,$i,'version')).
'</td><td>'.
diff --git a/src/www/stats/i18n.php b/src/www/stats/i18n.php
index 9c5c659..2d8970e 100644
--- a/src/www/stats/i18n.php
+++ b/src/www/stats/i18n.php
@@ -41,10 +41,9 @@ GROUP BY lang,language_id,name
ORDER BY cnt DESC',
array ());
$non_english=0;
-$i=0;
while ($lang_stat = db_fetch_array($res)) {
if ($lang_stat['cnt'] > 0) {
- echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle($i++).'><th>'.$lang_stat['lang'].'</th>'.
+ echo '<tr><th>'.$lang_stat['lang'].'</th>'.
'<td class="align-right">'.$lang_stat['cnt'].' </td>'.
'<td class="align-right">'.sprintf("%.2f",$lang_stat['cnt']*100/$total)." </td></tr>\n";
if ($lang_stat['lang']!='English') $non_english+=$lang_stat['cnt'];
diff --git a/src/www/stats/lastlogins.php b/src/www/stats/lastlogins.php
index 51594a1..5720524 100644
--- a/src/www/stats/lastlogins.php
+++ b/src/www/stats/lastlogins.php
@@ -54,7 +54,7 @@ while ($row = db_fetch_array($res)) {
$cells[][] = date(_('Y-m-d H:i'), $row['time']);
$cells[][] = util_display_user($row['user_name'], $row['user_id'], $row['realname']);
$cells[][] = $row['ip_addr'];
- echo $HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i++, true)), $cells);
+ echo $HTML->multiTableRow(array(), $cells);
}
echo $HTML->listTableBottom();
$HTML->footer();
diff --git a/src/www/stats/site_stats_utils.php b/src/www/stats/site_stats_utils.php
index d94f8f2..580f9ae 100644
--- a/src/www/stats/site_stats_utils.php
+++ b/src/www/stats/site_stats_utils.php
@@ -289,7 +289,7 @@ function stats_site_projects( $report, $orderby, $projects, $trove ) {
$i = $offset;
while ( $row = db_fetch_array($res) ) {
- print '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . ' style="text-align:right">'
+ print '<tr style="text-align:right">'
. '<td>' . ($i + 1)." " . util_make_link ('/project/stats/?group_id='.$row["group_id"], $row["group_name"]) . '</td>'
. '<td> ' . number_format( $row["site_views"],0 ) . '</td>'
. '<td> ' . number_format( $row["subdomain_views"],0 ) . '</td>';
@@ -369,7 +369,7 @@ function stats_site_projects_daily( $span ) {
while ( $row = db_fetch_array($res) ) {
$i++;
- print '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . ' style="text-align:right">'
+ print '<tr style="text-align:right">'
. '<td>' . gmstrftime("%d %b %Y", mktime(0,0,1,substr($row["month"],4,2),$row["day"],substr($row["month"],0,4)) ) . '</td>'
. '<td>' . number_format( $row["site_page_views"],0 ) . '</td>'
. '<td>' . number_format( $row["subdomain_views"],0 ) . '</td>'
@@ -424,7 +424,7 @@ function stats_site_projects_monthly() {
while ( $row = db_fetch_array($res) ) {
$i++;
- print '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . 'style="text-align:right">'
+ print '<tr style="text-align:right">'
. '<td>' . $row['month'] . '</td>'
. '<td>' . number_format( $row["site_page_views"],0 ) . '</td>'
. '<td>' . number_format( $row["subdomain_views"],0 ) . '</td>'
diff --git a/src/www/survey/include/SurveyHTML.class.php b/src/www/survey/include/SurveyHTML.class.php
index 33bf016..bdbd9e8 100644
--- a/src/www/survey/include/SurveyHTML.class.php
+++ b/src/www/survey/include/SurveyHTML.class.php
@@ -216,7 +216,7 @@ class SurveyHTML extends FFError {
}
if ($i%3==0) {
- $ret.= "<tr ". $HTML->boxGetAltRowStyle($i) .">\n";
+ $ret.= "<tr>\n";
}
$ret.= '<td><input type="checkbox" id="to_add_'.$i.'" name="to_add[]" value="'.$arr_to_add[$i]->getID().'" />'.
@@ -253,7 +253,7 @@ class SurveyHTML extends FFError {
continue;
}
- $ret.= "<tr ". $HTML->boxGetAltRowStyle($i) .">\n";
+ $ret.= "<tr>\n";
$ret.= '<td>'.$arr_to_del[$i]->getID().'</td>';
$ret.= '<td>'.$arr_to_del[$i]->getQuestion().'</td>';
@@ -302,7 +302,7 @@ class SurveyHTML extends FFError {
continue;
}
- $ret.= "<tr ". $HTML->boxGetAltRowStyle($i) .">\n";
+ $ret.= "<tr>\n";
$ret.= '<td>'.util_make_link('/survey/admin/question.php?group_id='.$group_id.'&question_id='.$questions[$i]->getID(), $questions[$i]->getID()).'</td>'."\n";
$ret.= '<td>'.$questions[$i]->getQuestion().'</td>';
$ret.= '<td>'.$questions[$i]->getQuestionStringType().'</td>';
@@ -382,7 +382,7 @@ class SurveyHTML extends FFError {
$displaycount++;
- $ret.= "<tr ". $HTML->boxGetAltRowStyle($color_index++) .">\n";
+ $ret.= "<tr>\n";
if ($show_id) {
$ret.= '<td>'.$surveys[$i]->getID().'</td>';
}
diff --git a/src/www/themes/css/fusionforge.css b/src/www/themes/css/fusionforge.css
index 1e16c01..1084679 100644
--- a/src/www/themes/css/fusionforge.css
+++ b/src/www/themes/css/fusionforge.css
@@ -46,12 +46,14 @@ label {
}
/* From old gforge-compat */
+table.listing tbody tr:nth-child(even),
.altrowstyleeven,
.even {
background-color: #eaeaea;
font-weight: normal;
}
+table.listing tbody tr:nth-child(odd),
.altrowstyleodd,
.odd {
background-color: #e0e0e0;
diff --git a/src/www/themes/funky-wOw/css/theme.css b/src/www/themes/funky-wOw/css/theme.css
index ead211a..48778d2 100644
--- a/src/www/themes/funky-wOw/css/theme.css
+++ b/src/www/themes/funky-wOw/css/theme.css
@@ -52,6 +52,7 @@ a:hover {
background-color: #FFE613;
}
+table.listing tbody tr:nth-child(even),
.even,
.bgcolor-grey {
background-color: #FFF3B8;
diff --git a/src/www/themes/funky/Theme.class.php b/src/www/themes/funky/Theme.class.php
index afd9fe6..f87fffc 100644
--- a/src/www/themes/funky/Theme.class.php
+++ b/src/www/themes/funky/Theme.class.php
@@ -185,24 +185,6 @@ class Theme_Funky extends Layout {
return html_ac(html_ap() -1).'<!-- class="box-surround" -->'."\n";
}
- /**
- * boxGetAltRowStyle() - Get an alternating row style for tables
- *
- * @param int $i Row number
- * @param bool $classonly Return class name only
- * @return string
- */
- function boxGetAltRowStyle($i, $classonly = false) {
- if ($i % 2 == 0)
- $ret = 'bgcolor-white';
- else
- $ret = 'bgcolor-grey';
- if ($classonly)
- return $ret;
- else
- return 'class="'.$ret.'"';
- }
-
function tabGenerator($TABS_DIRS, $TABS_TITLES, $TABS_TOOLTIPS, $nested=false, $selected=false, $sel_tab_bgcolor='WHITE', $total_width='100%') {
$count = count($TABS_DIRS);
diff --git a/src/www/themes/funky/css/theme.css b/src/www/themes/funky/css/theme.css
index ccc3ee3..723fae8 100644
--- a/src/www/themes/funky/css/theme.css
+++ b/src/www/themes/funky/css/theme.css
@@ -538,11 +538,13 @@ a.topTabSelected:hover {
padding: 4px;
}
+table.listing tbody tr:nth-child(even),
.bgcolor-grey,
.even {
background-color: #CDDCF3;
}
+table.listing tbody tr:nth-child(odd),
.bgcolor-white,
.odd {
background-color: #FFFFFF;
diff --git a/src/www/top/mostactive.php b/src/www/top/mostactive.php
index 4237647..6bc3a45 100644
--- a/src/www/top/mostactive.php
+++ b/src/www/top/mostactive.php
@@ -64,7 +64,7 @@ while ($row_top = db_fetch_array($res_top)) {
}
$i++;
print '
- <tr '. $HTML->boxGetAltRowStyle($i) .'>
+ <tr>
<td> '.$row_top['ranking'].'
</td>
<td>'.util_make_link_g (strtolower($row_top['unix_group_name']),$row_top['group_id'],$row_top['group_name']).'
diff --git a/src/www/top/toplist.php b/src/www/top/toplist.php
index f5c0baa..20aa84c 100644
--- a/src/www/top/toplist.php
+++ b/src/www/top/toplist.php
@@ -54,7 +54,6 @@ echo $HTML->listTableTop($arr);
echo db_error();
$display_rank = 0;
-$i=0;
while ($row_top = db_fetch_array($res_top)) {
if (!forge_check_perm('project_read', $row_top['group_id'])) {
continue;
@@ -67,12 +66,11 @@ while ($row_top = db_fetch_array($res_top)) {
* pageviews_proj: project_read probably enough
* forumposts_week: forum read? no idea…
*/
- $i++;
if ($row_top["items"] == 0) {
continue;
}
$display_rank++;
- print '<tr '. $HTML->boxGetAltRowStyle($i) .'><td class="align-right">'.$display_rank
+ print '<tr><td class="align-right">'.$display_rank
.'</td><td>'.util_make_link_g (strtolower($row_top['unix_group_name']),@$row_top['group_id'],stripslashes($row_top['group_name']))
.'</td><td class="align-right">'.$row_top['items']
.' </td>'
diff --git a/src/www/top/topusers.php b/src/www/top/topusers.php
index 227350e..547601e 100644
--- a/src/www/top/topusers.php
+++ b/src/www/top/topusers.php
@@ -69,10 +69,8 @@ $tableHeaders = array(
echo $HTML->listTableTop($tableHeaders);
-$i=0;
while ($row_top = db_fetch_array($res_top)) {
- $i++;
- print '<tr '. $HTML->boxGetAltRowStyle($i) .'><td> '.$row_top['ranking']
+ print '<tr><td> '.$row_top['ranking']
.'</td><td>'.util_make_link_u ($row_top['user_name'],$row_top['user_id'],$row_top['user_name']).'</td>'
.'<td>'.$row_top['realname'].'</td>'
.'</td><td class="align-right">'.sprintf('%.2f', $row_top['metric'])
diff --git a/tools/createtheme.sh b/tools/createtheme.sh
index acb9282..3e0c765 100755
--- a/tools/createtheme.sh
+++ b/tools/createtheme.sh
@@ -583,19 +583,6 @@ if (\$params['group']) {
}
/**
- * boxGetAltRowStyle() - Get an alternating row style for tables
- *
- * @param int Row number
- */
- function boxGetAltRowStyle(\$i) {
- if (\$i % 2 == 0) {
- return 'BGCOLOR="#FFFFFF"';
- } else {
- return 'BGCOLOR="' . \$this->COLOR_LTBACK1 . '"';
- }
- }
-
- /**
* boxBottom() - Bottom HTML box
*
* @param bool Whether to echo or return the results
-----------------------------------------------------------------------
Summary of changes:
src/common/forum/ForumAdmin.class.php | 2 +-
src/common/forum/ForumHTML.class.php | 2 +-
src/common/frs/views/admin.php | 2 +-
src/common/frs/views/editrelease.php | 2 +-
src/common/frs/views/linktrackerroadmap.php | 2 +-
src/common/frs/views/showreleases.php | 2 +-
src/common/include/utils.php | 2 +-
src/common/tracker/actions/admin-ind.php | 2 +-
src/common/tracker/actions/effort_units.php | 4 +---
src/common/tracker/include/ArtifactHtml.class.php | 6 +++---
src/common/tracker/views/form-addcanned.php | 2 +-
.../tracker/views/form-addextrafieldoption.php | 4 ++--
src/common/tracker/views/form-adminroadmap.php | 4 ++--
src/common/tracker/views/form-customizelist.php | 2 +-
src/common/tracker/views/form-editformula.php | 6 +++---
...omeDetailActivityMostActiveProjectWeek.class.php | 3 +--
src/common/widget/Widget_MyAdmin.class.php | 2 +-
src/common/widget/Widget_MyArtifacts.class.php | 2 +-
src/common/widget/Widget_MyBookmarks.class.php | 2 +-
src/common/widget/Widget_MyLatestCommits.class.php | 2 +-
.../widget/Widget_MyMonitoredDocuments.class.php | 2 +-
.../widget/Widget_MyMonitoredForums.class.php | 2 +-
src/common/widget/Widget_MyMonitoredFp.class.php | 2 +-
src/common/widget/Widget_MyProjects.class.php | 2 +-
.../widget/Widget_MyProjectsLastDocuments.class.php | 2 +-
src/common/widget/Widget_MySurveys.class.php | 2 +-
src/common/widget/Widget_MySystasks.class.php | 2 +-
.../widget/Widget_ProjectLatestCommits.class.php | 2 +-
src/common/widget/Widget_Rss.class.php | 2 +-
src/common/widget/Widget_TrackerContent.class.php | 10 +++++-----
.../widget/Widget_TrackerDefaultActions.class.php | 7 +++----
src/common/widget/Widget_TrackerGeneral.class.php | 13 ++++++-------
src/common/widget/Widget_TrackerMain.class.php | 9 ++++-----
src/plugins/authopenid/www/index.php | 2 +-
src/plugins/authwebid/www/index.php | 4 ++--
src/plugins/blocks/www/index.php | 2 +-
.../cvstracker/common/cvstrackerPlugin.class.php | 2 +-
src/plugins/globalactivity/www/index.php | 3 +--
.../globaldashboard/www/admin/manage_accounts.php | 2 +-
.../globalsearch/common/globalsearch_edit_utils.php | 2 +-
src/plugins/globalsearch/www/index.php | 2 +-
.../hudson_Widget_ProjectJobsOverview.class.php | 2 +-
src/plugins/mailman/include/mailmanPlugin.class.php | 4 ++--
src/plugins/mantisbt/view/admin/StatPerStatus.php | 4 +---
src/plugins/mantisbt/view/admin/viewCategorie.php | 2 +-
src/plugins/mantisbt/view/admin/viewVersion.php | 2 +-
src/plugins/mantisbt/view/viewAttachment.php | 2 +-
src/plugins/oauthconsumer/www/access_tokens.php | 2 +-
src/plugins/oauthconsumer/www/provider_edit.php | 16 +++++++---------
src/plugins/oauthconsumer/www/providers.php | 2 +-
src/plugins/oauthprovider/www/access_tokens.php | 2 +-
src/plugins/oauthprovider/www/consumer.php | 2 +-
src/plugins/oauthprovider/www/consumer_manage.php | 15 ++++++---------
.../oauthprovider/www/consumer_update_page.php | 12 ++++++------
src/plugins/oauthprovider/www/request_tokens.php | 2 +-
src/plugins/scmcvs/common/CVSPlugin.class.php | 4 ++--
src/plugins/scmdarcs/common/DarcsPlugin.class.php | 4 ++--
src/plugins/scmgit/common/GitPlugin.class.php | 6 +++---
src/plugins/scmhg/common/HgPlugin.class.php | 6 +++---
.../scmhook/library/scmgit/commitTracker.class.php | 2 +-
.../scmhook/library/scmsvn/commitTracker.class.php | 2 +-
src/plugins/scmsvn/common/SVNPlugin.class.php | 4 ++--
.../wiki/common/WikiHtmlSearchRenderer.class.php | 2 +-
src/plugins/wiki/www/wikilist.php | 2 +-
src/www/activity/index.php | 2 +-
src/www/admin/admin_table.php | 3 +--
src/www/admin/configman.php | 2 +-
src/www/admin/cronman.php | 2 +-
src/www/admin/globalroleedit.php | 2 +-
src/www/admin/grouplist.php | 2 +-
src/www/admin/massmail.php | 3 +--
src/www/admin/pluginman.php | 2 +-
src/www/admin/search.php | 4 ++--
src/www/admin/unsubscribe.php | 2 +-
src/www/admin/useredit.php | 4 ++--
src/www/admin/userlist.php | 2 +-
src/www/developer/diary.php | 2 +-
src/www/forum/forum.php | 4 ++--
src/www/forum/message.php | 2 +-
src/www/include/Layout.class.php | 20 --------------------
src/www/mail/admin/index.php | 8 ++++----
src/www/mail/index.php | 4 ++--
src/www/my/dashboard.php | 3 +--
src/www/my/diary.php | 2 +-
src/www/my/systasks.php | 2 +-
src/www/news/admin/news_admin_utils.php | 2 +-
src/www/people/people_utils.php | 21 +++++++++++----------
src/www/people/skills_utils.php | 8 ++++----
src/www/pm/admin/index.php | 2 +-
src/www/pm/include/ProjectTaskHTML.class.php | 8 ++++----
src/www/pm/index.php | 3 +--
src/www/pm/mod_task.php | 8 +++-----
src/www/project/admin/editimages.php | 2 +-
src/www/project/admin/massadd.php | 2 +-
src/www/project/admin/massfinish.php | 3 +--
src/www/project/admin/project_admin_utils.php | 2 +-
src/www/project/admin/roleedit.php | 10 +++++-----
src/www/project/admin/users.php | 4 ++--
src/www/project/memberlist.php | 2 +-
src/www/reporting/customstatus.php | 2 +-
src/www/reporting/projecttime.php | 2 +-
src/www/reporting/sitetime.php | 2 +-
src/www/reporting/sitetimebar.php | 2 +-
src/www/reporting/timeadd.php | 6 +++---
src/www/reporting/timecategory.php | 2 +-
src/www/reporting/usersummary.php | 8 ++++----
src/www/reporting/usertime.php | 5 +----
.../renderers/ArtifactHtmlSearchRenderer.class.php | 2 +-
.../renderers/DocsAllHtmlSearchRenderer.class.php | 2 +-
.../renderers/DocsHtmlSearchRenderer.class.php | 2 +-
.../renderers/ForumHtmlSearchRenderer.class.php | 2 +-
.../renderers/ForumsHtmlSearchRenderer.class.php | 2 +-
.../renderers/FrsHtmlSearchRenderer.class.php | 2 +-
.../renderers/NewsHtmlSearchRenderer.class.php | 3 +--
.../renderers/PeopleHtmlSearchRenderer.class.php | 2 +-
.../renderers/ProjectHtmlSearchRenderer.class.php | 2 +-
.../renderers/SkillHtmlSearchRenderer.class.php | 2 +-
.../renderers/TasksHtmlSearchRenderer.class.php | 2 +-
.../renderers/TrackersHtmlSearchRenderer.class.php | 2 +-
src/www/snippet/add_snippet_to_package.php | 2 +-
src/www/snippet/browse.php | 8 ++++----
src/www/snippet/detail.php | 4 ++--
src/www/snippet/snippet_utils.php | 2 +-
src/www/stats/i18n.php | 3 +--
src/www/stats/lastlogins.php | 2 +-
src/www/stats/site_stats_utils.php | 6 +++---
src/www/survey/include/SurveyHTML.class.php | 8 ++++----
src/www/themes/css/fusionforge.css | 2 ++
src/www/themes/funky-wOw/css/theme.css | 1 +
src/www/themes/funky/Theme.class.php | 18 ------------------
src/www/themes/funky/css/theme.css | 2 ++
src/www/top/mostactive.php | 2 +-
src/www/top/toplist.php | 4 +---
src/www/top/topusers.php | 4 +---
tools/createtheme.sh | 13 -------------
135 files changed, 223 insertions(+), 298 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list