Jump to content

Recommended Posts

Hello guys,

Can you help with with a solution for this guilds.php?

The first guilds are shown in index.php but when i try to enter in top100 i have this incomplete table:

https://metin2.download/picture/3doxZZJpyeHyQI543O0ALcdXLMQzjJ95/.png

 

The guilds.php is:

Spoiler

<div class="col-2" id="guildHighscore">
    <div class="content content-last">
        <div class="content-bg">
                <div class="content banner">
            <div class="content-bg">
                <div class="content-bg-bottom">
                                <!--<a id='various5' href="<?PHP echo $serverSettings['url']; ?>" target="_blank"></a>-->

                </div>
            </div>
        </div>
        <div class="content-bg-bottom">
            <h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?PHP echo $serverSettings['titel']; ?> - Listarea rangurilor</h2>
                <div class="ranks-inner-content"><br />
                    <div class="ranks-dropdowns-box">
                    <form action="" name="highscoreform" method="POST">

                            <div class="ranks-select-box">
                            <label>Caut&#259; breasl&#259;:</label>
                                <div class="ranks-input">
                                    <input AUTOCOMPLETE="off" type="text" value="" name="guildchoice"/>
                                </div>
                            </div>
                            <div class="ranks-select-box-btn">
                            <a class="btnrank" href="#" onclick="#">C&#259;utare</a>
                            </div>
                            <div class="clearfloat"></div>
                        </form>
                    </div>
                <div class="ranks-nav prev prev-top"></div>
            <div class="ranks-nav next next-top"></div>
        <br class="clearfloat"/>        

                    <table border="0" cellpadding="0" cellspacing="0" >
                      <thead>
                          <tr>
                              <th class="guildrank-th-1">Rang</th>
                              <th class="guildrank-th-2">Breasl&#259;</th>
                              <th class="guildrank-th-5">C&#226;&#351;tiguri</th>
                              <th class="guildrank-th-4">Regat</th>
                              <th class="guildrank-th-5">Nivel</th>
                              <th class="guildrank-th-6">Puncte</th>
                          </tr>
                      </thead>
 
<?php
    $db    = "player";
    mysql_connect($sqlCmd,$sqlServ) OR
    die();        
    mysql_select_db($db) OR
    die();
$sql = "SELECT * FROM guild ORDER BY ladder_point desc, exp desc, name asc limit 0,10";
      $i = "0" ;
 $ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
   {
   $i = $i + 1 ;
            $zF = ($i%2==0) ? "guildrank-td-2-1" : "guildrank-td-1-1";
                       $zF2 = ($i%2==0) ? "guildrank-td-2-2." : "guildrank-td-1-2";
                       $zF3 = ($i%2==0) ? "guildrank-td-2-3" : "guildrank-td-1-3";
                       $zF4 = ($i%2==0) ? "guildrank-td-2-4" : "guildrank-td-2-4";
                       $zF5 = ($i%2==0) ? "guildrank-td-2-5" : "guildrank-td-1-5";
                       $zF5 = ($i%2==0) ? "guildrank-td-2-5" : "guildrank-td-1-5";

                       $leader = $row->master;
    echo"<td class=\"$zF\">$i</td>";
    echo"<td class=\"$zF2\">$row->name</td>";
    echo"<td class=\"$zF5\">$row->win</td>";

    $reich = mysql_query("SELECT empire from player_index where pid1 = '$leader' OR pid2 = '$leader' OR pid3 = '$leader' OR pid4 = '$leader'");
    $reich2 = mysql_fetch_object($reich);
    $empire = $reich2->empire;
    if($empire == 1) {
                echo"<td class=\"$zF5\"><img src=\"img/icons/shinsoo.jpg\"></td>";
                } elseif($empire == 2) {
                echo"<td class=\"$zF5\"><img src=\"img/icons/chunjo.jpg\"></td>";
                } else {
                echo"<td class=\"$zF5\"><img src=\"img/icons/jinno.png\"></td>";
                }
    echo"<td class=\"$zF5\">$row->level</td>";
    echo"<td class=\"$zF5\">$row->ladder_point</td></tr>";
}
echo "</table><div class=\"ranks-nav prev\"></div>";
?>
                <div class="ranks-nav next"></div>
<br><br><br><div class="ranks-update-time">Actualizare: <?php
 $update_time = mktime(date("H")+3,date("i")-10,date("s"),date("m"),date("d"),date("Y"));
 echo "".date("D d F Y H:i:s", $update_time);
 ?> </div>
 


                </div>
            </div>
        </div>
    </div>
  <div class="shadow">&nbsp;</div>
</div>

 

Thanks a lot.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.