Changeset 848 for trunk/Modules/User
- Timestamp:
- Jan 17, 2016, 12:10:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/Options.php
r816 r848 5 5 function UserOptionsFrom() 6 6 { 7 $Output = '<form action=" Options.php?action=save" method="post">8 <fieldset><legend> Nastavení uživatele</legend>7 $Output = '<form action="'.$this->System->Link('/options/?action=save').'" method="post"> 8 <fieldset><legend>'.T('User settings').'</legend> 9 9 <table> 10 <tr><td> Email:</td><td><input type="text" name="Email" value="'.$this->System->User->Email.'" /></td></tr>11 <tr><td> Původní heslo:</td><td><input type="password" name="OldPass" /></td></tr>12 <tr><td> Nové heslo:</td><td><input type="password" name="NewPass" /></td></tr>13 <tr><td> Nové heslo pro potvrzení: </td><td><input type="password" name="NewPass2" /></td></tr>14 <tr><td> Normálně budu překládat do: </td><td>'.WriteLanguages($this->System->User->Language).'</td></tr>15 <tr><td> Po uložení překladu přesměrovat: </td><td>';10 <tr><td>'.T('E-mail').':</td><td><input type="text" name="Email" value="'.$this->System->User->Email.'" /></td></tr> 11 <tr><td>'.T('Original password').':</td><td><input type="password" name="OldPass" /></td></tr> 12 <tr><td>'.T('New password').':</td><td><input type="password" name="NewPass" /></td></tr> 13 <tr><td>'.T('New password confirmation').': </td><td><input type="password" name="NewPass2" /></td></tr> 14 <tr><td>'.T('I will translate normally to').': </td><td>'.WriteLanguages($this->System->User->Language).'</td></tr> 15 <tr><td>'.T('After save translation redirect to').': </td><td>'; 16 16 $Output .= '<select name="redirecting">'. 17 '<option value="0"> Nikam</option>'.17 '<option value="0">'.T('Nowhere').'</option>'. 18 18 '<option value="1"'; 19 19 if($this->System->User->Redirecting == '1') $Output .= ' selected="selected"'; 20 $Output .= '> Na nepřeložené</option>';20 $Output .= '>'.T('To untranslated').'</option>'; 21 21 $Output .= '<option value="2"'; 22 22 if($this->System->User->Redirecting == '2') $Output .= ' selected="selected"'; 23 $Output .= '> Na další překlad</option>';23 $Output .= '>'.T('To next translation').'</option>'; 24 24 $Output .= '<option value="3"'; 25 25 if($this->System->User->Redirecting == '3') $Output .= ' selected="selected"'; 26 $Output .= '> Na předchozí překlad</option>';26 $Output .= '>'.T('To previous translation').'</option>'; 27 27 $Output .= '</select>'; 28 28 29 29 $Output .= '</td></tr>'. 30 '<tr><td>Upřednostněná verze klienta: </td><td>'.ClientVersionSelection($this->System->User->PreferredVersion).'</td></tr>'. 31 '<tr><td>Veřejný text profilu:</td><td>'. 32 '<textarea name="info" cols="60" rows="10">'.$this->System->User->Info.'</textarea></td></tr>'; 33 30 '<tr><td>'.T('Preferred client version').': </td><td>'.ClientVersionSelection($this->System->User->PreferredVersion).'</td></tr>'. 31 '<tr><td>'.T('Public profile text').':</td><td>'. 32 '<textarea name="info" cols="60" rows="10">'.$this->System->User->Info.'</textarea></td></tr>'; 34 33 35 34 $Output .= '<tr><td>'; 36 35 $Query = 'SELECT * FROM UserTagType'; 37 36 $DbResult = $this->Database->query($Query); 38 $Output .= 'Překladatel se řídí zaškrtnutými pravidly:</td><td>';37 $Output .= T('User obey selected rules').':</td><td>'; 39 38 while ($UserTag = $DbResult->fetch_array()) { 40 39 $Query = 'SELECT * FROM `UserTag` '. … … 50 49 $Output .= '</td></tr>'; 51 50 52 $Output .= '<tr><td colspan="2"><input type="submit" value=" Uložit" /></td></tr>'.51 $Output .= '<tr><td colspan="2"><input type="submit" value="'.T('Save').'" /></td></tr>'. 53 52 '</table></fieldset>'. 54 53 '</form>'; 55 54 56 $Output .= ' <fieldset><legend> Překladatelský tým</legend>';55 $Output .= ' <fieldset><legend>'.T('Translation team').'</legend>'; 57 56 $DbResult = $this->Database->query('SELECT `Id`, `Name` FROM `Team`'); 58 $Output .= '<a href="team/?action=create"> Vytvořit tým</a><br />'.59 '<a href="team/?action=leave"> Opustit tým</a><br />'.57 $Output .= '<a href="team/?action=create">'.T('Create team').'</a><br />'. 58 '<a href="team/?action=leave">'.T('Leave team').'</a><br />'. 60 59 '<br /><form action="team/" method="get">'. 61 60 '<input type="hidden" name="action" value="gointeam"/>'. … … 67 66 $Output .= '>'.$LineTeam['Name'].'</option>'; 68 67 } 69 $Output .= '</select> <input type="submit" value=" Vstoupit" />68 $Output .= '</select> <input type="submit" value="'.T('Enter').'" /> 70 69 </form>'; 71 70 $Output .= '</fieldset>';
Note:
See TracChangeset
for help on using the changeset viewer.