Changeset 54
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r53 r54 200 200 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 201 201 <a title="Nedokončené texty" href="?group='.$GroupId.'&action=mydevelop">Rozepsané překlady</a><br /><br />'); 202 WriteQuests('SELECT * FROM '.$Table.' Where user = '.$_SESSION['UserID'].' AND complete = 0', '', 'mydevelop');202 WriteQuests('SELECT * FROM '.$Table.' Where user = '.$_SESSION['UserID'].' AND Complete = 0', '', 'mydevelop'); 203 203 } 204 204 … … 243 243 OR `Vote` LIKE "%'.$Search.'%" 244 244 OR `User` LIKE "%'.$Search.'%" 245 OR ` complete` LIKE "%'.$Search.'%"';245 OR `Complete` LIKE "%'.$Search.'%"'; 246 246 foreach($TranslationTree[$GroupId]['Items'] as $Item) 247 247 { … … 324 324 325 325 echo('</table>'); 326 // WriteQuests("SELECT * FROM quests Where user = ".$_SESSION['UserID']." AND complete = '0'", '', 'mydevelop');326 // WriteQuests("SELECT * FROM quests Where user = ".$_SESSION['UserID']." AND Complete = '0'", '', 'mydevelop'); 327 327 } 328 328 -
trunk/form.php
r49 r54 11 11 $TextID = $_GET['ID']; 12 12 13 $Line = mysql_fetch_a rray($Database->SQLCommand('SELECT * FROM '.$Table.' Where ID = '.$TextID));13 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT * FROM '.$Table.' Where ID = '.$TextID)); 14 14 if(!$Line) die('Překlad nenalezen.'); 15 15 16 $LineAJ = mysql_fetch_a rray($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE Language = 0 AND entry = '.$Line['entry']));16 $LineAJ = mysql_fetch_assoc($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE Language = 0 AND entry = '.$Line['entry'])); 17 17 if(!$Line) die('Anglický originál k překladu nenalezen.'); 18 18 … … 25 25 if(($Line['Take'] <> 0) and ($Line['Take'] <> $Line['ID'])) 26 26 { 27 $Language = mysql_fetch_a rray($Database->SQLCommand('SELECT Language FROM '.$Table.' Where ID = '.$Line['Take']));27 $Language = mysql_fetch_assoc($Database->SQLCommand('SELECT Language FROM '.$Table.' Where ID = '.$Line['Take'])); 28 28 // echo $Language['Language'].' '.$Line['Take']; 29 29 if($Language['Language'] <> 0) … … 33 33 if($Line['Language'] <> 0) 34 34 { 35 if($Line[' complete'] == 1) echo(' <b>Hotov</b><br />');35 if($Line['Complete'] == 1) echo(' <b>Hotov</b><br />'); 36 36 else echo(' <b> Uložen v rozepsaných</b><br />'); 37 37 } else -
trunk/index.php
r49 r54 50 50 /* 51 51 $UserID = $_SESSION['UserID']; 52 $ID = $Database->SQLCommand("SELECT COUNT(*) FROM quests WHERE User='$UserID' AND complete = 0");52 $ID = $Database->SQLCommand("SELECT COUNT(*) FROM quests WHERE User='$UserID' AND Complete = 0"); 53 53 $Line = mysql_fetch_array($ID); 54 54 if($Line[0] > 0) -
trunk/save.php
r49 r54 32 32 if(!$Line) 33 33 { 34 $Columns = '`entry`, `Language` , `User` , ` complete` , `Take` , `Vote` , `CountVote`';34 $Columns = '`entry`, `Language` , `User` , `Complete` , `Take` , `Vote` , `CountVote`'; 35 35 $Values = $entry.','.$Language.','.$UserID.','.$complete.','.$TextID.', 3 ,1'; 36 36 foreach($TranslationTree[$GroupId]['Items'] as $GroupItem) … … 46 46 } else 47 47 { 48 $sql = 'UPDATE '.$Table.' SET ` complete` = '.$complete;48 $sql = 'UPDATE '.$Table.' SET `Complete` = '.$complete; 49 49 foreach($TranslationTree[$GroupId]['Items'] as $GroupItem) 50 50 $sql .= ', `'.$GroupItem['Column'].'`="'.@$_POST[$GroupItem['Column']].'"';
Note:
See TracChangeset
for help on using the changeset viewer.