raw bild in definierter ausgabe - baseportal Forum - Web-Anwendungen einfach, schnell, leistungsfähig!
baseportal
English - Deutsch "Es gibt keine dummen Fragen - jeder hat einmal angefangen"

 baseportal-ForumDie aktuellsten 10, 30, 50, 100 Einträge anzeigen.  

 
 Ausgewählter Eintrag: Zur Liste 
    Beitrag von johannes (7 Beiträge) am Sonntag, 11.Mai.2003, 12:43.
    raw bild in definierter ausgabe

      hallo!
      folgendes:
      habe uas bib die newsausgabe übernommen. admin soll news schreiben können und auch bild einfügen können.
      jetzt will ich, dass nur wenn er auch tats bild einfügt, ein bild ausgegeben wird.
      die newsausgabe (lang) ist wie folgt definiert (code im anhang).
      wie kann ich innerhabl der definition (a="....) festlegen, dass nur bild ausgegeben wird, wenn auch eines vorhanden... folgender code ist "trapped"...

      gruß johannes

      $a_meldung = "
      <div align=\"center\">
      

      <table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
      <tr>
      <td height=\"7\" width=\"1\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"1\" 
      

      height=\"7\"></td>
      <td width=\"15\" height=\"7\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"15\" 
      

      height=\"7\"></td>
      <td width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"22\" height=\"7\"></td>
      <td rowspan=\"3\" width=\"100%\" class=\"headline\" valign=\"top\">
      <div align=\"left\">&nbsp;&nbsp;&nbsp;&nbsp;
      <font color=\"black\">
      $news_titel
      

      </font>&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td height=\"7\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"22\" 
      

      height=\"7\"></td>
      <td width=\"15\" height=\"7\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"15\" 
      

      height=\"7\"></td>
      <td width=\"1\" height=\"7\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"1\" 
      

      height=\"7\"></td>
      </tr>
      <tr>
      <td rowspan=\"5\" bgcolor=\"#9d9d9d\" width=\"1\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" width=\"22\" bgcolor=\"#9d9d9d\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" width=\"15\" bgcolor=\"#9d9d9d\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td rowspan=\"5\" bgcolor=\"#9d9d9d\" width=\"1\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      </tr>
      <tr>
      <td height=\"15\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"1\" 
      

      height=\"15\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"15\"></td>
      </tr>
      <tr>
      <td width=\"15\">&nbsp;</td>
      <td colspan=\"3\" valign=\"top\">
      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"22\" bgcolor=\"white\">
      <tr>
      <td valign=\"top\">
      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
      <tr>
      <td colspan=\"3\" valign=\"top\"height=\"22\">
      <font color=\"black\">
      ${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;
      <br>&nbsp;<br>
      </font></td>
      

      <td rowspan=\"3\" valign=\"top\" width=\"0\">



      </td>
      </tr>
      <tr>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      <td valign=\"top\">
      </font> &nbsp;</td>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      </tr>
      <tr>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      <td valign=\"top\"><br><font color=\"black\">$news_text
      

      <br>

      $_raw{newsbild}=~s/\s//;
      

      if($_raw{newsbild})
      {
       
      out "<img src=\"/files/$_raw{newsbild}\">";
      }
       
      <p class=\"longtext\">
      

      </div>
      </font>
      </td>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td>
      <td width=\"15\">&nbsp;</td>
      </tr>
      <tr>
      <td height=\"15\" width=\"15\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"412\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"412\" 
      

      height=\"15\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"15\"></td>
      </tr>
      <tr>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      </tr>
      </table><br><img src=\"http://sillyc.de/images/leer11.gif\" width=\"100\" height=\"10\" 
      

      border=\"0\" /></td></tr><tr><td>









      <div align=center>Zurück zur <a href=$_link&namerein=$namerein&sid=$sid>Übersicht</a>&nbsp;</div><br>
      </td></tr></table>
      <!--- start tabelle ---->
      <!---
      </div><h2>$news_titel</h2><br>$news_text&nbsp;<br><i>$autor</i>
      <div align=right>Zurück zur <a href=$_link>Übersicht</a>&nbsp;</div><br>
      --->
      

      ";


    Antworten

 Alle Einträge zum Thema: Zur Liste 
    Beitrag von johannes (7 Beiträge) am Sonntag, 11.Mai.2003, 12:43.
    raw bild in definierter ausgabe

      hallo!
      folgendes:
      habe uas bib die newsausgabe übernommen. admin soll news schreiben können und auch bild einfügen können.
      jetzt will ich, dass nur wenn er auch tats bild einfügt, ein bild ausgegeben wird.
      die newsausgabe (lang) ist wie folgt definiert (code im anhang).
      wie kann ich innerhabl der definition (a="....) festlegen, dass nur bild ausgegeben wird, wenn auch eines vorhanden... folgender code ist "trapped"...

      gruß johannes

      $a_meldung = "
      <div align=\"center\">
      

      <table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
      <tr>
      <td height=\"7\" width=\"1\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"1\" 
      

      height=\"7\"></td>
      <td width=\"15\" height=\"7\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"15\" 
      

      height=\"7\"></td>
      <td width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"22\" height=\"7\"></td>
      <td rowspan=\"3\" width=\"100%\" class=\"headline\" valign=\"top\">
      <div align=\"left\">&nbsp;&nbsp;&nbsp;&nbsp;
      <font color=\"black\">
      $news_titel
      

      </font>&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td height=\"7\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"22\" 
      

      height=\"7\"></td>
      <td width=\"15\" height=\"7\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"15\" 
      

      height=\"7\"></td>
      <td width=\"1\" height=\"7\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"1\" 
      

      height=\"7\"></td>
      </tr>
      <tr>
      <td rowspan=\"5\" bgcolor=\"#9d9d9d\" width=\"1\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" width=\"22\" bgcolor=\"#9d9d9d\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" width=\"15\" bgcolor=\"#9d9d9d\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td rowspan=\"5\" bgcolor=\"#9d9d9d\" width=\"1\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      </tr>
      <tr>
      <td height=\"15\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"1\" 
      

      height=\"15\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"15\"></td>
      </tr>
      <tr>
      <td width=\"15\">&nbsp;</td>
      <td colspan=\"3\" valign=\"top\">
      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"22\" bgcolor=\"white\">
      <tr>
      <td valign=\"top\">
      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
      <tr>
      <td colspan=\"3\" valign=\"top\"height=\"22\">
      <font color=\"black\">
      ${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;
      <br>&nbsp;<br>
      </font></td>
      

      <td rowspan=\"3\" valign=\"top\" width=\"0\">



      </td>
      </tr>
      <tr>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      <td valign=\"top\">
      </font> &nbsp;</td>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      </tr>
      <tr>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      <td valign=\"top\"><br><font color=\"black\">$news_text
      

      <br>

      $_raw{newsbild}=~s/\s//;
      

      if($_raw{newsbild})
      {
       
      out "<img src=\"/files/$_raw{newsbild}\">";
      }
       
      <p class=\"longtext\">
      

      </div>
      </font>
      </td>
      <td width=\"8\" valign=\"top\">&nbsp;</td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td>
      <td width=\"15\">&nbsp;</td>
      </tr>
      <tr>
      <td height=\"15\" width=\"15\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"412\"><img src=\"http://sillyc.de/images/leer11.gif\" width=\"412\" 
      

      height=\"15\"></td>
      <td height=\"15\" width=\"22\"></td>
      <td height=\"15\" width=\"15\"></td>
      </tr>
      <tr>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"22\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      <td height=\"1\" bgcolor=\"#9d9d9d\" width=\"15\"><img src=\"http://sillyc.de/images/leer11.gif\" 
      

      width=\"1\" height=\"1\"></td>
      </tr>
      </table><br><img src=\"http://sillyc.de/images/leer11.gif\" width=\"100\" height=\"10\" 
      

      border=\"0\" /></td></tr><tr><td>









      <div align=center>Zurück zur <a href=$_link&namerein=$namerein&sid=$sid>Übersicht</a>&nbsp;</div><br>
      </td></tr></table>
      <!--- start tabelle ---->
      <!---
      </div><h2>$news_titel</h2><br>$news_text&nbsp;<br><i>$autor</i>
      <div align=right>Zurück zur <a href=$_link>Übersicht</a>&nbsp;</div><br>
      --->
      

      ";

     Antworten

    Beitrag von Sander (8133 Beiträge) am Sonntag, 11.Mai.2003, 23:18.
    Re: raw bild in definierter ausgabe

      $_raw{newsbild}=~s/\s//;
      if($_raw{newsbild})
      {
      $bild="<img src=\"/files/$_raw{newsbild}\">"; # $bild eingefügt bei <!-- achtung Änderung -->
      }
      $a_meldung = <<EOF;
      <div align="center">
      <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td height="7" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="7"></td>
      <td width="15" height="7"><img src="http://sillyc.de/images/leer11.gif" width="15" height="7"></td>
      <td width="22"><img src="http://sillyc.de/images/leer11.gif" width="22" height="7"></td>
      <td rowspan="3" width="100%" class="headline" valign="top">
      <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="black">
      $news_titel
      </font>&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td height="7" width="22"><img src="http://sillyc.de/images/leer11.gif" width="22" height="7"></td>
      <td width="15" height="7"><img src="http://sillyc.de/images/leer11.gif" width="15" height="7"></td>
      <td width="1" height="7"><img src="http://sillyc.de/images/leer11.gif" width="1" height="7"></td>
      </tr>
      <tr>
      <td rowspan="5" bgcolor="#9d9d9d" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" width="22" bgcolor="#9d9d9d"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" width="15" bgcolor="#9d9d9d"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td rowspan="5" bgcolor="#9d9d9d" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      </tr>
      <tr>
      <td height="15" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="22"></td>
      <td height="15" width="15"></td>
      </tr>
      <tr>
      <td width="15">&nbsp;</td>
      <td colspan="3" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="22" bgcolor="white">
      <tr>
      <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td colspan="3" valign="top"height="22">
      <font color="black">
      ${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;
      <br>&nbsp;<br>
      </font></td>
      <td rowspan="3" valign="top" width="0">
      </td>
      </tr>
      <tr>
      <td width="8" valign="top">&nbsp;</td>
      <td valign="top">
      </font> &nbsp;</td>
      <td width="8" valign="top">&nbsp;</td>
      </tr>
      <tr>
      <td width="8" valign="top">&nbsp;</td>
      <td valign="top"><br><font color="black">$news_text
      <br>
      <!-- achtung! Änderung -->
      $bild
      <p class="longtext">
      </div>
      </font>
      </td>
      <td width="8" valign="top">&nbsp;</td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td>
      <td width="15">&nbsp;</td>
      </tr>
      <tr>
      <td height="15" width="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="412"><img src="http://sillyc.de/images/leer11.gif" width="412" height="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="15"></td>
      </tr>
      <tr>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      </tr>
      </table><br><img src="http://sillyc.de/images/leer11.gif" width="100" height="10" border="0" /></td></tr><tr><td>
      <div align=center>Zurück zur <a href=$_link&namerein=$namerein&sid=$sid>Übersicht</a>&nbsp;</div><br>
      </td></tr></table>
      <!--- start tabelle ---->
      <!---
      </div><h2>$news_titel</h2><br>$news_text&nbsp;<br><i>$autor</i>
      <div align=right>Zurück zur <a href=$_link>Übersicht</a>&nbsp;</div><br>
      --->
      EOF
      

      Sander

     Antworten

    Beitrag von johannes (7 Beiträge) am Montag, 12.Mai.2003, 19:54.
    Re: raw bild in definierter ausgabe

      hi sander!
      vielen dank für die mühe, klappt leider nicht!
      nun steht bie JEDEM eintrag einfach der img. name eines bildes da(leider auch noch falscher imagename, weiss nicht woher das kommt)
      hier mal etwas mehr code (deine änderungen sind schon drin)

      gruß
      johannes

      <br><br>
      <!-- übersichtsseite start --->
      <div align="left"><b></b></a></left>
      

      EOF

      if ($ga eq "1") # wenn Gesamtansicht gewählt wurde
      { get "Id==$news_titel", "News";
      $_raw{newsbild}=~s/\s//;
      if($_raw{newsbild})
      {
      $bild="<img src=\"/files/$_raw{newsbild}\">"; # $bild eingefügt bei <!-- achtung Änderung -->
      }
      $a_meldung = <<EOF;
      <div align="center">
      <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td height="7" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="7"></td>
      <td width="15" height="7"><img src="http://sillyc.de/images/leer11.gif" width="15" height="7"></td>
      <td width="22"><img src="http://sillyc.de/images/leer11.gif" width="22" height="7"></td>
      <td rowspan="3" width="100%" class="headline" valign="top">
      <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="black">
      $news_titel
      </font>&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td height="7" width="22"><img src="http://sillyc.de/images/leer11.gif" width="22" height="7"></td>
      <td width="15" height="7"><img src="http://sillyc.de/images/leer11.gif" width="15" height="7"></td>
      <td width="1" height="7"><img src="http://sillyc.de/images/leer11.gif" width="1" height="7"></td>
      </tr>
      <tr>
      <td rowspan="5" bgcolor="#9d9d9d" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" width="22" bgcolor="#9d9d9d"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" width="15" bgcolor="#9d9d9d"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td rowspan="5" bgcolor="#9d9d9d" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      </tr>
      <tr>
      <td height="15" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="22"></td>
      <td height="15" width="15"></td>
      </tr>
      <tr>
      <td width="15">&nbsp;</td>
      <td colspan="3" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="22" bgcolor="white">
      <tr>
      <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td colspan="3" valign="top"height="22">
      <font color="black">
      ${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;
      <br>&nbsp;<br>
      </font></td>
      <td rowspan="3" valign="top" width="0">
      </td>
      </tr>
      <tr>
      <td width="8" valign="top">&nbsp;</td>
      <td valign="top">
      </font> &nbsp;</td>
      <td width="8" valign="top">&nbsp;</td>
      </tr>
      <tr>
      <td width="8" valign="top">&nbsp;</td>
      <td valign="top"><br><font color="black">$news_text
      <br>
      <!-- achtung! Änderung -->
      $bild
      <p class="longtext">
      </div>
      </font>
      </td>
      <td width="8" valign="top">&nbsp;</td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td>
      <td width="15">&nbsp;</td>
      </tr>
      <tr>
      <td height="15" width="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="412"><img src="http://sillyc.de/images/leer11.gif" width="412" height="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="15"></td>
      </tr>
      <tr>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      </tr>
      </table><br><img src="http://sillyc.de/images/leer11.gif" width="100" height="10" border="0" /></td></tr><tr><td>
      <div align=center>Zurück zur <a href=$_link&namerein=$namerein&sid=$sid>Übersicht</a>&nbsp;</div><br>
      </td></tr></table>
      <!--- start tabelle ---->
      <!---
      </div><h2>$news_titel</h2><br>$news_text&nbsp;<br><i>$autor</i>
      <div align=right>Zurück zur <a href=$_link>Übersicht</a>&nbsp;</div><br>
       
      --->
      EOF
      

      }elsif ($ga eq "")













      # sonst Übersicht anzeigen
      {
      get "Id=* sort=-", "News";
      while (get_next(News))
      {
      # Ausgabelänge begrenzen für Feld Meldung #
      $laenge=0;
      $Ende = substr($Meldung, $laenge);
      $Stop = index($Ende,"\ "); #Leerzeichen suchen (Wortende)
      $Ende = substr($Ende, 0, $Stop);
      

      $Anfang = substr($news_text, 0, $laenge);
      $a_meldung.= "
      

      &nbsp;${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;

      &nbsp;
      <b>$news_titel</b>$Anfang$Ende &nbsp;<a href=$_link&news_titel=$_id&ga=1&namerein=$namerein&sid=$sid>Zur Meldung </a>
      

      <br>
      ";

      }
      }
      out<<EOF;
      

      <!-- ausgabe kurze meldung--->


      <html>
      <head>
      <title>Newsanzeige</title>
      </head>
      <body text="#000000" bgcolor="white">
      $a_meldung
      

      <br>


      <!--- unterer rand --->
      </td>
      

      </tr>

      </table>
      

      EOF

     Antworten

    Beitrag von Sander (8133 Beiträge) am Montag, 12.Mai.2003, 23:18.
    Re: raw bild in definierter ausgabe

      aja...

      $_raw{newsbild}=~s/\s//;
      $bild="";
      if($_raw{newsbild})
      {
      $bild="<img src=\"/files/$_raw{newsbild}\">";
      }
      

      Sander

     Antworten

    Beitrag von johannes (7 Beiträge) am Dienstag, 13.Mai.2003, 12:58.
    Re: raw bild in definierter ausgabe

      hi sander!
      der imagename ist jetzt weg, allerdings kommt jetzt nirgends mehr ein bild, auch dort, wo eigentl. eines sein sollte!
      hier der komplette code.
      johannes
      <LINK REL="stylesheet" TYPE="text/css" HREF="http://pks-alumni.de/style.css">
      <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="white" background="http://www.pks-alumni.de/images/bg_mitte.gif"> 
      

      <include src=srcoben>
      <perl>
       
      


      ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)= gmtime(time);


      $sid_aktuell = (1000000*$year)+(10000*$mon)+(100*$mday)+(4*$hour);
       
      

      ###### Log out ###### muß nat. ein logoutlink mit rein



      if($cmd eq "logout")
      {
      mod "nutzer_name==$namerein", ["nutzer_sid", ""], "adressen";
       
      ##### Logout ende ######
      ##### login? ########
      }elsif ($cmd eq "login")
      {
       
             if($namerein ne "" && pwrein ne "" && $sid eq "")
             {
                          get "nutzer_name==!$namerein","adressen";
                          if($nutzer_passwort ne "" && $nutzer_passwort eq $pwrein)
                          {
                             mod "nutzer_name==$namerein", ["nutzer_sid", "$sid_aktuell"], "adressen";
                             $sid="$sid_aktuell";
                          }else
                          {
                             out "<b>Anmeldung fehlgeschlagen!</b>";
                             $namerein="";
                             $login_name="";
                          }
             }
      }
      

      if($namerein ne "" && $sid ne "")
      {
       
      out "<!-- test, ob aktuelle session-id noch gültig ist -->";
              get "nutzer_name==$namerein", "adressen";
              $sid_max = 100+(1*$nutzer_sid);
              if($sid eq $nutzer_sid && $sid_aktuell <= $sid_max)
              {
                         out "<!-- session-id ist gültig - session-id wird aktualisiert -->";
                         mod "nutzer_name==$namerein", ["nutzer_sid", $sid_aktuell], "adressen";
                         $sid=$sid_aktuell;
      

      ######### Ab hier alles rein, was nach login gemacht werden darf ##########

                         if($Schreiben eq "ja")
                         {
      
                         }elsif ($Schreiben ne "ja")                    { out <<EOF; <SCRIPT language=JavaScript> // Zugriffsverweigerung  function click()    {    if (event.button==2)      {      alert('GESPERRT!!');      }    if (event.button==3)      {      alert('GESPERRT!! )');      }    }  document.onmousedown=click </script>

      <script language=JavaScript>
      <!--
      
      // Scrolling message settings
      var MessageText = "Willkommen $namerein!";

      function ScrollInStatusBar(){
      window.status = MessageText;
      setTimeout("ScrollInStatusBar()",5);
      }
      
      ScrollInStatusBar()
      //-->
      </script>
      

      <!---
      #########
      #########
      #########
      #########seitenanfang
      #########
      #########
      #########
      #########
      #########
      #########
      ------->
      <html>
      <head>
      <title> Aktuelles Test </title>
      </head>
      <body bgcolor="white">
      <br><br>
      <!-- übersichtsseite start --->
      <div align="left"><b></b></a></left>
      

      EOF

      if ($ga eq "1") # wenn Gesamtansicht gewählt wurde
      { get "Id==$news_titel", "News";
      

      $_raw{newsbild}=~s/\s//;
      $bild="";
      if($_raw{newsbild})
      {
      $bild="<img src=\"/files/$_raw{newsbild}\">";
      }
      $a_meldung = <<EOF;
      <div align="center">
      <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td height="7" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="7"></td>
      <td width="15" height="7"><img src="http://sillyc.de/images/leer11.gif" width="15" height="7"></td>
      <td width="22"><img src="http://sillyc.de/images/leer11.gif" width="22" height="7"></td>
      <td rowspan="3" width="100%" class="headline" valign="top">
      <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;
      <font color="black">
      $news_titel
      </font>&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td height="7" width="22"><img src="http://sillyc.de/images/leer11.gif" width="22" height="7"></td>
      <td width="15" height="7"><img src="http://sillyc.de/images/leer11.gif" width="15" height="7"></td>
      <td width="1" height="7"><img src="http://sillyc.de/images/leer11.gif" width="1" height="7"></td>
      </tr>
      <tr>
      <td rowspan="5" bgcolor="#9d9d9d" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" width="22" bgcolor="#9d9d9d"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" width="15" bgcolor="#9d9d9d"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td rowspan="5" bgcolor="#9d9d9d" width="1"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      </tr>
      <tr>
      <td height="15" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="22"></td>
      <td height="15" width="15"></td>
      </tr>
      <tr>
      <td width="15">&nbsp;</td>
      <td colspan="3" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="22" bgcolor="white">
      <tr>
      <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td colspan="3" valign="top"height="22">
      <font color="black">
      ${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;
      <br>&nbsp;<br>
      </font></td>
      <td rowspan="3" valign="top" width="0">
      </td>
      </tr>
      <tr>
      <td width="8" valign="top">&nbsp;</td>
      <td valign="top">
      </font> &nbsp;</td>
      <td width="8" valign="top">&nbsp;</td>
      </tr>
      <tr>
      <td width="8" valign="top">&nbsp;</td>
      <td valign="top"><br><font color="black">$news_text
      <br>
      <!-- achtung! Änderung -->
      $bild
      <p class="longtext">
      </div>
      </font>
      </td>
      <td width="8" valign="top">&nbsp;</td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td>
      <td width="15">&nbsp;</td>
      </tr>
      <tr>
      <td height="15" width="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="412"><img src="http://sillyc.de/images/leer11.gif" width="412" height="15"></td>
      <td height="15" width="22"></td>
      <td height="15" width="15"></td>
      </tr>
      <tr>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="22"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      <td height="1" bgcolor="#9d9d9d" width="15"><img src="http://sillyc.de/images/leer11.gif" width="1" height="1"></td>
      </tr>
      </table><br><img src="http://sillyc.de/images/leer11.gif" width="100" height="10" border="0" /></td></tr><tr><td>
      <div align=center>Zurück zur <a href=$_link&namerein=$namerein&sid=$sid>Übersicht</a>&nbsp;</div><br>
      </td></tr></table>
      <!--- start tabelle ---->
      <!---
      </div><h2>$news_titel</h2><br>$news_text&nbsp;<br><i>$autor</i>
      <div align=right>Zurück zur <a href=$_link>Übersicht</a>&nbsp;</div><br>
       
      --->
      EOF
      

      }elsif ($ga eq "")













      # sonst Übersicht anzeigen
      {
      get "Id=* sort=-", "News";
      while (get_next(News))
      {
      # Ausgabelänge begrenzen für Feld Meldung #
      $laenge=0;
      $Ende = substr($Meldung, $laenge);
      $Stop = index($Ende,"\ "); #Leerzeichen suchen (Wortende)
      $Ende = substr($Ende, 0, $Stop);
      

      $Anfang = substr($news_text, 0, $laenge);
      $a_meldung.= "
      

      &nbsp;${ \datum($news_datum, 'Tag.Monat.Jahr')}&nbsp;

      &nbsp;
      <b>$news_titel</b>$Anfang$Ende &nbsp;<a href=$_link&news_titel=$_id&ga=1&namerein=$namerein&sid=$sid>Zur Meldung </a>
      

      <br>
      ";

      }
      }
      out<<EOF;
      

      <!-- ausgabe kurze meldung--->


      <html>
      <head>
      <title>Newsanzeige</title>
      </head>
      <body text="#000000" bgcolor="white">
      $a_meldung
      

      <br>


      <!--- unterer rand --->
      </td>
      

      </tr>

      </table>
      

      EOF







      EOF
                         }
      ###### Ende der erlaubten Tätigkeiten #######
      
             }else        {                     out "Session-id ist abgelaufen - Bitte melde Dich erneut an";                     $login_name="$nutzer_name";                     $namerein="";        } }  

      ###### ende login #####


      </perl> 
      

      <include src=immerunten>


      <include src=srcunten>
      

     Antworten

    Beitrag von Sander (8133 Beiträge) am Dienstag, 13.Mai.2003, 14:25.
    Re: raw bild in definierter ausgabe

      das muß gehen...
      bilder im feld newsbild sind wirklich vorhanden?

      Sander

     Antworten

    Beitrag von johannes (7 Beiträge) am Mittwoch, 14.Mai.2003, 19:21.
    Re: raw bild in definierter ausgabe

      hi sander, tut mir leid es geht nicht!
      wenn ich die seite im bp bereich editiere, sehe ich sogar das bild!
      name des feldes "newsbild"

      gruß
      johannes

     Antworten


     
 Liste der Einträge von 38101 bis 38251:Einklappen Zur Eingabe 
Neueste Einträge << 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | Neuere Einträge < Zur Eingabe  > Ältere Einträge | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 >> Älteste Einträge


Zurück zur Homepage

© baseportal.de. Alle Rechte vorbehalten. Nutzungsbedingungen



powered in 0.10s by baseportal.de
Erstellen Sie Ihre eigene Web-Datenbank - kostenlos!