Ad Widget

Collapse

Bar Graphs or Report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vymysleny
    Junior Member
    • Jan 2007
    • 4

    #1

    Bar Graphs or Report

    Hi.
    I nedd to create "BAR" graphs or report template for customers.
    Something like common graphs saved in graphs page.
    It is litle dificult to explain to customer how to create reports.
    Only way to make link is copu URL from browser
    It is possible to meke bar graphs template?
  • vymysleny
    Junior Member
    • Jan 2007
    • 4

    #2
    Easy way is php redirect

    PHP Code:
    <?php
    $time_midnight 
    strtotime("midnight");
    $time_midnight_t = (date('d-m-Y H:i:s'$time_midnight));
    $time_now strtotime("now");
    $time_now_t = (date('d-m-Y H:i:s'$time_now));


       
    header'Location: https://www.example.com/chart_bar.php?config=2&title=Some title '.$time_midnight_t.' do  '.$time_now_t.' &xlabel=&ylabel=&sorttype=1&report_timesince='.$time_midnight.'&report_timetill='.$time_now.'&periods[0][caption]=Denna vyroba&periods[0][report_timesince]='.$time_midnight.'&periods[0][report_timetill]='.$time_now.'&periods[0][color]=009900&items[1][caption]=1&items[1][itemid]=22662&items[1][color]=009900&items[1][calc_fnc]=4&items[1][axisside]=0&items[2][caption]=2&items[2][itemid]=22720&items[2][color]=009900&items[2][calc_fnc]=4&items[2][axisside]=0 ')
    ?>
    save it to ???.php to zabbix directory and then call it directly from map or url, it si super because you ca define dynamic variable a i thing it is safe. If you will generate own URL don;t forget to delete SID=???&

    Comment

    Working...