[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

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

   1  <?php
   2  
   3  $bgcolor1 = "#ffffff";
   4  $bgcolor2 = "#cccccc";
   5  $bgcolor3 = "#ffffff";
   6  $bgcolor4 = "#eeeeee";
   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 OpenTable2() {
  17      global $bgcolor1, $bgcolor2;
  18      echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
  19      echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  20  }
  21  
  22  function CloseTable() {
  23      echo "</td></tr></table></td></tr></table>\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 = "<b>"._NOTE."</b> <i>$notes</i>\n";
  34      } else {
  35      $notes = "";
  36      }
  37      if ("$aid" == "$informant") {
  38      echo "<font class=\"content\">$thetext<br>$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  function themeheader() {
  51      echo "<body bgcolor=\"ffffff\" text=\"000000\" link=\"0000ff\" vlink=\"0000ff\">"
  52      ."<br>";
  53      ads(0);
  54      echo "<br>"
  55      ."<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"ffffff\">"
  56          ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"ffffff\"><tr><td>"
  57          ."<a href=\"index.php\"><img src=\"themes/ExtraLite/images/logo.gif\" alt=\"Welcome to $sitename\" title=\"Welcome to $sitename\" border=\"0\"></a>"
  58          ."</td><td align=\"right\">"
  59          ."<form action=\"modules.php?name=Search\" method=\"post\">"
  60          ."<font class=\"content\">Search"
  61          ."<input type=\"text\" name=\"query\">"
  62          ."</font></form>"
  63          ."</td></tr></table></td></tr><tr><td valign=\"top\" width=\"100%\" bgcolor=\"ffffff\">";
  64      $public_msg = public_message();
  65      echo "$public_msg<br>";
  66      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"ffffff\">";
  67      blocks("left");
  68      echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
  69  }
  70  
  71  function themefooter() {
  72      if (defined('INDEX_FILE')) {
  73      echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" bgcolor=\"#ffffff\">";
  74      blocks("right");
  75      echo "</td>";
  76      }
  77      echo "</td></tr></table></td></tr></table>";
  78      footmsg();
  79  }
  80  
  81  function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  82      global $anonymous;
  83      echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=\"000000\" width=\"100%\"><tr><td>"
  84          ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"ffffff\">"
  85          ."<b>$title</b><br>"
  86          ."<font class=\"tiny\">"
  87          .""._POSTEDBY." <b>";
  88      formatAidHeader($aid);
  89      echo "</b> "._ON." $time $timezone ($counter "._READS.")<br>"
  90      ."<b>"._TOPIC."</b> <a href=\"modules.php?name=News&amp;new_topic=$topic\">$topictext</a><br>"
  91      ."</font></td></tr><tr><td bgcolor=\"ffffff\">";
  92      FormatStory($thetext, $notes, $aid, $informant);
  93      echo "<br><br>"
  94          ."</td></tr><tr><td bgcolor=\"ffffff\" align=\"right\">"
  95          ."<font class=\"content\">$morelink</font>"
  96          ."</td></tr></table></td></tr></table>"
  97      ."<br>";
  98  }
  99  
 100  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
 101      global $admin, $sid, $admin_file;
 102      if ("$aid" == "$informant") {
 103      echo"
 104      <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%><tr><td>
 105      <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=FFFFFF>
 106      <b>$title</b><br><font class=tiny>Posted on $datetime";
 107      if ($admin) {
 108          echo "&nbsp;&nbsp; $font2 [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>Edit</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>Delete</a> ]";
 109      }
 110      echo "
 111      <br>Topic: <a href=modules.php?name=News&amp;new_topic=$topic>$topictext</a>
 112      </td></tr><tr><td bgcolor=ffffff>
 113      $thetext
 114      </td></tr></table></td></tr></table><br>";
 115      } else {
 116      if(!empty($informant)) $informant = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
 117      else $boxstuff = "$anonymous ";
 118      $boxstuff .= "writes <i>\"$thetext\"</i> $notes";
 119      echo "
 120      <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%><tr><td>
 121      <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=FFFFFF>
 122      <b>$title</b><br><font class=content>Contributed by $informant on $datetime</font>";
 123      if ($admin) {
 124          echo "&nbsp;&nbsp; $font2 [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>Edit</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>Delete</a> ]";
 125      }
 126      echo "
 127      <br>Topic: <a href=modules.php?name=News&amp;new_topic=$topic>$topictext</a>
 128      </td></tr><tr><td bgcolor=ffffff>
 129      $thetext
 130      </td></tr></table></td></tr></table><br>";
 131      }
 132  }
 133  
 134  function themesidebox($title, $content) {
 135      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"150\" bgcolor=\"000000\"><tr><td>"
 136          ."<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\"><tr><td bgcolor=\"ffffff\">"
 137          ."<font class=\"content\">$title</font></td></tr><tr><td bgcolor=\"ffffff\"><font class=\"content\">"
 138          ."$content"
 139      ."</font></td></tr></table></td></tr></table><br>";
 140  }
 141  
 142  ?>


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