home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 March / PCWorld_2001-03_cd.bin / KOMUNIK / progweb / progweb.exe / phpnuke / html / themes / Slashdot / header.php < prev    next >
PHP Script  |  2000-11-25  |  2KB  |  43 lines

  1. <?php
  2. include('config.php')
  3. ?>
  4.  
  5. <body onload=init() bgcolor="#000000" text="#000000" link="#006666" vlink="#006666">
  6.  
  7. <center>
  8. <table bgcolor="#FFFFFF" cellpadding=0 cellspacing=0 border=0 width="99%" align=center>
  9.  <tr>
  10.   <td valign=top align=left valign=top>
  11.    <a href="<?php echo $nuke_url; ?>"><img src="themes/Slashdot/logo.gif" width=275 height=72 border=0 alt="<?php echo "".translate("Welcome to").""; ?> <?php echo $sitename; ?>"></a>
  12.   </td>
  13.  
  14. <td width=100%>
  15. <?php
  16. mysql_pconnect($dbhost, $dbuname, $dbpass);
  17. $result = mysql_query("select topic from stories order by sid DESC limit 3,5");
  18. echo "<center>";
  19. while(list($topic) = mysql_fetch_row($result)) {
  20.     $result2 = mysql_query("select topicid, topicimage, topictext from topics where topicid='$topic'");
  21.     list($topicid, $topicimage, $topictext) = mysql_fetch_row($result2);
  22.     echo "<a href=search.php?query=&topic=$topicid><img src=$tipath$topicimage hspace=3 Alt=\"$topictext\" border=0></a>";
  23. }
  24. echo "</center><br>";
  25. ?>
  26.  
  27. </td></tr></table>
  28.  
  29. <table bgcolor="#FFFFFF" cellpadding=0 cellspacing=0 border=0 width="99%" align=center><tr><td>
  30.  
  31. <?php
  32. mysql_pconnect($dbhost, $dbuname, $dbpass);
  33. $MainBlock=mysql_query("select content from mainblock");
  34. list($content) = mysql_fetch_row($MainBlock);
  35. ?>
  36. <table width="99%" align=center cellpadding=0 cellspacing=5 border=0 bgcolor="#FFFFFF"><tr>
  37. <td valign=top rowspan=5 width=12%><NOBR><font size=2><B>
  38. <?php echo "$content"; ?>
  39. </B></font></NOBR>
  40. </td>
  41. <?php mysql_free_result($MainBlock); ?>
  42.  
  43. <td valign=top align=left>