Changeset 219
- Timestamp:
- Jan 12, 2008, 11:52:25 PM (17 years ago)
- Location:
- quests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/ListQuests.php
r215 r219 65 65 echo '<br /><b>Prioritnì by jste mìli pøekládat tyto questy:</b><br />'; 66 66 67 $ID = $Database->SQLCommand("SELECT * FROM `quests_status` ORDER BY CountQuest DESC ");67 $ID = $Database->SQLCommand("SELECT * FROM `quests_status` ORDER BY CountQuest DESC LIMIT 10"); 68 68 echo '<table border="1" cellpadding="2" cellspacing="0"> 69 69 <tr><th>Poøadové èíslo</th><th>ID questu</th><th>Název Questu</th><th>Poèet splnìní na serveru</th></tr>'; 70 $i = 0;71 70 while ($Line = mysql_fetch_array($ID)) { 72 if ($i < '6') {73 $LineTranslate = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE Language <> 0 AND entry = '".$Line['QuestEntry']."'"));74 if (!$LineTranslate) {75 71 $LineAJQuest = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE Language = 0 AND entry = '".$Line['QuestEntry']."'")); 76 72 echo '<tr><td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td> … … 78 74 <td>'.$LineAJQuest['Title'].'</td> 79 75 <td>'.$Line['CountQuest'].'</td></tr>'; 80 $i = $i +1;81 }82 }83 76 } 84 77 -
quests/priorite.php
r218 r219 16 16 echo 'Nahrávání ID questù hotovo<br />'; 17 17 18 //mazání pøelo¾ených Q 19 $ID = $Database->SQLCommand("SELECT entry FROM `quests`.`quests` WHERE Language <> 0 AND Complete = 1"); 20 while ($Line = mysql_fetch_array($ID)) { 21 $entry = $Line['entry']; 22 23 $Database->SQLCommand("DELETE FROM `quests`.`quests_status` WHERE QuestEntry = '$entry'"); 24 25 } 26 27 echo 'Mazání pøelo¾ených ve statusu hotovo<br />'; 28 18 29 //Plnìní poètu 19 30 $ID = $Database->SQLCommand("SELECT QuestEntry FROM `quests_status`"); … … 26 37 } 27 38 28 echo 'Nahrávání poètu questù od ú ivatelù<br />';39 echo 'Nahrávání poètu questù od ú¾ivatelù<br />'; 29 40 30 41
Note:
See TracChangeset
for help on using the changeset viewer.