0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
vtiger
/
5.0.4
/
standard
/
htdocs
/
Smarty
/
templates
/
[
Home
]
File: DetailViewFields.tpl
{*<!-- /********************************************************************************* ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * ********************************************************************************/ -->*} <!-- This file is used to display the fields based on the ui type in detailview --> {if $keyid eq '1' || $keyid eq 2 || $keyid eq '11' || $keyid eq '7' || $keyid eq '9' || $keyid eq '55' || $keyid eq '71' || $keyid eq '72' || $keyid eq '255'} <!--TextBox--> <td width=25% class="dvtCellInfo" align="left"> {if $keyid eq '55' || $keyid eq '255'}<!--SalutationSymbol--> {if $keyaccess eq $APP.LBL_NOT_ACCESSIBLE} <font color='red'>{$APP.LBL_NOT_ACCESSIBLE}</font> {else} {$keysalut} {/if} {*elseif $keyid eq '71' || $keyid eq '72'} <!--CurrencySymbol--> {$keycursymb*} {/if} <span id ="dtlview_{$label}">{$keyval}</span> </td> {elseif $keyid eq '13'} <!--Email--> <td width=25% class="dvtCellInfo" align="left"> {if $smarty.session.internal_mailer eq 1} <a href="javascript:InternalMailer({$ID},{$keyfldid},'{$keyfldname}','{$MODULE}','record_id');">{$keyval}</a> {else} <a href="mailto:{$keyval}" target="_blank" >{$keyval}</a> {/if} </span> </td> {elseif $keyid eq '15' || $keyid eq '16' || $keyid eq '111'} <!--ComboBox--> <td width=25% class="dvtCellInfo" align="left"> {foreach item=arr from=$keyoptions} {if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE} {assign var=keyval value=$APP.LBL_NOT_ACCESSIBLE} {assign var=fontval value='red'} {else} {assign var=fontval value=''} {/if} {/foreach} <font color="{$fontval}">{$keyval}</font> </td> {elseif $keyid eq '33'} <td width=25% class="dvtCellInfo" align="left"> {foreach item=sel_val from=$keyoptions } {if $sel_val[2] eq 'selected'} {if $selected_val neq ''} {assign var=selected_val value=$selected_val|cat:', '} {/if} {assign var=selected_val value=$selected_val|cat:$sel_val[0]} {/if} {/foreach} {$selected_val|replace:"\n":"<br> "} </td> {elseif $keyid eq '17'} <!--WebSite--> <td width=25% class="dvtCellInfo" align="left"> <a href="http://{$keyval}" target="_blank">{$keyval}</a> </td> {elseif $keyid eq '19' || $keyid eq '20'} <!--TextArea/Description--> <td width=100% class="dvtCellInfo" align="left"> <!--To give hyperlink to URL--> {$keyval|regex_replace:"/(^|[\n ])([\w]+?:\/\/.*?[^ \"\n\r\t<]*)/":"\\1<a href=\"\\2\" target=\"_blank\">\\2</a>"|regex_replace:"/(^|[\n ])((www|ftp)\.[\w\-]+\.[\w\-.\~]+(?:\/[^ \"\t\n\r<]*)?)/":"\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>"|regex_replace:"/(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)/i":"\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>"|regex_replace:"/,\"|\.\"|\)\"|\)\.\"|\.\)\"/":"\""|replace:"\n":"<br> "} </td> {elseif $keyid eq '21' || $keyid eq '24' || $keyid eq '22'} <!--TextArea/Street--> <td width=25% class="dvtCellInfo" align="left"> <span id ="dtlview_{$label}">{$keyval}</span> </td> {elseif $keyid eq '50' || $keyid eq '73' || $keyid eq '51' || $keyid eq '57' || $keyid eq '59' || $keyid eq '75' || $keyid eq '81' || $keyid eq '76' || $keyid eq '78' || $keyid eq '80'} <!--AccountPopup--> <td width=25% class="dvtCellInfo" align="left"> <a href="{$keyseclink}">{$keyval}</a> </td> {elseif $keyid eq 82} <!--Email Body--> <td colspan="3" width=100% class="dvtCellInfo" align="left"> {$keyval} </td> {elseif $keyid eq '53'} <!--Assigned To--> <td width=25% class="dvtCellInfo" align="left"> {if $keyseclink eq ''} {$keyval} {else} <a href="{$keyseclink}">{$keyval}</a> {/if} </td> {elseif $keyid eq '56'} <!--CheckBox--> <td width=25% class="dvtCellInfo" align="left">{$keyval} </td> {elseif $keyid eq 83}<!-- Handle the Tax in Inventory --> <td align="right" class="dvtCellLabel"> {$APP.LBL_VAT} {$APP.COVERED_PERCENTAGE} </td> <td class="dvtCellInfo" align="left"> {$VAT_TAX} </td> <td colspan="2" class="dvtCellInfo"> </td> </tr> <tr> <td align="right" class="dvtCellLabel"> {$APP.LBL_SALES} {$APP.LBL_TAX} {$APP.COVERED_PERCENTAGE} </td> <td class="dvtCellInfo" align="left"> {$SALES_TAX} </td> <td colspan="2" class="dvtCellInfo"> </td> </tr> <tr> <td align="right" class="dvtCellLabel"> {$APP.LBL_SERVICE} {$APP.LBL_TAX} {$APP.COVERED_PERCENTAGE} </td> <td class="dvtCellInfo" align="left" > {$SERVICE_TAX} </td> {elseif $keyid eq 69}<!-- for Image Reflection --> <td align="left" width=25%"> {$keyval}</td> {else} <td class="dvtCellInfo" align="left" width=25%"> {$keyval}</td> {/if}