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

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