home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 March / PCWorld_2001-03_cd.bin / KOMUNIK / progweb / progweb.exe / phpnuke / html / themes / Ethereal / theme.php < prev   
PHP Script  |  2000-11-26  |  5KB  |  165 lines

  1. <?php
  2.  
  3. $thename = "Ethereal";
  4. $lnkcolor = "000000";
  5. $bgcolor1 = "#7897A9";
  6. $bgcolor2 = "#394E59";
  7. $bgcolor3 = "#7897A9";
  8. $textcolor1 = "#FFFFFF";
  9. $textcolor2 = "#000000";
  10. $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
  11.  
  12. function themepreview($title, $hometext, $bodytext="", $notes="") {
  13.     echo "<p><b>$title</b><br>$hometext<br><br>$bodytext $notes";
  14. }
  15.  
  16. function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  17.     global $tipath, $anonymous;
  18.     if ("$aid" == "$informant") { ?>
  19. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
  20. <tr><td>
  21.  
  22. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  23. <tr><td bgcolor=5F7E92>
  24. <b><?php echo"$title"; ?></b><br>
  25. <font size=1>
  26. <?php echo translate("Posted by "); ?><?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)<br>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td bgcolor=7897A9>
  31. <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>
  32. <?php echo"$thetext<br><br>
  33. </td></tr><tr><td bgcolor=5F7E92 align=right>
  34. <font size=2>$morelink"; ?>
  35. </td>
  36. </tr>
  37. </table>
  38. </td>
  39. </tr>
  40. </table><br>
  41.  
  42.  
  43. <?php    } else {
  44.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  45.         else $boxstuff = "$anonymous ";
  46.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  47. ?>
  48. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
  49. <tr><td>
  50.  
  51. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  52. <tr><td bgcolor=5F7E92>
  53. <b><?php echo"$title"; ?></b><br>
  54. <font size=1>
  55. <?php echo translate("Posted by "); ?><?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)<br>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td bgcolor=7897A9>
  60. <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>
  61. <?php echo"$boxstuff<br><br>
  62. </td></tr><tr><td bgcolor=5F7E92 align=right>
  63. <font size=2>$morelink"; ?>
  64. </td>
  65. </tr>
  66. </table>
  67. </td>
  68. </tr>
  69. </table><br>
  70.  
  71. <?php    }
  72. }
  73.  
  74. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  75.     global $admin, $sid, $tipath;
  76.     if ("$aid" == "$informant") {
  77. echo"
  78.  
  79. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
  80. <tr><td>
  81.  
  82. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  83. <tr><td bgcolor=5F7E92>
  84. <b>$title</b><br><font size=1>".translate("Posted on ")." $datetime
  85. ";
  86. if ($admin) {
  87.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  88. }
  89.  
  90. echo "
  91. </td>
  92. </tr>
  93. <tr>
  94. <td bgcolor=7897A9>
  95. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=1 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  96. $thetext
  97. </td>
  98. </tr>
  99. </table>
  100. </td>
  101. </tr>
  102. </table><br>
  103. ";
  104.  
  105.     } else {
  106.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  107.         else $boxstuff = "$anonymous ";
  108.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  109. echo "
  110.  
  111. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
  112. <tr><td>
  113. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  114. <tr><td bgcolor=5F7E92>
  115. <b>$title</b><br><font size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  116. ";
  117. if ($admin) {
  118.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  119. }
  120. echo "
  121. </td>
  122. </tr>
  123. <tr>
  124. <td bgcolor=7897A9>
  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. </tr>
  129. </table>
  130. </td>
  131. </tr>
  132. </table><br>
  133. ";
  134.  
  135.     }
  136. }
  137.  
  138. function themesidebox($title, $content) {
  139.     echo "
  140.     <table bgcolor=394E59 border=0 width=150 cellspacing=0 cellpadding=1><tr><td>
  141.     <table bgcolor=7897A9 border=0 width=100% cellspacing=0 cellpadding=3>
  142.     <tr bgcolor=5F7E92><td>
  143.     <div align=center><b><font size=2>$title</font></b></div>
  144.     </td></tr><tr><td> 
  145.     <font size=1>$content</font>
  146.     </td></tr></table></td></tr></table><br>";
  147. }
  148.  
  149. function searchbox() {
  150.     global $uimages, $sitename;
  151.     echo "
  152.     <table bgcolor=394E59 border=0 width=150 cellspacing=0 cellpadding=1><tr><td>
  153.     <table bgcolor=7897A9 border=0 width=100% cellspacing=0 cellpadding=3>
  154.     <tr bgcolor=5F7E92><td>
  155.     <div align=center><b><font size=2>".translate("Search")." $sitename</font></b></div>
  156.     </td></tr><tr><td><center>
  157.     <form action=search.php method=post>
  158.     <br><input type=text name=query size=12>
  159.     <br><input type=image src=$uimages/search.gif border=0>
  160.     <br></form>
  161.     </center></td></tr></table></td></tr></table><br>";
  162. }
  163.  
  164. ?>
  165.