[Vtigercrm-commits] [vtiger-commits] r10397 - in /vtigercrm/branches/5.0.3/modules: Accounts/ListViewTop.php CustomView/ListViewTop.php HelpDesk/ListTickets.php Leads/ListViewTop.php Potentials/ListViewTop.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 8 09:47:25 EST 2007
Author: saraj
Date: Thu Mar 8 07:47:16 2007
New Revision: 10397
Log:
fix for homepage records-long text. --Minnie
Modified:
vtigercrm/branches/5.0.3/modules/Accounts/ListViewTop.php
vtigercrm/branches/5.0.3/modules/CustomView/ListViewTop.php
vtigercrm/branches/5.0.3/modules/HelpDesk/ListTickets.php
vtigercrm/branches/5.0.3/modules/Leads/ListViewTop.php
vtigercrm/branches/5.0.3/modules/Potentials/ListViewTop.php
Modified: vtigercrm/branches/5.0.3/modules/Accounts/ListViewTop.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/ListViewTop.php (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/ListViewTop.php Thu Mar 8 07:47:16 2007
@@ -74,7 +74,7 @@
'AMOUNT' => ($account['amount']),
);
- $value[]='<a href="index.php?action=DetailView&module=Accounts&record='.$account['accountid'].'">'.$account['accountname'].'</a>';
+ $value[]='<a href="index.php?action=DetailView&module=Accounts&record='.$account['accountid'].'">'.substr($account['accountname'],0,20).'...'.'</a>';
$value[]=convertFromDollar($account['amount'],$rate);
$entries[$account['accountid']]=$value;
}
Modified: vtigercrm/branches/5.0.3/modules/CustomView/ListViewTop.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/CustomView/ListViewTop.php (original)
+++ vtigercrm/branches/5.0.3/modules/CustomView/ListViewTop.php Thu Mar 8 07:47:16 2007
@@ -104,7 +104,7 @@
'MODULE' => $metriclist['module']
);
- $value[]='<a href="index.php?action=ListView&module='.$metriclist['module'].'&viewname='.$metriclist['id'].'">'.$metriclist['name'].'</a>';
+ $value[]='<a href="index.php?action=ListView&module='.$metriclist['module'].'&viewname='.$metriclist['id'].'">'.substr($metriclist['name'],0,20).'...'.'</a>';
$value[]='<a href="index.php?action=ListView&module='.$metriclist['module'].'&viewname='.$metriclist['id'].'">'.$metriclist['count'].'</a>';
$entries[$metriclist['id']]=$value;
}
Modified: vtigercrm/branches/5.0.3/modules/HelpDesk/ListTickets.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/HelpDesk/ListTickets.php (original)
+++ vtigercrm/branches/5.0.3/modules/HelpDesk/ListTickets.php Thu Mar 8 07:47:16 2007
@@ -59,7 +59,7 @@
{
$value=array();
$ticketid = $adb->query_result($tktresult,$i,"ticketid");
- $value[]= '<a href="index.php?action=DetailView&module=HelpDesk&record='.$adb->query_result($tktresult,$i,"ticketid").'">'.$adb->query_result($tktresult,$i,"title").'</a>';
+ $value[]= '<a href="index.php?action=DetailView&module=HelpDesk&record='.$adb->query_result($tktresult,$i,"ticketid").'">'.substr($adb->query_result($tktresult,$i,"title"),0,20).'...'.'</a>';
$value[]=$ticketid;
$parent_id = $adb->query_result($tktresult,$i,"parent_id");
Modified: vtigercrm/branches/5.0.3/modules/Leads/ListViewTop.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Leads/ListViewTop.php (original)
+++ vtigercrm/branches/5.0.3/modules/Leads/ListViewTop.php Thu Mar 8 07:47:16 2007
@@ -114,7 +114,7 @@
'LEAD_ID' => $lead['id'],
);
- $value[]= '<a href="index.php?action=DetailView&module=Leads&record='.$lead_fields['LEAD_ID'].'">'.$lead_fields['LEAD_NAME'].'</a>';
+ $value[]= '<a href="index.php?action=DetailView&module=Leads&record='.$lead_fields['LEAD_ID'].'">'.substr($lead_fields['LEAD_NAME'],0,20).'...'.'</a>';
$value[]=$lead_fields['COMPANY'];
$value[]=$lead_fields['ANNUAL_REVENUE'];
$value[]=$lead_fields['LEAD_STATUS'];
Modified: vtigercrm/branches/5.0.3/modules/Potentials/ListViewTop.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Potentials/ListViewTop.php (original)
+++ vtigercrm/branches/5.0.3/modules/Potentials/ListViewTop.php Thu Mar 8 07:47:16 2007
@@ -70,7 +70,7 @@
);
$potentialid=$adb->query_result($list_result,$i,'potentialid');
$value=array();
- $value[]='<a href="index.php?action=DetailView&module=Potentials&record='.$adb->query_result($list_result,$i,"potentialid").'">'.$adb->query_result($list_result,$i,"potentialname").'</a>';
+ $value[]='<a href="index.php?action=DetailView&module=Potentials&record='.$adb->query_result($list_result,$i,"potentialid").'">'.substr($adb->query_result($list_result,$i,"potentialname"),0,20).'...'.'</a>';
$value[]='<a href="index.php?action=DetailView&module=Accounts&record='.$adb->query_result($list_result,$i,'accountid').'">'.$adb->query_result($list_result,$i,"accountname").'</a>';
$value[]=convertFromDollar($adb->query_result($list_result,$i,'amount'),$rate);
$value[]=getDisplayDate($adb->query_result($list_result,$i,'closingdate'));
More information about the vtigercrm-commits
mailing list