All Data Structures Namespaces Files Functions Variables Pages
map.php
Go to the documentation of this file.
<?php
define('CURSCRIPT', 'map');
require './include/common.inc.php';
$mapvcoordinate = Array('A','B','C','D','E','F','G','H','I','J');
for($i=0;$i<count($plsinfo);$i++){
if($hack || array_search($i,$arealist) > ($areanum + $areaadd)){
$plscolor[$i] = 'mapspanlime';
} elseif(array_search($i,$arealist) <= $areanum) {
$plscolor[$i] = 'mapspanred';
} else {
$plscolor[$i] = 'mapspanyellow';
}
// $position[$i] = array(substr($xyinfo[$i],0,1),substr($xyinfo[$i],3,1));
$position=explode('-',$xyinfo[$i]);
$mpp[$position[0]][$position[1]]=$i;
// $vposition[$i] = substr($xyinfo[$i],0,1);
// $hposition[$i] = substr($xyinfo[$i],3,1);
}
$mapcontent = '<TABLE border="1" cellspacing="0" cellpadding="0" align=center background="map/neomap.jpg" style="position:relative;background-repeat:no-repeat;background-position:right bottom;">';
$mapcontent .=
'<TR align="center">
<TD width="48" height="48" class=map align=center><div class=nttx>坐标</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>1</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>2</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>3</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>4</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>5</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>6</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>7</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>8</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>9</div></TD>
<TD width="48" height="48" class=map align=center><div class=nttx>10</div></TD>
</TR>';
for($i=0;$i<10;$i++){
$mapcontent .= '<tr align="center"><TD class=map align=center><div class=nttx>'.$mapvcoordinate[$i].'</div></TD>';
for($j=1;$j<=10;$j++){
if(isset($mpp[$mapvcoordinate[$i]][$j])){
$mapcontent .= '<td width="48" height="48" class="map2" align=middle><span class="'.$plscolor[$mpp[$mapvcoordinate[$i]][$j]].'">'.$plsinfo[$mpp[$mapvcoordinate[$i]][$j]].'</span></td>';
}else{
$mapcontent .= '<td width="48" height="48" class="map2" align=middle><IMG src="map/blank.gif" width="48" height="48" border=0></td>';
}
}
$mapcontent .= '</tr>';
}
$mapcontent .= '</table>';
include template('map');
?>
$mapcontent
for($i=0;$i< count($plsinfo);$i++) $mapcontent
Definition: map.php:25
$areanum
$areanum
Definition: gameinfo.php:9
$plsinfo
$plsinfo
Definition: resources_1.php:801
$xyinfo
$xyinfo
Definition: resources_1.php:838
$i
$i
Definition: botservice.php:267
$mapvcoordinate
$mapvcoordinate
Definition: map.php:7
elseif
【生存者数：<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
Definition: 1_alive.tpl.php:18
$hack
$hack
Definition: gameinfo.php:12
$arealist
$arealist
Definition: gameinfo.php:8
$areaadd
$areaadd
Definition: gamecfg_1.php:7