- Timestamp:
- Jan 11, 2008, 10:12:28 PM (17 years ago)
- Location:
- quests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/action.php
r204 r208 37 37 } else echo 'Ji¾ jste hlasoval!'; 38 38 } 39 39 40 if (array_key_exists('search', $_GET)) { 41 $Search = $_GET['search']; 42 43 44 $sql = "SELECT * 45 FROM `quests`.`quests` 46 WHERE `ID` LIKE '%$Search%' 47 OR `entry` LIKE '%$Search%' 48 OR `Title` LIKE CONVERT( _utf8 '%$Search%' 49 USING latin2 ) 50 COLLATE latin2_czech_cs 51 OR `Details` LIKE CONVERT( _utf8 '%$Search%' 52 USING latin2 ) 53 COLLATE latin2_czech_cs 54 OR `Objectives` LIKE CONVERT( _utf8 '%$Search%' 55 USING latin2 ) 56 COLLATE latin2_czech_cs 57 OR `OfferRewardText` LIKE CONVERT( _utf8 '%$Search%' 58 USING latin2 ) 59 COLLATE latin2_czech_cs 60 OR `RequestItemsText` LIKE CONVERT( _utf8 '%$Search%' 61 USING latin2 ) 62 COLLATE latin2_czech_cs 63 OR `EndText` LIKE CONVERT( _utf8 '%$Search%' 64 USING latin2 ) 65 COLLATE latin2_czech_cs 66 OR `ObjectiveText1` LIKE CONVERT( _utf8 '%$Search%' 67 USING latin2 ) 68 COLLATE latin2_czech_cs 69 OR `ObjectiveText2` LIKE CONVERT( _utf8 '%$Search%' 70 USING latin2 ) 71 COLLATE latin2_czech_cs 72 OR `ObjectiveText3` LIKE CONVERT( _utf8 '%$Search%' 73 USING latin2 ) 74 COLLATE latin2_czech_cs 75 OR `ObjectiveText4` LIKE CONVERT( _utf8 '%$Search%' 76 USING latin2 ) 77 COLLATE latin2_czech_cs 78 OR `Language` LIKE '%$Search%' 79 OR `Vote` LIKE '%$Search%' 80 OR `User` LIKE '%$Search%' 81 OR `complete` LIKE '%$Search%'"; 82 83 84 echo '<table border="1" cellpadding="2" cellspacing="0"> 85 <tr><th>Poøadové èíslo</th><th>ID questu</th><th>Název Questu</th><th>Poèet hlasù</th></tr>'; 86 $ID = $Database->SQLCommand($sql); 87 while ($Line = mysql_fetch_array($ID)) { 88 echo '<tr><td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td> 89 <td>'.$Line['entry'].'</td> 90 <td>'.$Line['Title'].'</td> 91 <td>'.$Line['Vote'].'</td></tr>'; 92 } 93 echo '</table>'; 94 95 96 97 } 40 98 ShowFooter(); 41 99 ?> -
quests/form.php
r204 r208 39 39 <input type="text" name="vote" value="4" size="2"> 40 40 <input type="hidden" name="ID" value="'.$QuestID.'"> 41 <input type="submit" value="Hlasovat" >41 <input type="submit" value="Hlasovat" Title="Hlasovat libovalný poèet hlasù (jenom pro GM)"> 42 42 '; 43 43 44 44 echo '<input type="hidden" name="UserRepair" value="'.$Line['User'].'">'; 45 echo '<a style="color: Red" title="smazat " href="action.php?delete=1&ID='.$QuestID.'">x</a>46 <a style="color: Red" title="Není hotovo " href="action.php?NotComplete=1&ID='.$QuestID.'"><-</a>45 echo '<a style="color: Red" title="smazat (jenom pro GM)" href="action.php?delete=1&ID='.$QuestID.'">x</a> 46 <a style="color: Red" title="Není hotovo (jenom pro GM)" href="action.php?NotComplete=1&ID='.$QuestID.'"><-</a> 47 47 48 48 '; … … 54 54 <input type="submit" value="Ulo¾it do rozepsaných" name="save" Title="Kliknìte na ulo¾it pro pozdìj¹í dokonèení Q"> 55 55 <input type="submit" value="Dokonèeno" name="End" Title="Kliknìte na Dokonèeno jesli jsou v¹echny texty hotové a chcete ji¾ publikovat"> 56 <?php 57 if (Licence(1)) { 58 echo '<input type="submit" value="Opravit" name="Repair" Title="Opravit po u¾ivateli chyby (jenom pro GM)">'; 59 } 60 ?> 56 61 $B - Odøádkování, $N - Jméno, $C - povolání 57 62 <input type="hidden" name="entry" value="<?php echo $LineAJ['entry']?>"> -
quests/includes/global.php
r207 r208 101 101 <a href="http://wow.zdechov.net/forum/viewforum.php?f=22">Forum projektu</a><br /> 102 102 <a href="http://wow.zdechov.net/">Web serveru</a><br /><br /> 103 104 <form action="action.php" method="get"> 105 <input type="text" name="search" size="13"><br> 106 <input type="submit" value="Hledat"> 107 </form> 103 108 '; 104 109 … … 111 116 <table> 112 117 <tr> 113 <td><input type="text" name="LoginUser" ></td>118 <td><input type="text" name="LoginUser" size="13"></td> 114 119 </tr> 115 120 <tr> 116 <td><input type="password" name="LoginPass" ></td>121 <td><input type="password" name="LoginPass" size="13"></td> 117 122 </tr> 118 123 <tr> … … 146 151 147 152 ?> 148 -
quests/save.php
r204 r208 24 24 else 25 25 $complete = 0; 26 27 $Line = mysql_fetch_array($Database->SQLCommand("SELECT user FROM quests Where ID = '$QuestID'")); 28 if (array_key_exists('Repair', $_POST)) 29 $UserID = $Line['user']; 26 30 27 31
Note:
See TracChangeset
for help on using the changeset viewer.