<?php // vwar $Id: nextactions.php,v 1.2 2003/05/03 13:36:44 scott Exp $ /* ##############################################################################
####### * VWar * Copyright (C) 2001 mabu (Oliver K.) * pm@ec-league.com * * VWar for postnuke: nextactions.php * redline@sas-delta.com * * display X next actions, for vwar - virtual war, a warscript for online gamers * * Copyright Notes: * ---------------- * - All Rights reserved * - All rights reserved to their proper authors. * - using the script(s) without the owners permission is prohibited * * NOTE: * This script can be used to include nextactions in a menu on your site * The output is simply opponent,date,gametype,matchtype! * * YOU CAN CHANGE HTML OUTPUT BELOW THIS LINE AS NEEDED !!! * #############################################################################
######## */ 'text_type' => 'Lastwars', 'text_type_long' => 'Lastwars', 'allow_multiple' => false, 'form_content' => false, 'form_refresh' => false, 'show_preview' => true); // Security pnSecAddSchema('Lastwarsblock::', 'Block title::'); // Main function function blocks_lastwars_block($row) { // configuration // Include the VWar config file for the number of the vwar instances include ("_config.inc.php"); $numlastactions2 = "5"; // limit display to x last actions //$result = mysql_query("SELECT ownscore,oppscore FROM vwar".$n."_scores"); //$srow = mysql_fetch_array($result); //$ownscore = $srow[ownscore]; //$oppscore = $srow[oppscore]; $result = mysql_query("SELECT ownnameshort,ownhomepage,waroverlap,longdateformat FROM vwar".$n."_settings"); $ownnameshort = $srow[ownnameshort]; $ownhomepage = $srow[ownhomepage]; $waroverlap = $srow[waroverlap]; $longdateformat = $srow[longdateformat]; $content = "<table border="0" cellpadding="0" cellspacing="0" align="center">"; $result = mysql_query("SELECT COUNT(warid) FROM vwar".$n." WHERE status='1' AND dateline < '".time()."'"); $numlastwars = $srow[0]; if ($numlastwars > 0) { $result = mysql_query("SELECT vwar".$n.".warid,vwar".$n.".gameid,vwar".$n.".gametypeid,vwar".$n.".matchtypeid,status,dateline,oppnameshort,oppircnetwork,oppircchannel,oppho
mepage,matchtypename,gametypename,vwar".$n."_games.gameicon,vwar".$n."_games.gamename FROM vwar".$n.",vwar".$n."_matchtype,vwar".$n."_gametype,vwar".$n."_opponents,vwar".$n."_games FROM vwar".$n."_ownscore,vwar".$n."_oppscore".$n."_scores WHERE vwar".$n.".oppid=vwar".$n."_opponents.oppid AND vwar".$n.".gametypeid=vwar".$n."_gametype.gametypeid AND vwar".$n."_matchtype.matchtypeid=vwar".$n.".matchtypeid AND vwar".$n.".gameid=vwar".$n."_games.gameid AND vwar".$n.".ownscore=vwar".$n."_scores.ownscore ORDER BY dateline DESC LIMIT 0,$numlastactions2 "); $gameicon = "<img src="images/icons/".$srow["gameicon"]."" alt="".$srow["gamename"]."" align="absmiddle" border="0">"; } else { $gameicon = ""; } $content.= "<tr>"; $content.= " <td align="center"><b>"; $content.= " </b></td>"; $content.= "</tr>"; //$content.= "<tr>"; //$content.= " <td align="center">"; //$content.= " $gameicon $srow[gamename]"; //$content.= " </td>"; //$content.= "</tr>"; $content.= "<tr>"; $content.= " <td align="center">"; $content.= " <img src="http://www.betewu.pl/magical/modules/vwar/images/flags/pl.gif"> <a href="$ownhomepage" target="blank">$ownnameshort</a> vs. <a href="$srow[opphomepage]" target="blank">$srow[oppnameshort]</a> <img src="http://www.betewu.pl/magical/modules/vwar/images/flags/pl.gif"><br>"; $content.= " </td>"; $content.= "</tr>"; $content.= "<tr>"; $content.= " <td align="center">"; [COLOR=blue] $content.= " $ownscore / $oppscore<br><br>";[/COLOR] $content.= " </td>"; $content.= "</tr>"; //$content.= "<tr>"; //$content.= " <td align="left">- $srow[matchtypename]</td>"; //$content.= "</tr>"; //$content.= "<tr>"; //$content.= " <td align="left">- $srow[gametypename] <br></td>"; //$content.= "</tr>"; } } else { $content.= "<tr>"; $content.= "<td align="center">No Last Actions</td>"; $content.= "</tr>"; } $content.= "</TABLE>"; $row['content'] = $content; return themesideblock($row); } ?>

poprawiam
---
nospor
kod ma wyswietlac wyniki ostatnich meczy
na razie wyswietla ino date i druzyny
chce zeby wyswietlal takze wynik
ale jak to zrobic? hmm
kod dziala dopóki nie wstawie tego niebieskiego kodu ktory wg mnie ma odpowiadac za wyswietlenie punktow