Location: PHPKode > projects > Skrupel User Game Administration > mitspieler.php
<?
include ("include/conf.inc.php");
include ("$basepfath/inc.conf.php");
include ("$usedpfath/include/header.inc.php");
include ("$usedpfath/include/usercheck.inc.php");

if ($HTTP_GET_VARS["fu"]==1)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();
 ?>
 <body bgcolor="#444444" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <center>
 <table border="0" height="100%" width="100%" cellspacing="0" cellpadding="0">
 <tr>
  <td valign="top">
   <center>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td valign="top" align="center" style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Mitspieler bei <? echo $servername; ?></td>
     </tr>
     <tr>
      <td>&nbsp;</td>
     </tr><?
     $abfrage = mysql_query("SELECT * FROM skrupel_user ORDER BY nick asc");
     if (mysql_num_rows($abfrage) < 1)
      {?>
      <tr>
       <td align="center" class="stil1">Keine Mitspieler vorhanden die angezeigt werden k├Ânnen.</td>
      </tr><?
      }
      else{?>

	  <tr>
	   <table width="100%"  border="0">
        <tr>
         <td>&nbsp;</td>
        </tr>
 	   </table>
	   <table width="100%"  border="0">
        <tr>
         <td class="stil1">Nr</td>
         <td class="stil1">Nick</td>
         <td class="stil1">EMail</td>
         <td class="stil1">Spiele</td>
         <td class="stil1">Siege</td>
         <td class="stil1">Schalchten</td>
         <td class="stil1">Schlachten gewonnen</td>
         <td class="stil1">Eroberte Kollonien</td>
         <td class="stil1">Geflogene Lichtjahre</td>
         <td class="stil1">Dabei seit [Monaten]</td>
        </tr>
        <tr>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
        </tr><?
		$n=1;
        while ($row = mysql_fetch_object ($abfrage))
              {
			  $userid=$row->id;
              $nick=$row->nick;
              $email=$row->email;
              $stat_teilnahme=$row->stat_teilnahme;
	          $stat_sieg=$row->stat_sieg;
	          $stat_schlacht=$row->stat_schlacht;
	          $stat_schlacht_sieg=$row->stat_schlacht_sieg;
	          $stat_kol_erobert=$row->stat_kol_erobert;
	          $stat_lichtjahre=$row->stat_lichtjahre;
	          $stat_monate=$row->stat_monate;
		      ?>

              <tr>
               <td class="stil2"><div align="center"><? echo $n; ?></div></td>
               <td class="stil2"><? echo $nick; ?></td>
               <td class="stil2"><a href="javascript:launchereins('message.php?fu=1&userid=<? echo $userid; ?>');">Nachricht schicken</a></td>
               <td class="stil2"><? echo $stat_teilnahme; ?></td>
               <td class="stil2"><? echo $stat_sieg; ?></td>
               <td class="stil2"><? echo $stat_schlacht; ?></td>
               <td class="stil2"><? echo $stat_schlacht_sieg; ?></td>
               <td class="stil2"><? echo $stat_kol_erobert; ?></td>
               <td class="stil2"><? echo $stat_lichtjahre; ?></td>
               <td class="stil2"><? echo $stat_monate; ?></td>
              </tr><?
              $n++;
		      }?>
        </table>
	   </tr><?
      }?>
     <tr>
      <td class="still1"></td>
     </tr>
    </table>
   </center>
  </td>
 </tr>
 </table>
 </center>

 <SCRIPT LANGUAGE='JavaScript'>
 <!-- //
 function launchereins(usedurl) {
 myTarget = 'message';
 myArgs = 'width=400,height=300,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,hotkeys=0,screenx=0,screeny=0,left=0,top=0,dependent=yes';
 window.open( usedurl+"/", myTarget, myArgs );
 }
 // -->
 </SCRIPT>
 <?
 $footer -> easy_print();
 }
Return current item: Skrupel User Game Administration