Adding Reports to Your Own Web Site

If you want to add reports to your own web site you can link directly to the statistics reports in a new tab, use iframes to render up the reports on your pages or embed Cricket Statz online reports in to your existing club or league web site by including some script code in your web site page.  Linking to the stats reports is the easiest.  Embedding code into your web page gives you the most control over the look and feel.

Embedding Code  

Cricket Statz allows all statistics and match reports to be embedded in existing web site by using <script> HTML tags. Script code for doing this is shown in the following example. The contents can be formatted using the CSS tags shown below. Note that HTML/CSS coding experience is required.
 

<html>
<head>
<style type="text/css">
.ss_table {border-collapse:collapse;}
.ss_matchtable {border-collapse:collapse;width:500px;}
.ss_tablehead {font-family:Arial;font-size:8pt;color:#000000;font-weight: bold}
.ss_tablerow {font-family:Arial;font-size:8pt;color:#000000}
.ss_title {font-family:Arial;font-size:12pt;color:#000000;font-weight:bold; background-color:#cc4444;}
.ss_menu {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #222222}
</style>
</head>

<body>
 

<p>
<script src='https://www2.cricketstatz.com/ss/linkreport.aspx?mode=20&club=11&grade=5&season=2005&mininns=5&limit=10'>
</script>
</p>

 

<p>
<script src='https://www2.cricketstatz.com/ss/linkreport.aspx?club=11&mode=100&match=652'>
</script>
</p>

 

</body>
</html>

 
Notes:

  • This example shows a player/official list and a match report on the same page.

  • The style sheet shows the various styles used in the reports. You can change the style settings to match fonts and colors to your own web site.

  • The <script> section is the code that includes the relevant report.  You can include any reports that are generated from the ‘reports’ section of the Cricket Statz online admin panel by substituting the appropriate mode, club, grade, etc. parameters in the above script “src=” examples.

  • If you want to display a match (using &mode=100) but don't know the match ID then you can use the parameters &ground=[groundname]&datetime=[datetimeplayed] to fetch the match report instead

  • You can change the default number of entries on the report by changing the &limit= value (up to 999)

  • You can turn on player links to open in a new page by adding a &newpage=1 switch to the URL

©2019 CricketStatz.Com | Privacy