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

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