[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/seourls/event/listener.php on line 213: Undefined array key "FORUM_NAME"
REDAXO Forum • Leere Zeile
Seite 1 von 1

Leere Zeile

Verfasst: 27. Mai 2009, 19:55
von chris76
Hallo zusammen,

brauche Profihilfe :-)
Habe mir ein Adresseanzeigemodul programmiert, dazu nutze ich folgenden „Ausgabecode“:

Code: Alles auswählen

<?php $rexname = split("~~", "REX_VALUE[1]"); ?>


<table height="126" cellspacing="0" cellpadding="5" border="0" width="100%">

<tr bgcolor="#e7f1dd" valign="top">
<td width="180"><h6><?php print $rexname[1]; ?></h6></td>
<td bgcolor="#e7f1dd"><b><?php print $rexname[2]; ?> <?php print $rexname[3]; ?></b><br />
<?php print $rexname[4]; ?> <br>
    <?php print $rexname[5]; ?>    <?php print $rexname[6]; ?><br>   <br>



<?php
if($rexname[7]!="")
print $r7='
<img height="15" border="0" width="16" class="icondown" alt="Telefon" title="Telefon" src="/files/HTV/gfx/icons/phone_symbol.gif" />'
?>&nbsp;&nbsp; <?php print $rexname[7]; ?><br />

<?php
if($rexname[10]!="")
print $r10='
<img height="15" border="0" width="16" class="icondown" alt="Mobil" title="Mobil" src="/files/HTV/gfx/icons/mobile_symbol.gif" /></a>'
?> &nbsp; <?php print $rexname[10]; ?><br />

<?php
if($rexname[15]!="")
print $r15='
<img height="15" border="0" width="16" class="icondown" alt="Fax" title="Fax" src="/files/HTV/gfx/icons/fax_symbol.gif" /></a>'
?> &nbsp; <?php print $rexname[15]; ?><br /><br />

<?php
if($rexname[8]!="")
print $r8='
<img height="10" border="0" width="14" class="icondown" alt="E-Mail" title="E-Mail" src="/files/HTV/gfx/icons/mail_symbol.gif" /></a>'
?> &nbsp;&nbsp; <a href="mailto:<?php print $rexname[8]; ?>"> <?php print $rexname[8]; ?></a><br />

<?php
if($rexname[9]!="")
print $r9='
<img height="14" border="0" width="16" class="icondown" alt="Website" title="Website" src="/files/HTV/gfx/icons/internet_symbol.gif" /></a>'
?> &nbsp; <?php print $rexname[9]; ?><br />



</td> 
  </tr>

<tr valign="top">
  
<td colspan="2"><img height="3" border="0" width="1" src="/files/HTV/gfx/blind.gif" /></td>
</tr>
</table>
Das ganze sieht dann wie folgt aus:

[ externes Bild ]

Wie bekomme ich es jetzt hin, dass die leeren Zeilen (in diesem Beispiel: Mobil, Fax, E-mail) gelöscht bzw. ausgeblendet werden, so das da steht:

- 01234-5485
- http://www.mustermann.de

?


Über Eure Hilfe wäre ich sehr dankbar.

LG
Chris


PS Hab leider keinen Plan von PHP