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 >
PHP Script  |  2000-11-26  |  10KB  |  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><br>
  100.  
  101. <?php    }
  102. }
  103.  
  104. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  105.     global $admin, $sid, $tipath;
  106.     if ("$aid" == "$informant") {
  107. echo" 
  108. <table border=0 cellpadding=0 cellspacing=0 width=100% background=themes/Metal/steel3.jpg>
  109.     <tr>
  110.         <td background=themes/Metal/tbar1.gif height=17><img src=themes/Metal/tleft1.gif width=17 height=17></td>
  111.         <td background=themes/Metal/tbar1.gif width=99%>
  112. <FONT SIZE=2><b>$title</b>
  113. </FONT></td>
  114.         <td><img src=themes/Metal/tright1.gif width=17 height=17></td>
  115.     </tr>
  116.     <tr>
  117.         <td background=themes/Metal/leftbar1.gif align=left> </td>
  118.         <td width=100% align=left valign=top background=themes/Metal/steel3.jpg>
  119. <font size=1>".translate("Posted on ")."
  120. $datetime";
  121. if ($admin) {
  122.     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>";
  123. }
  124. echo "
  125.     <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=1 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  126. $thetext        
  127. </td>
  128. <td background=themes/Metal/rightbar1.gif> </td>
  129. </tr>
  130. <TR>
  131. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bleft1.gif width=17 height=17></TD>
  132. <td align=center valign=top background=themes/Metal/bbar1.gif> </td>
  133. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bright1.gif width=17 height=17></TD>
  134. </TR>
  135. </table></table>
  136. ";
  137.  
  138.     } else {
  139.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  140.         else $boxstuff = "$anonymous ";
  141.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  142. echo "
  143.  
  144. <table border=0 cellpadding=0 cellspacing=0 width=100% background=themes/Metal/steel3.jpg>
  145.     <tr>
  146.         <td background=themes/Metal/tbar1.gif height=17><img src=themes/Metal/tleft1.gif width=17 height=17></td>
  147.         <td background=themes/Metal/tbar1.gif width=99%>
  148. <FONT SIZE=2><b>$title</b>
  149. </FONT></td>
  150.         <td><img src=themes/Metal/tright1.gif width=17 height=17></td>
  151.     </tr>
  152.     <tr>
  153.         <td background=themes/Metal/leftbar1.gif align=left> </td>
  154.         <td width=100% align=left valign=top background=themes/Metal/steel3.jpg>
  155. <font size=1>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  156. ";
  157. if ($admin) {
  158.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  159. }
  160. echo "
  161.     <!-- THIS PORTION DOESN'T BELONG HERE --        
  162.             </FONT>
  163.         </td><td align=right valign=top><img src=themes/Summer/rtb.gif width=13 height=16></td>
  164.     </tr>
  165.     <tr bgcolor=white></tr><tr bgcolor=white>
  166.         <td width=100% valign=top> 
  167.     ---- ---- ---- ---- ---- ---- ---- ---->
  168.  
  169.             <FONT SIZE=1>
  170.             
  171.     <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage
  172. border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a><hr>
  173. $thetext
  174.             
  175. </td>
  176. <td background=themes/Metal/rightbar1.gif> </td>
  177. </tr>
  178. <TR>
  179. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bleft1.gif width=17 height=17></TD>
  180. <td align=center valign=top background=themes/Metal/bbar1.gif> </td>
  181. <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bright1.gif width=17 height=17></TD>
  182. </TR>
  183. </table></table>
  184. </td>
  185. ";
  186.  
  187.  
  188.     }
  189. }
  190.  
  191.  
  192. function themesidebox($title, $content) {
  193.     echo "
  194.     <table border=0 cellpadding=0 cellspacing=0 width=100% background=themes/Metal/steel3.jpg>
  195.     <tr>
  196.     <td background=themes/Metal/tbar1.gif height=17><img src=themes/Metal/tleft1.gif width=17 height=17></td>
  197.     <td background=themes/Metal/tbar1.gif align=center width=99%>
  198.     <FONT SIZE=2 FACE=Verdana, Arial><B>$title</B></FONT></td>
  199.     <td><img src=themes/Metal/tright1.gif width=17 height=17 alt= ></td>
  200.     </tr>
  201.     <tr bgcolor=#ffffff>
  202.     <td background=themes/Metal/leftbar1.gif align=left> </td>
  203.     <td width=100% valign=top background=themes/Metal/steel3.jpg>
  204.     <FONT SIZE=1 face=Verdana, Arial>
  205.     $content
  206.     </FONT>
  207.     </td>
  208.     <td background=themes/Metal/rightbar1.gif> </td>
  209.     </tr>
  210. <TR>
  211.     <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bleft1.gif width=17 height=17></TD>
  212.     <TD background=themes/Metal/bbar1.gif valign=top align=center> </TD>
  213.     <TD background=themes/Metal/bbar1.gif valign=top><IMG src=themes/Metal/bright1.gif width=17 height=17></TD>
  214.     </TR>
  215.     </table><br>";
  216. }
  217.  
  218. ?>
  219.