Filter:   InfoImg
download topics.php
Language: PHP
LOC: 52
Project Info
Free Market(freemarket)
Server: SourceForge
Type: cvs
...\freemarket\freemarket\www\
   .htaccess
   admin.php
   article.php
   auth.inc.php
   backend.php
   banners.php
   comments.php
   counter.php
   dhtmllib.js
   download.php
   ezhilit.php
   faq.php
   footer.php
   friend.php
   header.php
   index.php
   lang-croatian.php
   lang-danish.php
   lang-dutch.php
   lang-english.php
   lang-french.php
   lang-german.php
   lang-indonesia.php
   lang-indonesian.php
   lang-italian.php
   lang-japanese.php
   lang-korean.php
   lang-latvian.php
   lang-norwegian.php
   lang-polish.php
   lang-portuguese.php
   lang-quebec.php
   lang-russian.php
   lang-simplifiedchinese.php
   lang-slovak.php
   lang-spanish.php
   lang-swedish.php
   lang-TEMPLATE.php
   ...-traditionalchinese.php
   links.php
   mainfile.php
   memberlist.php
   memberslist.php
   pollBooth.php
   pollcomments.php
   postinfo.html
   print.php
   problems.php
   scroller.js
   search.php
   sections.php
   stats.php
   submit.php
   top.php
   topics.php
   user.php

<?PHP

######################################################################
# PHP-NUKE: Web Portal System
# ===========================
#
# Copyright (c) 2000 by Francisco Burzi (fburzi@ncc.org.ve)
# http://phpnuke.org
#
# This modules is to display all available topics to your visitors
#
# 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 2 of the License.
######################################################################

if (!IsSet($mainfile)) { include ('mainfile.php'); }

	include("header.php");
	dbconnect();
	$result = mysql_query("select topicid, topicname, topicimage, topictext from topics order by topicid");
	if (mysql_num_rows($result)==0) {
	    echo "<table border=0 bgcolor=000000 cellpadding=2 cellspacing=0 width=95%>
	    <tr><td>
	    <table border=0 bgcolor=FFFFFF cellpadding=1 cellspacing=0 width=100%>";
	}
	if (mysql_num_rows($result) > 0) {

	echo "<table border=0 bgcolor=000000 cellpadding=2 cellspacing=0 width=100%>
	<tr><td>
	<table border=0 bgcolor=FFFFFF cellpadding=1 cellspacing=0 width=100%>
	<tr><td><font size=3><b><center>".translate("Current Active Topics")."</b><br>".translate("Click to list all articles in this topic")."</center><br>
	<center><table border=0 width=100% align=center cellpadding=2><tr>";


		while(list($topicid, $topicname, $topicimage, $topictext) = mysql_fetch_array($result)) {
?>
			
		<td align=center>
		<?php echo "<a href=search.php?query=&topic=$topicid>"; ?><img src=<?php echo "$tipath$topicimage"; ?> border=0></a><br>
		<font size=2><b><?php echo "$topictext"; ?>
		</td>
		<?php
		
		// Thanks to John Hoffmann from softlinux.org for the next 5 lines ;)
		
		$count++;
		if ($count == 5) {
		    echo "</tr></tr>";
		    $count = 0;
		}
		?>
<?php
		}
	echo "</tr></table>";
	} 
	?>
	</td></tr></table></td></tr></table>
	<?php
	mysql_free_result($result);
	include("footer.php");

?>