Changeset 50
- Timestamp:
- Jan 30, 2009, 11:31:01 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r49 r50 171 171 172 172 WritePages('?group='.$GroupId.'&action=notvote', ' WHERE Language <> 0 AND '.$Table.'.Complete = 1 AND User <> '.$_SESSION['UserID'].' AND 173 NOT EXISTS(SELECT 1 FROM '.$Table.'_vote WHERE IDuser = '.$_SESSION['UserID'].' AND IDquest= '.$Table.'.ID)');173 NOT EXISTS(SELECT 1 FROM '.$Table.'_vote WHERE IDuser = '.$_SESSION['UserID'].' AND TextId= '.$Table.'.ID)'); 174 174 175 175 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User 176 176 FROM '.$Table.' WHERE Language <> 0 AND '.$Table.'.Complete = 1 AND User <> '.$_SESSION['UserID'].' AND 177 NOT EXISTS(SELECT 1 FROM '.$Table.'_vote WHERE IDuser = '.$_SESSION['UserID'].' AND IDquest= '.$Table.'.ID)', $_SESSION['limitx'].','.$_SESSION['limity'], 'notvote');177 NOT EXISTS(SELECT 1 FROM '.$Table.'_vote WHERE IDuser = '.$_SESSION['UserID'].' AND TextId = '.$Table.'.ID)', $_SESSION['limitx'].','.$_SESSION['limity'], 'notvote'); 178 178 } 179 179 … … 235 235 if($Action == 'search') 236 236 { 237 $Search = $_GET['search']; 237 if(array_key_exists('search', $_GET)) $Search = $_GET['search']; 238 else $Search = $_POST['search']; 238 239 239 240 $sql = 'SELECT * FROM `'.$Table.'` WHERE `ID` LIKE "%'.$Search.'%" … … 253 254 if($Action == 'searchentry') 254 255 { 255 $Search = $_GET['ID']; 256 if(array_key_exists('ID', $_GET)) $Search = $_GET['ID']; 257 else $Search = $_POST['ID']; 256 258 257 259 $sql = 'SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) FROM `'.$Table.'` WHERE `entry` LIKE "'.$Search.'"'; … … 265 267 echo('<table border="1" cellpadding="3" cellspacing="0"> 266 268 <tr><th>Odkaz</th><th>Popis</th></tr>'); 267 echo('<tr><td><a title="Zde můžete začít překládat" href="?group='.$GroupId.'&action=selection">Nepřeložené texty</a></td> 268 <td>Nikým nepřeložené texty, zde můžete začít překládat</td></tr> 269 <tr><td><a title="Přeložené texty, můžete zde hlasovat, nebo text opravovat" href="?group='.$GroupId.'&action=Translate">Přeložené texty</a></td> 269 echo('<tr><td><a title="Přeložené texty, můžete zde hlasovat, nebo text opravovat" href="?group='.$GroupId.'&action=Translate">Přeložené texty</a></td> 270 270 <td>Přeložené texty, můžete zde hlasovat, nebo text opravovat</td></tr>'); 271 271 … … 293 293 echo('</select><br /> 294 294 <input type="submit" value="Vypsat"></form></td> 295 <td>Vypsat pouze od těchto uživatalů<br >295 <td>Vypsat pouze od těchto uživatalů<br /> 296 296 Vybrat více uživatelů můžete pomocí CTRL+click</td></tr>'); 297 297 … … 299 299 <form action="?group='.$GroupId.'&action=byvote" method="post"> 300 300 Počet hlasů: <br /> 301 <input type="radio" name="SingNumberVote" value="=" checked="true" title="Rovná se "="" >302 <input type="radio" name="SingNumberVote" value=">" checked="true" title="Je větší než ">"" >303 <input type="radio" name="SingNumberVote" value="<" checked="true" title="Je menší než "<"" >304 <input type="text" name="NumberVote" value="3" size="1" ><br>301 <input type="radio" name="SingNumberVote" value="=" checked="true" title="Rovná se "="" /> 302 <input type="radio" name="SingNumberVote" value=">" checked="true" title="Je větší než ">"" /> 303 <input type="radio" name="SingNumberVote" value="<" checked="true" title="Je menší než "<"" /> 304 <input type="text" name="NumberVote" value="3" size="1" /><br /> 305 305 Známka: <br /> 306 <input type="radio" name="SingVote" value="=" checked="true" title="Rovná se "="" >307 <input type="radio" name="SingVote" value=">" checked="true" title="Je větší než ">"" >308 <input type="radio" name="SingVote" value="<" checked="true" title="Je menší než "<"" >309 <input type="text" name="Vote" value="3" size="1" ><br>306 <input type="radio" name="SingVote" value="=" checked="true" title="Rovná se "="" /> 307 <input type="radio" name="SingVote" value=">" checked="true" title="Je větší než ">"" /> 308 <input type="radio" name="SingVote" value="<" checked="true" title="Je menší než "<"" /> 309 <input type="text" name="Vote" value="3" size="1" /><br /> 310 310 <input type="submit" value="Vypsat"></form> 311 311 </td><td>Zobrazit podle známky</td></tr>'); 312 312 313 echo('<tr><td><form action="?group='.$GroupId.' " method="get">314 <input type="text" name="search" size="8" >315 <input type="submit" value="Hledat" >313 echo('<tr><td><form action="?group='.$GroupId.'&action=search" method="post"> 314 <input type="text" name="search" size="8" /> 315 <input type="submit" value="Hledat" /> 316 316 </form> 317 317 </td><td>Vyhledat pomocí textu</td></tr>'); 318 318 319 echo('<tr><td><form action="?group='.$GroupId.' " method="get">320 <input type="text" name=" searchentry" size="8">321 <input type="submit" value="Hledat" >319 echo('<tr><td><form action="?group='.$GroupId.'&action=searchentry" method="post"> 320 <input type="text" name="ID" size="8" /> 321 <input type="submit" value="Hledat" /> 322 322 </form> 323 323 </td><td>Zobrazit podle ID textu v databázi MaNGOSu</td></tr>'); -
trunk/dictionary.php
r49 r50 50 50 } 51 51 52 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 53 <HTML> 54 <HEAD> 55 <META http-equiv="Content-Language" content="cs"> 56 <META http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'"> 57 <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT"> 58 <link rel="SHORTCUT ICON" href="/images/favicon.ico"> 59 <TITLE>Projekt překládání textů do WoW</TITLE> 60 </HEAD> 61 <body>'); 52 echo('<?xml version="1.0" encoding="'.$Config['Web']['Charset'].'"?> 53 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 54 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 55 <head> 56 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 57 <link rel="stylesheet" href="'.$Config['Web']['BaseURL'].'style.css" type="text/css" media="all" /> 58 <script type="text/javascript" src="'.$Config['Web']['BaseURL'].'global.js"></script> 59 <link rel="SHORTCUT ICON" href="'.$Config['Web']['BaseURL'].'images/favicon.ico" /> 60 <title>Projekt překládání textů WoW - slovníček</title> 61 </head> 62 <body>'); 62 63 63 64 if(array_key_exists('insert', $_GET)) 64 65 { 65 66 echo('<form action="dictionary.php" method="post"> 66 <input type="text" name="AJWord"> Anglické slovo<br >67 <input type="text" name="CZWord"> České slovo<br >68 <input type="text" name="description"> Popis<br >67 <input type="text" name="AJWord"> Anglické slovo<br /> 68 <input type="text" name="CZWord"> České slovo<br /> 69 <input type="text" name="description"> Popis<br /> 69 70 <input type="submit" value="Uložit"> 70 71 </form>'); … … 85 86 } 86 87 87 echo('<table border="1" width="100%">'); 88 echo('<form action="dictionary.php" method="get"> 89 <table border="1" width="100%">'); 88 90 89 91 if(array_key_exists('search', $_GET)) … … 95 97 } 96 98 97 echo('<tr><td> <form action="dictionary.php" method="get">98 <input type="text" value="'.$Search.'" name="search" size="30" >99 <input type="submit" value="Vyhledat" >');99 echo('<tr><td> 100 <input type="text" value="'.$Search.'" name="search" size="30" /> 101 <input type="submit" value="Vyhledat" />'); 100 102 if(Licence(0)) 101 103 echo(' <a href="dictionary.php?insert">Vložit slovo</a>'); 102 104 103 echo('</ form></td></tr>');105 echo('</td></tr>'); 104 106 echo('<tr><td> 105 < pstyle=" overflow: auto; width: 100%; height: '.$WinWidth.'px;">');107 <div style=" overflow: auto; width: 100%; height: '.$WinWidth.'px;">'); 106 108 //todo select 107 109 if($Search <> '') … … 126 128 echo('</table>'); 127 129 128 echo('</ td></tr>');130 echo('</div></td></tr>'); 129 131 130 echo('</table></ body>');132 echo('</table></form></body></html>'); 131 133 132 134 ?> -
trunk/fill_database.php
r49 r50 15 15 $Columns .= ', `'.$Config['Database']['DatabaseMangos'].'`.`'.$Group['MangosTable'].'`.`'.$GroupItem['MangosColumn'].'` AS `'.$GroupItem['Column'].'`'; 16 16 $Query = 'SELECT '.$Columns.' FROM `'.$Config['Database']['DatabaseMangos'].'`.`'.$Group['MangosTable'].'`'; 17 echo($Query.'<br />');17 //echo($Query.'<br />'); 18 18 $Count = 0; 19 19 $NewCount = 0; -
trunk/includes/config.sample.php
r49 r50 17 17 'BaseURL' => 'http://localhost/', 18 18 'AdminEmail' => 'admin@localhost', 19 'ShowSQLError' => false, 19 20 ), 20 21 ); -
trunk/includes/databaseconection.php
r49 r50 21 21 function SQLCommand($Command) 22 22 { 23 global $Config; 24 23 25 $ReturnCommand = mysql_query($Command, $this->id_connection); 24 if( mysql_error() != '') echo('<div>'.mysql_error().'<br>'.$Command.'</div>');26 if((mysql_error() != '') and ($Config['Web']['ShowSQLErrors'])) echo('<div>'.mysql_error().'<br>'.$Command.'</div>'); 25 27 return($ReturnCommand); 26 28 } -
trunk/includes/global.php
r49 r50 138 138 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 139 139 <head> 140 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 140 141 <link rel="stylesheet" href="'.$Config['Web']['BaseURL'].'style.css" type="text/css" media="all" /> 141 142 <script type="text/javascript" src="'.$Config['Web']['BaseURL'].'global.js"></script> -
trunk/sql/updates/48.sql
r49 r50 1 2 RENAME TABLE `npc_text` TO `npc` ; 3 RENAME TABLE `client_text` TO `client` ; 4 RENAME TABLE `page_text` TO `page` ; 5 1 6 ALTER TABLE `client_text` CHANGE `text` `Text` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NULL DEFAULT NULL ; 2 7 ALTER TABLE `page` CHANGE `text` `Text` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NULL DEFAULT NULL ; … … 18 23 CHANGE `text7_0` `Text7_0` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NULL DEFAULT NULL, 19 24 CHANGE `text7_1` `Text7_1` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NULL DEFAULT NULL; 20 21 RENAME TABLE `npc_text` TO `npc` ;22 RENAME TABLE `client_text` TO `client` ;23 RENAME TABLE `page_text` TO `page` ;24 25 25 26 ALTER TABLE `quests_vote` CHANGE `IDquest` `TextId` INT( 11 ) NOT NULL;
Note:
See TracChangeset
for help on using the changeset viewer.