Hallo Leute, ich habe eine .inc für meine home seite. in dem unterteile ich den contentbereich in zwei Teile um auf der linken seite eine weitere Navigation zu includen:
	
Die "menueseite.inc" sieht wie folgt aus:
	
Unten das ist ein kleiner Kalender.
Ich habe also in dem oberen Code angegeben, dass der homebereich durch eine Tabelle in zwei Teile geteilt wird, wobei einer 75% und 25% der Seitenbreite belegt (der mit 25% für die Navigation). Und in der "menueseite.inc" habe ich angegeben, dass die Tabelle 100% Breit sein sollte (sprich die gesamten 25% belegen sollte) aber irgendwie funktioniert es nicht. Die Navigation belegt nicht die kompletten 25%. Schaut es euch an:
http://dusklounge.du.funpic.de/
Fällt euch ein Fehler auf?
Schon mal Danke.
Lexus_ks
					PHP-Code:
	
	
<table width="100%">
<tr>
<td width="75%"></td>
<td width="25%">
<?
include ("./include/menueseite.inc")
?>
</td>
</tr>
</table>
PHP-Code:
	
	
<table border="0" width="100%" cellspacing="0" cellpadding="2" bgcolor="#BF2203" ><tr>
<td width="100%"><span id="menutitle"><center><b>Navigation<b></center></span></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class=&{ns4class};> Homepage</a></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class=&{ns4class};> Informationen</a></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class=&{ns4class};> JavaScripts</a></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class=&{ns4class};> Downloads</a></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class==&{ns4class};> Online-Tools</a></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class=&{ns4class};> Links</a></td>
</tr><tr>
<td width="100%"><a href="#" class="menulink" class=&{ns4class};> E-Mail</a></td>
</tr>
<tr>
<td>
<?php
   $today = date(d); 
   $days = date(t); 
   $month = date(m); 
   $year = date(y); 
   $firstday = mktime(0,0,1,$month,1,$year); 
   $lastday = mktime(0,0,1,$month,$days,$year); 
   $first = date(w,$firstday); 
   $last = date(w,$lastday); 
   $diff = 7-$last; 
   $jahr = date(Y); 
   $months = array("Januar", "Februar", "März", "April", "Mai", "Juni",
                   "Juli", "August", "September", "Oktober", "November", "Dezember");
   $monat  = $months[date("n", time())-1];
   if($first == 0) $first = 7; 
   if($last == 0) $last = 7;
   for($i=1;$i<$first;$i++) { 
      $begin.= "<td></td>"; 
   } 
   for($i=0;$i<$diff;$i++) { 
      $end.= "<td></td>"; 
   } 
   echo "<table border= '0' cellspacing= '0 ' cellpadding= '0 ' width= '100% ' bgcolor='#4E5454'> 
         <colgroup> 
            <col width= '22 '> 
            <col width= '22 '> 
            <col width= '22 '> 
            <col width= '22 '> 
            <col width= '22 '> 
            <col width= '22 '> 
            <col width= '22 '> 
         </colgroup> 
        <tr bgcolor= '#333333'>
           <th>Mo</th>
           <th>Di</th>
           <th>Mi</th>
           <th>Do</th>
           <th>Fr</th>
           <th>Sa</th>
           <th>So</th>
        </tr><tr>
        $begin"; 
   for($i=1;$i<($days+1);$i++) { 
      if($first==0): 
         echo "<tr>";endif; 
      if($i == $today) {
         echo "<td bgcolor='#BF2203' align='center'>$i</td>";
      }
      else {
         echo "<td align= 'center' bgcolor='#4E5454'>$i</td>";
      } 
      if($first==7):
         echo "</tr>";
         $first=0;
      endif; 
      $first++;      
   } 
   echo "$end</tr>";
   echo "<tr bgcolor='#333333'><td colspan='7' align='center'><b>$monat $jahr</b></td></tr>";
   echo "</table>"; 
?> 
</td>
</tr>
</table>
Ich habe also in dem oberen Code angegeben, dass der homebereich durch eine Tabelle in zwei Teile geteilt wird, wobei einer 75% und 25% der Seitenbreite belegt (der mit 25% für die Navigation). Und in der "menueseite.inc" habe ich angegeben, dass die Tabelle 100% Breit sein sollte (sprich die gesamten 25% belegen sollte) aber irgendwie funktioniert es nicht. Die Navigation belegt nicht die kompletten 25%. Schaut es euch an:
http://dusklounge.du.funpic.de/
Fällt euch ein Fehler auf?
Schon mal Danke.
Lexus_ks
          
Kommentar