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

  1. <?php
  2.  
  3. $thename = "Green";
  4. $lnkcolor = "000000";
  5. $bgcolor1 = "#CCCCCC";
  6. $bgcolor2 = "#333333";
  7. $bgcolor3 = "#CCCCCC";
  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=000000 width=100%>
  20. <tr><td>
  21.  
  22. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  23. <tr><td bgcolor=CCCCCC>
  24. <b><?php echo"$title"; ?></b><br>
  25. <font size=1>
  26. <?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"); ?>)<br>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td bgcolor=ffffff>
  31. <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  32. <?php echo"$thetext<br><br>
  33. </td></tr><tr><td bgcolor=CCCCCC 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=000000 width=100%>
  49. <tr><td>
  50.  
  51. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  52. <tr><td bgcolor=CCCCCC>
  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=ffffff>
  60. <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  61. <?php echo"$boxstuff<br><br>
  62. </td></tr><tr><td bgcolor=CCCCCC align=right>
  63. <font size=2>$morelink"; ?>
  64. </td></tr></table>
  65. </td></tr></table><br>
  66.  
  67. <?php    }
  68. }
  69.  
  70. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  71.     global $admin, $sid, $tipath;    
  72.     if ("$aid" == "$informant") {
  73. echo"
  74.  
  75. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  76. <tr><td>
  77.  
  78. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  79. <tr><td bgcolor=CCCCCC>
  80. <b>$title</b><br><font size=1>".translate("Posted on ")." $datetime
  81. ";
  82. if ($admin) {
  83.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  84. }
  85.  
  86. echo "
  87. </td>
  88. </tr>
  89. <tr>
  90. <td bgcolor=ffffff>
  91. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  92. $thetext
  93. </td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98. </table><br>
  99. ";
  100.  
  101.     } else {
  102.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  103.         else $boxstuff = "$anonymous ";
  104.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  105. echo "
  106.  
  107. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  108. <tr><td>
  109. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  110. <tr><td bgcolor=CCCCCC>
  111. <b>$title</b><br><font size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  112. ";
  113. if ($admin) {
  114.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  115. }
  116. echo "
  117. </td>
  118. </tr>
  119. <tr>
  120. <td bgcolor=ffffff>
  121. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage
  122. border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  123. $thetext
  124. </td>
  125. </tr>
  126. </table>
  127. </td>
  128. </tr>
  129. </table><br>
  130. ";
  131.  
  132.     }
  133. }
  134.  
  135. function themesidebox($title, $content) {
  136.     echo "
  137.     <table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td>
  138.     <table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 bgcolor=CCCCCC>
  139.     <font size=2>$title
  140.     </td></tr><tr><td bgcolor=FFFFFF><font size=2>
  141.     $content
  142.     </td></tr></table></td></tr></table><br>";
  143. }
  144. ?>
  145.