Changeset 626
- Timestamp:
- Aug 18, 2009, 1:35:36 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 gallery 2 2 test 3 armory
-
- Property svn:ignore
-
trunk/bug_tracker
- Property svn:ignore deleted
-
trunk/favicon.ico
- Property svn:mime-type deleted
-
trunk/index.php
r625 r626 73 73 array('link' => '?page=arena', 'Text' => 'Arény'), 74 74 array('link' => '?page=events', 'Text' => 'Události'), 75 array('link' => '?page=gmlog', 'Text' => 'GM log'),75 //array('link' => '?page=gmlog', 'Text' => 'GM log'), 76 76 array('link' => '?page=commands', 'Text' => 'Příkazy'), 77 77 ); -
trunk/pages/gh.php
r588 r626 1 <script> 2 function zobrazSkryj(idecko){ 3 el=document.getElementById(idecko).style; 4 el.display=(el.display == 'block')?'none':'block'; 1 <?php 2 3 $Output = $server->RealmSelection(). 4 5 '<h3 class="PageTitle">Seznam spolků, které mají a platí GH:</h3> 6 <table class="BaseTable"><tr><th>Vedoucí spolku</th><th>Jméno spolku</th><th>Typ domu</th><th>Týdenní poplatek</th><th>Další platba</th></tr>'; 7 8 $DbResult = $db->query('SELECT GuildHouse.Id, GuildHouse.NextPayment, guild.name AS Name, GuildHouseType.Name AS TypeName, GuildHouseType.Tax AS Tax, guild.BankMoney, characters.name AS LeaderName FROM GuildHouse LEFT JOIN GuildHouseType ON GuildHouseType.Id = GuildHouse.Type LEFT JOIN '.$Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters'].'.guild ON guildid = GuildHouse.Id LEFT JOIN '.$Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters'].'.characters ON characters.guid = guild.leaderguid'); 9 while($Guild = $DbResult->fetch_assoc()) 10 { 11 if(($Guild['BankMoney'] - ($Guild['Tax'] * 10000)) <= 0) $BackgroundColor = 'style="backgroundcolor: #FF0000"'; 12 else $BackgroundColor = 'style="backgroundcolor: #00FF00"'; 13 14 $Output .= '<tr><td>'.$Guild['LeaderName'].'</td><td>'.$Guild['Name'].'</td><td>'.$Guild['TypeName'].'</td><td>'.$Guild['Tax'].' <img src="gh_system/img/gold.gif"></td><td '.$BackgroundColor.'>'.$Guild['NextPayment'].'</td></tr>'; 15 5 16 } 6 </script> 7 <style> 8 h3 {cursor: pointer; cursor: hand; text-decoration: underline} 9 .skryvany {display: none} 10 </style> 17 $Output .= '</table><br />'. 18 '<p>Jak si postavit domek pro guildu a ostatní odpovědi na otázky získáte zde: 19 <a href="http://wow.zdechov.net/forum/viewtopic.php?f=9&t=2143">/forum/viewtopic.php?f=9&t=2143</a></p>'; 11 20 21 echo($Output); 12 22 13 <p align=center> 14 15 <table align=center><tr><td><font size=4><B>Jak si zařídit GH pro svou guildu</B></font><br /><br /><td> 16 17 <tr><td>Jak si postavit domek pro guildu a ostatní odpovědi na otázky získáte zde: 18 <tr><td><a href="http://wow.zdechov.net/forum/viewtopic.php?f=9&t=2143">http://wow.zdechov.net/forum/viewtopic.php?f=9&t=2143 </a> 19 <td><td></table> 20 21 <br> 22 <br> 23 24 <font size=5><b>Seznam Guild, které mají a platí GH:</b></font> 25 <p align=center><table align="center" border="1" bordercolor="#000000"><tr><td align=center><strong>Guild Master</strong><td align=center><strong>Jméno guildy</strong><td align=center><strong>Typ GH</strong><td align=center><strong>Týdenní poplatek</strong><td align=center><strong>Mají na další splátku?</strong><td align=center><strong>Další platba</strong> 26 27 <? 28 29 30 mysql_connect($db_server, $db_user, $db_pass); 31 mysql_select_db($db_webu); 32 mysql_query("SET NAMES 'utf8'"); 33 $pocet = mysql_num_rows(mysql_query("SELECT id FROM guildy")); 34 35 if($pocet==0): 36 echo"</table><br> 37 <font color=red><b>Zatím není žádná Guilda v seznamu</font></b>"; 38 else: 39 40 $query = mysql_query("SELECT * FROM guildy"); 41 42 while ($zaznam = mysql_fetch_array($query) ) { 43 $id = $zaznam['id']; 44 $typgh = $zaznam['typgh']; 45 if($typgh==1): 46 $typgh_slovne = "Horďácká strážní věž"; 47 $prachy_mesicne = "40"; 48 elseif($typgh==2): 49 $typgh_slovne = "Masivní alianční věž"; 50 $prachy_mesicne = "50"; 51 elseif($typgh==3): 52 $typgh_slovne = "Elfský strom"; 53 $prachy_mesicne = "70"; 54 elseif($typgh==4): 55 $typgh_slovne = "Dům nemrtvých"; 56 $prachy_mesicne = "60"; 57 elseif($typgh==5): 58 $typgh_slovne = "Zeppelin (vzducholoď)"; 59 $prachy_mesicne = "80"; 60 elseif($typgh==6): 61 $typgh_slovne = "Loď"; 62 $prachy_mesicne = "90"; 63 endif; 64 65 mysql_select_db($db_characters); 66 $query2 = mysql_query("SELECT * FROM guild where guildid=$id"); 67 while ($radek = mysql_fetch_array($query2) ) { 68 $prachy = $radek['BankMoney']; 69 $leaderguid = $radek['leaderguid']; 70 } 71 $characters_gum = mysql_query("SELECT name FROM characters where guid=$leaderguid"); 72 while ($aa = mysql_fetch_array($characters_gum) ){ 73 $gum = $aa['name']; 74 } 75 76 77 78 if($prachy-($prachy_mesicne*10000) <= 0): 79 $pozadí = "bgcolor='#FF0000'"; 80 else: 81 $pozadí = "bgcolor='#00FF00'"; 82 endif; 83 84 echo"<tr><td align=center>$gum <td align=center>$zaznam[jmeno]<td align=center> $typgh_slovne<td align=center>$prachy_mesicne<img src='gh_system/img/gold.gif'><td $pozadí><td align=center>$zaznam[dalsi_platba]"; 85 86 } 87 echo"</table>"; 88 endif; 89 ?> 23 ?>
Note:
See TracChangeset
for help on using the changeset viewer.