Changeset 250 for quests/ListQuests.php
- Timestamp:
- Jan 20, 2008, 12:08:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/ListQuests.php
r249 r250 87 87 <td>'.htmlspecialchars($Line['Title']).'</td>'; 88 88 if ($address == 'selection') echo '<td>'.$Line['CountQuest'].'</td>'; else 89 if ($address <> 'not tran')echo '<td>'.@$Line['User'].'</td>89 if ($address <> 'notran') echo '<td>'.@$Line['User'].'</td> 90 90 <td>'.substr($Line['Vote'], 0, 4).'</td> 91 91 <td>'.$Line['CountVote'].'</td>'; … … 126 126 WriteQuests("SELECT * FROM quests items WHERE items.Language = '0' AND 127 127 NOT EXISTS(SELECT 1 FROM quests sub WHERE sub.Language <> 0 AND sub.entry = items.entry) ", $_SESSION['limitx'].','.$_SESSION['limity'],'notran'); 128 } 129 130 if(array_key_exists('notvote', $_GET)) { 131 echo '<a Title="Zobrazit questy podle vlasního filtru" href="ListQuests.php?filter">Filtr questù</a> -> 132 <a Title="Zatím neznámkované questy" href="ListQuests.php?notvote">Neznámkované questy</a><br><br>'; 133 134 WritePages('ListQuests.php?notvote'," WHERE Language <> 0 AND quests.Complete = '1' AND User <> ".$_SESSION['UserID']." AND 135 NOT EXISTS(SELECT 1 FROM quests_vote WHERE IDuser = ".$_SESSION['UserID']." AND IDquest = quests.ID)"); 136 137 WriteQuests("SELECT *, (SELECT user.user FROM user WHERE user.id = quests.user) as User 138 FROM quests WHERE Language <> 0 AND quests.Complete = '1' AND User <> ".$_SESSION['UserID']." AND 139 NOT EXISTS(SELECT 1 FROM quests_vote WHERE IDuser = ".$_SESSION['UserID']." AND IDquest = quests.ID)", $_SESSION['limitx'].','.$_SESSION['limity'],'notvote'); 128 140 } 129 141 … … 215 227 if(array_key_exists('filter', $_GET)) { 216 228 echo '<a Title="Zobrazit questy podle vlasního filtru" href="ListQuests.php?filter">Filtr questù</a><br><br><br>'; 217 echo '<table border="1" cellpadding="3" cellspacing="0"> 229 echo ' 230 231 <script type="text/javascript" language="JavaScript"> 232 <!-- 233 234 function showhidemain(){ 235 show(Button2); 236 if (Main1.style.display==\'none\') { 237 show(Button2); 238 hide(Button1); 239 show(Main1); 240 show(Main2); 241 show(Main3); 242 show(Main4); 243 show(Main5); 244 } else { 245 hide(Button2); 246 show(Button1); 247 hide(Main1); 248 hide(Main2); 249 hide(Main3); 250 hide(Main4); 251 hide(Main5); 252 } 253 254 } 255 --> 256 257 </script> 258 259 <span ID="Button1" onClick="showhidemain()">[Zobrazit hlavní fitry]</span> 260 <span ID="Button2" onClick="showhidemain()" style="display:none">[Skrýt hlavní fitry]</span> 261 262 <table border="1" cellpadding="3" cellspacing="0"> 218 263 <tr><th>Odkaz</th><th>Popis</th></tr>'; 219 264 220 echo '<tr ><td><a Title="Zde mù¾ete zaèít pøekládat" href="ListQuests.php?selection">Nepøelo¾ené questy</a></td>265 echo '<tr ID="Main1" style="display:none"><td><a Title="Zde mù¾ete zaèít pøekládat" href="ListQuests.php?selection">Nepøelo¾ené questy</a></td> 221 266 <td>Nikým nepøelo¾ené questy, zde mù¾ete zaèít pøekládat</td></tr> 222 <tr ><td><a Title="Pøelo¾ené questy, mù¾ete zde hlasovat, nebo opravovat Quest" href="ListQuests.php?Translate">Pøelo¾ené questy</a></td>267 <tr ID="Main2" style="display:none"><td><a Title="Pøelo¾ené questy, mù¾ete zde hlasovat, nebo opravovat Quest" href="ListQuests.php?Translate">Pøelo¾ené questy</a></td> 223 268 <td>Pøelo¾ené questy, mù¾ete zde hlasovat, nebo opravovat Quest</td></tr> 224 269 '; 225 270 226 271 if (Licence(0)) { 227 echo '<tr ><td><a Title="Nedokonèené questy" href="ListQuests.php?mydevelop">Rozepsané questy</a></td>272 echo '<tr ID="Main3" style="display:none"><td><a Title="Nedokonèené questy" href="ListQuests.php?mydevelop">Rozepsané questy</a></td> 228 273 <td>Nedokonèené questy pøilá¹eného u¾ivatele</td></tr> 229 <tr><td><a Title="Pøelo¾ené questy pøilá¹eného u¾ivatele" href="ListQuests.php?my">Moje questy</a></td> 230 <td>Pøelo¾ené questy pøilá¹eného u¾ivatele</td></tr>'; 274 <tr ID="Main4" style="display:none"><td><a Title="Pøelo¾ené questy pøilá¹eného u¾ivatele" href="ListQuests.php?my">Moje questy</a></td> 275 <td>Pøelo¾ené questy pøilá¹eného u¾ivatele</td></tr> 276 <tr ID="Main5" style="display:none"><td><a Title="Zatím neznámkované questy" href="ListQuests.php?notvote">Neznámkované questy</a></td> 277 <td>Zatím neznámkované questy</td></tr>'; 231 278 } 232 279
Note:
See TracChangeset
for help on using the changeset viewer.