Changeset 54 for trunk


Ignore:
Timestamp:
Feb 2, 2009, 7:38:10 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Dokončené překlady se jevily jako rozepsané i při dokončení.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r53 r54  
    200200  echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&amp;action=filter">Filtr textů</a> ->
    201201    <a title="Nedokončené texty" href="?group='.$GroupId.'&amp;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');
    203203}
    204204     
     
    243243    OR `Vote` LIKE "%'.$Search.'%"
    244244    OR `User` LIKE "%'.$Search.'%"
    245     OR `complete` LIKE "%'.$Search.'%"';
     245    OR `Complete` LIKE "%'.$Search.'%"';
    246246  foreach($TranslationTree[$GroupId]['Items'] as $Item)
    247247  {
     
    324324                                               
    325325  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');
    327327}
    328328     
  • trunk/form.php

    r49 r54  
    1111  $TextID = $_GET['ID']; 
    1212
    13   $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' Where ID = '.$TextID));
     13  $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT * FROM '.$Table.' Where ID = '.$TextID));
    1414  if(!$Line) die('Překlad nenalezen.');
    1515   
    16   $LineAJ = mysql_fetch_array($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']));
    1717  if(!$Line) die('Anglický originál k překladu nenalezen.');
    1818 
     
    2525  if(($Line['Take'] <> 0) and ($Line['Take'] <> $Line['ID']))
    2626  {
    27     $Language = mysql_fetch_array($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']));
    2828    // echo $Language['Language'].'  '.$Line['Take'];
    2929    if($Language['Language'] <> 0)
     
    3333  if($Line['Language'] <> 0)
    3434  {
    35     if($Line['complete'] == 1) echo(' <b>Hotov</b><br />');
     35    if($Line['Complete'] == 1) echo(' <b>Hotov</b><br />');
    3636      else echo(' <b> Uložen v rozepsaných</b><br />');
    3737  } else
  • trunk/index.php

    r49 r54  
    5050/*
    5151    $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");
    5353    $Line = mysql_fetch_array($ID);       
    5454    if($Line[0] > 0)
  • trunk/save.php

    r49 r54  
    3232  if(!$Line)
    3333  {
    34         $Columns = '`entry`, `Language` , `User` , `complete` , `Take` , `Vote` , `CountVote`';
     34        $Columns = '`entry`, `Language` , `User` , `Complete` , `Take` , `Vote` , `CountVote`';
    3535        $Values = $entry.','.$Language.','.$UserID.','.$complete.','.$TextID.', 3 ,1';
    3636        foreach($TranslationTree[$GroupId]['Items'] as $GroupItem)
     
    4646  } else
    4747  {
    48     $sql = 'UPDATE '.$Table.' SET `complete` = '.$complete;
     48    $sql = 'UPDATE '.$Table.' SET `Complete` = '.$complete;
    4949        foreach($TranslationTree[$GroupId]['Items'] as $GroupItem)
    5050          $sql .= ', `'.$GroupItem['Column'].'`="'.@$_POST[$GroupItem['Column']].'"';
Note: See TracChangeset for help on using the changeset viewer.