Changeset 243
- Timestamp:
- Jan 17, 2008, 6:08:55 PM (17 years ago)
- Location:
- quests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/ListQuests.php
r235 r243 1 1 <?php 2 2 include('includes/global.php'); 3 4 //Poèet questù na stránce 5 $NumberQuests = 200; 3 6 4 7 if(array_key_exists('order', $_GET)) { 5 8 $order = $_GET['order']; 6 9 $desc = $_GET['desc']; 10 $_SESSION['order'] = $_GET['order']; 11 $_SESSION['desc'] = $_GET['desc']; 7 12 } else { 8 $order = ''; 9 $desc = 'desc'; 13 if (isset($_SESSION['order'])) { 14 $order = $_SESSION['order']; 15 $desc = $_SESSION['desc']; 16 } else { 17 $order = ''; 18 $desc = 'desc'; 19 } 10 20 } 11 21 … … 64 74 65 75 for ($i=0; $i<24; ++$i) { 66 $limity = 200;76 $limity = $NumberQuests; 67 77 $limitx = $i*$limity; 68 78 $Under = $limitx+$limity; … … 84 94 85 95 if(array_key_exists('Translate', $_GET)) { 96 if(array_key_exists('trans_limitx', $_GET)) { 97 $_SESSION['limitx'] = mysql_escape_string($_GET['trans_limitx']); 98 $_SESSION['limity'] = mysql_escape_string($_GET['trans_limity']); 99 } else { 100 if (isset($_SESSION['limitx']) == false) { 101 $_SESSION['limitx'] = '0'; 102 $_SESSION['limity'] = $NumberQuests; 103 } 104 } 105 106 $Line = mysql_fetch_row($Database->SQLCommand("SELECT count(*) FROM quests WHERE quests.Language = '1' AND quests.Complete = '1'")); 107 $CountLists = $Line[0]/$NumberQuests; 108 109 echo 'Poèet questù: <b>'.$Line[0].'</b> Zobrazit stránku: '; 110 for ($i=0; $i< $CountLists; ++$i) { 111 $limity = $NumberQuests; 112 $limitx = $i*$limity; 113 $Page = $i+1; 114 if ($_SESSION['limitx'] == $limitx) $color = 'style="color: red"'; 115 else $color = ''; 116 echo '<a '.$color.' href="ListQuests.php?Translate&trans_limitx='.$limitx.'&trans_limity='.$limity.'">'.$Page.'</a> '; 117 } 118 86 119 WriteQuests("SELECT *, (SELECT user.user FROM user WHERE user.id = quests.user) as User FROM 87 quests WHERE quests.Language = '1' AND quests.Complete = '1'", '', 'Translate');120 quests WHERE quests.Language = '1' AND quests.Complete = '1'", $_SESSION['limitx'].','.$_SESSION['limity'], 'Translate'); 88 121 } 89 122 -
quests/TODO.txt
r241 r243 15 15 - Popisky u odkazù v menu hotovo 16 16 - V exportu filtr jenom od urèitých uivatelù hotovo 17 - omezení poètu pøeloených Q na stránce hotovo 17 18 - Rozdìlení pomocí ras 18 19 - import 19 20 - jiné texty ne questy 20 -
quests/export.php
r242 r243 197 197 $ID = $Database->SQLCommand("SELECT user,ID FROM `user`"); 198 198 while ($Line = mysql_fetch_array($ID)) 199 echo '<option value="'.$Line['ID'].'">'.$Line['user'].'</option>';199 echo '<option selected="selected" value="'.$Line['ID'].'">'.$Line['user'].'</option>'; 200 200 201 ?> 201 ?> 202 202 203 203 </select><br> Exportovat pouze od tìchto u¾ivatalù … … 222 222 </td></tr> 223 223 </table> 224 <br><input type="submit" value="Generovat "> SQL soubor Questù(Sta¾ení)224 <br><input type="submit" value="Generovat SQL soubor Questù"> (Sta¾ení) 225 225 </form> 226 226 <b>Èeský pøeklad MaNGOS Minimanageru:</b><br /> -
quests/form.php
r241 r243 20 20 // echo $Language['Language'].' '.$Line['Take']; 21 21 if ($Language['Language'] <> 0) 22 echo 'Pøevzato z: <a href="form.php?ID='.$Line['Take'].'">'.$Line['Take'].'</a> ';22 echo 'Pøevzato z: <a href="form.php?ID='.$Line['Take'].'">'.$Line['Take'].'</a> '; 23 23 } 24 if ($Line['Language'] <> '0') { 25 echo 'Quest je: '; 26 if ($Line['complete'] == 1) echo ' <b>Hotov</b>'; 27 else echo ' <b> Ulo¾en v rozepsaných</b>'; 28 } 24 29 // Speciální znaky: $B - Odøádkování, $N - Jméno, $C - povolání 25 30 ?> -
quests/statistic.php
r240 r243 9 9 <br /> 10 10 <br /> 11 Poèet vyexportování questù: <b>11 Poèet stáhnutí questù: <b> 12 12 <?php 13 13
Note:
See TracChangeset
for help on using the changeset viewer.