| | | | |
| |||||||
| Beitragsarchiv Nur gucken, nichts anfassen. Das Archiv der Beiträge vergangener Zeiten. |
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Gast
Beiträge: n/a
| Hallo, ich habe da was aber das ist nur ein Telephonbuch aber du kannst es ja umschreiben, aber du hast dann wenigstens die Techink schonmal. Code: <html>
<head>
<title>XAMPP phonebook</title>
<link href="xampp.css" rel="stylesheet" type="text/css">
</head>
<body>
<? include("lang/".file_get_contents("lang.tmp").".php"); ?>
<h1><?=$TEXT['phonebook-head']?></h1>
<?=$TEXT['phonebook-text1']?>
<?=$TEXT['phonebook-text2']?>
<?
// Copyright (C) 2003 Kai Seidler, oswald@apachefriends.org
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
if(!($db=sqlite_open('sqlite/phonebook', '0666')))
{
echo "<h2>".$TEXT['phonebook-error']."</h2>";
die();
}
?>
<h2><?=$TEXT['phonebook-head1']?></h2>
<table border=0 cellpadding=0 cellspacing=0>
<tr bgcolor=#f87820>
<td><img src=img/blank.gif width=10 height=25></td>
<td class=tabhead><img src=img/blank.gif width=150 height=6>
<?=$TEXT['phonebook-attrib1']?></td>
<td class=tabhead><img src=img/blank.gif width=150 height=6>
<?=$TEXT['phonebook-attrib2']?></td>
<td class=tabhead><img src=img/blank.gif width=150 height=6>
<?=$TEXT['phonebook-attrib3']?></td>
<td class=tabhead><img src=img/blank.gif width=50 height=6>
<?=$TEXT['phonebook-attrib4']?></td>
<td><img src=img/blank.gif width=10 height=25></td>
</tr>
<?
if($firstname!="")
{
sqlite_query($db,"INSERT INTO users (firstname,lastname,phone) VALUES('$firstname','$lastname','$phone')");
}
if($action=="del")
{
sqlite_query($db,"DELETE FROM users WHERE id=$id;");
}
$result=sqlite_query($db,"SELECT id,firstname,lastname,phone FROM users ORDER BY lastname;");
$i=0;
while( $row=sqlite_fetch_array($result) )
{
if($i>0)
{
echo "<tr valign=bottom>";
echo "<td bgcolor=#ffffff background='img/strichel.gif' colspan=6><img src=img/blank.gif width=1 height=1></td>";
echo "</tr>";
}
echo "<tr valign=center>";
echo "<td class=tabval><img src=img/blank.gif width=10 height=20></td>";
echo "<td class=tabval>".$row['lastname']."</td>";
echo "<td class=tabval>".$row['firstname']." </td>";
echo "<td class=tabval>".$row['phone']." </td>";
echo "<td class=tabval><a onclick="return confirm('".$TEXT['phonebook-sure']."');" href=phonebook.php?action=del&id=".$row['id']."><span class=red>[".$TEXT['phonebook-button1']."]</span></a></td>";
echo "<td class=tabval></td>";
echo "</tr>";
$i++;
}
echo "<tr valign=bottom>";
echo "<td bgcolor=#fb7922 colspan=6><img src=img/blank.gif width=1 height=8></td>";
echo "</tr>";
sqlite_close($db);
?>
</table>
<h2><?=$TEXT['phonebook-head2']?></h2>
<form action=phonebook.php method=get>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td><?=$TEXT['phonebook-attrib1']?>:</td><td><input type=text size=20 name=lastname></td></tr>
<tr><td><?=$TEXT['phonebook-attrib2']?>:</td><td> <input type=text size=20 name=firstname></td></tr>
<tr><td><?=$TEXT['phonebook-attrib3']?>:</td><td> <input type=text size=20 name=phone></td></tr>
<tr><td></td><td><input type=submit border=0 value="<?=$TEXT['phonebook-button2']?>"></td></tr>
</table>
</form>
<? if ($source=="in")
{ include("code.php"); $beispiel = $SCRIPT_FILENAME; pagecode($beispiel);}
else
{ print("
<h2><U>".$TEXT['srccode-in']."</U></h2>");} ?>
</body>
</html>
Gruß Licher |
| | |
| Gast
Beiträge: n/a
| danke... aber ich suche mehr sowas wie auf http://www.eventmanager.de/ergebnis.asp?s=1&kid=5 zu sehen ist. Es soll auch ausserdem zwei Arten von Inseraten geben, einmal kostenpflichtig und einmal kostenlos Ich suche schon den ganzen nach so einem Script |
| | |
| Erfahrener Benutzer Registriert seit: 02.04.2008
Beiträge: 2.603
![]() | Vielleicht findest du auf diversen Skriptseiten was. |
| |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Suche Script für Hintergrundmusik | Sunslayer | Scriptbörse | 5 | 19.06.2008 10:18 |
| suche e-mail script | Beitragsarchiv | 2 | 16.10.2005 12:03 | |
| Suche bestimmtes fertiges Script... | Beitragsarchiv | 4 | 11.10.2005 12:02 | |
| Suche - Fertigen Terminkalender Script. | Beitragsarchiv | 2 | 03.10.2005 17:25 | |
| Suche Script zum Abfragen von Inhalten einer anderen Seite | Beitragsarchiv | 7 | 26.09.2005 19:21 | |
| Suche - Klick-Counter Script | nicobischof | Beitragsarchiv | 1 | 22.08.2005 19:21 |
| Suche - Klick-Counter Script | nicobischof | PHP Tipps 2005-2 | 1 | 22.08.2005 18:40 |
| [Erledigt] Suche Browsergame Script | PHP Tipps 2005-2 | 7 | 02.07.2005 16:42 | |
| Suche ein leichtes Script !!!!!! | Beitragsarchiv | 6 | 23.06.2005 11:36 | |
| Suche ein Script um Passwörter zu versenden ? | PHP Tipps 2005 | 21 | 19.03.2005 12:23 | |
| Suche Script zum anzeigen wer gerade Online ist | Beitragsarchiv | 7 | 02.03.2005 20:24 | |
| Suche Script für eine Veranstaltungsliste ?? | Beitragsarchiv | 3 | 06.02.2005 22:03 | |
| suche script timeout oder paidlink oder ähnliches | Beitragsarchiv | 0 | 27.08.2004 21:18 | |
| Ich bin auf der Suche nach einem fertigen Menü Upload Script | Beitragsarchiv | 7 | 22.08.2004 18:53 | |
| suche was Fertiges ... | Off-Topic Diskussionen | 2 | 15.06.2004 18:57 | |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.