Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: LGSL naujam lange

Parašė edvis500· 2011 Lie. 26 03:07:17
#1

Tai va susiduriau su problema ir noreciau paprasyt jusu pagalbos. Niekaip neiseina padaryti, kad per LGSL paspaudus click here to view server details jis isoktu kaip mazas langelis. Kazkas panasaus i sita:

<FORM>
<INPUT type="button" value="New Window!" onClick="window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow','width=400,height=200')">
</FORM>

Bet ar as nemoku ar kaip, bet neina jo man idet. Aciu uz pagalba :)

Parašė edvis500· 2011 Lie. 26 18:07:10
#2

Kaip man sita koduka:

echo '<script type="text/javascript">
<!--
function myPopup2() {
window.open( "'.lgsl_link($server['o']['id']).'", "myWindow", 
"top=10, left=10, width=600, height=800 status=no, menubar=no, toolbar=no scrollbar=no" )
}
//-->
</script>
<form>
<p onClick="myPopup2()">CLICK ME TOO!</p>
</form>';


ikist i cia:


  $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 .= "
          <a href='".lgsl_link($server['o']['id'])."' style='text-decoration:none'>
            <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>
{$server['s']['players']} / {$server['s']['playersmax']}
          </a></center>
        </td>
      </tr>";
    }
 
    $output .= "
    </table>";


kad paspaudus ant zaideju skaiciaus isoktu popup naujas langas su servo informacija?