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