Changeset 124 for trunk/Options.php
- Timestamp:
- Feb 22, 2009, 9:41:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Options.php
r67 r124 16 16 $Language = $_POST['Language']; 17 17 18 $Line = mysql_fetch_a rray($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID']));18 $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID'])); 19 19 if(($Line['pass'] == $OldPass) and ($NewPass == $NewPass2)) 20 20 { … … 27 27 } else 28 28 { 29 $Line = mysql_fetch_a rray($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID']));29 $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID'])); 30 30 echo('<form action="Options.php" method="post"> 31 31 <fieldset><legend>Nastavení uživatele</legend> … … 58 58 </table></fieldset> 59 59 </form>'); 60 61 echo (' <fieldset><legend>Překladatelský tým</legend>'); 62 $ID = $Database->SQLCommand("SELECT * FROM team"); 63 echo('<a href="?create">Vytvořit překladatelský tým</a><br /><br /> 64 <form action="team.php" method="get"><select name="gointeam">'); 65 While($LineTeam = mysql_fetch_assoc($ID)) { 66 echo('<option value="'.$LineTeam['ID'].'"'); 67 if ($LineTeam['ID'] == $Line['team']) echo(' selected="selected"'); 68 echo('>'.$LineTeam['name'].'</option>'); 69 } 70 echo('</select> <input type="submit" value="Vstoupit" /> 71 </form>'); 72 echo ('</fieldset> '); 73 60 74 } 61 75 } else echo 'Nejste přihlášený!';
Note:
See TracChangeset
for help on using the changeset viewer.