UserCreateDate wird abgelegt und angezeigt
git-svn-id: svn://svn.cccv.de/engel-system@180 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
705d511183
commit
f8fbc9c0cf
|
@ -195,7 +195,8 @@ CREATE TABLE IF NOT EXISTS `User` (
|
||||||
`color` tinyint(4) default '1',
|
`color` tinyint(4) default '1',
|
||||||
`Sprache` char(2) default 'EN',
|
`Sprache` char(2) default 'EN',
|
||||||
`Avatar` int(11) default '0',
|
`Avatar` int(11) default '0',
|
||||||
`lastLogIn` datetime default NULL,
|
`lastLogIn` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||||
|
`CreateDate` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||||
`Art` varchar(30) default NULL,
|
`Art` varchar(30) default NULL,
|
||||||
`kommentar` text,
|
`kommentar` text,
|
||||||
PRIMARY KEY (`UID`,`Nick`),
|
PRIMARY KEY (`UID`,`Nick`),
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE `User` ADD `CreateDate` DATETIME NULL AFTER `lastLogIn`;
|
||||||
|
ALTER TABLE `User` CHANGE `lastLogIn` `lastLogIn` DATETIME NOT NULL DEFAULT 'NOW()',
|
||||||
|
CHANGE `CreateDate` `CreateDate` DATETIME NOT NULL DEFAULT 'NOW()';
|
|
@ -26,7 +26,10 @@ if (!IsSet($_GET["enterUID"]))
|
||||||
|
|
||||||
?><table width="100%" class="border" cellpadding="2" cellspacing="1">
|
?><table width="100%" class="border" cellpadding="2" cellspacing="1">
|
||||||
<tr class="contenttopic">
|
<tr class="contenttopic">
|
||||||
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Nick">Nick</a></td>
|
<td>
|
||||||
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Nick">Nick</a> |
|
||||||
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=CreateDate">CreateDate</a>
|
||||||
|
</td>
|
||||||
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Name">Name</a></td>
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Name">Name</a></td>
|
||||||
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Vorname">Vorname</a></td>
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Vorname">Vorname</a></td>
|
||||||
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Alter">Alter</a></td>
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Alter">Alter</a></td>
|
||||||
|
@ -55,7 +58,7 @@ if (!IsSet($_GET["enterUID"]))
|
||||||
|
|
||||||
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
||||||
echo "<tr class=\"content\">\n";
|
echo "<tr class=\"content\">\n";
|
||||||
echo "\t<td>".mysql_result($Erg, $n, "Nick"). "</td>\n";
|
echo "\t<td>".mysql_result($Erg, $n, "Nick"). "<br>(Create: ". mysql_result($Erg, $n, "CreateDate"). ")</td>\n";
|
||||||
echo "\t<td>".mysql_result($Erg, $n, "Name")."</td>\n";
|
echo "\t<td>".mysql_result($Erg, $n, "Name")."</td>\n";
|
||||||
echo "\t<td>".mysql_result($Erg, $n, "Vorname")."</td>\n";
|
echo "\t<td>".mysql_result($Erg, $n, "Vorname")."</td>\n";
|
||||||
echo "\t<td>".mysql_result($Erg, $n, "Alter")."</td>\n";
|
echo "\t<td>".mysql_result($Erg, $n, "Alter")."</td>\n";
|
||||||
|
|
|
@ -53,7 +53,7 @@ if( isset($_POST["send"]))
|
||||||
"`ICQ`, ". "`jabber`, ".
|
"`ICQ`, ". "`jabber`, ".
|
||||||
"`Size`, ". "`Passwort`, ".
|
"`Size`, ". "`Passwort`, ".
|
||||||
"`Art` , ". "`kommentar`, ".
|
"`Art` , ". "`kommentar`, ".
|
||||||
"`Hometown` ) ".
|
"`Hometown`,". "`CreateDate` ) ".
|
||||||
"VALUES ( ".
|
"VALUES ( ".
|
||||||
"'". $_POST["Nick"]. "', ". "'". $_POST["Name"]. "', ".
|
"'". $_POST["Nick"]. "', ". "'". $_POST["Name"]. "', ".
|
||||||
"'". $_POST["Vorname"]. "', ". $_POST["Alter"]. ", ".
|
"'". $_POST["Vorname"]. "', ". $_POST["Alter"]. ", ".
|
||||||
|
@ -62,7 +62,7 @@ if( isset($_POST["send"]))
|
||||||
"'". $_POST["ICQ"]. "', ". "'". $_POST["jabber"]. "', ".
|
"'". $_POST["ICQ"]. "', ". "'". $_POST["jabber"]. "', ".
|
||||||
"'". $_POST["Size"]. "', ". "'". $_POST["Passwort"]. "', ".
|
"'". $_POST["Size"]. "', ". "'". $_POST["Passwort"]. "', ".
|
||||||
"'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "', ".
|
"'". $_POST["Art"]. "', ". "'". $_POST["kommentar"]. "', ".
|
||||||
"'". $_POST["Hometown"]. "' );";
|
"'". $_POST["Hometown"]. "',". "NOW());";
|
||||||
$Erg = mysql_query($SQL, $con);
|
$Erg = mysql_query($SQL, $con);
|
||||||
|
|
||||||
if ($Erg != 1)
|
if ($Erg != 1)
|
||||||
|
|
Loading…
Reference in New Issue