Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

menu for article site

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
colemanbusiness
Smarty n00b


Joined: 17 Apr 2006
Posts: 1

PostPosted: Mon Apr 17, 2006 3:45 pm    Post subject: menu for article site Reply with quote

how can i modify my code to make the menu appear like http://www.articlebiz.com


this is how it appears now http://www.excellentguide.com/article/


here is code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>{$title} {$smarty.const.SITE_TITLE}</title>

<link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/main.css"
type="text/css">

</head>
<body bgcolor="#EEEEFF">

<table cellspacing="0" cellpadding="0" align="center" width="755" style="border: 1px solid silver">
<tr><td>
<table cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
<td height="400" style="padding-left: 10px; padding-right: 10px;">

<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<link href="http://www.excellentguide.com/style.css" rel="stylesheet" type="text/css" />


<body>
<div align="center">
<table width="755" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="header" valign="top">
<!-- HEADER INFORMATION-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="headerleft" valign="top" width="314"><font face="Arial">
<img src="http://www.excellentguide.com/images/headerlogo.gif" width="352" height="95" /></font></td>
<td class="headerright" valign="top"><font face="Arial"><img src="http://www.excellentguide.com/images/menuheadertop.gif" width="368" height="36" /><br />
</font><font face="Verdana">
<font size="1" color="#FFFFFF">
<br />
</font></font><font face=Verdana size=-2><b><font color="#FFFFFF">
<a href="http://www.excellentguide.com/article/"><font color="#FFFFFF">Article's
Home </font></a>&|</font></b><font color="#FFFFFF"><a href="http://www.excellentguide.com/article/users/"><font color="#FFFFFF">
Submit Articles</font></a></a></font><b><font color="#FFFFFF"> |&
<a href="http://www.excellentguide.com/"><font color="#FFFFFF">Web Directory
</font></a>|</font></b><a href="http://www.excellentguide.com/article/contact.php"><font color="#FFFFFF">
</font></a><b><font color="#FFFFFF">
<a href="http://www.excellentguide.com/article/contact.php"><font color="#FFFFFF">
Contact Us</font></a></font></b></font><b><font size=1 color="#FFFFFF"><font face="Verdana">&
&&</font><font face="Arial"> </font></font>
</b><font face="Arial"><br />
&</font></td>
</tr>
</table></td>
</tr>
<tr>
<td class="mainbody" valign="top">
<!-- MAIN BODY SECTION-->
<p>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Excellent Guide Directory</title>
<meta name="description" content="">
<meta name="keywords" content="">
<LINK REL=STYLESHEET TYPE="text/css" HREF="main.inc">
</head>

<body bgcolor=#FFFFFF>
<table width="689" align=center>
<tr><td>
{if $smarty.get.act neq 'print'}

{strip}
<br>
<table class="my" cellspacing="1" cellpadding="0" height="100%" width="103%">
<tr>
<td width="170">
<table class="my" height="100%" width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid silver; border-top: 0; border-bottom: 0; border-left: 0;">
<tr>
<td height="20" class="my">
<form action="{$smarty.server.SCRIPT_NAME}" method="get">
<span>Search</span><input name="action" value="search" type="hidden">
<div style="vertical-align: bottom;"><input type="text" name="key" class="text" style="width: 100px;" maxlength="64" value="{$key}">&&
<img src="{$smarty.const.DOC_ROOT}/images/search.gif" style="cursor: hand; border: 0px;" onClick="submit();"></div>
</form>
</td>
</tr>
<tr>
<th height="20" class="my" style="padding: 8px;">Categories</th>
</tr>
<tr>
<td class="my" valign="top" style="padding-left: 8px;">
<span><img src="{$smarty.const.DOC_ROOT}/images/folder.gif" border="0"></span>
<span style="height: 15px;"><a href="{$smarty.const.DOC_ROOT}/">&Last Articles</a></span>
{foreach item=item from=$categories}
<br>{$item[2]}<span><img src="{$smarty.const.DOC_ROOT}/images/folder.gif" border="0">&</span>
<span style="height: 15px;">
<a href="{if $smarty.const.ENABLE_REWRITE eq 1}{$smarty.const.DOC_ROOT}{$item[1]}/page_1/
{else}index.php?page=1&category={$item[0]}{/if}">{$item[3]}</a></span>
{/foreach}
{$slinks}

</td>
</tr>
<tr>
<td align="center" valign="bottom" style="padding-bottom: 25px;">
{if $page neq 'article' and $page neq 'searchresult'}<a href="{$smarty.const.DOC_ROOT}/rss.php{if $category}?category={$category}{/if}">
<img src="{$smarty.const.DOC_ROOT}/images/xml.gif" border="0"></a><br><br>{/if}
<a href="{$smarty.const.DOC_ROOT}/users/"><font color="silver" size="1">[add new article]</font></a><br>
<a href="{$smarty.const.DOC_ROOT}/admin/"><font color="silver" size="1">[admin]</font></a>
</td>
</tr>
</table>
</td>
<td>
<table class="my" height="100%" width="98%" cellspacing="0" cellpadding="0">
<tr>
<th class="title" width="553" height="20">
{if $page eq 'article'}{$article[0]}
{elseif $page eq 'articles'}{$title}
{elseif $page eq 'last'}Last Articles
{elseif $page eq 'searchresult'}{$title}
{/if}
</th>
</tr>
<tr>
<td class="my" valign="top" width="533" style="padding-left: 20px;">
{if $page eq 'articles'}
{foreach item=item from=$articles}
<br><a href="{if $smarty.const.ENABLE_REWRITE eq 1}{$item[0]}{$smarty.const.SUFIX}
{else}index.php?article={$item[0]}{/if}">{$item[1]}</a><br> {$item[2]} <br><br>
{/foreach}
{elseif $page eq 'searchresult'}
{foreach item=item from=$articles}
<br><a href="{if $smarty.const.ENABLE_REWRITE eq 1}{$item[1]}{$smarty.const.SUFIX}
{else}index.php?article={$item[0]}{/if}">{$item[2]}</a><br> {$item[3]} <br><br>
{/foreach}
{$worning}
{elseif $page eq 'article'}
<br>
<div class="author"><b>Author:</b> {$article[2]}</div>
<div class="author"><b>Added:</b> {$article[3]}</div>
<br>
{$article[1]}
<br>
<br><div class="author"><span><img src="{$smarty.const.DOC_ROOT}/images/printer.gif" border="0"></span><span style="height: 15px;"><a href="{if $smarty.const.ENABLE_REWRITE eq 1}{$smarty.const.DOC_ROOT}/print/{$article[4]}{$smarty.const.SUFIX}{else}{$smarty.server.REQUEST_URI}&act=print{/if}">&<b>Print Article</b></a></span></div>
{elseif $page eq 'last'}
{foreach item=item from=$articles}
<br><a href="{if $smarty.const.ENABLE_REWRITE eq 1}{$item[0]}{$smarty.const.SUFIX}
{else}index.php?article={$item[0]}{/if}">{$item[1]}</a><br> {$item[2]} <br><br>
{/foreach}
{/if}
{if $pages and $page neq 'article'}
<br><br>
<table cellspacing="3" align="center">
<tr>
<td align="center" valign="middel">{$pages}</td>
</tr>
</table>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{/strip}

{else}
{strip}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>{$title} :: {$smarty.const.SITE_TITLE}</title>
<link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/main.css" type="text/css">
</head>
<body bgcolor="#EEEEFF">
<center><h2>{$article[0]}</h2></center>
<div class="author"><b>Author:</b> {$article[2]}</div>
<div class="author"><b>Added:</b> {$article[3]}</div>
<br>
{$article[1]}
</body>
</html>
{/strip}
{/if}

</table>

</body>
</html>
<p><br />
</td>
</tr>
<tr>
<td class="footer" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td class="footerleft" valign="top">
<p style="text-align: center"><b><font face=verdana size=-2>
<font color="#FFFFFF">&</font><font color="#000000"> </font></font>
<font color="#FFFFFF" face="Verdana" size="1">
<a href="http://www.excellentguide.com/article/"><font color="#000000">Article's
Home </font></a><font color="#000000">|</font></font></b><font face=Verdana size=1><font color="#FFFFFF"><a href="http://www.excellentguide.com/article/users/"><font color="#000000">
</font><font color="#FFFFFF">
<a href="http://www.excellentguide.com/article/users/"><font color="#000000">
Submit Articles</font></a></font></a></font><b><font color="#000000"> | </font>
<font color="#FFFFFF"><a href="http://www.excellentguide.com/">
<font color="#000000">Web Directory </font></a></font><font color="#000000">|</font></b><a href="http://www.excellentguide.com/contact.php"><font color="#000000">
</font></a><b><font color="#FFFFFF">
<a href="http://www.excellentguide.com/article/contact.php"><font color="#000000">
Contact Us</font></a></font></b></font></td>
<td class="footerright" valign="top" width="0"> </td>
</tr>
</table>
<!-- FOOTER SECTION-->
</td>
</tr>
</table>
</div>

</body>
</html>
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP