Location: PHPKode > projects > SOS Webpages > includes/submenu.php
<?php
// +----------------------------------------------------------------------+
// SOS Webpages is an easy-to-manage website management system
// Copyright (C) 2007 -2010 HandsomeWeb
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
// Contact the author of this software at http://www.handsomeweb.com.
// +----------------------------------------------------------------------+
$menutext = "";
/* This page is reserved for future development of a submenu.
//Setting the default menu divider
if ($submenu_item_divider==""){
$submenu_item_divider="<br />";
}
$dbh=mysql_connect($dbhhost,$dbhuser,$dbhpassword) or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db($dbhdatabasename);
$query = "SELECT * FROM " . $dbprefix . "hw_pages WHERE (pages_parent_id=$pages_id or pages_parent_id=$pages_parent_id) and pages_parent_id>0 ORDER BY pages_order, pages_menu_title";
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
while ($i<$num){
$menu_pages_menu_title=mysql_result($result,$i,"pages_menu_title");
$menu_pages_uri=mysql_result($result,$i,"pages_uri");
$menu_pages_id=mysql_result($result,$i,"pages_id");
if ($i<>0){
echo $submenu_item_divider;
}
echo "<a class='menu' href='http://" . $site_uri . "index.php?pages_id=" . $menu_pages_id . "&amp;t=" . $menu_pages_uri . "'>" . $menu_pages_menu_title . "</a>";
$i++;
}
mysql_close();
*/
?>
Return current item: SOS Webpages