Location: PHPKode > projects > FiForms Framework > FiForms/apps/books/reports/list_cat.xml
<?xml version="1.0"?>
<!DOCTYPE reportdef PUBLIC "-//FIFORMS//DTD FIREPORTDEF 1.1//EN" "http://xml.fiforms.org/dtd/11/FiReportDef.dtd">
<reportdef xmlns="http://xml.fiforms.org/FiForms/" version="1.1">
<title>Book Listing by Category</title>
<summary>Queries for tree-style listing of books by categories</summary>
<connect db="fiforms_sample" id="1" server="localhost" type="MySQL"/>
<stylesheet caption="Tree Category List" default="default" href="cat_tree.xsl"/>
<query connectid="1" output="yes" resultname="Book Categories">
<sql>
Select * from categories
</sql>
</query>
<query connectid="1" output="yes" resultname="Books">
<sql>
	SELECT books.BOOK_ID, BOOK_TITLE, CAT_ID
	FROM books NATURAL JOIN bookcats
</sql>
</query>
</reportdef>
Return current item: FiForms Framework