feld hometown eingefuegt

git-svn-id: svn://svn.cccv.de/engel-system@85 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2005-11-22 20:05:44 +00:00
parent ab6da86abf
commit 8b5f8b256c
3 changed files with 12 additions and 3 deletions

View File

@ -47,14 +47,16 @@ if( isset($_POST["send"]))
"`Telefon`, ". "`DECT`, ". "`Telefon`, ". "`DECT`, ".
"`Handy`, ". "`email`, ". "`Handy`, ". "`email`, ".
"`Size`, ". "`Passwort`, ". "`Size`, ". "`Passwort`, ".
"`Art` , ". "`kommentar` ) ". "`Art` , ". "`kommentar`, ".
"`Hometown` ) ".
"VALUES ( ". "VALUES ( ".
"'". $_POST["Nick"]. "', ". "'". $_POST["Name"]. "', ". "'". $_POST["Nick"]. "', ". "'". $_POST["Name"]. "', ".
"'". $_POST["Vorname"]. "', ". $_POST["Alter"]. ", ". "'". $_POST["Vorname"]. "', ". $_POST["Alter"]. ", ".
"'". $_POST["Telefon"]. "', ". "'". $_POST["DECT"]. "', ". "'". $_POST["Telefon"]. "', ". "'". $_POST["DECT"]. "', ".
"'". $_POST["Handy"]. "', ". "'". $_POST["email"]. "', ". "'". $_POST["Handy"]. "', ". "'". $_POST["email"]. "', ".
"'". $_POST["Size"]. "', ". "'". $_POST["Passwort"]. "', ". "'". $_POST["Size"]. "', ". "'". $_POST["Passwort"]. "', ".
"'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "' );"; "'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "', ".
"'". $_POST["Hometown"]. "' );";
$Erg = mysql_query($SQL, $con); $Erg = mysql_query($SQL, $con);
if ($Erg != 1) if ($Erg != 1)
@ -104,6 +106,7 @@ else
$_POST["Size"] = ""; $_POST["Size"] = "";
$_POST["Art"] = ""; $_POST["Art"] = "";
$_POST["kommentar"] = ""; $_POST["kommentar"] = "";
$_POST["Hometown"] = "";
} }
Print_Text("makeuser_text1"); Print_Text("makeuser_text1");
@ -163,6 +166,8 @@ echo "\t\t\t<tr>\n";
echo "\t\t\t\t<td>". Get_Text("makeuser_text2"). "</td>\n"; echo "\t\t\t\t<td>". Get_Text("makeuser_text2"). "</td>\n";
echo "\t\t\t<td><textarea rows=\"5\" cols=\"40\" name=\"kommentar\">". $_POST["kommentar"]. "</textarea></td>\n"; echo "\t\t\t<td><textarea rows=\"5\" cols=\"40\" name=\"kommentar\">". $_POST["kommentar"]. "</textarea></td>\n";
echo "\t\t\t</tr>\n"; echo "\t\t\t</tr>\n";
echo "\t\t\t<tr><td>". Get_Text("makeuser_Hometown").
"</td><td><input type=\"text\" size=\"40\" name=\"Hometown\" value=\"". $_POST["Hometown"]. "\"></td></tr>\n";
echo "\t\t\t<tr><td>". Get_Text("makeuser_Passwort"). echo "\t\t\t<tr><td>". Get_Text("makeuser_Passwort").
"*</td><td><input type=\"password\" size=\"40\" name=\"Passwort\"/></td></tr>\n"; "*</td><td><input type=\"password\" size=\"40\" name=\"Passwort\"/></td></tr>\n";
echo "\t\t\t<tr><td>". Get_Text("makeuser_Passwort2"). echo "\t\t\t<tr><td>". Get_Text("makeuser_Passwort2").

View File

@ -30,6 +30,8 @@ if (!IsSet($_POST["action"]))
<td><input type="text" name="eDECT" size="4" value="<? echo $_SESSION['DECT']; ?>"></td></tr> <td><input type="text" name="eDECT" size="4" value="<? echo $_SESSION['DECT']; ?>"></td></tr>
<tr> <td><? Print_Text("pub_einstellungen_email"); ?></td> <tr> <td><? Print_Text("pub_einstellungen_email"); ?></td>
<td><input type="text" name="eemail" size="40" value="<? echo $_SESSION['email']; ?>"></td></tr> <td><input type="text" name="eemail" size="40" value="<? echo $_SESSION['email']; ?>"></td></tr>
<tr> <td><? Print_Text("pub_einstellungen_Hometown"); ?></td>
<td><input type="text" name="Hometown" size="40" value="<? echo $_SESSION['Hometown']; ?>"></td></tr>
</table> </table>
<input type="submit" value="<?PHP Print_Text("save"); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>
@ -215,7 +217,7 @@ case 'setUserData':
"`Nick`='". $_POST["eNick"]. "', `Name`='". $_POST["eName"]. "', ". "`Nick`='". $_POST["eNick"]. "', `Name`='". $_POST["eName"]. "', ".
"`Vorname`='". $_POST["eVorname"]. "', `Alter`='". $_POST["eAlter"]. "', ". "`Vorname`='". $_POST["eVorname"]. "', `Alter`='". $_POST["eAlter"]. "', ".
"`Telefon`='". $_POST["eTelefon"]. "', `Handy`='". $_POST["eHandy"]. "', ". "`Telefon`='". $_POST["eTelefon"]. "', `Handy`='". $_POST["eHandy"]. "', ".
"`DECT`='". $_POST["eDECT"]. "', `email`='". $_POST["eemail"]. "' ". "`DECT`='". $_POST["eDECT"]. "', `email`='". $_POST["eemail"]. "', `Hometown`='". $_POST["Hometown"]. "' ".
"WHERE UID='". $_SESSION['UID']. "' LIMIT 1;"; "WHERE UID='". $_SESSION['UID']. "' LIMIT 1;";
$Erg = mysql_query($chsql, $con); $Erg = mysql_query($chsql, $con);
@ -229,6 +231,7 @@ case 'setUserData':
$_SESSION['Handy'] = $_POST["eHandy"]; $_SESSION['Handy'] = $_POST["eHandy"];
$_SESSION['DECT'] = $_POST["eDECT"]; $_SESSION['DECT'] = $_POST["eDECT"];
$_SESSION['email'] = $_POST["eemail"]; $_SESSION['email'] = $_POST["eemail"];
$_SESSION['Hometown'] = $_POST["Hometown"];
Print_Text("pub_einstellungen_UserDateSaved"); Print_Text("pub_einstellungen_UserDateSaved");
} }

View File

@ -48,6 +48,7 @@ else
$_SESSION['color'] = mysql_result($userstring, 0, "color"); $_SESSION['color'] = mysql_result($userstring, 0, "color");
$_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar"); $_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar");
$_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache"); $_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache");
$_SESSION['Hometown'] = mysql_result($userstring, 0, "Hometown");
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR']; $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
// CVS import Data // CVS import Data