[Vtigercrm-commits] [vtiger-commits] r4076 - /vtigercrm/trunk/modules/Calendar/calendar_dayview.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 8 09:18:33 EST 2006
Author: saraj
Date: Wed Mar 8 07:18:27 2006
New Revision: 4076
Log:
changes made to avoid duplicate display of events in dayview
Modified:
vtigercrm/trunk/modules/Calendar/calendar_dayview.php
Modified: vtigercrm/trunk/modules/Calendar/calendar_dayview.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/calendar_dayview.php (original)
+++ vtigercrm/trunk/modules/Calendar/calendar_dayview.php Wed Mar 8 07:18:27 2006
@@ -117,7 +117,7 @@
}
}
}
- echo " <td onMouseOver=\"gshow('".$hour."')\" onMouseOut=\"ghide('".$hour."')\" width=10%>
+ echo "<td onMouseOver=\"gshow('".$hour."')\" onMouseOut=\"ghide('".$hour."')\" width=10%>
<div id=".$hour." style=\"display:none\">
<table border=\"0\">
<tr>
@@ -281,9 +281,8 @@
}
}
}
- $maxcol = 1;
for ($i = -1 ; $i < 24 ; $i++ ) {
- $maxcol = max($maxcol,count($table[$i]));
+ $maxcol[$i] = max($maxcol[$i],count($table[$i]));
}
//New UI-integrated by minnie
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
@@ -311,13 +310,13 @@
for ($i = 0; $i <24 ; $i++ )
{
if($i == 0)
- $this->getHourList('12am',$maxcol,$table,12);
+ $this->getHourList('12am',$maxcol[$i],$table,$i);
if($i>0 && $i<12)
- $this->getHourList($i.'am',$maxcol,$table,$i);
+ $this->getHourList($i.'am',$maxcol[$i],$table,$i);
if($i == 12)
- $this->getHourList('12pm',$maxcol,$table,12);
+ $this->getHourList('12pm',$maxcol[$i],$table,$i);
if($i>12 && $i<24)
- $this->getHourList(($i - 12).'pm',$maxcol,$table,$i);
+ $this->getHourList(($i - 12).'pm',$maxcol[$i],$table,$i);
}
echo "</div>";
echo "</td></tr></table>\n";
More information about the vtigercrm-commits
mailing list