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

  1. <?php
  2.  
  3. $thename = "Cuadriculado";
  4. $bgcolor1 = "#CCCCCC";
  5. $bgcolor2 = "#999999";
  6. $bgcolor3 = "CCCCCC";
  7. $textcolor1 = "#FFFFFF";
  8. $textcolor2 = "#000000";
  9. $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
  10.  
  11. function themepreview($title, $hometext, $bodytext="", $notes="") {
  12.     echo "<p><b>$title</b><br>$hometext $bodytext $notes";
  13. }
  14.  
  15. function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  16.     global $tipath, $anonymous;
  17.     if ("$aid" == "$informant") { ?>
  18.  
  19.  
  20. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  21. <tr><td bgcolor=CCCCCC>
  22. <font size=4>
  23. <b><?php echo"$title"; ?></b><br>
  24. </td></tr><tr><td bgcolor=FFFFFF>
  25. <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>
  26. <font size=3>
  27. <?php echo translate("Posted by "); ?> <b><?php formatAidHeader($aid) ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?><br>(<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  28. <br><br>
  29. <?php echo"$thetext<br><br>
  30. </td></tr><tr><td align=left>
  31. <font size=3>$morelink"; ?>
  32. </td>
  33. </tr>
  34. </table>
  35. <br>
  36.  
  37.  
  38. <?php    } else {
  39.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  40.         else $boxstuff = "$anonymous ";
  41.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  42. ?>
  43.  
  44. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  45. <tr><td bgcolor=CCCCCC>
  46. <font size=4>
  47. <b><?php echo"$title"; ?></b><br>
  48. <font size=3>
  49. </td></tr><tr><td bgcolor=FFFFFF>
  50. <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>
  51. <font size=3>
  52. <?php echo translate("Posted by "); ?> <?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?><br>(<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  53. <br><br>
  54.  
  55. <?php echo"$boxstuff<br><br>
  56. </td></tr><tr><td align=left>
  57. <font size=3>$morelink"; ?>
  58. </td>
  59. </tr>
  60. </table>
  61. <br>
  62.  
  63. <?php    }
  64. }
  65.  
  66. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  67.     global $admin, $sid, $tipath;
  68.     if ("$aid" == "$informant") {
  69. echo"
  70.  
  71. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  72. <tr><td>
  73.  
  74. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  75. <tr><td bgcolor=CCCCCC>
  76. $font2
  77. <b>$title</b><br>$font2 Enviado el $datetime
  78. ";
  79. if ($admin) {
  80.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  81. }
  82. echo "
  83. </td>
  84. </tr>
  85. <tr>
  86. <td bgcolor=ffffff>
  87. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  88. $thetext
  89. </td>
  90. </tr>
  91. </table>
  92. </td>
  93. </tr>
  94. </table><br>
  95. ";
  96.  
  97.     } else {
  98.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  99.         else $boxstuff = "$anonymous ";
  100.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  101. echo "
  102.  
  103. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  104. <tr><td>
  105. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  106. <tr><td bgcolor=CCCCCC>
  107. $font3
  108. <b>$title</b><br>$font2 ".translate("Contributed by")." $informant ".translate("on")." $datetime</font>
  109. ";
  110. if ($admin) {
  111.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  112. }
  113. echo "
  114. </td>
  115. </tr>
  116. <tr>
  117. <td bgcolor=ffffff>
  118. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  119. $font3 $thetext
  120. </td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. </table><br>
  126. ";
  127.  
  128.     }
  129. }
  130.  
  131. ?>
  132.