home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / phpnuke / PHP-Nuke-7.5.exe / html / themes / SlashOcean / theme.php
PHP Script  |  2004-01-29  |  16KB  |  297 lines

  1. <?php
  2.  
  3. $bgcolor1 = "#FFFFFF";
  4. $bgcolor2 = "#101070";
  5. $bgcolor3 = "#e6e6e6";
  6. $bgcolor4 = "#e6e6e6";
  7. $textcolor1 = "#FFFFFF";
  8. $textcolor2 = "#000000";
  9.  
  10. function OpenTable() {
  11.     global $bgcolor1, $bgcolor2;
  12.     echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
  13.     echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  14. }
  15.  
  16. function CloseTable() {
  17.     echo "</td></tr></table></td></tr></table>\n";
  18. }
  19.  
  20. function OpenTable2() {
  21.     global $bgcolor1, $bgcolor2;
  22.     echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
  23.     echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  24. }
  25.  
  26. function CloseTable2() {
  27.     echo "</td></tr></table></td></tr></table>\n";
  28. }
  29.  
  30. function FormatStory($thetext, $notes, $aid, $informant) {
  31.     global $anonymous;
  32.     if ($notes != "") {
  33.     $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
  34.     } else {
  35.     $notes = "";
  36.     }
  37.     if ("$aid" == "$informant") {
  38.     echo "<font class=\"content\" color=\"#505050\">$thetext<br>$notes</font>\n";
  39.     } else {
  40.     if($informant != "") {
  41.         $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
  42.     } else {
  43.         $boxstuff = "$anonymous ";
  44.     }
  45.     $boxstuff .= "writes <i>\"$thetext\"</i> $notes\n";
  46.     echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
  47.     }
  48. }
  49.  
  50. function themeheader() {
  51.     global $slogan, $sitename, $banners;
  52. echo "<body bgcolor=FFFFFF text=000000 link=101070 vlink=101070>
  53. <br>";
  54. if ($banners) {
  55.     include("banners.php");
  56. }
  57. echo "<br>
  58. <center>
  59. <table cellpadding=0 cellspacing=0 border=0 width=99% align=center><tr><td align=left>
  60. <a href=$nukeurl><img src=themes/SlashOcean/images/logo.gif Alt=\"Welcome to $sitename\" border=0></a>
  61. </td><td align=right width=100%>
  62.     <form action=modules.php?name=Search&method=post>
  63.     <font class=content><input type=text name=query width=20 size=20 length=20>
  64.     </td>
  65.     <td align=right>  <input type=submit value=\""._SEARCH."\"></td>
  66.     </form>";
  67.     echo "</td></tr></table><br>";
  68. echo "
  69. <table cellpadding=0 cellspacing=0 border=0 width=99% bgcolor=101070><tr><td>
  70. <table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF><tr><td>
  71. <font class=content>$slogan</td></tr></table></td></tr></table>";
  72.     $public_msg = public_message();
  73.     echo "$public_msg<br>";    
  74. echo "<table width=99% align=center cellpadding=0 cellspacing=0 border=0><tr><td valign=top rowspan=15>";
  75.  
  76. blocks(left);
  77.  
  78. echo "</td><td>  </td><td valign=top width=100%>";
  79. }
  80.  
  81. function themefooter() {
  82.     global $index;
  83.     echo "</td>";
  84.     if ($index == 1) {
  85.     echo "<td>  </td><td valign=\"top\">";
  86.     blocks(right);
  87.     }
  88.     echo "</tr></table></td></tr></table>";
  89.     footmsg();
  90. }
  91.  
  92. function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  93.     global $anonymous, $tipath;
  94.     $ThemeSel = get_theme();
  95.     if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
  96.     $t_image = "themes/$ThemeSel/images/topics/$topicimage";
  97.     } else {
  98.     $t_image = "$tipath$topicimage";
  99.     }
  100.     if ("$aid" == "$informant") { ?>
  101.         <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  102.             <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
  103.             <td width="100%">
  104.             <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  105.             <font class="storytitle"><B><?php echo"$title"; ?></B></font>
  106.             </td></tr></table>
  107.             </td><td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
  108.              </tr></table>
  109.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  110.             <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  111.             <td width="100%">
  112.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  113.                 <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> reads)</font></td>
  114.                 </tr></table>
  115.             </td>
  116.             <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  117.         </tr>
  118.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  119.         <tr bgcolor="#ffffff">
  120.             <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  121.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  122.             
  123.             <a href="modules.php?name=News&new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  124.             
  125.             <?php echo "<font class=content>$thetext"; ?>
  126.                  </td></tr></table></td>
  127.                  <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  128.         </tr>
  129.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  130.         </table><table border="0" cellpadding="0" cellspacing="0">
  131.         <tr bgcolor="#ffffff">
  132.             <td background="themes/SlashOcean/images/wl_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  133.             <td width="100%">
  134.             <table width="100%" border="0" cellpadding="5" cellspacing="0"> 
  135.             <tr><td bgcolor="#cccccc"><font class="content"><?php echo"$morelink"; ?></font></td></tr></table>
  136.             </td>
  137.             <td background="themes/SlashOcean/images/wr_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  138.         </tr>
  139.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  140.         </table><BR><BR>
  141. <?php    } else {
  142.         if($informant != "") $boxstuff = "<font class=content><a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
  143.         else $boxstuff = "$anonymous ";
  144.         $boxstuff .= "<font class=content>writes <i>\"$thetext\"</i> $notes";
  145. ?>        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  146.             <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
  147.             <td width="100%"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  148.             <font class="storytitle"><B><?php echo"$title"; ?></B></font>
  149.             </td></tr></table></td>
  150.                      <td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
  151.              </tr></table>
  152.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  153.             <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  154.             <td width="100%">
  155.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  156.                 <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> reads)</font></td>
  157.                 </tr></table>
  158.             </td>
  159.             <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  160.         </tr>
  161.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  162.         <tr bgcolor="#ffffff">
  163.             <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  164.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  165.             <a href="modules.php?name=News&new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
  166.             <?php echo "$boxstuff"; ?>
  167.                  </td></tr></table></td>
  168.                  <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  169.         </tr>
  170.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  171.         </table><table border="0" cellpadding="0" cellspacing="0">
  172.         <tr bgcolor="#ffffff">
  173.             <td background="themes/SlashOcean/images/wl_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  174.             <td width="100%">
  175.             <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td bgcolor="#cccccc"><font class="content"><?php echo"$morelink"; ?></font></td></tr></table>
  176.             </td>
  177.             <td background="themes/SlashOcean/images/wr_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  178.         </tr>
  179.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  180.         </table><BR><BR>
  181. <?php    }
  182. }
  183.  
  184. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  185.     global $admin, $sid, $tipath;
  186.     $ThemeSel = get_theme();
  187.     if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
  188.     $t_image = "themes/$ThemeSel/images/topics/$topicimage";
  189.     } else {
  190.     $t_image = "$tipath$topicimage";
  191.     }
  192.     if ("$aid" == "$informant") { ?>
  193.         <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  194.             <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
  195.             <td width="100%">
  196.             <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  197.             <font class="option" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
  198.             </td></tr></table>
  199.             </td><td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
  200.              </tr></table>
  201.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  202.             <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  203.             <td width="100%">
  204.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  205.                 <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?></font>
  206.  
  207. <?php
  208. if ($admin) {
  209.     echo "   <font class=content> [ <a href=admin.php?op=EditStory&sid=$sid>Edit</a> | <a href=admin.php?op=RemoveStory&sid=$sid>Delete</a> ]";
  210. }
  211. ?>
  212.                 </td>
  213.                 </tr></table>
  214.             </td>
  215.             <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  216.         </tr>
  217.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  218.         <tr bgcolor="#ffffff">
  219.             <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  220.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  221.         <?php echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
  222.             <?php echo "<font class=content>$thetext"; ?>
  223.                  </td></tr></table></td>
  224.                  <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  225.         </tr>
  226.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  227.         </table>
  228. <?php    } else {
  229.         if($informant != "") $boxstuff = "<font class=content><a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
  230.         else $boxstuff = "$anonymous ";
  231.         $boxstuff .= "<font class=content>writes <i>\"$thetext\"</i> $notes";
  232. ?>        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  233.             <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
  234.             <td width="100%">
  235.             <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
  236.             <font class="option" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
  237.             </td></tr></table>
  238.             </td><td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
  239.              </tr></table>
  240.         <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
  241.             <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  242.             <td width="100%">
  243.                 <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
  244.                 <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?></font>
  245.                 
  246. <?php
  247. if ($admin) {
  248.     echo "   <font class=content> [ <a href=admin.php?op=EditStory&sid=$sid>Editar</a> | <a href=admin.php?op=RemoveStory&sid=$sid>Borrar</a> ]";
  249. }
  250. ?>
  251. <br><font class=tiny>
  252. <?php echo "Contributed by <a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a>"; ?>
  253.                 </td>
  254.                 </tr></table>
  255.             </td>
  256.             <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  257.         </tr>
  258.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  259.         <tr bgcolor="#ffffff">
  260.             <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  261.             <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
  262.         <?php echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
  263.             <?php echo "<font class=content>$thetext"; ?>
  264.                  </td></tr></table></td>
  265.                  <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
  266.         </tr>
  267.         <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  268.         </table>
  269. <?php    }
  270. }
  271.  
  272. function themesidebox($title, $content) {
  273.     ?>
  274.     <table width="150" border="0" cellpadding="0" cellspacing="0">
  275.     <tr valign="top" bgcolor="#101070">
  276.         <td bgcolor="#FFFFFF"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
  277.         <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""></td>
  278.         <td><font color=\"#FFFFFF\"><B><?php echo"$title"; ?></B></font></td>
  279.         <td align="right"><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
  280.         <td bgcolor="#FFFFFF" align="right"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
  281.     </tr>
  282.     </table>
  283.     <table width="100%" border="0" cellpadding="0" cellspacing="0">
  284.     <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  285.     <tr bgcolor="#ffffff">
  286.         <td background="themes/SlashOcean/images/sl.gif"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
  287.         <td width="100%">
  288.         <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td><font class=tiny><?php echo"$content"; ?>
  289.         </td></tr></table></td>
  290.         <td background="themes/SlashOcean/images/sr.gif" align="right"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
  291.     </tr>
  292.     <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
  293.     </table><br><br>
  294. <?php
  295. }
  296.  
  297. ?>