<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://3.19.219.109/index.php?action=history&amp;feed=atom&amp;title=Customizing_Reports</id>
		<title>Customizing Reports - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://3.19.219.109/index.php?action=history&amp;feed=atom&amp;title=Customizing_Reports"/>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Customizing_Reports&amp;action=history"/>
		<updated>2026-04-19T08:30:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>http://3.19.219.109/index.php?title=Customizing_Reports&amp;diff=32263&amp;oldid=prev</id>
		<title>SarahK: /* Creating Reports */</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Customizing_Reports&amp;diff=32263&amp;oldid=prev"/>
				<updated>2022-04-20T21:17:57Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Creating Reports&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:17, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The WHMCS-included reports are open source and you can copy the format from them for use in your custom report.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The WHMCS-included reports are open source and you can copy the format from them for use in your custom report.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The report name you choose must be unique, all lowercase, and contain only letters and numbers (a–z, 0–9). It must start with a letter. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The report name you choose must be unique, all lowercase, and contain only letters and numbers (a–z, 0–9). It must start with a letter. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Upload your report to the &amp;lt;tt&amp;gt;/modules/reports&amp;lt;/tt&amp;gt; directory and it will become accessible under '''Reports &amp;gt; More...''' or in the list at '''Reports &amp;gt; [[Reports]]'''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Upload your report to the &amp;lt;tt&amp;gt;/modules/reports&amp;lt;/tt&amp;gt; directory and it will become accessible under '''Reports &amp;gt; More...''' or in the list at '''Reports &amp;gt; [[Reports]]'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Report Format==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Report Format==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SarahK</name></author>	</entry>

	<entry>
		<id>http://3.19.219.109/index.php?title=Customizing_Reports&amp;diff=31383&amp;oldid=prev</id>
		<title>SarahK: Created page with &quot;All reports are in the '''/modules/reports/''' directory and do not use encoding.  This allows you to modify them.  ==Creating Reports==  In addition to customizing the report...&quot;</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Customizing_Reports&amp;diff=31383&amp;oldid=prev"/>
				<updated>2022-02-01T21:23:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;All reports are in the &amp;#039;&amp;#039;&amp;#039;/modules/reports/&amp;#039;&amp;#039;&amp;#039; directory and do not use encoding.  This allows you to modify them.  ==Creating Reports==  In addition to customizing the report...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;All reports are in the '''/modules/reports/''' directory and do not use encoding.  This allows you to modify them.&lt;br /&gt;
&lt;br /&gt;
==Creating Reports==&lt;br /&gt;
&lt;br /&gt;
In addition to customizing the reports that ship with WHMCS, you can add your own custom reports to WHMCS's modular reporting system.&lt;br /&gt;
&lt;br /&gt;
To create your own report, we recommend looking at the format of one of the current files from one of the stock reports. These are in &amp;lt;tt&amp;gt;/modules/reports&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
* The WHMCS-included reports are open source and you can copy the format from them for use in your custom report.&lt;br /&gt;
* The report name you choose must be unique, all lowercase, and contain only letters and numbers (a–z, 0–9). It must start with a letter. &lt;br /&gt;
* Upload your report to the &amp;lt;tt&amp;gt;/modules/reports&amp;lt;/tt&amp;gt; directory and it will become accessible under '''Reports &amp;gt; More...''' or in the list at '''Reports &amp;gt; [[Reports]]'''..&lt;br /&gt;
&lt;br /&gt;
==Report Format==&lt;br /&gt;
&lt;br /&gt;
The format with some descriptions is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
# The title of your report&lt;br /&gt;
$reportdata[&amp;quot;title&amp;quot;] = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# The description of your report&lt;br /&gt;
$reportdata[&amp;quot;description&amp;quot;] = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Header text - this gets displayed above the report table of data&lt;br /&gt;
$reportdata[&amp;quot;headertext&amp;quot;] = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Report Table of Data Column Headings - should be an array of values&lt;br /&gt;
$reportdata[&amp;quot;tableheadings&amp;quot;] = array(&amp;quot;Column 1&amp;quot;,&amp;quot;Column 2&amp;quot;,&amp;quot;Column 3&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
# Report Table Values - one of these lines for each row you want in the table&lt;br /&gt;
# should be an array of values to match the column headings&lt;br /&gt;
$reportdata[&amp;quot;tablevalues&amp;quot;][] = array(&amp;quot;Data 1&amp;quot;,&amp;quot;Data 2&amp;quot;,&amp;quot;Data 3&amp;quot;);&lt;br /&gt;
$reportdata[&amp;quot;tablevalues&amp;quot;][] = array(&amp;quot;Data 1&amp;quot;,&amp;quot;Data 2&amp;quot;,&amp;quot;Data 3&amp;quot;);&lt;br /&gt;
$reportdata[&amp;quot;tablevalues&amp;quot;][] = array(&amp;quot;Data 1&amp;quot;,&amp;quot;Data 2&amp;quot;,&amp;quot;Data 3&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
# Report Footer Text - this gets displayed below the report table of data&lt;br /&gt;
$data[&amp;quot;footertext&amp;quot;] = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding Google Charts==&lt;br /&gt;
&lt;br /&gt;
WHMCS uses the [https://developers.google.com/chart/ Google Charts API] to generate graphical reports. To add a Google chart to a report, the drawChart function must be used. It accepts the following 5 parameters (in this order):&lt;br /&gt;
&lt;br /&gt;
* The type of chart you wish to use.&lt;br /&gt;
* The data you wish to use.&lt;br /&gt;
* The configuration that defines the chart's visual display (for example, color or legend position).&lt;br /&gt;
* Height (defaults to 300px).&lt;br /&gt;
* Width (defaults to 100%).&lt;br /&gt;
&lt;br /&gt;
This example uses the drawChart function to create a pie chart:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$reportdata[&amp;quot;headertext&amp;quot;] = $chart-&amp;gt;drawChart('Pie', $chartdata, $args, '300px', '100%');&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SarahK</name></author>	</entry>

	</feed>