".$site_name." : ";
echo "Sitemap |
";
echo "\n";
echo "- ".$site_name."\n";
$q_sitemap = "SELECT id, description, name, n01 FROM categories WHERE parent='0' and active = 1 ORDER BY n02";
$mysql_r_sitemap = my_query($q_sitemap, $c);
echo "
\n";
while($mysql_i_sitemap = mysql_fetch_array($mysql_r_sitemap))
{
$v_id_sitemap = $mysql_i_sitemap["id"];
$v_name_sitemap = $mysql_i_sitemap["name"];
$v_n01_sitemap = $mysql_i_sitemap["n01"];
$v_description_sitemap = $mysql_i_sitemap["description"];
echo "- ".$v_name_sitemap;
IF ($v_n01_sitemap == 1)
{
echo " (".$v_description_sitemap.")";
}
echo "\n";
$q_sitemap2 = "SELECT id, description, name, n01 FROM categories WHERE parent='".$v_id_sitemap."' and active = 1 ORDER BY name";
$mysql_r_sitemap2 = my_query($q_sitemap2, $c);
echo "
\n";
while($mysql_i_sitemap2 = mysql_fetch_array($mysql_r_sitemap2))
{
$v_id_sitemap2 = $mysql_i_sitemap2["id"];
$v_name_sitemap2 = $mysql_i_sitemap2["name"];
$v_n01_sitemap2 = $mysql_i_sitemap2["n01"];
$v_description_sitemap2 = $mysql_i_sitemap2["description"];
echo "- ".$v_name_sitemap2;
IF ($v_n01_sitemap2 == 1)
{
echo " (".$v_description_sitemap2.")";
}
echo "\n";
$q_sitemap3 = "SELECT id, description, name, n01 FROM categories WHERE parent='".$v_id_sitemap2."' and active = 1 ORDER BY name";
$mysql_r_sitemap3 = my_query($q_sitemap3, $c);
echo "
";
while($mysql_i_sitemap3 = mysql_fetch_array($mysql_r_sitemap3))
{
$v_id_sitemap3 = $mysql_i_sitemap3["id"];
$v_name_sitemap3 = $mysql_i_sitemap3["name"];
$v_n01_sitemap3 = $mysql_i_sitemap3["n01"];
$v_description_sitemap3 = $mysql_i_sitemap3["description"];
echo "- ".$v_name_sitemap3;
IF ($v_n01_sitemap3 == 1)
{
echo " (".$v_description_sitemap3.")";
}
echo "\n";
$q_sitemap4 = "SELECT id, description, name, n01 FROM categories WHERE parent='".$v_id_sitemap3."' and active = 1 ORDER BY name";
$mysql_r_sitemap4 = my_query($q_sitemap4, $c);
echo "
";
while($mysql_i_sitemap4 = mysql_fetch_array($mysql_r_sitemap4))
{
$v_id_sitemap4 = $mysql_i_sitemap4["id"];
$v_name_sitemap4 = $mysql_i_sitemap4["name"];
$v_n01_sitemap4 = $mysql_i_sitemap4["n01"];
$v_description_sitemap4 = $mysql_i_sitemap4["description"];
echo "- ".$v_name_sitemap4;
IF ($v_n01_sitemap4 == 1)
{
echo " (".$v_description_sitemap4.")";
}
echo "\n";
$q_sitemap5 = "SELECT id, description, name, n01 FROM categories WHERE parent='".$v_id_sitemap4."' and active = 1 ORDER BY name";
$mysql_r_sitemap5 = my_query($q_sitemap5, $c);
echo "
";
while($mysql_i_sitemap5 = mysql_fetch_array($mysql_r_sitemap5))
{
$v_id_sitemap5 = $mysql_i_sitemap5["id"];
$v_name_sitemap5 = $mysql_i_sitemap5["name"];
$v_n01_sitemap5 = $mysql_i_sitemap5["n01"];
$v_description_sitemap5 = $mysql_i_sitemap5["description"];
echo "- ".$v_name_sitemap5;
IF ($v_n01_sitemap5 == 1)
{
echo " (".$v_description_sitemap5.")";
}
echo "\n";
$q_sitemap6 = "SELECT id, description, name, n01 FROM categories WHERE parent='".$v_id_sitemap5."' and active = 1 ORDER BY name";
$mysql_r_sitemap6 = my_query($q_sitemap6, $c);
echo "";
}
echo "
";
}
echo "
";
}
echo "
";
}
echo "
";
}
echo "
";
echo "
";
include "footer.php";
?>