[Vtigercrm-commits] [vtiger-commits] r6293 - /vtigercrm/trunk/include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 22 10:43:18 EDT 2006
Author: saraj
Date: Mon May 22 08:43:14 2006
New Revision: 6293
Log:
Temporary function added for related listview headers
Modified:
vtigercrm/trunk/include/utils/ListViewUtils.php
Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Mon May 22 08:43:14 2006
@@ -2575,4 +2575,48 @@
}
}
+//Temp function to be be deleted
+function getRelatedTableHeaderNavigation($navigation_array, $url_qry,$module='',$action_val='CallRelatedList',$viewid='')
+{
+ global $log;
+ $log->debug("Entering getTableHeaderNavigation(".$navigation_array.",". $url_qry.",".$module.",".$action_val.",".$viewid.") method ...");
+ global $theme;
+ $theme_path="themes/".$theme."/";
+ $image_path=$theme_path."images/";
+ $output = '<td align="right" style="padding="5px;">';
+ if(($navigation_array['prev']) != 0)
+ {
+ $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start=1&viewname='.$viewid.'" title="First"><img src="'.$image_path.'start.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start='.$navigation_array['prev'].'&viewname='.$viewid.'"><img src="'.$image_path.'previous.gif" border="0" align="absmiddle"></a> ';
+
+ }
+ else
+ {
+ $output .= '<img src="'.$image_path.'start_disabled.gif" border="0" align="absmiddle"> ';
+ $output .= '<img src="'.$image_path.'previous_disabled.gif" border="0" align="absmiddle"> ';
+ }
+ for ($i=$navigation_array['first'];$i<=$navigation_array['end'];$i++){
+ if ($navigation_array['current']==$i){
+ $output .='<b>'.$i.'</b> ';
+ }
+ else{
+ $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start='.$i.'&viewname='.$viewid.'" >'.$i.'</a> ';
+ }
+ }
+ if(($navigation_array['next']) !=0)
+ {
+ $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start='.$navigation_array['next'].'&viewname='.$viewid.'"><img src="'.$image_path.'next.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start='.$navigation_array['verylast'].'&viewname='.$viewid.'"><img src="'.$image_path.'end.gif" border="0" align="absmiddle"></a> ';
+ }
+ else
+ {
+ $output .= '<img src="'.$image_path.'next_disabled.gif" border="0" align="absmiddle"> ';
+ $output .= '<img src="'.$image_path.'end_disabled.gif" border="0" align="absmiddle"> ';
+ }
+ $output .= '</td>';
+ $log->debug("Exiting getTableHeaderNavigation method ...");
+ return $output;
+}
+
+
?>
More information about the vtigercrm-commits
mailing list