Sunny: Tabellenzelle in Abhängigkeit zum Dateinamen formatieren?

Beitrag lesen

Hallo!

Das Menü als *.php - Datei gespeichert und dann mit
<?php include ("M1.php"); ?>
eingebunden.

Auch mal eine nette Idee :D
Wie wäre es, wenn wir die Datei jetzt mal öffnen und auch ein bisschen PHP in die *.php Datei schreiben? Gib uns doch mal den Inhalt von M1.php oder zumindest das gleiche mit Beispieldaten.

Grüße, Matze

So sieht die M1.php derzeit noch aus, ohne die Änderungen vom Matthias:

<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />  
<base target="Hauptframe2" />  
<link rel="stylesheet" type="text/css" href="../../ZugMenue.css" />  
<!--Counter-Code Anfang-->  
<!--Counter-Code Ende-->  
</head>  
  
<body style="background-image:url('../../../../Backgrounds/11.jpg'); background-attachment:fixed">  
  
<div id="ue">&Uuml;bersicht</div>  
<center>  
<table border="1">  
 <colgroup>  
  <col width="108px" />  
  <col width="108px" />  
  <col width="108px" />  
  <col width="108px" />  
  <col width="108px" />  
  <col width="108px" />  
  <col width="108px" />  
  <col width="108px" />  
 </colgroup>  
 <tr style="height:45px">  
  <td id="m"><a href="AVG.php" target="_self" id="r">AVG</a></td>  
  <td id="m"><a href="BOB.php" target="_self" id="r">BOB</a></td>  
  <td id="m"><a href="DB.php" target="_self" id="r">DB</a></td>  
  <td id="m"><a href="ERB.php" target="_self" id="r">ERB</a></td>  
  <td id="m"><a href="HEX.php" target="_self" id="r">HEX</a></td>  
  <td id="m"><a href="ME.php" target="_self" id="r">ME</a></td>  
  <td id="m"><a href="NEB.php" target="_self" id="r">NEB</a></td>  
  <td id="m"><a href="NOB.php" target="_self" id="r">NOB</a></td>  
 </tr>  
 <tr style="height:45px">  
  <td id="m"><a href="NWB.php" target="_self" id="r">NWB</a></td>  
  <td id="m"><a href="ODEG.php" target="_self" id="r">ODEG</a></td>  
  <td id="m"><a href="OSB.php" target="_self" id="r">OSB</a></td>  
  <td id="m"><a href="SBB.php" target="_self" id="r">SBB</a></td>  
  <td id="m"><a href="STS.php" target="_self" id="r">STS</a></td>  
  <td id="m"><a href="SWEG.php" target="_self" id="r">SWEG</a></td>  
  <td id="m"><a href="WFB.php" target="_self" id="r">WFB</a></td>  
  <td id="m"> </td>  
 </tr>  
</table>  
</center>  
<hr style="color:#FF0066" />