[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

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

   1  <?php
   2  
   3  $lnkcolor = "#336699";
   4  $bgcolor1 = "#F6F6EB";
   5  $bgcolor2 = "#D8D8C4";
   6  $bgcolor3 = "#B7B78B";
   7  $textcolor1 = "#000000";
   8  $textcolor2 = "#000000";
   9  $theme_home = "Web_Links";
  10  $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor

  11  
  12  function OpenTable() {
  13      global $bgcolor1, $bgcolor2;
  14      echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
  15      echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  16  }
  17  
  18  function OpenTable2() {
  19      global $bgcolor1, $bgcolor2;
  20      echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
  21      echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  22  }
  23  
  24  function CloseTable() {
  25      echo "</td></tr></table></td></tr></table>\n";
  26  }
  27  
  28  function CloseTable2() {
  29      echo "</td></tr></table></td></tr></table>\n";
  30  }
  31  
  32  function FormatStory($thetext, $notes, $aid, $informant) {
  33      global $anonymous;
  34      if (!empty($notes)) {
  35      $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
  36      } else {
  37      $notes = "";
  38      }
  39      if ("$aid" == "$informant") {
  40      echo "<font size=\"2\">$thetext<br>$notes</font>\n";
  41      } else {
  42      if(!empty($informant)) {
  43          $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
  44      } else {
  45          $boxstuff = "$anonymous ";
  46      }
  47      $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
  48      echo "<font size=\"2\">$boxstuff</font>\n";
  49      }
  50  }
  51  
  52  function themeheader() {
  53      global $prefix, $db, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
  54      echo "<body bgcolor=\"$bgcolor1\">";
  55      ads(0);
  56      if (is_user($user)) {
  57      cookiedecode($user);
  58      $username = $cookie[1];
  59      $bienvenida = "Hello $username! [ <a href=\"modules.php?name=Your_Account&amp;op=logout\"><b>Logout</b></a> ]";
  60      } else {
  61      $bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">Create an Account</a>";
  62      }
  63      $topics_list = "<select name=\"topic\" onChange='submit()'>\n";
  64      $topics_list .= "<option value=\"\">All Topics</option>\n";
  65      $toplist = $db->sql_query("select topicid, topictext from $prefix"._topics." order by topictext");
  66      while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
  67      $topicid = intval($topicid);
  68      if ($topicid==$topic) { $sel = "selected "; }
  69      $topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
  70      $sel = "";
  71      }
  72      echo "<center><a href=\"index.php\"><img src=\"themes/Sand_Journey/images/LogoLeft.gif\" alt=\"Welcome to $sitename\" title=\"Welcome to $sitename\" border=\"0\"></a><br><br></center>"
  73      ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"$bgcolor1\"><tr><td align=\"center\">"
  74      ."<form action=\"modules.php?name=Search\" method=\"post\">"
  75      ."<font class=\"content\"><b>Search</b> <input type=\"text\" size=\"15\" name=\"query\">&nbsp;&nbsp;<b>in</b>&nbsp;&nbsp;$topics_list</font>"
  76      ."</select>"
  77      ."</form>"
  78      ."</td></tr></table>"
  79      ."<br>"
  80      ."<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\">\n"
  81      ."<tr><td bgcolor=\"$bgcolor2\" align=\"left\" width=\"20%\">&nbsp;$bienvenida</td>"
  82      ."<td bgcolor=\"$bgcolor2\" align=\"center\" width=\"60%\"><a href=\"index.php\">Home</a> | <a href=\"modules.php?name=Submit_News\">Submit News</a> | <a href=\"modules.php?name=Your_Account\">Your Account</a> | <a href=\"modules.php?name=Content\">Content</a> | <a href=\"modules.php?name=Topics\">Topics</a> | <a href=\"modules.php?name=Top\">Top 10</a></td>\n"
  83      ."<td bgcolor=\"$bgcolor2\" align=\"right\" width=\"20%\">"
  84          ."<b><script type=\"text/javascript\">\n\n"
  85          ."<!--   // Array ofmonth Names\n"
  86          ."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
  87          ."var now = new Date();\n"
  88          ."thisYear = now.getYear();\n"
  89          ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"

  90          ."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
  91          ."// -->\n\n"
  92          ."</script></b>&nbsp;\n"
  93      ."</td></tr>\n"
  94          ."<tr><td valign=\"top\" width=\"100%\" colspan=3>\n"
  95  ;
  96      $public_msg = public_message();
  97          echo "$public_msg<br>";
  98      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=$bgcolor1>";
  99      blocks("left");
 100      echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
 101  }
 102  
 103  function themefooter() {
 104      global $bgcolor1, $bgcolor2, $bgcolor3;
 105      if (defined('INDEX_FILE')) {
 106      echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" bgcolor=$bgcolor1>";
 107      blocks("right");
 108      echo "</td>";
 109      }
 110      echo "</td></tr></table></td></tr></table>";
 111      echo "<center>";
 112      footmsg();
 113      echo "</center>";
 114  }
 115  
 116  function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
 117      global $tipath, $anonymous, $bgcolor1, $bgcolor2, $bgcolor3;
 118      $ThemeSel = get_theme();
 119      if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
 120      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
 121      } else {
 122      $t_image = "$tipath$topicimage";
 123      }
 124      echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=$bgcolor3 width=\"100%\"><tr><td>"
 125          ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=$bgcolor2>"
 126          ."<font class=\"title\">$title</font><br>"
 127          ."<font size=\"1\">"
 128      ."$time "._BY." "
 129          ."<b>";
 130      formatAidHeader($aid);
 131      echo "</b> ($counter "._READS.")</font></td></tr>"
 132      ."<tr><td bgcolor=$bgcolor1><a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" align=\"right\" border=\"0\" alt=\"$topictext\" title=\"$topictext\"></a>";
 133      FormatStory($thetext, $notes, $aid, $informant);
 134      echo "<br>"
 135          ."</td></tr><tr><td bgcolor=$bgcolor1 align=\"right\">"
 136          ."<font size=\"2\">$morelink</font>"
 137          ."</td></tr></table></td></tr></table>"
 138      ."<br>";
 139  }
 140  
 141  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
 142      global $admin, $sid, $tipath, $bgcolor1, $bgcolor2, $bgcolor3;
 143      $ThemeSel = get_theme();
 144      if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
 145      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
 146      } else {
 147      $t_image = "$tipath$topicimage";
 148      }
 149      if ("$aid" == "$informant") {
 150      echo"
 151      <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%><tr><td>
 152      <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
 153      <font class=\"title\">$title</font><br>"._POSTEDON." $datetime
 154      <br>"._TOPIC.": <a href=modules.php?name=News&amp;new_topic=$topic>$topictext</a>
 155      </td></tr><tr><td bgcolor=$bgcolor1>
 156      <a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
 157      </td></tr></table></td></tr></table><br>";
 158      } else {
 159      if(!empty($informant)) $informant = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
 160      else $boxstuff = "$anonymous ";
 161      $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes";
 162      echo "
 163      <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%><tr><td>
 164      <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
 165      <font class=\"title\">$title</b></font><p>"._CONTRIBUTEDBY." $informant "._ON." $datetime</font>
 166      </td></tr><tr><td bgcolor=$bgcolor1>
 167      <a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
 168      </td></tr></table></td></tr></table><br>";
 169      }
 170  }
 171  
 172  function themesidebox($title, $content) {
 173      global $bgcolor1, $bgcolor2, $bgcolor3;
 174      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"150\" bgcolor=\"$bgcolor3\">\n"
 175      ."<tr><td>\n"
 176          ."<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">\n"
 177      ."<tr><td bgcolor=$bgcolor2>"
 178          ."<font class=\"boxtitle\">$title</font></td></tr><tr><td bgcolor=\"$bgcolor1\"><font size=\"2\">"
 179          ."$content"
 180      ."</font></td></tr></table></td></tr></table><br>";
 181  }
 182  
 183  ?>


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