[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

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

   1  <?php
   2  
   3  /************************************************************/
   4  /* Theme Colors Definition                                  */
   5  /*                                                          */
   6  /* Control the header for your site. You need to define the */
   7  /* BODY tag and in some part of the code call the blocks    */
   8  /* function for left side with: block(left);                */
   9  /************************************************************/
  10  
  11  $thename = "NukeNews";
  12  $bgcolor1 = "#d5d5d5";
  13  $bgcolor2 = "#7b91ac";
  14  $bgcolor3 = "#efefef";
  15  $bgcolor4 = "#d5d5d5";
  16  $textcolor1 = "#000000";
  17  $textcolor2 = "#000000";
  18  
  19  function OpenTable() {
  20      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>
  21      <td width=\"15\" height=\"15\"><img src=\"themes/Kaput/images/up-left2.gif\" alt=\"\" border=\"0\"></td>
  22      <td background=\"themes/Kaput/images/up2.gif\" align=\"center\" width=\"100%\" height=\"15\">&nbsp;</td>
  23      <td><img src=\"themes/Kaput/images/up-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
  24      <tr>
  25      <td background=\"themes/Kaput/images/left2.gif\" width=\"15\">&nbsp;</td>
  26      <td bgcolor=\"ffffff\" width=\"100%\">";
  27  }
  28  
  29  function OpenTable2() {
  30  
  31      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr>
  32      <td width=\"15\" height=\"15\"><img src=\"themes/Kaput/images/up-left2.gif\" alt=\"\" border=\"0\"></td>
  33      <td background=\"themes/Kaput/images/up2.gif\" align=\"center\" height=\"15\">&nbsp;</td>
  34      <td><img src=\"themes/Kaput/images/up-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
  35      <tr>
  36      <td background=\"themes/Kaput/images/left2.gif\" width=\"15\">&nbsp;</td>
  37      <td bgcolor=\"ffffff\">";
  38  }
  39      
  40  function CloseTable() {
  41      echo "</td>
  42      <td background=\"themes/Kaput/images/right2.gif\">&nbsp;</td></tr>
  43      <tr>
  44      <td width=\"15\" height=\"15\"><img src=\"themes/Kaput/images/down-left2.gif\" alt=\"\" border=\"0\"></td>
  45      <td background=\"themes/Kaput/images/down2.gif\" align=\"center\" height=\"15\">&nbsp;</td>
  46      <td><img src=\"themes/Kaput/images/down-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
  47      </td></tr></table>
  48      <br>";
  49  }
  50  
  51  function CloseTable2() {
  52      echo "</td>
  53      <td background=\"themes/Kaput/images/right2.gif\">&nbsp;</td></tr>
  54      <tr>
  55      <td width=\"15\" height=\"15\"><img src=\"themes/Kaput/images/down-left2.gif\" alt=\"\" border=\"0\"></td>
  56      <td background=\"themes/Kaput/images/down2.gif\" align=\"center\" height=\"15\">&nbsp;</td>
  57      <td><img src=\"themes/Kaput/images/down-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
  58      </td></tr></table>
  59      <br>";
  60  }
  61  
  62  function FormatStory($thetext, $notes, $aid, $informant) {
  63      global $anonymous;
  64      if (!empty($notes)) {
  65      $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
  66      } else {
  67      $notes = "";
  68      }
  69      if ("$aid" == "$informant") {
  70      echo "<font class=\"content\" color=\"#505050\">$thetext<br>$notes</font>\n";
  71      } else {
  72      if(!empty($informant)) {
  73          $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
  74      } else {
  75          $boxstuff = "$anonymous ";
  76      }
  77      $boxstuff .= "writes <i>\"$thetext\"</i> $notes\n";
  78      echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
  79      }
  80  }
  81  
  82  /************************************************************/
  83  /* Function themeheader()                                   */
  84  /*                                                          */
  85  /* Control the header for your site. You need to define the */
  86  /* BODY tag and in some part of the code call the blocks    */
  87  /* function for left side with: block(left);                */
  88  /************************************************************/
  89  
  90  function themeheader() {
  91      global $user, $sitename;
  92      cookiedecode($user);
  93      $username = $cookie[1];
  94      if (empty($username)) {
  95          $username = "Anonymous";
  96      }
  97      echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
  98      ."<br>\n";
  99      ads(0);
 100      OpenTable();
 101      echo "<table border=\"0\"><tr><td rowspan=\"2\">"
 102      ."<a href=\"index.php\"><img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\" align=\"left\"></a></td>"
 103      ."<td align=right width=100%>"
 104          ."<form action=\"modules.php?name=Search\" method=\"post\">"
 105          ."<font class=\"content\" color=\"#000000\"><b>"._SEARCH." </b>"
 106          ."<input type=\"text\" name=\"query\" size=\"14\"></font></form>"
 107          ."</td></tr><tr>"
 108          ."<td align=\"right\" valign=\"bottom\" width=\"100%\">"
 109          ."<font class=\"content\"><b>"
 110      ."<A href=\"/\">Home</a>&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Topics\">Topics</a>&nbsp;&middot;&nbsp"
 111          ."<A href=\"modules.php?name=Downloads\">Downloads</a>&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Your_Account\">Your Account</a>"
 112          ."&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Forum\">Forums</a>&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Top\">Top 10</a>"
 113          ."</b></font></td></tr></table>\n";
 114      CloseTable();
 115      $public_msg = public_message();
 116      echo "$public_msg<br>";    
 117      echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"99%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
 118      ."<tr><td bgcolor=\"#ffffff\" valign=\"top\">\n";
 119      blocks("left");
 120      echo "</td><td><img src=\"themes/NukeNews/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\" valign=top>\n";
 121  }
 122  
 123  /************************************************************/
 124  /* Function themefooter()                                   */
 125  /*                                                          */
 126  /* Control the footer for your site. You don't need to      */
 127  /* close BODY and HTML tags at the end. In some part call   */
 128  /* the function for right blocks with: block(right);        */
 129  /* Also, $index variable need to be global and is used to   */
 130  /* determine if the page your're viewing is the Homepage or */
 131  /* and internal one.                                        */
 132  /************************************************************/
 133  
 134  function themefooter() {
 135      if (defined('INDEX_FILE')) {
 136      echo "</td><td><img src=\"themes/NukeNews/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
 137      blocks("right");
 138      }
 139      echo "</td></tr></table>\n";
 140      echo "<br>";
 141      OpenTable();
 142      echo "<center>";
 143      footmsg();
 144      echo "</center>";
 145      CloseTable();
 146  }
 147  
 148  /************************************************************/
 149  /* Function themeheader()                                   */
 150  /*                                                          */
 151  /* Control the header for your site. You need to define the */
 152  /* BODY tag and in some part of the code call the blocks    */
 153  /* function for left side with: block(left);                */
 154  /************************************************************/
 155  
 156  function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
 157      global $anonymous, $tipath;
 158      $ThemeSel = get_theme();
 159      if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
 160      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
 161      } else {
 162      $t_image = "$tipath$topicimage";
 163      }
 164      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>
 165      <td width=\"15\" height=\"15\"><img src=\"themes/Kaput/images/up-left2.gif\" alt=\"\" border=\"0\"></td>
 166      <td background=\"themes/Kaput/images/up2.gif\" align=\"center\" width=\"100%\" height=\"15\">&nbsp;</td>
 167      <td><img src=\"themes/Kaput/images/up-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
 168      <tr>
 169      <td background=\"themes/Kaput/images/left2.gif\" width=\"15\">&nbsp;</td>
 170      <td bgcolor=\"ffffff\" width=\"100%\">
 171      <font color=\"#999999\"><b><a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a></B></font>
 172      <b>$title</b><br><br>";
 173      FormatStory($thetext, $notes, $aid, $informant);
 174      echo "</td>
 175      <td background=\"themes/Kaput/images/right2.gif\">&nbsp;</td></tr>
 176      <tr>
 177      <td width=\"15\" height=\"15\"><img src=\"themes/Kaput/images/middle-left.gif\" alt=\"\" border=\"0\"></td>
 178      <td background=\"themes/Kaput/images/middle.gif\" align=\"center\" height=\"15\">&nbsp;</td>
 179      <td><img src=\"themes/Kaput/images/middle-right.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
 180      <tr>
 181      <td background=\"themes/Kaput/images/left3.gif\" width=\"15\">&nbsp;</td>
 182      <td align=center>
 183      <font color=\"#999999\" size=\"1\">"._POSTEDBY." ";
 184      formatAidHeader($aid);
 185      echo ""._ON." $time $timezone ($counter "._READS.")<br></font>
 186      <font class=\"content\">$morelink</font></td>
 187      <td background=\"themes/Kaput/images/right3.gif\" width=\"15\">&nbsp;</td></tr>
 188      <tr>
 189      <td width=\"15\" height=\"11\" valign=top><img src=\"themes/Kaput/images/down-left3.gif\" alt=\"\" border=\"0\"></td>
 190      <td background=\"themes/Kaput/images/down3.gif\" align=\"center\" height=\"11\" width=100%>&nbsp;</td>
 191      <td><img src=\"themes/Kaput/images/down-right3.gif\" width=\"15\" height=\"11\" alt=\"\" border=\"0\">
 192      </td></tr></table>
 193      <br>";
 194  }
 195  
 196  /************************************************************/
 197  /* Function themeheader()                                   */
 198  /*                                                          */
 199  /* Control the header for your site. You need to define the */
 200  /* BODY tag and in some part of the code call the blocks    */
 201  /* function for left side with: block(left);                */
 202  /************************************************************/
 203  
 204  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
 205      global $admin, $sid, $tipath, $admin_file;
 206      $ThemeSel = get_theme();
 207      if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
 208      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
 209      } else {
 210      $t_image = "$tipath$topicimage";
 211      }
 212      Opentable();
 213      echo "<font class=\"option\" color=\"#363636\"><b>$title</b></font><br>\n"
 214          ."<font class=\"content\">Posted on $datetime by ";
 215      formatAidHeader($aid);
 216      if (is_admin($admin)) {
 217      echo "<br>[ <a href=\"".$admin_file.".php?op=EditStory&amp;sid=$sid\">"._EDIT."</a> | <a href=\"".$admin_file.".php?op=RemoveStory&amp;sid=$sid\">"._DELETE."</a> ]\n";
 218      }
 219      echo "<br><br>";
 220      echo "<a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
 221      FormatStory($thetext, $notes="", $aid, $informant);
 222      echo "<br>\n\n\n";
 223      CloseTable();
 224  }
 225  
 226  /************************************************************/
 227  /* Function themeheader()                                   */
 228  /*                                                          */
 229  /* Control the header for your site. You need to define the */
 230  /* BODY tag and in some part of the code call the blocks    */
 231  /* function for left side with: block(left);                */
 232  /************************************************************/
 233  
 234  function themesidebox($title, $content) {
 235      echo "<table border=0 cellspacing=0 cellpadding=0 width=150><tr>"
 236      ."<td width=17 height=17><img src=themes/Kaput/images/up-left.gif alt=\"\" border=0></td>"
 237          ."<td background=themes/Kaput/images/up.gif align=center width=100% height=17>&nbsp;</td>"
 238          ."<td><img src=themes/Kaput/images/up-right.gif width=17 height=17 alt=\"\" border=0></td></tr>"
 239          ."<tr>"
 240          ."<td background=themes/Kaput/images/left.gif width=17>&nbsp;</td>"
 241          ."<td background=themes/Kaput/images/backdot.gif width=126><center><font class=content><b>$title</b></font></center><br>$content</td>"
 242          ."<td background=themes/Kaput/images/right.gif>&nbsp;</td></tr>"
 243          ."<tr>"
 244          ."<td width=17 height=17><img src=themes/Kaput/images/down-left.gif alt=\"\" border=0></td>"
 245          ."<td background=themes/Kaput/images/down.gif align=center width=100% height=17>&nbsp;</td>"
 246          ."<td><img src=themes/Kaput/images/down-right.gif width=17 height=17 alt=\"\" border=0></td></tr>"
 247          ."</td></tr></table>"
 248          ."<br>";
 249  }
 250  
 251  ?>


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