[Vtigercrm-commits] [vtiger-commits] r3964 - /vtigercrm/trunk/modules/Calendar/calendar_dayview.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Feb 27 10:16:31 EST 2006
Author: saraj
Date: Mon Feb 27 08:16:26 2006
New Revision: 3964
Log:
changes made to display event in hour list
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 Mon Feb 27 08:16:26 2006
@@ -97,7 +97,6 @@
for ($c = 0 ; $c < $maxcol ; $c++ ) {
if ( isset ( $table[$i][$c] ) ) {
if ( is_object ( $table[$i][$c] ) ) {
- //echo " <td class=\"line". (1+($i % 2)) ."\" valign=\"top\" rowspan=\"". $rowspan[$i][$c]."\">";
$color = "";
$username=$table[$i][$c]->creator;
if ($username!=""){
@@ -157,28 +156,6 @@
return s;
}
-
-function check_form()
-{
- if(trim(document.appSave.subject.value) == "")
- {
- alert("Missing Subject");
- document.appSave.subject.focus()
- return false;
- }
- else
- {
- if (document.appSave.activitytype[0].checked==true)
- {
- document.appSave.duration_minutes.value = "15";
- }
- else if (document.appSave.activitytype[1].checked == true)
- {
- document.appSave.duration_minutes.value = "45";
- }
- return true;
- }
-}
</script>
<?php
if(isset($_REQUEST['display_date']) && $_REQUEST['display_date'] !="")
@@ -308,23 +285,21 @@
for ($i = -1 ; $i < 24 ; $i++ ) {
$maxcol = max($maxcol,count($table[$i]));
}
- //New UI-integrated by mangai
+ //New UI-integrated by minnie
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
echo "<form action=\"". $callink ."calendar_day\" method=\"get\">\n";
echo "<tr><td>";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"calTopBg\"><tr><td>\n";
echo "<img src=\"";
- echo $image_path."calTopLeft.gif\"></td>";
- echo "<td><img src=\"";
- echo $image_path."calNavPrev.gif\" alt=\"Previous\" title=\"Previous\"></td>";
+ echo $image_path."calTopLeft.gif\"></td><td>";
+ echo $this->pref->menulink($callink ."calendar_dayview&t=".$last_day->getYYYYMMDD(),$this->pref->getImage(left,'list'),$last_day->getDate())."</td>";
echo "<td><img src=\"";
echo $image_path."calSep.gif\"></td>";
- echo "<td align=\"center\" width=\"100%\" class=\"lvtHeaderText\">Day ";
- echo $day.", ".$day_in_words;
+ echo "<td align=\"center\" width=\"100%\" class=\"lvtHeaderText\">";
+ echo " ". strftime($mod_strings['LBL_DATE_TITLE'],$from->ts) ." ";
echo "</td><td><img src=\"";
- echo $image_path."calSep.gif\"></td>";
- echo "<td><img src=\"";
- echo $image_path."calNavNext.gif\" alt=\"Next\" title=\"Next\"></td>";
+ echo $image_path."calSep.gif\"></td><td>";
+ echo $this->pref->menulink($callink ."calendar_dayview&t=".$next_day->getYYYYMMDD(),$this->pref->getImage(right,'list'),$next_day->getDate())."</td>";
echo "<td align=right><img src=\"";
echo $image_path."calTopRight.gif\"></td>";
echo "</tr></table></td></tr>";
@@ -332,17 +307,18 @@
echo "<!-- calendar list -->
<table border=\"0\" cellspacing=\"0\" cellpadding=\"10\" width=\"100%\" class=\"calDisplay\">
<tr><td align=center >";
- echo "<div class=\"calDiv\" >";
- $this->getHourList('12am',$maxcol,$table,12);
- for ($i=1;$i <=11; $i++)
- {
- $this->getHourList($i.'am',$maxcol,$table,$i);
- }
- $this->getHourList('12pm',$maxcol,$table,12);
- for ($i=1;$i <=11; $i++)
- {
- $this->getHourList($i.'pm',$maxcol,$table,$i);
- }
+ echo "<div class=\"calDiv\" >";
+ for ($i = 0; $i <24 ; $i++ )
+ {
+ if($i == 0)
+ $this->getHourList('12am',$maxcol,$table,12);
+ if($i>0 && $i<12)
+ $this->getHourList($i.'am',$maxcol,$table,$i);
+ if($i == 12)
+ $this->getHourList('12pm',$maxcol,$table,12);
+ if($i>12 && $i<24)
+ $this->getHourList(($i - 12).'pm',$maxcol,$table,$i);
+ }
echo "</div>";
echo "</td></tr></table>\n";
echo "</tr></td>\n";
More information about the vtigercrm-commits
mailing list