[Vtigercrm-commits] [vtiger-commits] r9231 - /vtigercrm/trunk/modules/Calendar/calendarLayout.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 31 09:51:48 EDT 2006
Author: saraj
Date: Thu Aug 31 07:51:44 2006
New Revision: 9231
Log:
changes made to fix the calendar related issue --Minnie
Modified:
vtigercrm/trunk/modules/Calendar/calendarLayout.php
Modified: vtigercrm/trunk/modules/Calendar/calendarLayout.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/calendarLayout.php (original)
+++ vtigercrm/trunk/modules/Calendar/calendarLayout.php Thu Aug 31 07:51:44 2006
@@ -288,10 +288,10 @@
{
$headerdata .="<tr><td> </td>";
}
- $headerdata .="<td align='center' width='55%'>";
+ $headerdata .="<td align='center' width='53%'>";
$headerdata .= getEventTodoInfo($cal_arr,'listcnt');
$headerdata .= " </td>
- <td align='right' width='30%'><table border=0 cellspacing=0 cellpadding=2><tr><td class=small><b>".$mod_strings['LBL_VIEW']." : </b></td><td>";
+ <td align='center' width='30%'><table border=0 cellspacing=0 cellpadding=2><tr><td class=small><b>".$mod_strings['LBL_VIEW']." : </b></td><td>";
$view_options = getEventViewOption($cal_arr,$viewBox);
$headerdata .=$view_options."</td></tr></form></table>
</td>
@@ -1356,8 +1356,10 @@
}
else
{
- $element['starttime'] = $adb->query_result($result,$i,"date_start");
- $element['endtime'] = $adb->query_result($result,$i,"due_date");
+ $date_start = $adb->query_result($result,$i,"date_start");
+ $due_date = $adb->query_result($result,$i,"due_date");
+ $element['starttime'] = getDisplayDate($date_start);
+ $element['endtime'] = getDisplayDate($due_date);
}
$contact_id = $adb->query_result($result,$i,"contactid");
$id = $adb->query_result($result,$i,"activityid");
@@ -1461,6 +1463,12 @@
//$st_end_time = convertStEdTime2UserSelectedFmt($format,$start_time);
$value = getaddEventPopupTime($start_time,$start_time,$format);
$element['starttime'] = $value['starthour'].':'.$value['startmin'].''.$value['startfmt'];
+ $date_start = $adb->query_result($result,$i,"date_start");
+ $due_date = $adb->query_result($result,$i,"due_date");
+ if($calendar['view'] != 'day')
+ $element['startdate'] = getDisplayDate($date_start);
+ $element['duedate'] = getDisplayDate($due_date);
+
$id = $adb->query_result($result,$i,"activityid");
$subject = $adb->query_result($result,$i,"subject");
$status = $adb->query_result($result,$i,"status");
@@ -1646,20 +1654,34 @@
}
$list_view = "";
//labels of listview header
- $header = Array('0'=>'#',
+ if($cal['view'] == 'day')
+ {
+ $header = Array('0'=>'#','1'=>$mod_strings['LBL_TIME'],'2'=>$mod_strings['LBL_LIST_DUE_DATE'],
+ '3'=>$mod_strings['LBL_TODO'],'4'=>$mod_strings['LBL_STATUS'],'5'=>$mod_strings['LBL_ACTION'],'6'=>$mod_strings['LBL_ASSINGEDTO'],);
+ $header_width = Array('0'=>'5%','1'=>'10%','2'=>'10%','3'=>'38%','4'=>'10%','5'=>'10%', '6'=>'15%', );
+ }
+ else
+ {
+
+ $header = Array('0'=>'#',
'1'=>$mod_strings['LBL_TIME'],
- '2'=>$mod_strings['LBL_TODO'],
- '3'=>$mod_strings['LBL_STATUS'],
- '4'=>$mod_strings['LBL_ACTION'],
- '5'=>$mod_strings['LBL_ASSINGEDTO'],
+ '2'=>$mod_strings['LBL_APP_START_DATE'],
+ '3'=>$mod_strings['LBL_LIST_DUE_DATE'],
+ '4'=>$mod_strings['LBL_TODO'],
+ '5'=>$mod_strings['LBL_STATUS'],
+ '6'=>$mod_strings['LBL_ACTION'],
+ '7'=>$mod_strings['LBL_ASSINGEDTO'],
);
- $header_width = Array('0'=>'5%',
+ $header_width = Array('0'=>'5%',
'1'=>'10%',
- '2'=>'48%',
+ '2'=>'10%',
'3'=>'10%',
- '4'=>'10%',
- '5'=>'15%',
+ '4'=>'28%',
+ '5'=>'10%',
+ '6'=>'10%',
+ '7'=>'15%',
);
+ }
$list_view .="<table align='center' border='0' cellpadding='5' cellspacing='0' width='98%'>
<tr><td colspan='3'> </td></tr>";
//checking permission for Create/Edit Operation
@@ -1675,7 +1697,7 @@
$list_view .="<tr><td> </td>";
}
$list_view .="<td align='center' width='60%'> </td>
- <td align='right' width='30%'> </td>
+ <td align='right' width='28%'> </td>
</tr>
</table>
More information about the vtigercrm-commits
mailing list