home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 March / PCWorld_2001-03_cd.bin / KOMUNIK / progweb / progweb.exe / phpnuke / html / themes / Metal / theme.php < prev    next >
Encoding:
PHP Script  |  2000-11-26  |  9.4 KB  |  219 lines

  1. <?php
  2. $thename = "Metal";
  3. $bgcolor1 = "silver";
  4. $bgcolor2 = "white";
  5. $bgcolor3 = "#FFFFFF"; //white
  6. $textcolor1 = "#000000";  //black
  7. $textcolor2 = "silver";
  8. $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
  9.  
  10. function themepreview($title, $introtext, $fulltext="", $notes="") {
  11.     echo "<p><b>$title</b><br>$introtext<br><br>$fulltext $notes";
  12. }
  13. function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  14.     global $tipath, $anonymous;
  15.     if ("$aid" == "$informant")
  16.      {
  17.  ?>
  18. <!-- Regular Story HTML posted by ADMIN-->
  19. <table border=0 cellpadding=0 cellspacing=0 width=100% background="themes/Metal/steel3.jpg">
  20. <tr>
  21. <td background="themes/Metal/tbar1.gif" height="17"><img src="themes/Metal/tleft1.gif" width="17" height="17" alt=" "></td>
  22. <td background="themes/Metal/tbar1.gif" width="99%">
  23. <FONT SIZE="2"><B><?php echo"$title"; ?></B></FONT></td>
  24. <td><img src="themes/Metal/tright1.gif" width="17" height="17" alt=" "></td>
  25. </tr>
  26. <tr>
  27. <td background="themes/Metal/leftbar1.gif" align="left"> </td>
  28. <td width="100%" align="left" valign="top" background="themes/Metal/steel3.jpg">
  29. <font size=1><?php echo translate("Posted by "); ?><b><?php formatAidHeader($aid) ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</font><br><br></td>
  30. <td background="themes/Metal/rightbar1.gif"> </td>
  31. </tr>
  32. <tr bgcolor="#ffffff">
  33.     <td background="themes/Metal/leftbar1.gif" align="left"> </td>
  34.     <td width=100% valign="top" background="themes/Metal/steel3.jpg">
  35.  
  36. <FONT SIZE="1">
  37. <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=1 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  38. <?php echo"<font size=2>$thetext<br>"; ?>
  39.             </FONT>
  40. </td>
  41. <td background="themes/Metal/rightbar1.gif"> </td>
  42. </tr>
  43. <tr>
  44. <td background="themes/Metal/leftbar1.gif" height="17"> </td>
  45. <td width="99%" align="left" background="themes/Metal/steel3.jpg">
  46. <FONT SIZE="2"><B><?php echo "$morelink"; ?></B></FONT></td>
  47. <td background="themes/Metal/rightbar1.gif"> </td>
  48. </tr>
  49. <TR>
  50. <TD background="themes/Metal/bbar1.gif" valign="top" height="17"><IMG src="themes/Metal/bleft1.gif" width="17" height="17" alt=" "></TD>
  51. <td align="center" valign="top" background="themes/Metal/bbar1.gif"> </td>
  52. <TD background="themes/Metal/bbar1.gif" valign="top"><IMG src="themes/Metal/bright1.gif" width="17" height="17" alt=" "></TD>
  53. </TR>
  54. </table><br>
  55. <?php    } else {
  56.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  57.         else $boxstuff = "$anonymous ";
  58.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  59. ?>
  60. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=white width=100%>
  61. <tr><td>
  62.  
  63. <!-- Story HTML posted by USER-->
  64. <table border=0 cellpadding=0 cellspacing=0 width=100% background="themes/Metal/steel3.jpg">
  65. <tr>
  66. <td background="themes/Metal/tbar1.gif" height="17"><img src="themes/Metal/tleft1.gif" width="17" height="17" alt=" "></td>
  67. <td background="themes/Metal/tbar1.gif" width="99%">
  68. <FONT SIZE="2"><B><?php echo"$title"; ?></B></FONT></td>
  69. <td><img src="themes/Metal/tright1.gif" width="17" height="17" alt=" "></td>
  70. </tr>
  71. <tr>
  72. <td background="themes/Metal/leftbar1.gif" align="left"> </td>
  73. <td width="100%" align="left" valign="top" background="themes/Metal/steel3.jpg">
  74. <font size=1><?php echo translate("Posted by "); ?><?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)<br><br>
  75. </font></td>
  76. <td background="themes/Metal/rightbar1.gif"> </td>
  77. </tr>
  78. <tr bgcolor="#ffffff">
  79.     <td background="themes/Metal/leftbar1.gif" align="left"> </td>
  80.     <td width=100% valign="top" background="themes/Metal/steel3.jpg">
  81.             <FONT SIZE=1>
  82.             <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=1 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  83. <?php echo"$boxstuff<br><br>"; ?>
  84.             </FONT>
  85. </td>
  86. <td background="themes/Metal/rightbar1.gif"> </td>
  87. </tr>
  88. <tr>
  89. <td background="themes/Metal/leftbar1.gif" height="17"> </td>
  90. <td width="99%" align="left" background="themes/Metal/steel3.jpg">
  91. <FONT SIZE="2"><B><?php echo "$morelink"; ?></B></FONT></td>
  92. <td background="themes/Metal/rightbar1.gif"> </td>
  93. </tr>
  94. <TR>
  95. <TD background="themes/Metal/bbar1.gif" valign="top"><IMG src="themes/Metal/bleft1.gif" width="17" height="17" alt=" "></TD>
  96. <td align="center" valign="top" background="themes/Metal/bbar1.gif"> </td>
  97. <TD background="themes/Metal/bbar1.gif" valign="top"><IMG src="themes/Metal/bright1.gif" width="17" height="17" alt=" "></TD>
  98. </TR>
  99. </table></table>
  100. <br>
  101.  
  102. <?php    }
  103. }
  104.  
  105. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  106.     global $admin, $sid, $tipath;
  107.     if ("$aid" == "$informant") {
  108. echo" 
  109. <table border=0 cellpadding=0 cellspacing=0 width=100% background=themes/Metal/steel3.jpg>
  110.     <tr>
  111.         <td background=themes/Metal/tbar1.gif height=17><img src=themes/Metal/tleft1.gif width=17 height=17></td>
  112.         <td background=themes/Metal/tbar1.gif width=99%>
  113. <FONT SIZE=2><b>$title</b>
  114. </FONT></td>
  115.         <td><img src=themes/Metal/tright1.gif width=17 height=17></td>
  116.     </tr>
  117.     <tr>
  118.         <td background=themes/Metal/leftbar1.gif align=left> </td>
  119.         <td width=100% align=left valign=top background=themes/Metal/steel3.jpg>
  120. <font size=1>".translate("Posted on ")."
  121. $datetime";
  122. if ($admin) {
  123.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]<br><br>";
  124. }
  125. echo "
  126.     <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=1 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  127. $thetext        
  128. </td>
  129. <td background=themes/Metal/rightbar1.gif> </td>
  130. </tr>
  131. <TR>
  132. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bleft1.gif width=17 height=17></TD>
  133. <td align=center valign=top background=themes/Metal/bbar1.gif> </td>
  134. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bright1.gif width=17 height=17></TD>
  135. </TR>
  136. </table></table>
  137. ";
  138.  
  139.     } else {
  140.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  141.         else $boxstuff = "$anonymous ";
  142.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  143. echo "
  144.  
  145. <table border=0 cellpadding=0 cellspacing=0 width=100% background=themes/Metal/steel3.jpg>
  146.     <tr>
  147.         <td background=themes/Metal/tbar1.gif height=17><img src=themes/Metal/tleft1.gif width=17 height=17></td>
  148.         <td background=themes/Metal/tbar1.gif width=99%>
  149. <FONT SIZE=2><b>$title</b>
  150. </FONT></td>
  151.         <td><img src=themes/Metal/tright1.gif width=17 height=17></td>
  152.     </tr>
  153.     <tr>
  154.         <td background=themes/Metal/leftbar1.gif align=left> </td>
  155.         <td width=100% align=left valign=top background=themes/Metal/steel3.jpg>
  156. <font size=1>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  157. ";
  158. if ($admin) {
  159.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  160. }
  161. echo "
  162.     <!-- THIS PORTION DOESN'T BELONG HERE --        
  163.             </FONT>
  164.         </td><td align=right valign=top><img src=themes/Summer/rtb.gif width=13 height=16></td>
  165.     </tr>
  166.     <tr bgcolor=white></tr><tr bgcolor=white>
  167.         <td width=100% valign=top> 
  168.     ---- ---- ---- ---- ---- ---- ---- ---->
  169.  
  170.             <FONT SIZE=1>
  171.             
  172.     <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage
  173. border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a><hr>
  174. $thetext
  175.             
  176. </td>
  177. <td background=themes/Metal/rightbar1.gif> </td>
  178. </tr>
  179. <TR>
  180. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bleft1.gif width=17 height=17></TD>
  181. <td align=center valign=top background=themes/Metal/bbar1.gif> </td>
  182. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bright1.gif width=17 height=17></TD>
  183. </TR>
  184. </table></table>
  185. </td>
  186. ";
  187.  
  188.  
  189.     }
  190. }
  191.  
  192.  
  193. function themesidebox($title, $content) {
  194.     echo "
  195.     <table border=0 cellpadding=0 cellspacing=0 width=100% background=themes/Metal/steel3.jpg>
  196.     <tr>
  197.     <td background=themes/Metal/tbar1.gif height=17><img src=themes/Metal/tleft1.gif width=17 height=17></td>
  198.     <td background=themes/Metal/tbar1.gif align=center width=99%>
  199.     <FONT SIZE=2 FACE=Verdana, Arial><B>$title</B></FONT></td>
  200.     <td><img src=themes/Metal/tright1.gif width=17 height=17 alt= ></td>
  201.     </tr>
  202.     <tr bgcolor=#ffffff>
  203.     <td background=themes/Metal/leftbar1.gif align=left> </td>
  204.     <td width=100% valign=top background=themes/Metal/steel3.jpg>
  205.     <FONT SIZE=1 face=Verdana, Arial>
  206.     $content
  207.     </FONT>
  208.     </td>
  209.     <td background=themes/Metal/rightbar1.gif> </td>
  210.     </tr>
  211. <TR>
  212.     <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bleft1.gif width=17 height=17></TD>
  213.     <TD background=themes/Metal/bbar1.gif valign=top align=center> </TD>
  214.     <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bright1.gif width=17 height=17></TD>
  215.     </TR>
  216.     </table><br>
  217. ";
  218. }
  219.  
  220. ?>
  221.