laibach 0 Odesláno: 6. Leden, 2015 Share Odesláno: 6. Leden, 2015 Cawte robim serverlist a potrebujem s niecim pomoct. Mame herny portal http://www.game-s...k/news.php a robim si ktomu aj server list http://www.game-s...ervery.php teraz si nerobim reklamu len aby bolo jasne, ze o co ide. Tak ze potrebujem toto: <table style='margin:auto'><tr><td><form action="search.php" method="post">ip Serveru<br><input type="text" name="ip" size="15" value=""></td><td>port Serveru<br><input type="text" name="c_port" size="6" value=""></td><td><br><input type="submit" name="submit" value="Hladat"><input type="reset" name="reset" value="zrusit"></td></form></tr></table> vlozit sem: <?php/*----------------------------------------------------------------------------------------------------------\| || [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ] || || Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org) || ||-------------------------------------------------------------------------------------------------------------| [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ] |\-----------------------------------------------------------------------------------------------------------*///------------------------------------------------------------------------------------------------------------+require "lgsl_class.php";$server_list = lgsl_query_group(array("game" => $_GET['type'], "gamemode" => $_GET['gamemode']));$server_list = lgsl_sort_servers($server_list);//------------------------------------------------------------------------------------------------------------+echo "<div style='text-align:center; font-size:10px; font-face:arial'>";echo " <table width='100%' border='0' cellpadding='3' cellspacing='0' style='margin:auto'><tr style='background-color:#CCCCC; height:25px;' table-layout:fixed'></br></br><b><a href='http://www.game-server.sk/serverlist/pridat-server.php'><span style='color:red; font-size:13px' >Pridať server</span></a></b></br></br></br></br></br></br><td style='text-align:center;width:20px;'><b>Status</b></td><td style='text-align:center;width:10px;'><b>Typ</b></td><td style='text-align:left;'><b>Názov</b></td><td style='text-align:left; width:65px;'><b>IP:Port</b></td><td style='white-space:nowrap; text-align:center; width:45px;'><b>Hráči</b></td><td style='white-space:nowrap; text-align:center; width:10px;'><b>Detail</b></td></tr>";foreach ($server_list as $server){$misc = lgsl_server_misc($server);$server = lgsl_server_html($server);$output .= "<tr style='".lgsl_bg().";table-layout:fixed'><td><img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' /></td><td><img alt='' src='{$misc['icon_game']}' title='{$misc['text_type_game']}' /></td><td title='{$server['s']['name']}' style='text-align:left'>";if($server['o']['new'] == 1){if($server['o']['tip'] == 1){$output .= "<div style='width:100%; overflow:hidden; height:1.3em; line-height:1.3em'><img src='http://www.game-server.sk/serverlist/infusions/lgsl/lgsl_files/other/icon_new.png' width='24' height='11' alt='tip' title='Nový v databázi!'> <img src='http://www.game-server.sk/serverlist/infusions/lgsl/lgsl_files/other/icon_tip.png' width='24' height='11' alt='tip' title='Odporúčame!'> {$misc['name_filtered']}</div>";}else{$output .= "<div style='width:100%; overflow:hidden; height:1.3em; line-height:1.3em'><img src='http://www.game-server.sk/serverlist/infusions/lgsl/lgsl_files/other/icon_new.png' width='24' height='11' alt='tip' title='Nový v databázi!'> {$misc['name_filtered']}</div>";}}else{if($server['o']['tip'] == 1){$output .= "<div style='width:100%; overflow:hidden; height:1.3em; line-height:1.3em'><img src='http://www.game-server.sk/serverlist/infusions/lgsl/lgsl_files/other/icon_tip.png' width='24' height='11' alt='tip' title='Odporúčame!'> {$misc['name_filtered']}</div>";}else{$output .= "<div style='width:100%; overflow:hidden; height:1.3em; line-height:1.3em'>{$misc['name_filtered']}</div>";}}$output .= "</td><td style='text-align:left'>{$server['b']['ip']}$server['b']['c_port']}</td><td style='white-space:nowrap; text-align:center'>{$server['s']['players']} / {$server['s']['playersmax']}</td><td style='white-space:nowrap; text-align:center'><a href='".lgsl_link($server['o']['id'])."'><img alt='' src='http://www.game-server.sk/serverlist/infusions/lgsl/lgsl_files/other/icon_details.png' style='border:none' title='{$lgsl_config['text']['vsd']}' /></a></td></tr>";}$output .= "</table></div> ";//------------------------------------------------------------------------------------------------------------+// if ($lgsl_config['list']['totals'])// {// $total = lgsl_cached_totals();// $output .= "// <div>// <br />// </div>// <div style='text-align:center'>// <table cellpadding='4' cellspacing='4' style='margin:auto'>// <tr style='".lgsl_bg()."'>// <td> {$lgsl_config['text']['tns']} {$total['servers']} </td>// <td> {$lgsl_config['text']['tnp']} {$total['players']} </td>// <td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>// </tr>// <tr style='".lgsl_bg()."'>// <td> Čaká na shcválenie:";// $id ++;// $output .= " </td>// </tr>// </table>// </div>";if ($lgsl_config['list']['totals']){$total = lgsl_cached_totals();$output .= "<div><br /></div><div style='text-align:center'><table cellpadding='4' cellspacing='4' style='margin:auto'><tr style='".lgsl_bg()."'><td> {$lgsl_config['text']['tns']} {$total['servers']} </td></tr></tr></table></div>";}?> a este tam treba aby sa mi zobrazovalo kolko serverov caka na schvalenie.ak bi niekto mal chut pomoct. A ak sa nieko najde co ma chut pomahat s webom. Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 6. Leden, 2015 Globální moderátor Share Odesláno: 6. Leden, 2015 - dej kod do spoileru - bi s měkkým I je fakt otřes ... - a jestli někoho hledáš tak to dej do témata extra, jedno je tu na toto vytvořené Link to comment Share on other sites More sharing options...
Dotaz
laibach 0
Cawte robim serverlist a potrebujem s niecim pomoct. Mame herny portal http://www.game-s...k/news.php a robim si ktomu aj server list http://www.game-s...ervery.php teraz si nerobim reklamu len aby bolo jasne, ze o co ide. Tak ze potrebujem toto:
vlozit sem:
a este tam treba aby sa mi zobrazovalo kolko serverov caka na schvalenie.
ak bi niekto mal chut pomoct. A ak sa nieko najde co ma chut pomahat s webom.
Link to comment
Share on other sites
1 odpověd na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now