[Vtigercrm-commits] [vtiger-commits] r7995 - /vtigercrm/trunk/modules/Activities/OpenListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jul 13 12:20:26 EDT 2006
Author: richie
Date: Thu Jul 13 10:20:22 2006
New Revision: 7995
Log:
API docs and logs updated
Modified:
vtigercrm/trunk/modules/Activities/OpenListView.php
Modified: vtigercrm/trunk/modules/Activities/OpenListView.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/OpenListView.php (original)
+++ vtigercrm/trunk/modules/Activities/OpenListView.php Thu Jul 13 10:20:22 2006
@@ -20,6 +20,11 @@
* Contributor(s): ______________________________________..
********************************************************************************/
+/**
+ * Function to get Pending/Upcoming activities
+ * @param integer $mode - number to differentiate upcoming and pending activities
+ * return array $values - activities record in array format
+ */
function getPendingActivities($mode)
{
global $log;
@@ -224,6 +229,7 @@
}
}
// Code by Jaguar Ends
+ $entries['noofactivities'] = $noofrecords;
$entries[$event['id']] = array(
'0' => '<a href="index.php?action=DetailView&module='.$event["module"].'&activity_mode='.$activity_type.'&record='.$event["id"].''.$return_url.'" style="'.$font_color.';">'.$event["name"].'</a>',
'IMAGE' => '<IMG src="'.$image_path.$event["type"].'s.gif">',
@@ -235,12 +241,16 @@
'RECURRINGTYPE' => ereg_replace('--','',$event['recurringtype']),
);
}
- if($noofrecords > 0)
- $entries['noofactivities'] = $noofrecords;
$values=Array('Title'=>$title,'Header'=>$header,'Entries'=>$entries);
$log->debug("Exiting getPendingActivities method ...");
return $values;
}
+
+/**
+ * Function creates HTML to display ActivityView selection box
+ * @param string $activity_view - activity view
+ * return string $ACTIVITY_VIEW_SELECT_OPTION - HTML selection box
+ */
function getActivityview($activity_view)
{
global $log;
More information about the vtigercrm-commits
mailing list