Changeset 691 for trunk/pages/spolky.php


Ignore:
Timestamp:
Mar 19, 2010, 9:46:30 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Generování pěkného pro další stránky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/spolky.php

    r690 r691  
    4949$db2 = $Realm->CharactersDatabase;
    5050
    51 $sql = $db2->query('SELECT `guild`.name, `guild`.guildid, `guild`.createdate, COUNT(`guild_member`.`guildid`) AS member_count ,`leader`.`race` IN (1, 3, 4, 7, 11) AS fraction , `leader`.`guid` AS leader FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `characters` AS `memebers` ON `memebers`.`guid`= `guild_member`.`guid` JOIN `characters` AS `leader` ON `leader`.`guid`= `guild`.`leaderguid` GROUP BY guild.name ORDER BY '.$order_by.' '.$order_dir.';');
     51$sql = $db2->query('SELECT `guild`.name, `guild`.guildid, FROM_UNIXTIME(`guild`.`createdate`) AS `createdate`, COUNT(`guild_member`.`guildid`) AS member_count ,`leader`.`race` IN (1, 3, 4, 7, 11) AS fraction , `leader`.`guid` AS leader FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `characters` AS `memebers` ON `memebers`.`guid`= `guild_member`.`guid` JOIN `characters` AS `leader` ON `leader`.`guid`= `guild`.`leaderguid` GROUP BY guild.name ORDER BY '.$order_by.' '.$order_dir.';');
    5252while($row = $sql->fetch_assoc())
    5353{
     
    6464  echo('<tr>
    6565    <td align="center">'.FrakceImg($row['fraction']).'</td>
    66     <td align="center"><a href="'.$html->Link('/spolek/'.$row['guildid'].'/').'">'.$row['name'].'</a></td>
     66    <td align="center"><a href="'.$html->Link('/spolek/?id='.$row['guildid']).'">'.$row['name'].'</a></td>
    6767    <td align="center">'.$row['member_count'].'</td>
    6868    <td align="center">'.$online_mem['online_mem'].'</td>
Note: See TracChangeset for help on using the changeset viewer.