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

  1. <?php
  2.  
  3. $thename = "Nerds in Harmony";
  4. $lnkcolor = "FFFFFF";
  5. $bgcolor1 = "027488";
  6. $bgcolor2 = "027488";
  7. $bgcolor3 = "FFFFFF";
  8. $textcolor1 = "FFFFFF";
  9. $textcolor2 = "FFFFFF";
  10. $hr = 0; # 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.     <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=027488 width=100%>
  20.     <tr><td>
  21.     <table border=0 cellpadding=3 cellspacing=1 width=100%>
  22.     <tr><td bgcolor=027488>
  23.     <b><?php echo"$title"; ?></b><br>
  24.     <font size=1>
  25.     <?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"); ?>)
  26.     <br></td></tr><tr><td bgcolor=000000>
  27.     <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>
  28.     <?php echo"$thetext<br><br>
  29.     </td></tr><tr><td bgcolor=027488 align=right>
  30.     <font size=2>$morelink"; ?>
  31.     </td></tr></table></td></tr></table><br>
  32.  
  33. <?php    } else {
  34.  
  35.     if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  36.     else $boxstuff = "$anonymous ";
  37.     $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  38. ?>
  39.     <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=027488 width=100%>
  40.     <tr><td>
  41.     <table border=0 cellpadding=3 cellspacing=1 width=100%>
  42.     <tr><td bgcolor=027488>
  43.     <b><?php echo"$title"; ?></b><br>
  44.     <font size=1>
  45.     <?php echo translate("Posted by "); ?> <?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  46.     <br></td></tr><tr><td bgcolor=000000>
  47.     <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>
  48.     <?php echo"$boxstuff<br><br>
  49.     </td></tr><tr><td bgcolor=027488 align=right>
  50.     <font size=2>$morelink"; ?>
  51.     </td></tr></table></td></tr></table><br>
  52. <?php    }
  53. }
  54.  
  55. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  56.     global $admin, $sid, $tipath;
  57.     if ("$aid" == "$informant") {
  58.     echo"
  59.     <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=027488 width=100%><tr><td>
  60.     <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=027488>
  61.     <b>$title</b><br><font size=2>".translate("Posted on ")." $datetime";
  62.     if ($admin) {
  63.     echo "   <font size=2> [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  64.     }
  65.     echo "
  66.     </td></tr><tr><td bgcolor=000000>
  67.     <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=2 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  68.     $thetext
  69.     </td></tr></table></td></tr></table><br>";
  70.     } else {
  71.     if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  72.     else $boxstuff = "$anonymous ";
  73.     $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  74.     echo "
  75.     <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=027488 width=100%><tr><td>
  76.     <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=027488>
  77.     <b>$title</b><br><font size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  78.     ";
  79.     if ($admin) {
  80.     echo "   <font size=2>[ <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></tr><tr><td bgcolor=000000>
  84.     <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=2 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  85.     <font size=3 $thetext</td></tr></table></td></tr></table><br>";
  86.     }
  87. }
  88.  
  89. function themesidebox($title, $content) {
  90.     echo "
  91.     <table width=160 bgcolor=FFFFFF cellpadding=8 cellspacing=1>
  92.     <tr><td bgcolor=027488 valign=top>
  93.     <center><font size=-1><b>[ $title ]</b></font></center><br>
  94.     <font size=-2 color=ffffff>
  95.     $content
  96.     </td></tr></table><br>";
  97. }
  98.  
  99. ?>