[Vtigercrm-commits] [vtiger-commits] r3995 - /vtigercrm/trunk/include/utils/DetailViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Feb 28 06:04:00 EST 2006
Author: saraj
Date: Tue Feb 28 04:03:55 2006
New Revision: 3995
Log:
added contact image
Modified:
vtigercrm/trunk/include/utils/DetailViewUtils.php
Modified: vtigercrm/trunk/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/DetailViewUtils.php Tue Feb 28 04:03:55 2006
@@ -183,10 +183,14 @@
if($imagename != '')
{
$imgpath = "test/contact/".$imagename;
- $label_fld[] ='<div style="position:absolute;height=100px"><img class="thumbnail" src="'.$imgpath.'" width="80" height="75" border="0"></div> '.$mod_strings[$fieldlabel];
+ $label_fld[] =$mod_strings[$fieldlabel];
+ $label_fld["cntimage"] ='<div style="position:absolute;height=100px"><img class="thumbnail" src="'.$imgpath.'" width="60" height="60" border="0"></div> '.$mod_strings[$fieldlabel];
}
else
- $label_fld[] =$mod_strings[$fieldlabel];
+ {
+ $label_fld[] =$mod_strings[$fieldlabel];
+ }
+
}
else
{
@@ -929,7 +933,7 @@
$tabid = $adb->query_result($result,$i,"tabid");
$output .= '<tr>';
$custfld = getDetailViewOutputHtml($uitype, $fieldname, $fieldlabel, $col_fields,$generatedtype,$tabid);
- $label_data[] = array($custfld[0]=>array("value"=>$custfld[1],"ui"=>$custfld[2],"options"=>$custfld["options"],"secid"=>$custfld["secid"],"link"=>$custfld["link"],"cursymb"=>$custfld["cursymb"],"salut"=>$custfld["salut"],"tablename"=>$fieldtablename,"fldname"=>$fieldname));
+ $label_data[] = array($custfld[0]=>array("value"=>$custfld[1],"ui"=>$custfld[2],"options"=>$custfld["options"],"secid"=>$custfld["secid"],"link"=>$custfld["link"],"cursymb"=>$custfld["cursymb"],"salut"=>$custfld["salut"],"cntimage"=>$custfld["cntimage"],"tablename"=>$fieldtablename,"fldname"=>$fieldname));
$i++;
if($i<$noofrows)
{
@@ -943,7 +947,7 @@
$tabid = $adb->query_result($result,$i,"tabid");
$custfld = getDetailViewOutputHtml($uitype, $fieldname, $fieldlabel, $col_fields,$generatedtype,$tabid);
- $label_data[] = array($custfld[0]=>array("value"=>$custfld[1],"ui"=>$custfld[2],"options"=>$custfld["options"],"secid"=>$custfld["secid"],"link"=>$custfld["link"],"cursymb"=>$custfld["cursymb"],"salut"=>$custfld["salut"],"tablename"=>$fieldtablename,"fldname"=>$fieldname));
+ $label_data[] = array($custfld[0]=>array("value"=>$custfld[1],"ui"=>$custfld[2],"options"=>$custfld["options"],"secid"=>$custfld["secid"],"link"=>$custfld["link"],"cursymb"=>$custfld["cursymb"],"salut"=>$custfld["salut"],"cntimage"=>$custfld["cntimage"],"tablename"=>$fieldtablename,"fldname"=>$fieldname));
}
}
More information about the vtigercrm-commits
mailing list