[Vtigercrm-commits] [vtiger-commits] r11016 - in /vtigercrm/branches/5.0.3: Smarty/templates/DetailViewUI.tpl include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 24 08:27:20 EDT 2007
Author: richie
Date: Thu May 24 06:26:54 2007
New Revision: 11016
Log:
modified the secondary email links to open in outside mail clients -sri
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
Modified: vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl Thu May 24 06:26:54 2007
@@ -33,7 +33,11 @@
</td>
{elseif $keyid eq '13' || $keyid eq '104'} <!--Email-->
<td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onmouseover="hndMouseOver({$keyid},'{$label|escape:'quotes'}');" onmouseout="fnhide('crmspanid');"> <span id="dtlview_{$label}">
+ {if $keyfldname == 'email' || $keyfldname == 'email1'}
<a href="javascript:InternalMailer({$ID},{$FIELD_ID},'{$MODULE}','record_id')">{$keyval}</a>
+ {else}
+ <a href="mailto:{$keyval}" target="_blank" >{$keyval}</a>
+ {/if}
</span>
<div id="editarea_{$label}" style="display:none;">
<input class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" type="text" id="txtbox_{$label}" name="{$keyfldname}" maxlength='100' value="{$keyval|escape}"></input>
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Thu May 24 06:26:54 2007
@@ -1237,8 +1237,8 @@
}
elseif($uitype == 13 || $uitype == 104)
{
- //if(useInternalMailer() == 1)
- //{
+ if($fieldname == "email" || $fieldname == "email1")
+ {
//check added for email link in user detailview
if($module == "Users")
$querystr="SELECT fieldid FROM vtiger_field WHERE tabid=".getTabid($module)." and uitype=104;";
@@ -1248,9 +1248,10 @@
//Change this index 0 - to get the vtiger_fieldid based on email1 or email2
$fieldid = $adb->query_result($queryres,0,'fieldid');
$value = '<a href="javascript:InternalMailer('.$entity_id.','.$fieldid.',\''.$module.'\',\'record_id\')">'.$temp_val.'</a>';
- //}
- //else
- // $value = '<a href="mailto:'.$field_val.'">'.$temp_val.'</a>';
+ }
+ else
+ $value = '<a href="mailto:'.$field_val.'">'.$temp_val.'</a>';
+
}
elseif($uitype == 56)
{
More information about the vtigercrm-commits
mailing list