webpage to statistic OTRS time
Thursday, March 27th, 2014 Posted in Linux, PHP & PW | 1 Comment »最近好无聊啊,被老板要求统计OTRS里面所用的时间,OTRS本身的PDF报靠可读性不是很友好,而且,这个时间统计本身是不支持的,就开始自己动手写一个了。。。 由于SQL比较长,我就先做了几个视图。。。 time_stats视图(所有时间): [crayon-5df70b87d9adf049041944/] time_stats_3mons视图(最近三个月内): [crayon-5df70b87d9ae5818290215/] time_stats_6mons视图(最近6个月内): [crayon-5df70b87d9ae8000528830/] time_stats_lastmon视图(上个月): [crayon-5df70b87d9aea970982011/] time_stats_lastweek视图(上周): [crayon-5df70b87d9aec934286713/] time_stats_thismon视图(本月): [crayon-5df70b87d9aee467387186/] time_stats_thisweek视图(本周): [crayon-5df70b87d9af0389654854/] 然后就是php代码。。。。 [crayon-5df70b87d9af2891510860/]