PDA

View Full Version : classifieds top menu and bottom menu template



thread_PHP
09-02-2006, 10:24 AM
Hello All
I am working on classifieds with an option of topmenu content and bottom menu how to create bottom menu
IN THE FOLLOWING GORUM->INIT.PHP


function showApp()
{
global $gorumcontent,$navBarText,$infoText;
global $upperTemplate,$lowerTemplate,$lll,$xi,$NS4;


$this->makeLoginMenu($loginMenu);
$this->makeUserMenu($userMenu);
$this->makeAdminMenu($adminMenu);
$this->makeClassifMenu($zorumMenu,$loginMenu,$userMenu);

$userStatus=$this->showUserStatus();
$userMenuStr=templateShowMenu($zorumMenu);
$adminMenuStr=templateShowMenu($adminMenu);


// $this->showVersionFooter;
# $footer=$this->showVersionFooter();

if (!$navBarText) $navBarText="";
$s=templateMain($userMenuStr,$adminMenuStr,$userSt atus,
$navBarText,$infoText,$gorumcontent,$footer);


-> $s.=templateShowMenu1($zorumMenu);
-> $s.=templateShowMenu1($adminMenu);
$footer=$this->showVersionFooter();
return $s;
}


I HAVE ADDED LIKE THIS WHERE I PUT ARROWS

IN MY TEMPLATE.PHP PAGE


function templateShowMenu1($menu)
{
global $xi;
//$s="<br>";
$s.="<table border='0' width='98%' height='25' cellpadding='0' cellspacing='1' bgcolor='#000000' align='center' class='whiteTitle12' >";
$s.="<tr><TD valign=top colspan='28'></td></tr>";
$s.="<tr><TD valign=top></TD>";
$first=TRUE;

foreach($menu as $id=>$menuPoint)
{
if (!$first)
{
$s.="<td align='left' valign='middle' colspan=3>";
$s.="<img src='$xi/menu_line.gif' >";
$s.="</td>";
}
$s.="<td><div align='center' colspan=3>";
#$s.="<class ='menulinks'>";
$s.=$menuPoint;
$s.="</font></div></td>";

//$s.="<TD width='4'>&nbsp;</TD>";
#$first=FALSE;//echo $first;die;

}

$s.="<tr><TD valign='bottom' colspan='28'></td></tr>";

$s.="</table>";

#$s.=$menuPoint;
return $s;



}


I HAVE CREATE THIS FUNCTION templateShowMenu1;


I am sending herewith bad_words.zip file along with this mail please help me how to put the menu above as bottom menu

thanks in advance

thread_PHP
09-04-2006, 04:28 AM
I got the solution
the following function i changed like this



function showApp()
{
global $gorumcontent,$navBarText,$infoText;
global $upperTemplate,$lowerTemplate,$lll,$xi,$NS4;


$this->makeLoginMenu($loginMenu);
$this->makeUserMenu($userMenu);
$this->makeAdminMenu($adminMenu);
$this->makeClassifMenu($zorumMenu,$loginMenu,$userMenu);

$userStatus=$this->showUserStatus();
$userMenuStr=templateShowMenu($zorumMenu);
$adminMenuStr=templateShowMenu($adminMenu);

if (!$navBarText) $navBarText="";
$s=templateMain($userMenuStr,$adminMenuStr,$userSt atus,
$navBarText,$infoText,$gorumcontent,$footer);

$s.= $this->showVersionFooter;
$s.=templateShowMenu1($zorumMenu);
$s.=templateShowMenu1($adminMenu);
$s.= templateShowVersionFooter1();


return $s;
}




function templateShowMenu1($menu)
{
global $xi;
//$s="<br>";
$s.="<table border='0' width='95%' height='25' cellpadding='0' cellspacing='1' bgcolor='#000000' align='center'>";
$s.="<tr><TD valign=top colspan='28'></td></tr>";
$s.="<tr><TD valign=top></TD>";
$first=TRUE;

foreach($menu as $id=>$menuPoint)
{
if (!$first)
{
$s.="<td align='left' valign='middle' colspan=3>";
$s.="<img src='$xi/menu_line.gif' >";
$s.="</td>";
}
$s.="<td><div align='center' colspan=3>";
#$s.="<class ='menulinks'>";
$s.=$menuPoint;
$s.="</font></div></td>";

//$s.="<TD width='4'>&nbsp;</TD>";
#$first=FALSE;//echo $first;die;

}

$s.="<tr><TD valign='bottom' colspan='28'></td></tr>";
// $s.="</table></form>";
$s.="</table>";
//$s.=templateShowVersionFooter1();
$s.=$menuPoint;
return $s;



}


bottom menu working but page setup was disturbed