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

  1. <?php
  2.  
  3. $thename = "RedDress";
  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 $bodytext $notes";
  14. }
  15.  
  16. function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  17.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  18.     if ("$aid" == "$informant") { ?>
  19.  
  20. <table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
  21. <tr><td>
  22.  
  23. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  24. <tr><td>
  25. <b><?php echo"$title"; ?></b><br>
  26. <font size=1>
  27. <?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"); ?>)
  28. <br>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td bgcolor=ffffff>
  33. <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>
  34. <?php echo"$thetext<br><br><font size=2>$morelink<br>
  35. </td></tr>
  36. "; ?>
  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  width=100%>
  49. <tr><td>
  50.  
  51. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  52. <tr><td>
  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"); ?>)
  56. <br>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td bgcolor=ffffff>
  61. <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>
  62. <?php echo"$boxstuff<br><br><font size=2>$morelink<br>
  63. </td></tr>
  64. "; ?>
  65. </table>
  66. </td>
  67. </tr>
  68. </table><br>
  69.  
  70. <?php    }
  71. }
  72.  
  73. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  74.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  75.     if ("$aid" == "$informant") {
  76. echo"
  77.  
  78. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  79. <tr><td>
  80.  
  81. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  82. <tr><td bgcolor=CCCCCC>
  83. $font2
  84. <b>$title</b><br>$font2 ".translate("Posted on ")." $datetime
  85. ";
  86. global $admin, $sid;
  87. if ($admin) {
  88.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  89. }
  90. echo "
  91. </td>
  92. </tr>
  93. <tr>
  94. <td bgcolor=ffffff>
  95. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 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=000000 width=100%>
  112. <tr><td>
  113. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  114. <tr><td bgcolor=CCCCCC>
  115. $font3
  116. <b>$title</b><br>$font2 ".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  117. ";
  118. global $admin, $sid;
  119. if ($admin) {
  120.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  121. }
  122. echo "
  123. </td>
  124. </tr>
  125. <tr>
  126. <td bgcolor=ffffff>
  127. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  128. $font3 $thetext
  129. </td>
  130. </tr>
  131. </table>
  132. </td>
  133. </tr>
  134. </table><br>
  135. ";
  136.  
  137.     }
  138. }
  139.  
  140. function themesidebox($title, $content) {
  141.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  142.     echo "
  143.     <table border=1 bordercolor=DDDDDD cellspacing=0 cellpadding=3 width=100%><tr><td>
  144.     <table width=100% border=0 cellspacing=0 cellpadding=0><tr><td colspan=1>
  145.     <font size=2><b>$title</b></td></tr><tr><td>
  146.     <font size=2>$content</td></tr></table></td></tr></table><br>";
  147. }
  148. ?>