Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix 4.0 + PDF report 1.1.1 #5

Closed
Ctpry opened this issue Mar 6, 2019 · 6 comments
Closed

Zabbix 4.0 + PDF report 1.1.1 #5

Ctpry opened this issue Mar 6, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Ctpry
Copy link

Ctpry commented Mar 6, 2019

I cannot create PDF with only Host Group? It always wants host also to be selected. How to fix that problem?

@kirkwor
Copy link

kirkwor commented Mar 6, 2019

Check the file chooser.php and link the css and js files names properly to the files existing in the css/, js/ folders, should work after that.

@Ctpry
Copy link
Author

Ctpry commented Mar 6, 2019

Check the file chooser.php and link the css and js files names properly to the files existing in the css/, js/ folders, should work after that.
files @ /usr/share/zabbix/reports/css
/usr/share/zabbix/reports/js

Page is working fine. My chooser.php about css/js texts:

<title>Zabbix Dynamic PDF Report</title> <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> <script type="text/javascript" src="js/jquery.datetimepicker.min.js"></script> <script type="text/javascript" src="js/jquery.validate.min.js"></script> <script type="text/javascript" src="js/jquery.tablesorter.combined.min.js"></script> <script type="text/javascript" src="js/select2.min.js"></script> <script>

@Ctpry
Copy link
Author

Ctpry commented Mar 6, 2019

<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> <script type="text/javascript" src="js/jquery.datetimepicker.min.js"></script> <script type="text/javascript" src="js/jquery.validate.min.js"></script> <script type="text/javascript" src="js/jquery.tablesorter.combined.min.js"></script> <script type="text/javascript" src="js/select2.min.js"></script> <script>

@kirkwor
Copy link

kirkwor commented Mar 6, 2019

try this one:

        <title>Zabbix Dynamic PDF Report</title>
        <meta charset="utf-8" />
        <link rel="shortcut icon" href="../favicon.ico" />
        <link rel="stylesheet" type="text/css" href="css/zabbix.default.css" />
        <link rel="stylesheet" type="text/css" href="css/zabbix.color.css" />
        <link rel="stylesheet" type="text/css" href="css/zabbix.report.css" />
        <link rel="stylesheet" type="text/css" href="css/jquery.datetimepicker.css"/ >
        <link rel="stylesheet" type="text/css" href="css/tablesorter.css"/ >
        <link rel="stylesheet" type="text/css" href="css/select2.css"/ >
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jquery.datetimepicker.js"></script>
        <script type="text/javascript" src="js/jquery.validate.min.js"></script>
        <script type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
        <script type="text/javascript" src="js/select2.min.js"></script>
        <script>

@Ctpry
Copy link
Author

Ctpry commented Mar 6, 2019

chooser.php.txt
Heres better copy-paste of those lines

@kirkwor kirkwor mentioned this issue Apr 3, 2019
@martinm76 martinm76 self-assigned this Jul 4, 2020
@martinm76 martinm76 added the bug Something isn't working label Jul 4, 2020
@martinm76
Copy link
Owner

I have fixed the javascript issues and various other in v1.2.0.
I still have issues with getting a nicely styled datepicker, but the basic one that shows up now works, at least.
You should only be able to choose a host OR a host group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants