Jump to content

about reports.php page problem, using google charts issue


TimRef

Recommended Posts

Hi,

 

About the reports.php page . when we open the source code of web page , from the code, we can see it qoute a js file from google.com . like this 

<script type="text/javascript" src="https://www.google.com/jsapi"></script>

it use Google Charts API  to generate the graph . and that takes some error from the country where cannot visit google.com , like China , we found a alternative solution , use 

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> 

replace the

<script type="text/javascript" src="https://www.google.com/jsapi"></script>

but we cannot location the code , and when we search , also cannot find which page use https://www.google.com/jsapi , we find from all pages in /module/reports/, all not working .

do you have any idea about this . thanks a lot .

Link to comment
Share on other sites

<script type="text/javascript">
var datepickerformat = "yy-mm-dd",
    csrfToken = "523d22567986403122345f3ac38c28be383d8f3f5",
    adminBaseRoutePath = "/admin";
    whmcsBaseUrl = "";
var mentionsFormat = '@${username}';
function redrawCharts() { drawChart16379887371(); }
$(window).bind("resize", function(event) { redrawCharts(); });

</script>
<script>function getClientSearchPostUrl() { return '/admin/search/client'; }</script>
<script type="text/javascript" src="../assets/js/AdminClientDropdown.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
</head>
<body data-phone-cc-input="1">



  <div id="headerWrapper" align="center">

 

<script type="text/javascript">
var datepickerformat = "{$datepickerformat}",
    csrfToken = "{$csrfToken}",
    adminBaseRoutePath = "{\WHMCS\Admin\AdminServiceProvider::getAdminRouteBase()}";
    whmcsBaseUrl = "{\WHMCS\Utility\Environment\WebHelper::getBaseUrl()}";
{if $jquerycode}$(document).ready(function(){ldelim}
    {$jquerycode}
{rdelim});
{/if}
{if $jscode}{$jscode}
{/if}

</script>
{$headoutput}
</head>
<body data-phone-cc-input="{$phoneNumberInputStyle}">

{$headeroutput}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated