行事曆

 

 

 

 

 

 

 

林朝敏
89/8/7
89/8/24
89/8/29

行事曆0.6版

需求:php+MySQL <參考範本><下載檔案>

說明:

  1. 參考calendar.mysql檔中內容,建立資料表。
    執行 mysql -u root -p webdb < calendar.mysql
  2. 修改calen.inf.php 中,和MySQL連線參數,及管理員帳號、密碼。
  3. 把檔案置放在同一目錄中。

檔案說明:

  • cal2.php 行事曆檔案
  • setdata.php 輸入月份記事,其中無資料就會自動刪除。如要多行顯示,可以加<br> ,也就是支援 html語法。
  • cal2.php 行事曆
  • PLlib.php 函數庫
  • calen.inf.php 參數設定檔案。
  • calendar.mysql 建立資料表格式。
  • 01~~12.jpg 1~12月份的插圖檔案,尺寸大小為200*150
  • index.htm 連結的範例,行事曆以小視窗方式出現。
其他:

如果你的環境為php3你需要修改副檔名為php3,或在apache參數檔中再加入 php 副檔名的判斷(如下)。
AddType application/x-httpd-php3 .php

修改記錄:

  • 0.6版 89/9/18
    以圖層方式出現行事曆內容(ie 正確)。點選後開啟在最上層視窗。
  • 0.5版 89/8/29 1.修正當使用html語法中,有 "(雙引號)時出現javascript錯誤的情形。
    把cal2.php cal3.php
    140行左右原程式:
    print ("Cthing[$i] = \" $daything[$i] \" ; \n") ;
    修改為:
    print ("Cthing[$i] = '$daything[$i]' ; \n") ;
  • 0.4版89/8/24
    1. 修正無法填入資料庫的錯誤。

  • 0.3版 89/8/7
    1. 把顯示記錄的showeven.php 移去,改用javascript 直接呼叫出新視窗。
    2. 加入cal3.php 會一併把記事內容列出在右方。
  • 0.2版 89/8/1 原始碼整理完成,正式公佈。