⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 additionaldetails.php

📁 开源的CRM,功能全面,国内最优秀的源码
💻 PHP
字号:
<?php
if(empty($GLOBALS['sugarEntry'])) die('Not A Valid Entry Point');
/*********************************************************************************
 * KnowledgeBase module
 * Creates ProblemSolution Additional Details popup for the small tringle on list view line
 *********************************************************************************/
 
require_once('include/utils.php');

function additionalDetailsProblemSolution($fields) {
 static   $mod_strings;
 if(empty($mod_strings)) {
  global  $current_language;
  $mod_strings = return_module_language($current_language, 'ProblemSolution');
 }
 $overlib_string = '';
 if(!empty($fields['SOLUTION_NUMBER']))  $overlib_string .= '<b>' . $mod_strings['LBL_SOLUTION_NUMBER'] . '</b> ' .  $fields['SOLUTION_NUMBER'] . '<br>';
 if(!empty($fields['DEPENDS_ON_ID']))    $overlib_string .= '<b>' . $mod_strings['LBL_DEPENDS_ON_ID'] . '</b>' .  $fields['problem_name_link'] . '<br>';
 if(!empty($fields['DESCRIPTION'])) {
  $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
  if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
 } 
 return array('fieldToAddTo' => 'NAME', 'string' => $overlib_string);
}
 
 ?>
 
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -