Loading...
 

Overview

Use this wiki plugin, introduced in Tiki3, to produce formatted reports from ADOdb SQL databases.

The plugin content is parsed as a description of how to run and display a database query. If only an SQL statement (and parameters) is given, a default view of the returned data will be prepared. A report has a fairly restricted format, consisting of zero or more levels of grouping (supported by GROUP BY or ORDER BY clauses in the query's SQL) with a table generated per group. The table can have headers and footers, and links can be inserted which may take you to other web pages.

Example:

Copy to clipboard
{DBREPORT(dsn="mysql://user:password@server/database")} SQL { SELECT * FROM Members ORDER BY City, Postcode } GROUP [City] "Members in [City]" :heading{text-size:150%;} GROUP [Postcode] "Within postcode [Postcode]" :heading{text-size:120%;} TABLE HEADER :heading CELL :{text-align:center;} "First Names" CELL :{text-align:center;} "Surname" ROWS :even :odd <"http://site.com/member.php?id=[MemberID]"> CELL "[First Name] [Middle Name]" CELL [Surname] {DBREPORT}

List Slides
Overview Use this wiki plugin , introduced in Tiki3 , to produce formatted reports from ADOdb SQL databases. The plugin content is parsed as a description of how to run and display a database query. If only an SQL statement (and parameters) is given, a default view of the returned data will be prepared. A report has a fairly restricted format, consisting of zero or more levels of grouping (supported by GROUP BY or ORDER BY clauses in the query's SQL) with a table generated per group. The table can have headers and footers, and links can be inserted which may take you to other web pages. Example: Copy to clipboard {DBREPORT(dsn="mysql://user:password@server/database")} SQL { SELECT * FROM Members ORDER BY City, Postcode } GROUP [City] "Members in [City]" :heading{text-size:150%;} GROUP [Postcode] "Within postcode [Postcode]" :heading{text-size:120%;} TABLE HEADER :heading CELL :{text-align:center;} "First Names" CELL :{text-align:center;} "Surname" ROWS :even :odd <"http://site.com/member.php?id=[MemberID]"> CELL "[First Name] [Middle Name]" CELL [Surname] {DBREPORT}