[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

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

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


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