Parašė edvis500· 2011 Lie. 31 19:07:50
#1
Turbut daug kas zinot scripta LGSL. Noredamas padaryti savo serveriu sarasa susiduriau su problema, as noriu, kad paspaudus ant zaideju skaiciaus ismestu servo details ne tame paciame lange, o naujam kaip popup.
Tai va yra:
$output .= "
<table style=cellspacing='2'>";
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);
$output .= "
<tr style='".lgsl_bg().";'>
<td style='text-align:left'>";
if ($lgsl_config['locations'])
{
$output .= "
<a href='".lgsl_location_link($server['o']['location'])."' style='text-decoration:none'>
<img alt='' src='{$misc['icon_location']}' title='{$misc['text_location']}' style='vertical-align:middle; border:none' />
</a>";
}
$output .= "
<img alt='' src='{$misc['image_map']}' title='{$lgsl_config['text']['vsd']}' style='vertical-align:middle; border:none' />
</a>
</td>
<td title='{$server['s']['name']}' style='text-align:left'>
<center><div style='width:100%; overflow:hidden; height:5em; line-height:5em'>
{$misc['name_filtered']}
<img alt='' src='{$misc['icon_game']}' title='{$misc['text_type_game']}' style='vertical-align:middle' />
</div>
<b>IP:<b>
{$server['b']['ip']}:{$server['b']['c_port']}
<br>
<br>
<b>Žemėlapis:<b>
{$server['s']['map']}
<br>
<br>
<b>Žaidėjai:<b>
<a href='".lgsl_link($server['o']['id'])."' style='text-decoration:none'>
{$server['s']['players']} / {$server['s']['playersmax']}
</a>
</center>
</td>
</tr>";
}
$output .= "
</table>";
Kaip man padaryt kad paspaudus ant zaideju skaiciaus issoktu naujas popup langas su servo details?