[Vtigercrm-commits] [vtiger-commits] r4350 - in /vtigercrm/trunk: Smarty/templates/ListView.tpl include/utils/CommonUtils.php include/utils/ListViewUtils.php modules/Contacts/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 11:50:18 EST 2006


Author: saraj
Date: Mon Mar 20 09:50:08 2006
New Revision: 4350

Log:
image marquee for contacts has been removed

Modified:
    vtigercrm/trunk/Smarty/templates/ListView.tpl
    vtigercrm/trunk/include/utils/CommonUtils.php
    vtigercrm/trunk/include/utils/ListViewUtils.php
    vtigercrm/trunk/modules/Contacts/ListView.php

Modified: vtigercrm/trunk/Smarty/templates/ListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListView.tpl Mon Mar 20 09:50:08 2006
@@ -16,9 +16,6 @@
 <script language="JavaScript" type="text/javascript" src="include/js/general.js"></script>
 <script language="JavaScript" type="text/javascript" src="include/js/search.js"></script>
 {if $MODULE eq 'Contacts'}
-{$IMAGELISTS}
-<script language="JavaScript" type="text/javascript" src="include/js/thumbnail.js"></script>
-<script language="JavaScript" type="text/javascript" src="include/js/conveyor.js"></script>
 <div id="dynloadarea" style=float:left;position:absolute;left:350px;top:150px;></div>
 {/if}
 <script language="JavaScript" type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
@@ -61,7 +58,7 @@
                                         <td style="padding-right:0px"><a href="index.php?module={$MODULE}&action=EditView&return_action=DetailView&parenttab={$CATEGORY}"><img src="{$IMAGE_PATH}btnL3Add.gif" alt="Create {$MODULE}..." title="Create {$MODULE}..." border=0></a></td>
                                         {/if}
 					 <td style="padding-right:0px"><a href="#" onClick="moveMe('searchAcc');showhide('searchAcc')" ><img src="{$IMAGE_PATH}btnL3Search.gif" alt="Search in {$MODULE}..." title="Search in {$MODULE}..." border=0></a></a></td>
-					<td style="padding-right:0px"><a href="#" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}btnL3Search.gif" alt="Search in {$MODULE}..." title="Search in {$MODULE}..." border=0></a>
+					<td style="padding-right:0px"><a href="#" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}tbarChat.gif" alt="Search in {$MODULE}..." title="Search in {$MODULE}..." border=0></a>
                     			 </td>	
 				</tr>
 				</table>
@@ -367,5 +364,17 @@
    </tr>
 </table>
 <div id="status" style="display:none;position:absolute;background-color:#bbbbbb;left:887px;top:0px;height:17px;white-space:nowrap;"">Processing Request...</div>
-
-
+{if $MODULE eq 'Contacts'}
+
+{literal}
+<script>
+function modifyimage(divid,imagename)
+{
+    document.getElementById('dynloadarea').innerHTML = '<img width="260" height="200" src="'+imagename+'" class="thumbnail">';
+    show(divid);
+}
+</script>
+{/literal}
+{/if}
+
+

Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Mon Mar 20 09:50:08 2006
@@ -987,38 +987,6 @@
     return $update_info;
 }
 
-/**
- * This function is used to get the Contact Images with the script for scrolling and the thumbnailview .
- */
-
-function getContactImages($parenttab)
-{
-    global $adb;
-	$imagelists = '<script>var leftrightslide=new Array();';
-	$imagenamelists='<script>var dynimages=new Array();';
-   	$imagecount=0;
-    $query='select imagename,firstname,lastname,contactid from contactdetails inner join crmentity on contactdetails.contactid=crmentity.crmid where deleted = 0 ';
-    $result = $adb->query($query);
-    $noofimages = $adb->num_rows($result);
-	for($j=0; $j<$noofimages; $j++)
-    {
-		$imagename=$adb->query_result($result,$j,'imagename');
-		$imgpath = 'test/contact/'.$imagename;
-		$id = $adb->query_result($result,$j,'contactid');
-		$contactname=$adb->query_result($result,$j,'firstname').' '.$adb->query_result($result,$j,'lastname');
-		if($imagename != '')
-		{
-			$imagelists .= 'leftrightslide['.$imagecount.']= \'<div class=thumbnail><a href='.$imgpath.' onMouseover=modifyimage("dynloadarea",'.$imagecount.') onMouseOut=document.getElementById("dynloadarea").style.display="none"; target="_blank"><img src="'.$imgpath.'" border=1 height=40 width=80></a><div class="thumbnailcaption"><a href="index.php?action=DetailView&module=Contacts&record='.$id.'&parenttab='.$parenttab.'">'.$contactname.'</a></div></div>\';';
-			$imagenamelists .='dynimages['.$imagecount.']=["'.$imgpath.'","index.php?action=DetailView&module=Contacts&record='.$id.'&parenttab='.$parenttab.'"];';
-			$imagecount++;
-		}	
-	}
-	$imagelists.= '</script>';
-	$imagenamelists.='</script>';
-	$imagelists = $imagelists.$imagenamelists;	
-	if($imagecount>0)	
-		return $imagelists;
-}
 
 /**
  * This function is used to get the Product Images for the given Product  .

Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Mon Mar 20 09:50:08 2006
@@ -1147,11 +1147,11 @@
                                                  if($imagename != '')
                                                  {
                                                          $imgpath = "test/contact/".$imagename;
-                                                         $contact_image='&nbsp;&nbsp;<img src="'.$imgpath.'" width="20" height="20" border="0">';
+                                                         $contact_image='&nbsp;&nbsp;<img align="right" src="'.$imgpath.'" width="20" height="20" border="0" onMouseover=modifyimage("dynloadarea","'.$imgpath.'"); onMouseOut=hide("dynloadarea");>';
                                                  }
                                         }
 					//Commented to give link even to the first name - Jaguar
-					$value = '<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&parenttab='.$tabname.'">'.$temp_val.'</a>'.$contact_image;
+					$value = $contact_image.'<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&parenttab='.$tabname.'">'.$temp_val.'</a>';
 				}
 				elseif($module == "Activities")
                                 {

Modified: vtigercrm/trunk/modules/Contacts/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/ListView.php (original)
+++ vtigercrm/trunk/modules/Contacts/ListView.php Mon Mar 20 09:50:08 2006
@@ -201,7 +201,6 @@
 $smarty->assign("BUTTONS",$other_text);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
-$smarty->assign("IMAGELISTS",getContactImages($category));
 //Retreiving the no of rows
 $noofrows = $adb->num_rows($list_result);
 





More information about the vtigercrm-commits mailing list