[Vtigercrm-commits] [vtiger-commits] r9748 - /vtigercrm/branches/5.0.2/modules/Calendar/ActivityAjax.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Oct 30 08:47:13 EST 2006
Author: richie
Date: Mon Oct 30 06:47:04 2006
New Revision: 9748
Log:
files added to integrate Home page activities feature --Minnie
Modified:
vtigercrm/branches/5.0.2/modules/Calendar/ActivityAjax.php
Modified: vtigercrm/branches/5.0.2/modules/Calendar/ActivityAjax.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Calendar/ActivityAjax.php (original)
+++ vtigercrm/branches/5.0.2/modules/Calendar/ActivityAjax.php Mon Oct 30 06:47:04 2006
@@ -19,6 +19,27 @@
$cal_log =& LoggerManager::getLogger('calendar');
$cal_log->debug("In CalendarAjax file");
$mysel = $_REQUEST['view'];
+if($_REQUEST['file'] == 'OpenListView')
+{
+ require_once('Smarty_setup.php');
+ $smarty = new vtigerCRM_Smarty;
+ require_once("modules/Calendar/OpenListView.php");
+ $smarty->assign("APP",$app_strings);
+ $smarty->assign("IMAGE_PATH",$image_path);
+ if($_REQUEST['mode'] == '0')
+ {
+ $activities[0] = getPendingActivities(0);
+ $smarty->assign("ACTIVITIES",$activities);
+ $smarty->display("upcomingActivities.tpl");
+ }
+ else if($_REQUEST['mode'] == '1')
+ {
+ $activities[1] = getPendingActivities(1);
+ $smarty->assign("ACTIVITIES",$activities);
+ $smarty->display("pendingActivities.tpl");
+ }
+ die();
+}
$calendar_arr = Array();
$calendar_arr['IMAGE_PATH'] = $image_path;
$date_data = array();
More information about the vtigercrm-commits
mailing list