[ Index ]
 

Code source de PHP NUKE 7.9

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/themes/DeepBlue/ -> theme.php (source)

   1  <?php
   2  
   3  $bgcolor1 = "#ffffff";
   4  $bgcolor2 = "#9cbee6";
   5  $bgcolor3 = "#d3e2ea";
   6  $bgcolor4 = "#0E3259";
   7  $textcolor1 = "#000000";
   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 (!empty($notes)) {
  33      $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
  34      } else {
  35      $notes = "";
  36      }
  37      if ("$aid" == "$informant") {
  38      echo "<font class=\"content\">$thetext$notes</font>\n";
  39      } else {
  40      if(!empty($informant)) {
  41          $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
  42      } else {
  43          $boxstuff = "$anonymous ";
  44      }
  45      $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
  46      echo "<font class=\"content\">$boxstuff</font>\n";
  47      }
  48  }
  49  
  50  /************************************************************/

  51  /* Function themeheader()                                   */

  52  /************************************************************/

  53  
  54  function themeheader() {
  55      global $banners, $sitename;
  56      echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\">"
  57      ."<br>";
  58      $ads = ads(0);
  59      echo "$ads";
  60      echo "<br>";
  61      echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"
  62      ."<tr><td width=\"100%\">\n"
  63      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
  64      ."<tr><td width=\"100%\">\n"
  65      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
  66      ."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n"
  67      ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td><td align=\"right\"><img border=\"0\" src=\"themes/DeepBlue/images/logo-graphic.gif\"></td></tr></table></td></tr>\n"
  68      ."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n"
  69      ."<a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/home.gif\" width=\"140\" height=\"18\"></a>"
  70      ."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/DeepBlue/images/account.gif\" width=\"140\" height=\"18\"></a>"
  71      ."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/DeepBlue/images/downloads.gif\" width=\"140\" height=\"18\"></a>"
  72      ."<a href=\"modules.php?name=Submit_News\"><img border=\"0\" src=\"themes/DeepBlue/images/submit.gif\" width=\"140\" height=\"18\"></a>"
  73      ."<a href=\"modules.php?name=Topics\"><img border=\"0\" src=\"themes/DeepBlue/images/topics.gif\" width=\"140\" height=\"18\"></a>"
  74      ."<a href=\"modules.php?name=Top\"><img border=\"0\" src=\"themes/DeepBlue/images/top10.gif\" width=\"140\" height=\"18\"></a>"
  75      ."</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#d3e2ea\">\n"
  76      ."</td></tr></table>\n"
  77      ."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#d3e2ea'>\n";
  78      $public_msg = public_message();
  79      echo "$public_msg<br>";
  80      echo "</td></tr></table><table width=\"840\" cellpadding=\"0\" bgcolor=\"d3e2ea\" cellspacing=\"0\" border=\"0\">\n"
  81      ."<tr valign=\"top\">\n"
  82      ."<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
  83      ."<td width=\"138\" bgcolor=\"d3e2ea\" valign=\"top\">\n";
  84      blocks("left");
  85      echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
  86  }
  87  
  88  /************************************************************/

  89  /* Function themefooter()                                   */

  90  /*                                                          */

  91  /* Control the footer for your site. You don't need to      */

  92  /* close BODY and HTML tags at the end. In some part call   */

  93  /* the function for right blocks with: blocks(right);       */

  94  /* Also, $index variable need to be global and is used to   */

  95  /* determine if the page your're viewing is the Homepage or */

  96  /* and internal one.                                        */

  97  /************************************************************/

  98  
  99  function themefooter() {
 100      echo "<br>";
 101      if (defined('INDEX_FILE')) {
 102      echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"d3e2ea\">\n";
 103      blocks("right");
 104      echo "<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
 105      }
 106   else {
 107      echo "</td><td colspan=\"2\"><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
 108      }
 109      echo "<br><br></td></tr></table>\n"
 110      ."<br><center>";
 111      footmsg();
 112      echo "</center>";
 113  }
 114  
 115  
 116  function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
 117      global $anonymous, $tipath;
 118      echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
 119      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
 120      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
 121      ."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
 122      ."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
 123      ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
 124      ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
 125      FormatStory($thetext, $notes, $aid, $informant);
 126      echo "</td></tr></table>\n"
 127      ."</td></tr></table><br>\n"
 128      ."</td></tr><tr><td bgcolor=\"#FFFFFF\" align=\"center\">\n"
 129      ."<font class=\"tiny\">"._POSTEDBY." ";
 130      formatAidHeader($aid);
 131      echo " "._ON." $time $timezone ($counter "._READS.")<br></font>\n"
 132      ."<font class=\"content\">$morelink</font></center>\n"
 133      ."<img src=\"themes/DeepBlue/images/pixel.gif\" border=\"0\" height=\"2\">\n"
 134      ."</td></tr></table>\n"
 135      ."</td></tr></table><br>\n";
 136  }
 137  
 138  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
 139      global $admin, $sid, $tipath;
 140      echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
 141      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
 142      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
 143      ."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
 144      ."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
 145      ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
 146      ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
 147      FormatStory($thetext, $notes="", $aid, $informant);
 148      echo "</td></tr></table>\n"
 149      ."</td></tr></table><br>\n"
 150      ."</td></tr></table>\n"
 151      ."</td></tr></table><br><br>\n";
 152  }
 153  
 154  function themesidebox($title, $content) {
 155      echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
 156      ."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
 157      ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>$title</b></font>"
 158      ."</td></tr><tr><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr></table>\n"
 159      ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"138\">\n"
 160      ."<tr><td width=\"138\" bgcolor=\"#000000\">\n"
 161      ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"138\">\n"
 162      ."<tr><td width=\"138\" bgcolor=\"#ffffff\">\n"
 163      ."$content"
 164      ."</td></tr></table></td></tr></table><br>";
 165  }
 166  
 167  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7