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

  1. <?php
  2.  
  3. $thename = "Akki";
  4. $lnkcolor = "000000";
  5. $bgcolor1 = "#787878";
  6. $bgcolor2 = "#000000";
  7. $bgcolor3 = "#000000";
  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<br><br>$bodytext $notes";
  14. }
  15.  
  16. function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  17.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  18.     if ("$aid" == "$informant") { ?>
  19.  
  20.  
  21. <table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
  22. <tr><td>
  23.  
  24. <table border=0 cellpadding=0 cellspacing=0 width=100%>
  25.  
  26.  
  27. <TR>
  28. <TD bgcolor=#99ccff>
  29. <font face="verdana" size=2 class=default>..\Home\Top
  30.     news - <b><?php echo"$title"; ?></b> -</font></TD><td align=right bgcolor=#99ccff><img src=themes/Akki/images/bluefadebg.gif border=0 width=36 height="17"></td></TR><TR><TD bgcolor=#ffffff colspan=2><font face=verdana size=2 class=default>
  31. <!--share--></font><font face=verdana size=2 class=default><img src="themes/Akki/images/downsq.gif" border=0 align=bottom hspace=2 width=9 height=9></font><font face=verdana size=2 class=default><?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"); ?>)</font>
  32. <font class=defaultsmall face=verdana color="#000000">
  33. <table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td bgcolor=#d9d9ff><img src="themes/Akki/images/webtools_1x1.gif" width=1 height=1 border=0></td></tr></table>
  34. </font>
  35.  
  36.  
  37. <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author=">
  38. <img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  39. <?php echo"$thetext<br><br>
  40. </td></tr><tr>
  41. <tr>
  42. <td border=0 bgcolor=cccccc width=100% align=right>
  43. <font size=2>$morelink"; ?>
  44.  
  45. </TD><td border=0 align=right bgcolor=#cccccc></td></TR>
  46.  
  47.  
  48. </tr>
  49. </table>
  50. </td>
  51. </tr>
  52. </table>
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. <?php    } else {
  67.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  68.         else $boxstuff = "$anonymous ";
  69.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  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. <b><?php echo"$title"; ?></b><br>
  77. <font size=1>
  78. <?php echo translate("Posted by "); ?><?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)<br>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td bgcolor=ffffff>
  83. <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>
  84. <?php echo"$boxstuff<br><br>
  85. </td></tr><tr><td bgcolor=CCCCCC align=right>
  86. <font size=2>$morelink"; ?>
  87. </td>
  88. </tr>
  89. </table>
  90. </td>
  91. </tr>
  92. </table><br>
  93.  
  94. <?php    }
  95. }
  96.  
  97. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  98.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  99.     if ("$aid" == "$informant") {
  100.  
  101. echo"
  102.  
  103. <table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
  104. <tr><td>
  105.  
  106. <table border=0 cellpadding=0 cellspacing=0 width=100%>
  107.  
  108.  
  109. <TR>
  110. <TD bgcolor=#99ccff>
  111. <font face=verdana size=2 class=default><b>$title</b></font>
  112. </TD><td align=right bgcolor=#99ccff><img src=themes/Akki/images/bluefadebg.gif border=0 width=36 height=17></td></TR><TR><TD bgcolor=#ffffff colspan=2>
  113.  
  114. <font face=verdana size=2 class=default>
  115. <!--share--></font><font face=verdana size=2 class=default><img src=themes/Akki/images/downsq.gif border=0 align=bottom hspace=2 width=9 height=9></font>
  116.  
  117. <font face=verdana size=2 class=default><font size=1>".translate("Posted on ")." $datetime
  118. ";
  119.  
  120. global $admin, $sid;
  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.  
  125. echo "
  126. </font>
  127.  
  128.  
  129. <font class=defaultsmall face=verdana color=#000000>
  130. <table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td bgcolor=#d9d9ff><img src=themes/Akki/images/webtools_1x1.gif width=1 height=1 border=0></td></tr></table>
  131. </font>
  132.  
  133.  
  134. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=$topictext align=right hspace=10 vspace=10></a>
  135. $thetext
  136.  
  137. </td></tr>
  138. </tr>
  139. </table>
  140. </td>
  141. </tr>
  142. </table>
  143.  
  144. ";
  145.  
  146.  
  147.  
  148.  
  149.     } else {
  150.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  151.         else $boxstuff = "$anonymous ";
  152.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  153. echo "
  154.  
  155. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  156. <tr><td>
  157. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  158. <tr><td bgcolor=CCCCCC>
  159. <b>$title</b><br><font size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  160. ";
  161. global $admin, $sid;
  162. if ($admin) {
  163.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  164. }
  165. echo "
  166. </td>
  167. </tr>
  168. <tr>
  169. <td bgcolor=ffffff>
  170. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage
  171. border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  172. $thetext
  173. </td>
  174. </tr>
  175. </table>
  176. </td>
  177. </tr>
  178. </table><br>
  179. ";
  180.  
  181.     }
  182. }
  183.  
  184. function themesidebox($title, $content) {
  185.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  186.     echo "
  187.     <table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td>
  188.     <table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 background=themes/Akki/images/blockhead.gif>
  189.     <font size=2><center>$title</center>
  190.     </td></tr><tr><td bgcolor=FFFFFF><font size=2>
  191.     $content
  192.     </td></tr></table></td></tr></table><br>";
  193. }
  194. ?>
  195.