Hallo,
Ich habe ein Formular zum Einloggen in meine Seite integriert(siehe unten). Wenn man sich eingeloggt hat, soll möglichst der Username erscheinen:
Angemeldet als:....
Gibt es eine Möglichkeit oder eine Variable, mit der ich auf den Usernamen zugreifen kann?
Hier mein Formular, das ich meine Template eingebunden habe:
# Loginbox auf allen Seiten
[usergroup = *]
# Logout
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<div id="logoutbox" style="width:130px">
<form action="index.php?id= | " method="post" style="margin-top:0pt; margin-bottom:0pt">
<input type="hidden" name="logintype" value="logout" />
<input type="submit" name="submit" title="Abmelden" value="Abmelden" style="height:20; width:100; border:solid 1px #A0A0A0; background-color:#FFFFFF; font-size:12px;" />
</form>
</div>
)
[else]
# Login, Id 41 ist die Anmeldeseite, Id 9 ist der Sys-Ordner Benutzer
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<div id="loginbox" style="width:130px; height:100px;">
<form action="index.php?id=41" method="post" style="margin-top:0pt; margin-bottom:0pt">
<table align="center" valign="top" border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="bottom" style="font-size:10px; font-family:Arial, Helvetica, sans-serif;color:#BFBFBF;"> Benutzername</td>
</tr>
<tr>
<td align="center" valign="top"><input name="user" type="text" id="user" title="Benutzername" onfocus="if (this.value==this.defaultValue) this.value=''" value="" style="height:20; width:100; background-color:#FFFFFF; border:solid 1px #BFBFBF; font-size:12px;" /></td>
</tr>
<tr>
<td align="left" valign="bottom" style="font-size:10px; font-family:Arial, Helvetica, sans-serif;color:#BFBFBF;"> Passwort</td>
</tr>
<tr>
<td align="center" valign="top"><input name="pass" type="password" id="pass" title="Passwort" onfocus="if (this.value==this.defaultValue) this.value=''" value="" style="height:20; width:100; background-color:#FFFFFF; border:solid 1px #BFBFBF; font-size:12px;" /></td>
</tr>
<tr>
<td align="center" valign="middle"><input name="image" type="submit" title="Anmelden" value="Login" width="100" style="height:20; width:100; border:solid 1px #BFBFBF; background-color:#FFFFFF; font-size:12px;" /></td>
</tr>
</table>
<input type="hidden" name="redirect_url" value="index.php?id= | " />
<input type="hidden" name="logintype" value="login" />
<input type="hidden" name="pid" value="9" />
</form>
</div>
)
[global]