[% SET CPANEL.CPVAR.dprefix = "../" %] [% WRAPPER '_assets/master.html.tt' page_title = locale.maketext("Bandwidth") app_key = 'bandwidth' -%] [% USE CPDate; SET months = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'; SET month_index = {}; FOR m = months.split(' '); month_index.$m = loop.index; END; SET form_month = RAW_FORM('mon'); SET timezone = CPANEL.cookies.timezone; SET starttime = CPDate.timezone_timelocal( timezone, 0, 0, 0, 1, month_index.$form_month, RAW_FORM('year') ); SET endtime = CPDate.add_local_interval( starttime, 1, 'month', timezone, ) - 1; SET PROTOCOLS = execute_or_die( 'Bandwidth', 'get_enabled_protocols' ).data; SET bwdata = execute( 'Bandwidth', 'query', { timezone => timezone, grouping => 'protocol|year_month_day_hour', interval => 'hourly', start => starttime, end => endtime, }, ); SET month_name = CPDate.month_stand_alone_wide.${month_index.$form_month}; PROCESS '_bandwidth_graph_include.tmpl'; -%]
[% locale.maketext("Bandwidth Transfer Detail") %]
[% your_timezone_is() %]