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

  1. <?php
  2.  
  3. $bgcolor1 = "#CCCCCC";
  4. $bgcolor2 = "#101070";
  5. $bgcolor3 = "#e6e6e6";
  6. $textcolor1 = "#FFFFFF";
  7. $textcolor2 = "#000000";
  8. $pollcolor = "brown";
  9. $hr = 1; # 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 $bodytext $notes";
  13. }
  14.  
  15. function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  16.     global $tipath, $anonymous;
  17.     if ("$aid" == "$informant") { ?>
  18.         <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  19.             <td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
  20.             <td width="100%">
  21.             <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  22.             <font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
  23.             </td></tr></table>
  24.             </td><td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
  25.              </tr></table>
  26.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  27.             <td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  28.             <td width="100%">
  29.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  30.                 <td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</font></td>
  31.                 </tr></table>
  32.             </td>
  33.             <td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  34.         </tr>
  35.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  36.         <tr bgcolor="#ffffff">
  37.             <td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  38.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  39.             
  40.             <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>
  41.             
  42.             <?php echo "<font size=2>$thetext"; ?>
  43.                  </td></tr></table></td>
  44.                  <td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  45.         </tr>
  46.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  47.         </table><table border="0" cellpadding="0" cellspacing="0">
  48.         <tr bgcolor="#ffffff">
  49.             <td background="themes/SlashOcean/wl_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  50.             <td width="100%">
  51.             <table width="100%" border="0" cellpadding="5" cellspacing="0"> 
  52.             <tr><td bgcolor="#cccccc"><font size="2"><?php echo"$morelink"; ?></font></td></tr></table>
  53.             </td>
  54.             <td background="themes/SlashOcean/wr_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  55.         </tr>
  56.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  57.         </table><BR><BR>
  58. <?php    } else {
  59.         if($informant != "") $boxstuff = "<font size=2><a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  60.         else $boxstuff = "$anonymous ";
  61.         $boxstuff .= "<font size=2>".translate("writes")." <i>\"$thetext\"</i> $notes";
  62. ?>        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  63.             <td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
  64.             <td width="100%"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  65.             <font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
  66.             </td></tr></table></td>
  67.                      <td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
  68.              </tr></table>
  69.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  70.             <td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  71.             <td width="100%">
  72.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  73.                 <td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</font></td>
  74.                 </tr></table>
  75.             </td>
  76.             <td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  77.         </tr>
  78.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  79.         <tr bgcolor="#ffffff">
  80.             <td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  81.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  82.             <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>
  83.             <?php echo "$boxstuff"; ?>
  84.                  </td></tr></table></td>
  85.                  <td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  86.         </tr>
  87.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  88.         </table><table border="0" cellpadding="0" cellspacing="0">
  89.         <tr bgcolor="#ffffff">
  90.             <td background="themes/SlashOcean/wl_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  91.             <td width="100%">
  92.             <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td bgcolor="#cccccc"><font size="2"><?php echo"$morelink"; ?></font></td></tr></table>
  93.             </td>
  94.             <td background="themes/SlashOcean/wr_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  95.         </tr>
  96.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  97.         </table><BR><BR>
  98. <?php    }
  99. }
  100.  
  101. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  102.     global $admin, $sid, $tipath;
  103.     if ("$aid" == "$informant") { ?>
  104.         <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  105.             <td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
  106.             <td width="100%">
  107.             <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  108.             <font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
  109.             </td></tr></table>
  110.             </td><td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
  111.              </tr></table>
  112.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  113.             <td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  114.             <td width="100%">
  115.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  116.                 <td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?></font>
  117.  
  118. <?php
  119. if ($admin) {
  120.     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> ]";
  121. }
  122. ?>
  123.                 </td>
  124.                 </tr></table>
  125.             </td>
  126.             <td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  127.         </tr>
  128.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  129.         <tr bgcolor="#ffffff">
  130.             <td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  131.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  132.         <?php echo "<a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
  133.             <?php echo "<font size=2>$thetext"; ?>
  134.                  </td></tr></table></td>
  135.                  <td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  136.         </tr>
  137.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  138.         </table>
  139. <?php    } else {
  140.         if($informant != "") $boxstuff = "<font size=2><a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  141.         else $boxstuff = "$anonymous ";
  142.         $boxstuff .= "<font size=2>".translate("writes")." <i>\"$thetext\"</i> $notes";
  143. ?>        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  144.             <td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
  145.             <td width="100%">
  146.             <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  147.             <font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
  148.             </td></tr></table>
  149.             </td><td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
  150.              </tr></table>
  151.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  152.             <td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  153.             <td width="100%">
  154.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  155.                 <td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?></font>
  156.                 
  157. <?php
  158. if ($admin) {
  159.     echo "   <font size=2> [ <a href=admin.php?op=EditStory&sid=$sid>Editar</a> | <a href=admin.php?op=RemoveStory&sid=$sid>Borrar</a> ]";
  160. }
  161. ?>
  162. <br><?php echo "<font size=1"; ?>
  163. <?php echo "".translate("Contributed by ").""; ?> <?php echo "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a>"; ?>
  164.                 </td>
  165.                 </tr></table>
  166.             </td>
  167.             <td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  168.         </tr>
  169.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  170.         <tr bgcolor="#ffffff">
  171.             <td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  172.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  173.         <?php echo "<a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
  174.             <?php echo "<font size=2>$thetext"; ?>
  175.                  </td></tr></table></td>
  176.                  <td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
  177.         </tr>
  178.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  179.         </table>
  180. <?php    }
  181. }
  182.  
  183. function themesidebox($title, $content) {
  184.     ?>
  185.     <table width="150" border="0" cellpadding="0" cellspacing="0">
  186.     <tr valign="top" bgcolor="#101070">
  187.         <td bgcolor="#FFFFFF"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
  188.         <td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""></td>
  189.         <td><font size="1" color="#ffffff"><B><?php echo"$title"; ?></B></font></td>
  190.         <td align="right"><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
  191.         <td bgcolor="#FFFFFF" align="right"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
  192.     </tr>
  193.     </table>
  194.     <table width="100%" border="0" cellpadding="0" cellspacing="0">
  195.     <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  196.     <tr bgcolor="#ffffff">
  197.         <td background="themes/SlashOcean/sl.gif"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
  198.         <td width="100%">
  199.         <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td><font size=1><?php echo"$content"; ?>
  200.         </td></tr></table></td>
  201.         <td background="themes/SlashOcean/sr.gif" align="right"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
  202.     </tr>
  203.     <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
  204.     </table><br><br>
  205. <?php
  206. }
  207.  
  208. ?>
  209.