--- /dev/null
+<?php
+/*=====================================================================*\
+|| ################################################################### ||
+|| # Bugdar [#]version[#]
+|| # --------------------------------------------------------------- # ||
+|| # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
+|| # This file may not be reproduced in any way without permission. # ||
+|| # --------------------------------------------------------------- # ||
+|| # User License Agreement at http://www.iris-studios.com/license/ # ||
+|| ################################################################### ||
+\*=====================================================================*/
+
+$fetchtemplates = array(
+ 'explain_product'
+);
+
+define('SVN', '$Id$');
+
+$focus['showreport'] = 'focus';
+
+require_once('./global.php');
+
+// ###################################################################
+
+if (empty($_REQUEST['do']))
+{
+ $_REQUEST['do'] = 'products';
+}
+
+// ###################################################################
+
+if ($_REQUEST['do'] == 'products')
+{
+ foreach ($bugsys->datastore['product'] AS $product)
+ {
+ if ($product['componentmother'])
+ {
+ $components["$product[componentmother]"]["$product[productid]"] = $product;
+ }
+ else
+ {
+ $products["$product[productid]"] = $product;
+ }
+ }
+
+ foreach ($bugsys->datastore['version'] AS $version)
+ {
+ $versions["$version[productid]"]["$version[versionid]"] = $version;
+ }
+
+ // global versions
+ foreach ($versions['0'] AS $version)
+ {
+ $left = $version['version'];
+ $right = null;
+ eval('$globalversions .= "' . $template->fetch('explain_row') . '";');
+ }
+
+ foreach ($products AS $product)
+ {
+ $left = $product['title'];
+ $right = $product['description'];
+ $trextra = ' style="background-color: ' . $stylevar['alt_colour'] . '"';
+ eval('$productlist .= "' . $template->fetch('explain_row') . '";');
+
+ foreach ($components["$product[productid]"] AS $component)
+ {
+ $left = ' › ' . $component['title'];
+ $right = $component['description'];
+ $trextra = '';
+ eval('$productlist .= "' . $template->fetch('explain_row') . '";');
+ }
+ }
+
+ eval('$template->flush("' . $template->fetch('explain_product') . '");');
+}
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file
--- /dev/null
+$doctype
+<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
+<head>
+$headinclude
+ <title>{$bugsys->options['trackertitle']} - {@"Products"}</title>
+</head>
+
+<body>
+
+$header
+
+<h2>{@"Explication of Products"}</h2>
+
+<if condition="$globalversions">
+ <table border="$stylevar[border]" cellspacing="$stylevar[spacing]" cellpadding="$stylevar[padding]px" width="$stylevar[normal_width]">
+ <tr class="listinghead">
+ <td colspan="2">{@"Global Versions"}</td>
+ </tr>
+ <tr style="background-color: $stylevar[alt_colour]">
+ <td colspan="2">{@"These versions are avaliable for every product, component, and version."}</td>
+ </tr>
+ $globalversions
+ </table>
+</if>
+
+<br />
+
+<table border="$stylevar[border]" cellspacing="$stylevar[spacing]" cellpadding="$stylevar[padding]px" width="$stylevar[normal_width]">
+<tr class="listinghead">
+ <td colspan="2">{@"Products"} (components are in white)</td>
+</tr>
+$productlist
+</table>
+
+$footer
\ No newline at end of file