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

  1. <?php
  2.  
  3. $bgcolor1 = "FFFFFF";
  4. $textcolor1 = "FFFFFF";
  5.  
  6. function themepreview($title, $hometext, $bodytext="", $notes="") {
  7.     echo "<p><b>$title</b><br>$hometext<br><br>$bodytext $notes";
  8. }
  9.  
  10. function themesidebox($title, $content) {
  11.     echo "<table width=170 cellpadding=0>";
  12.     echo "<tr><td bgcolor=000000><center><font size=-1 color=FEFEFE><b>$title</b></font>";
  13.     echo "<table width=100% cellpadding=5>";
  14.     echo "<tr><td bgcolor=FEFEFE>";
  15.     echo "<font size=-1><b>";
  16.     echo "$content";
  17.     echo "<p>";
  18.     echo "</b></font>";
  19.     echo "</td></tr></table>";
  20.     echo "</td></tr></table>";
  21. }
  22.  
  23.  
  24. function themeindex($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  25.     global $tipath, $anonymous;
  26.     echo "
  27.     <TABLE BORDER=\"0\" WIDTH=\"100%\" CELLSPACING=\"0\" CELLPADDING=\"0\"><TR><TD COLSPAN=\"2\">
  28.     <TABLE WIDTH=\"100%\" CELLPADDING=\"0\"><TR><TD BGCOLOR=\"#000000\">
  29.         <TABLE WIDTH=\"100%\" CELLPADDING=\"4\"><TR><TD BGCOLOR=\"#fefefe\">
  30.              <B>
  31.         $title </b><font size=-2 color=666666> ".translate("Posted by ")."";
  32.             formatAidHeader($aid); 
  33.             echo " (".translate("read:")." $counter ".translate("times").")";
  34.             echo "</font><B>
  35.         </TD></TR></TABLE>
  36.     </TD></TR></TABLE>
  37.     </TD></TR><TR><TD VALIGN=\"top\">
  38.     <TABLE WIDTH=\"100%\" CELLPADDING=\"0\"><TR><TD BGCOLOR=\"#000000\">
  39.         <TABLE WIDTH=\"100%\" CELLPADDING=\"14\"><TR><TD BGCOLOR=\"#fefefe\">";
  40.           if ("$aid" == "$informant") {
  41.             //formatAidHeader($aid); 
  42.             echo "$thetext<br><br>$morelink</TD></TR></TABLE>";
  43.           } else {
  44.             if ($informant != "") {
  45.             $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  46.         } else {
  47.             $boxstuff = "$anonymous ";
  48.         }
  49.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  50.         echo "$boxstuff<br><br>$morelink</TD></TR></TABLE>";
  51.           }
  52.     echo "
  53.     </TD></TR></TABLE>
  54.     </TD><TD WIDTH=\"20%\" VALIGN=\"top\">
  55.         <TABLE WIDTH=\"100%\" CELLPADDING=\"0\"><TR><TD BGCOLOR=\"#000000\">
  56.         <TABLE WIDTH=\"100%\" CELLPADDING=\"4\"><TR><TD BGCOLOR=\"#fefefe\">
  57.             <CENTER><FONT SIZE=\"-1\"><B>
  58.             $time</B></FONT></CENTER>
  59.         </TD></TR></TABLE>
  60.         </td></tr></table>
  61.         <TABLE WIDTH=\"100%\" CELLPADDING=\"0\"><TR><TD BGCOLOR=\"#000000\">
  62.         <table width=100% cellpadding=6><tr><td bgcolor=FEFEFE>
  63.             <ceter><b>
  64.             <font size=-1>
  65.             <center><a href=search.php?topic=$topic><img src=$tipath$topicimage Alt=\"$topictext\" border=0></a></center>
  66.             </b></center>
  67.         </td></tr></table>
  68.         </TD></TR></TABLE>
  69.     </TD></TR><TR><TD COLSPAN=\"2\"><BR>
  70.     </TD></TR></TABLE>";
  71. }
  72.  
  73.  
  74. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  75.     global $admin, $sid, $tipath;
  76.     echo "
  77.     <TABLE BORDER=\"0\" WIDTH=\"100%\" CELLSPACING=\"0\" CELLPADDING=\"0\"><TR><TD COLSPAN=\"2\">
  78.     <TABLE WIDTH=\"100%\" CELLPADDING=\"0\"><TR><TD BGCOLOR=\"#000000\">
  79.         <TABLE WIDTH=\"100%\" CELLPADDING=\"4\"><TR><TD BGCOLOR=\"#fefefe\">
  80.              <B>
  81.         $title</b>";
  82.             if ($admin) {
  83.                 echo "   [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  84.             }
  85.             echo "</font><B>
  86.         </TD></TR></TABLE>
  87.     </TD></TR></TABLE>
  88.     </TD></TR><TR><TD VALIGN=\"top\">
  89.     <TABLE WIDTH=\"100%\" CELLPADDING=\"0\"><TR><TD BGCOLOR=\"#000000\">
  90.         <TABLE WIDTH=\"100%\" CELLPADDING=\"14\"><TR><TD BGCOLOR=\"#fefefe\">
  91.           <a href=search.php?topic=$topic><img src=$tipath$topicimage Alt=\"$topictext\" border=0 align=right></a>
  92.           <font size=-2 color=666666> ".translate("Posted by ")."";
  93.           formatAidHeader($aid); 
  94.           if ($informant != "") {
  95.             echo "<br>".translate("Contributed by ")." <a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ".translate("on")." $datetime</font>";
  96.           } else {
  97.             echo "<br>".translate("Contributed by ")." $anonymous ".translate("on")." $datetime</font>";
  98.           }
  99.           echo "<br><br>$thetext</TD></TR></TABLE>";
  100.     echo "
  101.     </TD></TR></TABLE>
  102.     </TD></TR><TR><TD COLSPAN=\"2\"><BR>
  103.     </TD></TR></TABLE>";
  104. }
  105.  
  106. ?>