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

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