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

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