[Vtigercrm-commits] [vtiger-commits] r6238 - /vtigercrm/trunk/modules/Users/DetailView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 20 10:39:29 EDT 2006


Author: saraj
Date: Sat May 20 08:39:26 2006
New Revision: 6238

Log:
changes made to get hour format and day start and end time from user

Modified:
    vtigercrm/trunk/modules/Users/DetailView.php

Modified: vtigercrm/trunk/modules/Users/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Users/DetailView.php (original)
+++ vtigercrm/trunk/modules/Users/DetailView.php Sat May 20 08:39:26 2006
@@ -247,8 +247,15 @@
 	$smarty->assign("GROUPASSIGNED",$group_lists);
 }
 $smarty->assign("COLORASSIGNED", "<div style='background-color:".$focus->cal_color.";'>".$focus->cal_color."</div>");
-
-
+if($focus->hour_format == 'am/pm')
+{
+	$smarty->assign("CAL_HRFORMAT", "11:00pm");
+}
+else
+{
+	$smarty->assign("CAL_HRFORMAT", "23:00");
+}
+$smarty->assign("CAL_HRDURATION", $focus->start_hour."&nbsp;ends at&nbsp;".$focus->end_hour);
 $smarty->assign("ACTIVITY_VIEW", $focus->activity_view);
 $smarty->assign("LEAD_VIEW", $focus->lead_view);
 $smarty->assign("TITLE", $focus->title);





More information about the vtigercrm-commits mailing list