Changeset 54 for trunk/form.php


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í.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.