art-d-sign
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Bewertung: Bewertung: 3 Stimmen, 3,67 durchschnittlich.
Alt 11.03.2003, 19:30   #1
TP-Senior
 
Benutzerbild von mephisto
 
Registriert seit: Jul 2002
mephisto macht alles soweit korrekt

guestbook


Hi all,

ich blick's einfach nicht mehr. Ich habe ein guestbook mit folgender gaestebuch.php:
PHP-Code:
<?
if (!file_exists("guestbook.csv"))  fclose(fopen("guestbook.csv","w+"));
if (!
is_writable("guestbook.csv"))  die("guestbook.csv not writable!");

$lines=file("guestbook.csv");

$num sizeof($lines);
$step 10;

$seiten ceil($num $step);
if (!
$z$z 1;
$y $z $step
$x $y $step;
if (
$y $num$y $num;
$y $num $y-1;
$x $num $x-1;

if (
$num 0) {
  for (
$i$x$i $y $i--)  {

    
$entry explode ("µ"$lines[$i]);
    
$nr $entry[0];
    
$name $entry[1];
    
$open $entry[3];
    if (
$open == "on") {
      
$email $entry[2];
      if (
strlen($email)< $email ="";
      else 
$name "<a href=\"mailto:$email\">$name</a>";
    }
    
$hp $entry[4];
    if (
$hp != ""$hp "-- <A HREF=\"$hp\" TARGET=_new>Homepage --</A>";
    
$inhalt stripslashes($entry[5]);
    
$kommentar stripslashes($entry[6]);
    if (
$kommentar != ""$kommentar "<BR><FONT COLOR=#999999>Kommentar des Admin: $kommentar</FONT>";

    
$datum $entry[7];
    
$jahr substr($datum,2,2);
    
$monat substr($datum,4,2);
    
$tag substr($datum,6,2);
    
$stunde substr($datum,8,2);
    
$minute substr($datum,10,2);
    
$datum "$tag-$monat-$jahr | $stunde:$minute";
?>
<body text="000000" link="000000" vlink="000000" alink="000000">
<table width="650" border="0" align="center" bgcolor=EEC86F cellpadding="0" cellspacing="0">
  <TR>        
    <TD><FONT SIZE=2 FACE="Verdana, Arial, Helvetica">
          <B><? echo "<B>$name $hp</B>"?></TD>
        <TD ALIGN=RIGHT><FONT SIZE=2 FACE="Verdana, Arial, Helvetica">
          <? echo "$datum<BR>"?></TD>
      </TR>
    </TABLE>
<table width="650" border="0" align="center" bgcolor=EBD38F cellpadding="0" cellspacing="0">
  <tr> 
    <td> 
      <?
    
echo "$inhalt $kommentar<PA>";

    
flush();
  }

} else echo 
"Es gibt keine Einträge im Gästebuch!";

if (
$num $step) {
  echo 
"<B><CENTER>";
  
$vor $z 1
  
$next $z 1;
  if (
$vor != 0) echo "<a href=\"gaestebuch.php?z=$vor\">";
  echo 
"Vorherige";
  if (
$vor != 0) echo "</a>";
  echo 
" | ";
  if (
$next <= $seiten) echo "<a href=\"gaestebuch.php?z=$next\">";
  echo 
"Weitere";
  if (
$next <= $seiten) echo "</a>";
  echo 
"</B></CENTER><P>";
}
?>
    </td>
  </tr>
</table>
Soweit funktioniert alles wunderbar. Ausgabe: siehe hier
Nun versuche ich dieses guestbook in eine html-Seite einzubinden. Dabei habe ich folgende site:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Spargelhof Englert</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">function mmLoadMenus() {
  if (window.mm_menu_0224205949_0) return;
                  window.mm_menu_0224205949_0 = new Menu("root",90,18, "Arial, Helvetica, sans-serif",12,"#000000","#000000","#EEC86F","#EBD38F","left","middle",3,0,1000,-5,7,true,true,true,15,false,true);
  mm_menu_0224205949_0.addMenuItem("Adresse","window.open('http://www.spargelhof-englert.de/sites/Adresse.htm', '_parent');");
  mm_menu_0224205949_0.addMenuItem("Anfahrt","window.open('http://www.spargelhof-englert.de/sites/Anfahrt.htm', '_parent');");
  mm_menu_0224205949_0.addMenuItem("Kontakt","window.open('http://www.spargelhof-englert.de/formmailer/index.htm', '_parent');");
   mm_menu_0224205949_0.hideOnMouseOut=true;
   mm_menu_0224205949_0.bgColor='#EBD38F';
   mm_menu_0224205949_0.menuBorder=1;
   mm_menu_0224205949_0.menuLiteBgColor='#EBD38F';
   mm_menu_0224205949_0.menuBorderBgColor='#000000';
        window.mm_menu_0225110145_0 = new Menu("root",120,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#EEC86F","#EBD38F","left","middle",3,0,1000,-5,7,true,true,true,10,false,true);
  mm_menu_0225110145_0.addMenuItem("Geschichte","window.open('http://www.spargelhof-englert.de/sites/Geschichte.htm', '_parent');");
  mm_menu_0225110145_0.addMenuItem("Botanik","window.open('http://www.spargelhof-englert.de/sites/Botanik.htm', '_parent');");
  mm_menu_0225110145_0.addMenuItem("Spargelsorten","window.open('http://www.spargelhof-englert.de/sites/Spargelsorten.htm', '_parent');");
  mm_menu_0225110145_0.addMenuItem("Folienabdeckung","window.open('http://www.spargelhof-englert.de/sites/Folienabdeckung.htm', '_parent');");
  mm_menu_0225110145_0.addMenuItem("Spargelernte","window.open('#', '_parent');");
  mm_menu_0225110145_0.addMenuItem("Waschen,&nbsp;Lagern","location='#'");
   mm_menu_0225110145_0.hideOnMouseOut=true;
   mm_menu_0225110145_0.bgColor='#EBD38F';
   mm_menu_0225110145_0.menuBorder=1;
   mm_menu_0225110145_0.menuLiteBgColor='#EBD38F';
   mm_menu_0225110145_0.menuBorderBgColor='#000000';
window.mm_menu_0225112300_0 = new Menu("root",100,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#EEC86F","#EBD38F","left","middle",3,0,1000,-5,7,true,true,true,15,false,true);
  mm_menu_0225112300_0.addMenuItem("Home","window.open('http://www.spargelhof-englert.de/', '_parent');");
  mm_menu_0225112300_0.addMenuItem("Historie","window.open('#', '_parent');");
  mm_menu_0225112300_0.addMenuItem("Das&nbsp;Team","window.open('#', '_parent');");
   mm_menu_0225112300_0.hideOnMouseOut=true;
   mm_menu_0225112300_0.bgColor='#EBD38F';
   mm_menu_0225112300_0.menuBorder=1;
   mm_menu_0225112300_0.menuLiteBgColor='#EBD38F';
   mm_menu_0225112300_0.menuBorderBgColor='#000000';

mm_menu_0225112300_0.writeMenus();
} // mmLoadMenus()
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
<style type="text/css">
<!--
 a:link { text-decoration:none; color:#000000; }
 a:visited { text-decoration:none; color:#000000; }
 a:hover { cursor:pointer; text-decoration:none; font-weight:none; color:000000; }
 a:active { text-decoration:none; background-color:none; }
-->
</style>
</head>


<body bgcolor="#FBF5D8" text="#000000" link="#000000" vlink="#000000" alink="#000000" onLoad="MM_preloadImages('images/navigation/UeberUns02.gif','images/navigation/Produkte02.gif','images/navigation/Spargelanbau02.gif','images/navigation/Kontakt02.gif','images/navigation/Gaestebuch02.gif')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="100%" height="100%" border="0"  valign="center">
  <tr> 
    <td align="center"> <table width="650" height="390" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
        <tr> 
          <td><table width="650" height="390" border="0" cellpadding="0" cellspacing="1">
              <tr> 
                <td height="70" background="images/header.gif" bgcolor="#EBD38F">&nbsp;</td>
              </tr>
              <tr> 
                <td height="20" bgcolor="EEC86F"><table width="650" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="19">&nbsp;</td>
                      <td width="100"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('&Uuml;ber uns','','images/navigation/UeberUns02.gif',1)"><img src="images/navigation/UeberUns01.gif" name="Über uns" width="100" height="20" border="0" onMouseOver="MM_showMenu(window.mm_menu_0225112300_0,0,20,null,'&Uuml;ber uns')" onMouseOut="MM_startTimeout();"></a></td>
                      <td width="15">&nbsp;</td>
                      <td width="100"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Produkte','','images/navigation/Produkte02.gif',1)"><img src="images/navigation/Produkte01.gif" name="Produkte" width="100" height="20" border="0"></a></td>
                      <td>&nbsp;</td>
                      <td width="100"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Spargelanbau','','images/navigation/Spargelanbau02.gif',1)"><img src="images/navigation/Spargelanbau01.gif" name="Spargelanbau" width="100" height="20" border="0" onMouseOver="MM_showMenu(window.mm_menu_0225110145_0,0,20,null,'Spargelanbau')" onMouseOut="MM_startTimeout();"></a></td>
                      <td>&nbsp;</td>
                      <td width="100"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Kontakt','','images/navigation/Kontakt02.gif',1)"><img src="images/navigation/Kontakt01.gif" name="Kontakt" width="100" height="20" border="0" onMouseOver="MM_showMenu(window.mm_menu_0224205949_0,0,20,null,'Kontakt')" onMouseOut="MM_startTimeout();"></a></td>
                      <td width="10">&nbsp;</td>
                      <td width="100"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Gästebuch','','images/navigation/Gaestebuch02.gif',1)"><img src="images/navigation/Gaestebuch01.gif" name="Gästebuch" width="100" height="20" border="0"></a></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td bgcolor="#EBD38F"><table width="650" height="300" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="10"><div align="center"><font size="1" face="Arial, Helvetica, sans-serif">&copy; 
                          2003 - <a href="mailto:Dominik.Englert@t-online.de">D.Englert</a></font></div></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
Egal wie ich das anstelle, es funzt einfach nicht. Z.B. setze ich in dem php-file html-code ein und setze die Ausgabe via echo() in der jeweiligen Tabelle, doch dann erstellt er für jeden Gästebucheintrag eine eigene Tabelle, bestehend aus dem kompletten Quell-code so dass die site in sich gespiegelt wird...

Ich hoffe, dass das einigermaßen verständlich ist und hoffe auf Eure Hilfe.


cu
mephisto ist offline   Mit Zitat antworten


Alt 11.03.2003, 21:21   #2
TP-Senior
 
Benutzerbild von mephisto
 
Registriert seit: Jul 2002
mephisto macht alles soweit korrekt
Thumbs up

OK, bin jetzt mal soweit gekommen: siehe da

Schonmal nicht mehr gespiegelt und verschachtelt nun geht' s aufwärts. Jepp...


cu
mephisto ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Traum-Dynamik
guestbook guestbook
« Spiele | Was ganz einfaches - Suchfunktion für MySQL »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 04:05 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67