<?php
/***************************************************************************
* Product Name : Pointter PHP Content Management System
* Version : V 1.2
* Release Date : 01/02/11
* Copyright : (C) 2011 PangramSoft / Murat Cevik
* Program URL : http://www.pointter.com
* Company URL : http://www.pangramsoft.com
* Email Address : hide@address.com
***************************************************************************/
/****************************************************************************
Pointter PHP Content Management System is licensed under Creative Commons Attribution Non-commercial No Derivatives 3.0 Unported (by-nc-nd) License.
To view a copy of this license, (a) visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or (b) send a letter to Creative Commons, 171 2nd Street,
Suite 300, San Francisco, California, 94105, USA.
You must not remove/modify/alter the copyright informations both visible and invisible forms in the source code and you must not remove/modify/alter
the copyright informations in the footer part of the script including the Pointter image (png format file), hard link and title tag.
Please contact the copyright holder PangramSoft / Murat Cevik for a commercial license to remove the copyright information in the footer part of the script.
*****************************************************************************/
if ($onoff==1)
{
include 'configset/conn.php';
$cat_data=mysql_query("SELECT * FROM Category WHERE Code='0' ORDER BY Name ASC");
echo '<table cellpadding="10" style="background-image:url(pixel_3.png);" width="210" align="center" cellspacing="0"><tr><td style="background-image:url(pixel_1.png);" class="header" align="left"><b>';
echo $box_name.'</b></td></tr>';
echo '<tr><td align="left">';
while ($row=mysql_fetch_array($cat_data))
{
$product_data=mysql_query("SELECT * FROM Products WHERE Subcode='$row[Name]'");
$num=mysql_num_rows($product_data);
$sub_data=mysql_query("SELECT * FROM Category WHERE Subcode='$row[CategoryID]'");
if ($box_count==1)
{
echo '<a class="link" onmouseover="toggle ('."'layer".$row[CategoryID]."'".');" href="'.$row[Url].'"><b>'.$row[Name]." (".$num.")"."</b></a>".'<br/>';
echo '<div id="layer'.$row[CategoryID].'" style="display:none;">';
while ($row_sub=mysql_fetch_array($sub_data))
{
$subproduct_data=mysql_query("SELECT * FROM Products WHERE Category='$row_sub[Name]'");
$subnum=mysql_num_rows($subproduct_data);
echo ' <a class="link" href="'.$row_sub[Url].'">'.$row_sub[Name]." (".$subnum.")"."</a><br/>";
}
echo '</div>';
}
else if ($box_count==0)
{
echo '<a class="link" onmouseover="toggle ('."'layer".$row[CategoryID]."'".');" href="'.$row[Url].'"><b>'.$row[Name]."</b></a>".'<br/>';
echo '<div id="layer'.$row[CategoryID].'" style="display:none;">';
while ($row_sub=mysql_fetch_array($sub_data))
{
echo ' <a class="link" href="'.$row_sub[Url].'">'.$row_sub[Name]."</a><br/>";
}
echo '</div>';
}
}
echo '</td></tr></table><br/><br/>';
mysql_close($connect);
}
?>