{assign var="page_title" value="Account bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Accountprofil bearbeiten"}
{assign var="page_title_site" value="Accountprofil bearbeiten"}

{form_errors error_list=$form_errors}

<form method="post" action="account.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="mode" value="edit" />
    <table>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>Benutzername</b></td>
            <td bgcolor="{$style.bg_a}">{$user->name}</td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>Passwort</b></td>
            <td bgcolor="{$style.bg_b}"><input type="button" value="Passwort ändern" class="button_form" onClick="open_popup( 'account.php?mode=change_password&{$SID}', 'change_password', 400, 150 )" /></td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>Foren-Account</b></td>
            <td bgcolor="{$style.bg_a}"><input type="button" value="Verknüpfung ändern" class="button_form" onClick="open_popup( 'account.php?mode=change_boardlink&{$SID}', 'change_boardlink', 400, 150 )" /></td>
        </tr>
        {if $formvalues.teamspeak > 0}
        </tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>Teamspeak-Passwort</b></td>
            <td bgcolor="{$style.bg_b}"><input type="button" value="Passwort ändern" class="button_form" onClick="open_popup( 'account.php?mode=change_teamspeakpassword&{$SID}', 'change_teamspeakpassword', 400, 150 )" /></td>
        </tr>        	
        {/if}
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>eMail-Adresse</b></td>
            <td bgcolor="{$style.bg_a}"><input type="text" name="email" size="30" maxlength="150" class="input_form" value="{$formvalues.email}" /></td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>eMail-Adresse anzeigen?</b></td>
            <td bgcolor="{$style.bg_b}"><input type="checkbox" name="show_email" value="1"{if $formvalues.show_email == true}checked="checked"{/if} /></td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>ICQ Nummer</b></td>
            <td bgcolor="{$style.bg_a}"><input type="text" name="icq" size="30" maxlength="12" class="input_form" value="{$formvalues.icq}" /></td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>Newsletter erhalten?</b></td>
            <td bgcolor="{$style.bg_b}"><input type="checkbox" name="get_newsletter" value="1"{if $formvalues.get_newsletter == true}checked="checked"{/if} /></td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>Homepage-Style</b></td>
            <td bgcolor="{$style.bg_a}">
                <select name="style" class="list_form">
                {html_options options=$styles selected=$formvalues.style}
                </select>
            </td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>Abwesenheits-Nachricht</b></td>
            <td bgcolor="{$style.bg_b}"><input type="text" name="away_msg" size="30" maxlength="255" class="input_form" value="{$formvalues.away_msg}" /></td>
        </tr>
    </table>
    <br />
    <input type="submit" value="Daten speichern" name="send_form" class="button_form" />
</form>