mantis图报表的图片无法显示.docVIP

  • 13
  • 0
  • 约1.03万字
  • 约 5页
  • 2017-03-09 发布于贵州
  • 举报
mantis图报表的图片无法显示

一 mantis中 mantis中 图形报表的设置 默Mantis的JPGraph模$g_use_jpgraph为ON才能打 1 下JPGraph:从http://www.aditus.nu/jpgraph/index.php下JPGraph的安装文件,目前最高版本是1.14; 2 将下jpgraph-1.14.tar.gz解C:\PHP\includes目 3 打config_inc.php文件,修改$g_jpgraph_pathJPGraph的src目$g_use_jpgraph为ON; 4 修改Windows目PHP.ini文件,将“;extension php_gd2.dll”和“;extension php_iconv.dll”两行前面的分号extension_dir项不正确,请把extension_dir改extension_dir ./extensions/,我extension_dir ./,大概就是因 5 将C:\PHP\dlls下面的iconv.dllWindows\System32目PHP自php_gd2和php_iconv.dll模JPGraph在 6 修改JPGraph的src目jpgraph.php;将CACHE_DIR和TTF_DIR分Windows下的Temp目Fonts目 DEFINE CACHE_DIR,E:/WinTemp/Temp/jpgraph_cache ; DEFINE TTF_DIR,C:/WinNT/Fonts/ ; (没用) 7 现在再打开Mantis的 8 不Mantis对于JPGraph的JPGraph会自UTF-8编码,但是需要在调用JPGraph的SetFont,Mantis没有做Mantis\core\graph_api.php中增加 对于柱图和线图,要设置图形标题和x、y //Set the title and axis font if the default_language is set to chinese ? if config_get ’default_language’ ’chinese_simplified’ $graph- title- SetFont FF_SIMSUN,FS_NORMAL ; ? $graph- xaxis- title- SetFont FF_SIMSUN,FS_NORMAL ; ? $graph- yaxis- title- SetFont FF_SIMSUN,FS_NORMAL ; ? $graph- xaxis- SetFont FF_SIMSUN,FS_NORMAL ; ? $graph- yaxis- SetFont FF_SIMSUN,FS_NORMAL ; else if config_get ’default_language’ ’chinese_traditional’ $graph- title- SetFont FF_CHINESE,FS_NORMAL ; ? $graph- yaxis- title- SetFont FF_CHINESE,FS_NORMAL ; ? $graph- xaxis- title- SetFont FF_CHINESE,FS_NORMAL ; ? $graph- xaxis- SetFont FF_CHINESE,FS_NORMAL ; ? $graph- yaxis- SetFont FF_CHINESE,FS_NORMAL ; ? ; 对于饼图,要设置图形标题和图例名称: //Set the title and legend font if the default_language is set to chinese ? if config_get ’default_language’ ’chinese_simplified’ $graph- title- SetFont FF_SIMSUN,FS_NORMAL ; ? $graph- legend- SetFont FF_SIMSUN,FS_NORMAL ; else if config_get ’default_language’ ’chinese_traditional’ $graph- title- SetFont FF_CHINESE,FS_NORMAL ; ? $graph- legend- SetFont FF_CHINESE,FS_NORMAL ; ? ; 大家可以找到位置自己修改,简单的说就是在graph_api.php中“$graph- title- Set …”后面根据当前的 9 现在你的图形报表应该就可以显示中文了。 如果 mantis统

文档评论(0)

1亿VIP精品文档

相关文档