kostenloser Webspace werbefrei: lima-city


Zeitumschaltung

lima-cityForumProgrammiersprachenPHP, MySQL & .htaccess

  1. Autor dieses Themas

    scue

    scue hat kostenlosen Webspace.

    ich hab ein problem mit einem meiner scripte. es ist ein kalender und der schaltet sich automatisch um, also von monat zu monat. das klappt auch einwandfrei (hab ich getestet in dem ich die uhr meines pc umgestellt habe), blo? befindet sich oben dr?ber noch eine auswahl aller links so das der besucher auch zu den anderen monaten springen kann, und das klappt bei mir nicht. problem: ich br?uchte es wenn es m?glich w?re bis heute abend, soll heute noch online. danke.


    <body>
    
    <table width="100%" height="18" bgcolor="#404070" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" valign="middle">
          <font class="seitentitel"><b>Terminplan 06/07</b></font>
        </td>
     </tr>
    </table>
    
    <div align="center">
    
    <p>&nbsp;</p>
    
    <?
    
    $timestamp = time();
    $date = date("m.Y",$timestamp);
    
    if($date == "08.2006" OR $month == "2006_08") { $file2006 = "2006_08.php"; }
    if($date == "09.2006" OR $month == "2006_09") { $file2006 = "2006_09.php"; }
    if($date == "10.2006" OR $month == "2006_10") { $file2006 = "2006_10.php"; }
    if($date == "11.2006" OR $month == "2006_11") { $file2006 = "2006_11.php"; }
    if($date == "12.2006" OR $month == "2006_12") { $file2006 = "2006_12.php"; }
    
    if($date == "01.2007" OR $month == "2007_01") { $file2007 = "2007_01.php"; }
    if($date == "02.2007" OR $month == "2007_02") { $file2007 = "2007_02.php"; }
    if($date == "03.2007" OR $month == "2007_03") { $file2007 = "2007_03.php"; }
    if($date == "04.2007" OR $month == "2007_04") { $file2007 = "2007_04.php"; }
    if($date == "05.2007" OR $month == "2007_05") { $file2007 = "2007_05.php"; }
    if($date == "06.2007" OR $month == "2007_06") { $file2007 = "2007_06.php"; }
    if($date == "07.2007" OR $month == "2007_07") { $file2007 = "2007_07.php"; }
    if($date == "08.2007" OR $month == "2007_08") { $file2007 = "2007_08.php"; }
    
    if(empty($page))
        {
            echo "
            <table width='200' border='0' cellpadding='0' cellspacing='0'>
                <tr>
                <td align='center'><a href='index.php?year=2006'>Jahr 2006</a></td>
                <td align='center'><a href='index.php?year=2007'>Jahr 2007</a></td>
              </tr>
            </table>
           
            <p style='margin-top: 20'>
            ";
        }
    
    if($year == "2006" OR isset($file2006))
        {
            unset($file2007);
           
            echo "
            <table width='600' border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td align='center'><a href='index.php?month=2006_08'>August '06</a></td>
                <td align='center'><a href='index.php?month=2006_09'>September '06</a></td>
                <td align='center'><a href='index.php?month=2006_10'>Oktober '06</a></td>
                <td align='center'><a href='index.php?month=2006_11'>November '06</a></td>
                <td align='center'><a href='index.php?month=2006_12'>Dezember '06</a></td>
              </tr>
            </table>
           
            <p style='margin-top: 40'>
            ";
       
            if(isset($file2006))
                {
                    include($file2006);
                }
        }
    
    if($year == "2007" OR isset($file2007))
        {
            unset($file2006);
           
            echo "
            <table width='600' border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td align='center' width='16%'><a href='index.php?month=2007_01'>Januar '07</a></td>
                <td align='center' width='16%'><a href='index.php?month=2007_02'>Februar '07</a></td>
                <td align='center' width='16%'><a href='index.php?month=2007_03'>M&auml;rz '07</a></td>
                <td align='center' width='16%'><a href='index.php?month=2007_04'>April '07</a></td>
                <td width='36%'>&nbsp;</td>
              </tr>
            </table>
           
            <p style='margin-top: 5'>
           
            <table width='600' border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td width='36%'>&nbsp;</td>
                <td align='center' width='16%'><a href='index.php?month=2007_05'>Mai '07</a></td>
                <td align='center' width='16%'><a href='index.php?month=2007_06'>Juni '07</a></td>
                <td align='center' width='16%'><a href='index.php?month=2007_07'>Juli '07</a></td>
                <td align='center' width='16%'><a href='index.php?month=2007_08'>August '07</a></td>
              </tr>
            </table>
           
            <p style='margin-top: 40'>
            ";
       
            if(isset($file2007))
                {
                    include($file2007);
                }
        }
    
    ?>
    
    <p>&nbsp;</p>
    
    </div>
    
    </body>
    </html>
  2. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

  3. p**l

    Wenn du Variablen ?ber den Link ?bergibst, musst du diese Vaiablen, anders wie beim Post, zuerst in eine Variable schreiben. Das hei?t, du musst folgendes einf?gen:
    $month = $_GET['month'];


    Probier's mal. ;)
  4. Autor dieses Themas

    scue

    scue hat kostenlosen Webspace.

    so langsam wird es, allerdings kann ich immer noch nicht von 2006 zu 2007 klicken und in die vergangenheit, also einen bereits abgelaufen monat kann ich auch nciht anklicken. aber es wird
  5. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

Dir gefällt dieses Thema?

Über lima-city

Login zum Webhosting ohne Werbung!