From e4009275771fe35665f52f26786308c9b4e266eb Mon Sep 17 00:00:00 2001 From: Uma <uma.s@vtiger.com> Date: Mon, 4 May 2020 16:51:34 +0530 Subject: [PATCH] Tooltip removed from pkg folder --- pkg/vtiger/modules/Tooltip/manifest.xml | 39 --- .../modules/Tooltip/ComputeTooltip.php | 41 --- .../Tooltip/modules/Tooltip/EditQuickView.php | 54 ---- .../Tooltip/modules/Tooltip/QuickView.php | 43 --- .../Tooltip/SaveTooltipInformation.php | 108 ------- .../Tooltip/modules/Tooltip/Tooltip.js | 9 - .../Tooltip/modules/Tooltip/Tooltip.php | 58 ---- .../Tooltip/modules/Tooltip/TooltipAjax.php | 13 - .../modules/Tooltip/TooltipHandler.php | 25 -- .../modules/Tooltip/TooltipHeaderScript.js | 107 ------- .../modules/Tooltip/TooltipSettings.js | 82 ------ .../Tooltip/modules/Tooltip/TooltipUtils.php | 267 ------------------ .../modules/Tooltip/modules/Tooltip/index.php | 13 - .../modules/Tooltip/language/en_us.lang.php | 22 -- .../Tooltip/modules/Tooltip/schema.xml | 15 - .../Tooltip/templates/DetailQuickView.tpl | 65 ----- .../Tooltip/templates/EditQuickView.tpl | 65 ----- .../modules/Tooltip/templates/Quickview.tpl | 64 ----- .../modules/Tooltip/templates/default.tpl | 10 - 19 files changed, 1100 deletions(-) delete mode 100644 pkg/vtiger/modules/Tooltip/manifest.xml delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/ComputeTooltip.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/EditQuickView.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/QuickView.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/SaveTooltipInformation.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.js delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipAjax.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHandler.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHeaderScript.js delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipSettings.js delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipUtils.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/index.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/language/en_us.lang.php delete mode 100644 pkg/vtiger/modules/Tooltip/modules/Tooltip/schema.xml delete mode 100644 pkg/vtiger/modules/Tooltip/templates/DetailQuickView.tpl delete mode 100644 pkg/vtiger/modules/Tooltip/templates/EditQuickView.tpl delete mode 100644 pkg/vtiger/modules/Tooltip/templates/Quickview.tpl delete mode 100644 pkg/vtiger/modules/Tooltip/templates/default.tpl diff --git a/pkg/vtiger/modules/Tooltip/manifest.xml b/pkg/vtiger/modules/Tooltip/manifest.xml deleted file mode 100644 index 454ea8503..000000000 --- a/pkg/vtiger/modules/Tooltip/manifest.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version='1.0'?> -<module> - <exporttime>2009-05-15 13:19:52</exporttime> - <name>Tooltip</name> - <label>Tool Tip</label> - <parent></parent> - <type>extension</type> - <version>1.2</version> - <dependencies> - <vtiger_version>5.1.0</vtiger_version> - <vtiger_max_version>7.*</vtiger_max_version> - </dependencies> - <migrations> - <migration version='1.0'> - </migration> - </migrations> - <tables> - <table> - <name>vtiger_quickview</name> - <sql><![CDATA[CREATE TABLE `vtiger_quickview` ( - `fieldid` int(19) NOT NULL, - `related_fieldid` int(19) NOT NULL, - `sequence` int(19) NOT NULL, - `currentview` int(19) NOT NULL, - KEY `fk_1_vtiger_quickview` (`fieldid`), - CONSTRAINT `fk_1_vtiger_quickview` FOREIGN KEY (`fieldid`) REFERENCES `vtiger_field` (`fieldid`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8]]></sql> - </table> - </tables> - <customlinks> - <customlink> - <linktype>HEADERSCRIPT</linktype> - <linklabel>ToolTip_HeaderScript</linklabel> - <linkurl><![CDATA[modules/Tooltip/TooltipHeaderScript.js]]></linkurl> - <linkicon><![CDATA[]]></linkicon> - <sequence>0</sequence> - </customlink> - </customlinks> -</module> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/ComputeTooltip.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/ComputeTooltip.php deleted file mode 100644 index 2433ecb79..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/ComputeTooltip.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ -require_once 'include/utils/CommonUtils.php'; -require_once 'include/Webservices/DescribeObject.php'; -require_once 'include/Webservices/Query.php'; -require_once 'modules/Tooltip/TooltipUtils.php'; - -global $current_user,$log; - -$modname = vtlib_purify($_REQUEST['modname']); -$id = vtlib_purify($_REQUEST['id']); -$fieldname = vtlib_purify($_REQUEST['fieldname']); -$tabid = getTabid($modname); -$result = ToolTipExists($fieldname,$tabid); -if($result !== false){ -//get tooltip information - $viewid = 1; //viewid is 1 by default - $descObject = vtws_describe($modname,$current_user); - $id = vtws_getWebserviceEntityId($modname, $id); - $sql = "select * from $modname where id ='$id';"; - $result = vtws_query($sql, $current_user); - if(empty($result)){ - exit(0); - } - $result = vttooltip_processResult($result, $descObject); - $text = getToolTipText($viewid, $fieldname,$modname,$result); - $tip = getToolTip($text); - echo $tip; -}else { - echo false; -} - -?> \ No newline at end of file diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/EditQuickView.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/EditQuickView.php deleted file mode 100644 index a05a06b21..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/EditQuickView.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php -/*+******************************************************************************** - * 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. - ********************************************************************************/ - -require_once 'include/utils/utils.php'; -require_once 'modules/Tooltip/TooltipUtils.php'; - -global $mod_strings; -global $app_strings; -global $app_list_strings; - -global $adb,$currentModule; -global $theme; - -$smarty=new vtigerCRM_Smarty; - -$theme_path="themes/".$theme."/"; -$image_path=$theme_path."images/"; - -$module_name = vtlib_purify($_REQUEST['module_name']); -$field_name = vtlib_purify($_REQUEST['field_name']); - -$related_fields = getFieldList($module_name,$field_name); - -$fieldlist = array(); -$tabid = getTabid($module_name); - -$sql = "select * from vtiger_field where fieldname= ? and tabid= ? and vtiger_field.presence in (0,2)"; -$result = $adb->pquery($sql,array($field_name,$tabid)); -$fieldid = $adb->query_result($result,0,"fieldid"); - -$fieldlist[$module_name] = getRelatedFieldslist($fieldid, $related_fields); -if($_REQUEST['module_name'] != ''){ - $smarty->assign("DEF_MODULE",vtlib_purify($_REQUEST['module_name'])); -}else{ - $smarty->assign("DEF_MODULE",'Accounts'); -} - -$smarty->assign("FIELDID",$fieldid); -$smarty->assign("FIELD_INFO",$module_name); -$smarty->assign("FIELD_LISTS",$fieldlist); -$smarty->assign("MOD", return_module_language($current_language,'Settings')); -$smarty->assign("IMAGE_PATH",$image_path); -$smarty->assign("APP", $app_strings); -$smarty->assign("CMOD", $mod_strings); -$smarty->display(vtlib_getModuleTemplate($currentModule,'EditQuickView.tpl')); - -?> \ No newline at end of file diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/QuickView.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/QuickView.php deleted file mode 100644 index 3192277d2..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/QuickView.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ -require_once 'include/utils/utils.php'; -require_once 'modules/Tooltip/TooltipUtils.php'; - -global $mod_strings,$app_strings,$theme,$currentModule; -$smarty=new vtigerCRM_Smarty; -$smarty->assign("MOD",$mod_strings); -$smarty->assign("APP",$app_strings); -$smarty->assign("THEME", $theme); - -$module_array=moduleList(); -$smarty->assign("MODULES",$module_array); - -if(!empty($_REQUEST['formodule'])){ - $fld_module = vtlib_purify($_REQUEST['formodule']); -} -else{ - echo "NO MODULES SELECTED"; - exit; -} -$smarty->assign("MODULE",$fld_module); - -$fieldsDropDown = QuickViewFieldList($fld_module); -$smarty->assign("FIELDNAMES",$fieldsDropDown); - -if($_REQUEST['mode'] != ''){ - $mode = $_REQUEST['mode']; -} -$smarty->assign("MODE", $mode); -$smarty->assign("FORMODULE", $fld_module); -$smarty->assign("MOD",$mod_strings); - -$smarty->display(vtlib_getModuleTemplate($currentModule,'Quickview.tpl')); -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/SaveTooltipInformation.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/SaveTooltipInformation.php deleted file mode 100644 index 2a3a15480..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/SaveTooltipInformation.php +++ /dev/null @@ -1,108 +0,0 @@ -<?php -/*+******************************************************************************** - * 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. - ********************************************************************************/ - -/** - * Created on 09-Oct-08 - * this file saves the tooltip information - */ -$fieldid = vtlib_purify($_REQUEST['fieldid']); -$sequence = 1; - -deleteOldInfo($fieldid); -echo SaveTooltipInformation($fieldid, $sequence); - - - -/** - * this function saves the tooltip information - * @param integer $fieldid - the fieldid of the field - * @param integer $view - the current view :: 1 by default - * @param integer $sequence - the starting sequence - */ -function SaveTooltipInformation($fieldid, $sequence, $view=1){ - global $adb; - - if(empty($fieldid)){ - return "FAILURE"; - }else{ - $checkedFields = array(); - if(!empty($_REQUEST['checkedFields'])){ - $checkedFields = explode(",",$_REQUEST['checkedFields']); - //add to vtiger_quickview table - foreach($checkedFields as $checkedField){ - $query = "insert into vtiger_quickview (fieldid,related_fieldid,sequence,currentview) values (?,?,?,?)"; - $adb->pquery($query,array($fieldid, $checkedField, $sequence, $view)); - $sequence++; - } - } - $data = getDetailViewForTooltip($fieldid, $checkedFields); - return $data; - } -} - -/** - * this function deletes the old information present in quickview table for that view for that field - * @param integer $fieldid - the fieldid of the field - * @param integer $view - the view for which ot remove :: 1 by default - */ -function deleteOldInfo($fieldid, $view=1){ - global $adb; - //remove from the table - $query = "delete from vtiger_quickview where fieldid = ? and currentview = ?"; - $adb->pquery($query,array($fieldid,$view)); -} - -/** - * this function returns the detailview for tooltip - * @param integer $fieldid - the fieldid of the field for which you want the detailview - * @param array $checkedFields - the fields which are selected to be displayed in quickview - * @return string $data - the formatted quickview data - */ -function getDetailViewForTooltip($fieldid, $checkedFields){ - global $app_strings; - $labels = array(); - if(!empty($checkedFields)){ - $labels = getFieldLabels($checkedFields); - } - $smarty = new vtigerCRM_Smarty; - $smarty->assign("FIELDID", $fieldid); - $smarty->assign("APP",$app_strings); - $smarty->assign("IMAGES", "themes/images/"); - $smarty->assign("LABELS", $labels); - $smarty->assign("COUNT", count($labels)); - - $data = $smarty->fetch("modules/Tooltip/DetailQuickView.tpl"); - return $data; -} - -/** - * this function accepts the fieldids array and returns an array of field labels for them - * @param array $checkedFields - the fieldids array - * @return array $data - the fieldlabels array - */ -function getFieldLabels($checkedFields){ - global $adb; - $data = array(); - - $sql = "select * from vtiger_field where fieldid in (".generateQuestionMarks($checkedFields).") and vtiger_field.presence in (0,2)"; - $result = $adb->pquery($sql,array($checkedFields)); - $count = $adb->num_rows($result); -/** - * to fix the localization of strings - * - */ - $tabid = $adb->query_result($result, 0, "tabid"); - $module = getTabModuleName($tabid); - for($i=0;$i<$count;$i++){ - $data[] = getTranslatedString($adb->query_result($result, $i, "fieldlabel"),$module); - } - return $data; -} -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.js b/pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.js deleted file mode 100644 index 028240748..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.js +++ /dev/null @@ -1,9 +0,0 @@ -/*+******************************************************************************* - * 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. - ******************************************************************************/ - diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.php deleted file mode 100644 index 2bf0a7af6..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/Tooltip.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ - - - -class Tooltip { - - /** - * Invoked when special actions are performed on the module. - * @param String Module name - * @param String Event Type - */ - function vtlib_handler($moduleName, $eventType) { - - require_once('include/utils/utils.php'); - require_once('vtlib/Vtiger/Module.php'); - global $adb,$mod_strings; - - if($eventType == 'module.postinstall') { - - // Mark the module as Standard module - $adb->pquery('UPDATE vtiger_tab SET customized=0 WHERE name=?', array($moduleName)); - - $name = 'LBL_TOOLTIP_MANAGEMENT'; - $blockname = 'LBL_MODULE_MANAGER'; - $icon = 'quickview.png'; - $description = 'LBL_TOOLTIP_MANAGEMENT_DESCRIPTION'; - $links = 'index.php?module=Tooltip&action=QuickView&parenttab=Settings'; - $params = array($adb->getUniqueID('vtiger_settings_field'), getSettingsBlockId($blockname), $name, $icon, $description, $links); - - $adb->pquery("INSERT INTO vtiger_settings_field (fieldid, blockid, name, iconpath, description, linkto) - VALUES (". generateQuestionMarks($params).")", $params); - } else if($eventType == 'module.disabled') { - // TODO Handle actions when this module is disabled. - $moduleInstance = Vtiger_Module::getInstance('Tooltip'); - $moduleInstance->deleteLink('HEADERSCRIPT','ToolTip_HeaderScript','modules/Tooltip/TooltipHeaderScript.js'); - } else if($eventType == 'module.enabled') { - // TODO Handle actions when this module is enabled. - $moduleInstance = Vtiger_Module::getInstance('Tooltip'); - $moduleInstance->addLink('HEADERSCRIPT','ToolTip_HeaderScript','modules/Tooltip/TooltipHeaderScript.js'); - } else if($eventType == 'module.preuninstall') { - // TODO Handle actions when this module is about to be deleted. - } else if($eventType == 'module.preupdate') { - // TODO Handle actions before this module is updated. - } else if($eventType == 'module.postupdate') { - // TODO Handle actions after this module is updated. - } - } -} -?> \ No newline at end of file diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipAjax.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipAjax.php deleted file mode 100644 index 40de3f68c..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipAjax.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ -require_once('include/Ajax/CommonAjax.php'); - -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHandler.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHandler.php deleted file mode 100644 index 5468a8f35..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHandler.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ -class TooltipHandler extends VTEventHandler { - - function handleEvent($eventName, $data) { - - if($eventName == 'vtiger.entity.beforesave') { - // Entity is about to be saved, take required action - } - - if($eventName == 'vtiger.entity.aftersave') { - // Entity has been saved, take next action - } - } -} - -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHeaderScript.js b/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHeaderScript.js deleted file mode 100644 index d9b94567a..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipHeaderScript.js +++ /dev/null @@ -1,107 +0,0 @@ -/*+******************************************************************************* - * 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. - ******************************************************************************/ - -var TOOLTIP = { - /** Tooltip data cache (per module, per field, per record) **/ - _cache : { }, - - _status : { }, - - _mouseOverTimeOut : 500, - - _relinguishStatusControl : false, - - show : function(node, module, fieldname, recordid) { - if(TOOLTIP._status[module][recordid][fieldname]) { - if(TOOLTIP._cache[module][fieldname][recordid]) { - var tooltipdata = TOOLTIP._cache[module][fieldname][recordid]; - tooltip.tip(node,tooltipdata,recordid,fieldname); - if(!this._relinguishStatusControl) $('status').style.display = 'none'; - } - } - }, - - hide : function(element,id,fieldname) { - tooltip.untip(element,id,fieldname); - }, - - _setStatus : function(module, fieldname, recordid, statusflag) { - if(typeof(TOOLTIP._status[module]) == 'undefined') { - TOOLTIP._status[module] = {}; - } - if(typeof(TOOLTIP._status[module][recordid]) == 'undefined') { - TOOLTIP._status[module][recordid] = {}; - } - TOOLTIP._status[module][recordid][fieldname] = statusflag; - }, - - handler : function(evtparams) { - var event_type = evtparams['event']; - var module = evtparams['module']; - var fieldname = evtparams['fieldname']; - var recordid = evtparams['recordid']; - var node = evtparams['domnode']; - if ($('status').style.display == 'block') { - this._relinguishStatusControl = true; - } - if(evtparams['event'] == 'cell.onmouseover' ) { - TOOLTIP._setStatus(module, fieldname, recordid, true); - _VT__TOOLTIP__TIMER = setTimeout(function(){TOOLTIP._showForField(node, module, fieldname,recordid)},TOOLTIP._mouseOverTimeOut); - } else if(evtparams['event'] == 'cell.onmouseout' ) { - TOOLTIP._setStatus(module, fieldname, recordid, false); - TOOLTIP.hide(node, recordid, fieldname); - clearTimeout(_VT__TOOLTIP__TIMER); - } - }, - - _showForField : function(node, module, fieldname, recordid) { - if(!this._relinguishStatusControl) $('status').style.display = 'block'; - if(typeof(TOOLTIP._cache[module]) == 'undefined') { - TOOLTIP._cache[module] = {} - } - if(TOOLTIP._cache[module][fieldname] == false) { - if(!this._relinguishStatusControl) $('status').style.display = 'none'; - return; - } - - if(typeof(TOOLTIP._cache[module][fieldname]) == 'undefined') { - TOOLTIP._cache[module][fieldname] = {} - } - - if(typeof(TOOLTIP._cache[module][fieldname][recordid]) == 'undefined') { - // Cache miss - TOOLTIP._cache[module][fieldname][recordid] = false; - new Ajax.Request( - 'index.php', - {queue : {position : 'end', scope: 'command'}, - method : 'post', - postBody: 'module=Tooltip&action=TooltipAjax&file=ComputeTooltip&fieldname='+fieldname+'&id='+recordid+'&modname='+module+'&ajax=true&submode=getTooltip', - onComplete: function(response) { - var data = response.responseText; - if(data != false){ - TOOLTIP._cache[module][fieldname][recordid] = data; - TOOLTIP.show(node, module, fieldname, recordid); - if(!this._relinguishStatusControl) $('status').style.display = 'none'; - }else{ - TOOLTIP._cache[module][fieldname] = false; - if(!this._relinguishStatusControl) $('status').style.display = 'none'; - } - } - } - ); - } else { - // Cache hit - TOOLTIP.show(node, module, fieldname, recordid); - } - } - -} - -vtlib_listview.register( 'cell.onmouseover', TOOLTIP.handler); -vtlib_listview.register( 'cell.onmouseout', TOOLTIP.handler); diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipSettings.js b/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipSettings.js deleted file mode 100644 index 81f769091..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipSettings.js +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************* - ** 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 function takes a fieldname and returns the fields related to it - */ -function getRelatedFieldInfo(id){ - var modulename = $('pick_module').value; - - var fieldname = id.options[id.options.selectedIndex].value; - new Ajax.Request( - 'index.php', - {queue: {position: 'end', scope: 'command'}, - method: 'post', - postBody: 'module=Tooltip&action=TooltipAjax&file=EditQuickView&field_name='+fieldname+'&module_name='+modulename+'&parenttab=Settings&ajax=true', - onComplete: function(response) { - if(response.responseText == false){ - alert(alert_arr.ERR_FIELD_SELECTION); - }else{ - var related_fields = response.responseText; - $('fieldList').innerHTML = related_fields; - } - } - } - ); -} - -/** - * this function saves the tooltip related information in the database using an ajax call - */ -function saveTooltipInformation(fieldid, checkedFields){ - new Ajax.Request( - 'index.php', - {queue: {position: 'end', scope: 'command'}, - method: 'post', - postBody: 'module=Tooltip&action=TooltipAjax&file=SaveTooltipInformation&fieldid='+fieldid+'&checkedFields='+checkedFields+'&parenttab=Settings&ajax=true', - onComplete: function(response) { - if(response.responseText == "FAILURE"){ - alert(alert_arr.ERR_FIELD_SELECTION); - return false; - }else{ - //success - var div = document.getElementById('fieldList'); - div.innerHTML = response.responseText; - } - } - } - ); -} - -/** - * this function saves the tooltip - */ -function doSaveTooltipInfo(){ - var fieldid = document.getElementById('fieldid').value; - var div = document.getElementById('fieldList'); - var fields = div.getElementsByTagName('input'); - var checkedFields = []; - - for(var i=0, j=0;i<fields.length;i++){ - if(fields[i].type == "checkbox" && fields[i].checked == true){ - checkedFields[j++] = fields[i].value; - } - } - relatedFields = checkedFields.join(","); - saveTooltipInformation(fieldid, relatedFields); -} - -/** - * this function takes a fieldid and displays the quick editview for that field - */ -function displayEditView(){ - var node = document.getElementById('pick_field'); - getRelatedFieldInfo(node); -} diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipUtils.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipUtils.php deleted file mode 100644 index c573d7588..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/TooltipUtils.php +++ /dev/null @@ -1,267 +0,0 @@ -<?php -/*+******************************************************************************** - * 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. - ********************************************************************************/ - -require_once 'include/Webservices/DescribeObject.php'; -require_once 'include/Webservices/Utils.php'; -require_once 'include/Webservices/Query.php'; -require_once 'include/utils/CommonUtils.php'; -require_once 'include/Webservices/ModuleTypes.php'; - -/** - * this function returns the fields for a given module - */ -function getFieldList($module_name, $field_name = "") { - global $adb; - $tabid = getTabid($module_name); - - $query = "select * from vtiger_field where tabid = ?"; - $params = array($tabid); - if (!empty ($field_name)) { - $query .= " and fieldname not like ?"; - $params = array($tabid,$field_name); - } - $query.= " and columnname not like 'imagename' and uitype not in (61, 122) and vtiger_field.presence in (0,2)"; - $result = $adb->pquery($query, $params); - while ($fieldinfo = $adb->fetch_array($result)) { - $fields[] = array ( - "fieldlabel" => getTranslatedString($fieldinfo['fieldlabel'], $module_name), - "fieldname" => $fieldinfo['fieldname'], - "fieldid" => $fieldinfo['fieldid'] - ); - } - return $fields; -} - -/** - * this function returns the fields related to a field - * @param array $result -- mysql query result that contains the field information - * @param array $lang_strings -- language strings array - */ -function getRelatedFieldsList($fieldid, $related_fields) { - global $adb; - $relatedFieldsArray = array(); - foreach ($related_fields as $related_field) { - $temp_relatedfield = array(); - $related_fieldid = $related_field['fieldid']; - $related_fieldname = $related_field['fieldname']; - $related_fieldlabel = $related_field['fieldlabel']; - - if (tooltip_exists($fieldid, $related_fieldid)) { - $visible = "checked"; - } else { - $visible = ""; - } - $temp_relatedfield['fieldlabel'] = $related_fieldlabel; - $temp_relatedfield['input'] = "<input type='checkbox' value='$related_fieldid' name='$related_fieldid' $visible>"; - $temp_relatedfield['fieldid'] = $related_fieldid; - $temp_relatedfield['fieldname'] = $related_fieldname; - $relatedFieldsArray[] = $temp_relatedfield; - } - - $relatedFieldsArray = array_chunk($relatedFieldsArray, 4); - return $relatedFieldsArray; -} - -/** - * function to get the module names - * @return - all module names other than Calendar and Events - */ -function moduleList() { - global $adb; - $sql = "select distinct vtiger_field.tabid,name from vtiger_field inner join vtiger_tab on vtiger_field.tabid=vtiger_tab.tabid where name not in ('Calendar','Events','Users')"; - $result = $adb->pquery($sql, array ()); - while ($moduleinfo = $adb->fetch_array($result)) { - $modulelist[$moduleinfo['name']] = getTranslatedString($moduleinfo['name']); - } - return $modulelist; -} - -/** - * this function determines if a given field has the related field already present in the tooltip - */ -function tooltip_exists($fieldid, $related_fieldid) { - global $adb; - $query = "select * from vtiger_quickview where fieldid=? and related_fieldid=?"; - $result = $adb->pquery($query, array ($fieldid,$related_fieldid)); - - if ($adb->num_rows($result) > 0) { - return true; - } else { - return false; - } -} - -/** - * function to return the tooltip information - * @param int $view - there can be multiple tooltips for a single module; this variable decides which is for which field - * @param int $tabid - tabid of the field for which the tooltip has to be fetched - * @param int $id - this is the crmid of the record - * returns the tooltip string - */ -function getToolTipText($view,$fieldname,$module,$value){ - global $adb,$app_strings; - $keys = array_keys($value[0]); - //getting the quickview list here - $fieldlabel = Array(); - $fieldid = getFieldid(getTabid($module), $fieldname); - $quickview = 'select fieldname,fieldlabel from vtiger_quickview inner join vtiger_field on vtiger_quickview.related_fieldid=vtiger_field.fieldid where vtiger_quickview.fieldid = ? and currentview= ? and vtiger_field.presence in (0,2) order by vtiger_quickview.sequence'; - $result = $adb->pquery($quickview,array($fieldid,$view)); - $count = $adb->num_rows($result); - - $text=array(); - $fieldname = Array(); - for($i=0;$i<$count;$i++){ - $fieldname = $adb->query_result($result,$i,"fieldname"); - - if(in_array($fieldname, $keys)){ - $fieldlabel = $adb->query_result($result,$i,"fieldlabel"); - $label = getTranslatedString($fieldlabel,$module); - $fieldvalue = $value[0][$fieldname]; - if(empty($fieldvalue)) { - $fieldvalue = ' '; - } - if(strlen($fieldvalue)>35){ - $fieldvalue = substr($fieldvalue,0,35).'...'; - } - $text[$label] = $fieldvalue; - } - } - return $text; -} - -/** - * this function accepts the tooltip text and returns it after formatting - * @param $text - the tooltip text which is to be formatted - * @param $format - the format in which tooltip has to be formatted; default value will be each entry in single line - */ -function getToolTip($text,$format = "default"){ - $smarty = new vtigerCRM_Smarty; - $tip = ""; - if(trim(implode('', $text)) == ''){ - return $tip; - } - - $smarty->assign("TEXT",$text); - $tip = $smarty->fetch("modules/Tooltip/$format.tpl"); - return $tip; -} - -/** - * this function checks if tooltip exists for a given field or not - */ -function ToolTipExists($fieldname,$tabid){ - if(empty($fieldname) || empty($tabid)){ - return false; - }else{ - global $adb; - $sql = "select fieldid from vtiger_field where tabid = ? and fieldname = ? and vtiger_field.presence in (0,2)"; - $result = $adb->pquery($sql,array($tabid,$fieldname)); - $count = $adb->num_rows($result); - if($count > 0){ - $fieldid = $adb->query_result($result,0,'fieldid'); - - $sql = "select * from vtiger_quickview where fieldid = ?"; - $result = $adb->pquery($sql, array($fieldid)); - - if($adb->num_rows($result) > 0){ - return $fieldid; - }else{ - return false; - } - }else{ - return false; - } - } -} - -/** - * this function processes the given result and returns the value :: for now we are getting the values for the - * reference, owner fields, booleans and currency fields; other processing might be added later if required - * @param array $result - the webservices result object - * @param array $descObj - the webservices describe object - * @return array $result - the processes webservices result object - */ -function vttooltip_processResult($result, $descObj){ - global $current_user; - foreach($descObj['fields'] as $field){ - $name = $field['name']; - $value = $result[0][$name]; - if($field['type']['name'] == 'reference'){ - $name = $field['name']; - - if(!empty($value)){ - $result[0][$name] = vtws_getName($value,$current_user); - }else{ - $result[0][$name] = ''; - } - }elseif($field['type']['name'] == 'owner'){ - list($info, $id) = explode("x",$value); - $result[0][$name] = getOwnerName($id); - }elseif($field['type']['name'] == 'boolean'){ - if($result[0][$name] == 1){ - $result[0][$name] = "on"; - }else{ - $result[0][$name] = "off"; - } - }elseif($field['type']['name'] == 'picklist'){ - $temp = ''; - foreach($field['type']['picklistValues'] as $value){ - if(strcmp($value['value'],$result[0][$name])== 0){ - $temp = $value['value']; - } - } - $result[0][$name] = $temp; - } elseif($field['type']['name'] == 'date') { - $result[0][$name] = DateTimeField::convertToUserFormat($value); - } elseif($field['type']['name'] == 'datetime') { - $date = new DateTimeField($value); - $result[0][$name] = $date->getDisplayDateTimeValue(); - } elseif($field['type']['name'] == 'time') { - $date = new DateTimeField($value); - $result[0][$name] = $date->getDisplayTime(); - } elseif($field['type']['name'] == 'currency') { - $currencyField = new CurrencyField($value); - $result[0][$name] = $currencyField->getDisplayValueWithSymbol(); - } - } - return $result; -} - - -/** - * this function returns the fields for a given module in a select dropdown format - * @param string $module - the module name - * @return the fields in a select dropdown if fields exist else a blank value - */ -function QuickViewFieldList($module){ - global $adb, $app_strings,$mod_strings; - - $tabid = getTabid($module); - - $query = "select * from vtiger_field where tabid = ? and columnname not like 'imagename' and uitype not in (61, 122) and vtiger_field.presence in (0,2)"; - $result = $adb->pquery($query,array($tabid)); - if($adb->num_rows($result)>0){ - $fieldlist = '<select onchange="getRelatedFieldInfo(this)" class="importBox" id="pick_field" name="pick_field">'; - $fieldlist.= '<option value="" disabled="true" selected>' - .$app_strings['LBL_SELECT'].' '. $mod_strings['LBL_FIELD'].' - </option>'; - while($fieldsinfo=$adb->fetch_array($result)){ - $fieldlabel = $fieldsinfo['fieldlabel']; - $fieldname = $fieldsinfo['fieldname']; - $fieldlist.= "<option value='$fieldname'>".getTranslatedString($fieldlabel, $module)."</option>"; - } - $fieldlist.= '</select>'; - return $fieldlist; - }else{ - return ''; - } -} - -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/index.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/index.php deleted file mode 100644 index 0b11eea85..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/index.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ -global $currentModule; - -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/language/en_us.lang.php b/pkg/vtiger/modules/Tooltip/modules/Tooltip/language/en_us.lang.php deleted file mode 100644 index fe62bea2d..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/language/en_us.lang.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -/********************************************************************************* -** 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. -* - ********************************************************************************/ - -$mod_strings = Array ( -'Tooltip' => 'ToolTip', -'LBL_TOOLTIP_MANAGEMENT'=>'Tooltip Management', -'LBL_TOOLTIP_MANAGEMENT_DESCRIPTION'=>'Manage the tooltip information from here', -'LBL_FIELDS_IN'=>'Fields in', -'LBL_TOOLTIP_HELP_TEXT'=>'Select the fields that you would like to be displayed as tooltip', -'LBL_FIELD'=>'Field', - -); - -?> diff --git a/pkg/vtiger/modules/Tooltip/modules/Tooltip/schema.xml b/pkg/vtiger/modules/Tooltip/modules/Tooltip/schema.xml deleted file mode 100644 index ed43cabcd..000000000 --- a/pkg/vtiger/modules/Tooltip/modules/Tooltip/schema.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version='1.0'?> -<schema> - <tables> - <table> - <name>vtiger_quickview</name> - <sql><![CDATA[CREATE TABLE `vtiger_quickview` ( - `fieldid` int(19) NOT NULL, - `related_fieldid` int(19) NOT NULL, - `sequence` int(19) NOT NULL, - `view` int(19) NOT NULL, - CONSTRAINT fk_1_vtiger_quickview FOREIGN KEY (`fieldid`) REFERENCES `vtiger_field` (`fieldid`) ON DELETE CASCADE - )]]></sql> - </table> - </tables> -</schema> diff --git a/pkg/vtiger/modules/Tooltip/templates/DetailQuickView.tpl b/pkg/vtiger/modules/Tooltip/templates/DetailQuickView.tpl deleted file mode 100644 index 11f17e95d..000000000 --- a/pkg/vtiger/modules/Tooltip/templates/DetailQuickView.tpl +++ /dev/null @@ -1,65 +0,0 @@ -<script language="JavaScript" type="text/javascript" src="modules/Tooltip/TooltipSettings.js"></script> -<br> -<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> -<tbody><tr> - <td valign="top"><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td> - <td valign="top" width="100%"> - <div align=center> - <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> - </table> - - <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> - <tr> - <td class="small" align=right width="100%"> - <input title="edit" class="crmButton small edit" type="button" name="edit" onClick="displayEditView({$FIELDID});" value="{$APP.LBL_EDIT_BUTTON}"> - </td> - </tr> - </table> - - <div id="{$module}_fields" style="display:block"> - <table cellspacing=0 cellpadding=5 width=100% class="listTable small"> - <tr> - <td valign=top width="25%" > - {if $COUNT eq 0} - No Fields Selected. - </td> - {else} - {foreach item=label from=$LABELS name=itr} - {assign var=count value=$smarty.foreach.itr.iteration} - <table border=0 cellspacing=0 cellpadding=5 width=100% class=small> - <tr> - <td width="25%" onMouseOver="this.className='prvPrfHoverOn';" onMouseOut="this.className='prvPrfHoverOff';"> - <table cellpadding="0" cellspacing="0"> - <tr> - <td> - <img src="{'prvPrfSelectedTick.gif'|@vtiger_imageurl:$THEME}"> - - </td> - <td> - {$label} - </td> - </tr> - </table> - </td> - </tr> - </table> - </td> - <td> - {if $count mod 4 eq 0} - </td></tr><tr><td> - {/if} - {/foreach} - {/if} - </td> - </tr> - </table> - </div> - </form> - </div> - </td> - <td valign="top"> - <img src="{'showPanelTopRight.gif'|@vtiger_imageurl:$THEME}"> - </td> - </tr> -</tbody> -</table> diff --git a/pkg/vtiger/modules/Tooltip/templates/EditQuickView.tpl b/pkg/vtiger/modules/Tooltip/templates/EditQuickView.tpl deleted file mode 100644 index 02aa0ce4b..000000000 --- a/pkg/vtiger/modules/Tooltip/templates/EditQuickView.tpl +++ /dev/null @@ -1,65 +0,0 @@ -<script language="JavaScript" type="text/javascript" src="modules/Tooltip/TooltipSettings.js"></script> -<br> -<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> -<tbody><tr> - <td valign="top"><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td> - <td valign="top" width="100%"> - <div align=center> - <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> - <form action="index.php" method="post" name="new" id="form" onsubmit="VtigerJS_DialogBox.block();"> - <input type="hidden" id="fieldid" name="fieldid" value="{$FIELDID}"> - <input type="hidden" name="" value=""> - </table> - - <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> - <tr> - <td class="small" align="left" nowrap> - <strong> - {$MOD.LBL_TOOLTIP_HELP_TEXT} - </strong> - </td> - <td class="small" align="right" width="100%"> - <input title="save" class="crmButton small save" type="button" name="save" onClick="doSaveTooltipInfo();" value="{$APP.LBL_SAVE_BUTTON_LABEL}"> - </td> - <td class="small" align="right"> - <input title="back" class="crmButton small cancel" type="button" name="Back" onClick="window.history.back();" value="{$APP.LBL_BACK}"> - </td> - </tr> - </table> - - {foreach key=module item=info from=$FIELD_LISTS} - <div id="{$module}_fields" style="display:block"> - <table cellspacing=0 cellpadding=5 width=100% class="listTable small"> - <tr> - <td valign=top width="25%" > - <table border=0 cellspacing=0 cellpadding=5 width=100% class=small> - {foreach item=elements name=groupfields from=$info} - <tr> - {foreach item=elementinfo name=curvalue from=$elements} - <td class="prvPrfTexture" style="width:20px"> - - </td> - <td width="5%" id="{$smarty.foreach.groupfields.iteration}_{$smarty.foreach.curvalue.iteration}"> - {$elementinfo.input} - </td> - <td width="25%" nowrap onMouseOver="this.className='prvPrfHoverOn',$('{$smarty.foreach.groupfields.iteration}_{$smarty.foreach.curvalue.iteration}').className='prvPrfHoverOn'" onMouseOut="this.className='prvPrfHoverOff',$('{$smarty.foreach.groupfields.iteration}_{$smarty.foreach.curvalue.iteration}').className='prvPrfHoverOff'"> - {$elementinfo.fieldlabel} - </td> - {/foreach} - </tr> - {/foreach} - </table> - </td> - </tr> - </table> - </div> - {/foreach} - </form> - </div> - </td> - <td valign="top"> - <img src="{'showPanelTopRight.gif'|@vtiger_imageurl:$THEME}"> - </td> - </tr> -</tbody> -</table> diff --git a/pkg/vtiger/modules/Tooltip/templates/Quickview.tpl b/pkg/vtiger/modules/Tooltip/templates/Quickview.tpl deleted file mode 100644 index a16962324..000000000 --- a/pkg/vtiger/modules/Tooltip/templates/Quickview.tpl +++ /dev/null @@ -1,64 +0,0 @@ -<script language="JavaScript" type="text/javascript" src="modules/Tooltip/TooltipSettings.js"></script> -<br /> -<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> -<tbody><tr> - <td valign="top"><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td> - <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> - <br> - - <div align=center> - {include file='SetMenu.tpl'} - <table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%"> - <tbody> - <tr> - <td rowspan="2" valign="top" width="50"><img src="{'quickview.png'|@vtiger_imageurl:$THEME}" alt="{$MOD.LBL_USERS}" title="{$MOD.LBL_USERS}" border="0" height="48" width="48"></td> - <td class="heading2" valign="bottom"> - - <b><a href="index.php?module=Settings&action=ModuleManager&parenttab=Settings">{'VTLIB_LBL_MODULE_MANAGER'|@getTranslatedString:'Settings'}</a> > - <a href="index.php?module=Settings&action=ModuleManager&module_settings=true&formodule={$FORMODULE}&parenttab=Settings">{$FORMODULE|@getTranslatedString:$FORMODULE}</a> > - {$MOD.LBL_TOOLTIP_MANAGEMENT} - </tr> - - <tr> - <td class="small" valign="top">{$MOD.LBL_TOOLTIP_MANAGEMENT_DESCRIPTION}</td> - </tr> - </tbody> - </table> - - <br> - <input type="hidden" id="pick_module" value="{$MODULE}"> - <table border="0" cellpadding="10" cellspacing="0" width="100%"> - <tbody> - <tr> - <td> - <table class="tableHeading" border="0" cellpadding="5" cellspacing="0" width="100%"> - <tbody><tr> - <td width='20%'> - <strong><span id="field_info">{$APP.LBL_SELECT} {$MOD.LBL_FIELD}: </span></strong> - </td> - <td id='pick_field_list'> - {$FIELDNAMES} - </td> - </tr> - </tbody> - </table> - - - <div id="fieldList"> - </div> - </td> - </tr> - </table> - </td> - </tr> - </table> - </td> - </tr> - </table> - </div> - </td> - <td valign="top"><img src="{'showPanelTopRight.gif'|@vtiger_imageurl:$THEME}"></td> - </tr> -</tbody> -</table> -<br> diff --git a/pkg/vtiger/modules/Tooltip/templates/default.tpl b/pkg/vtiger/modules/Tooltip/templates/default.tpl deleted file mode 100644 index dac9c17cb..000000000 --- a/pkg/vtiger/modules/Tooltip/templates/default.tpl +++ /dev/null @@ -1,10 +0,0 @@ -{*<!-- this template file creates the tooltip information from a given text. -this is the default template for tooltip. it presents the tooltip information in -a linear way, i.e. makes the fieldlabel bold and put the value after it. -e.g. <b>fieldlabel:</b> fieldvalue-->*} - -{assign var=tip value=""} -{foreach key=label item=value from=$TEXT} - {assign var=tip value="$tip<b>$label:</b> $value<br>"} -{/foreach} -{$tip} -- GitLab