網站架設:修訂版本之間的差異

出自六年制學程
跳轉到: 導覽搜尋
檔案
第 1 行: 第 1 行:
 
[[分類:etable]]
 
[[分類:etable]]
 
層級:一個host之下有多個site,諸site共同資源
 
層級:一個host之下有多個site,諸site共同資源
 +
 +
一個 site 是一組有共同 theme 的「連結集合」
 +
 +
各 site 的連結可以:
 +
#嵌入 wiki 頁
 +
#連向獨立的 php 或 html
 +
#嵌入 webContent 表中的某一筆(以 path 指示)
 +
#跳向 google 簡報
 +
#跳出播放 mp4
 
==Host之下==
 
==Host之下==
 
===資料夾===
 
===資料夾===

2016年6月3日 (五) 18:52的修訂版本

層級:一個host之下有多個site,諸site共同資源

一個 site 是一組有共同 theme 的「連結集合」

各 site 的連結可以:

  1. 嵌入 wiki 頁
  2. 連向獨立的 php 或 html
  3. 嵌入 webContent 表中的某一筆(以 path 指示)
  4. 跳向 google 簡報
  5. 跳出播放 mp4

Host之下

資料夾

  1. et:etable
    • include:跳出視窗秀出指定的欄值
      1. et.js:函式 openWithSelfMain(url,name,width,height,returnwindow),其 url 指向 showFieldValue.php 。可用 <script src='xxxxx' /> 載入。
      2. showFieldValue.php:將 $_REQUEST 指示的欄值秀出在跳出視窗中
    • database:
      1. edraw.php:繪圖類別
  2. fonts:放字形

檔案

  1. index.php:以 header("location:/xxxxx/"); 跳至預設的site
  2. print.php:產生 html
  3. constant.php:
    • 載入 etable 兩常數
    • 載入 etable 的 wiki 過濾函式 wiki.php
    • 函式 r2a :由$result傳回統計陣列
    • 函式 webContent :由路徑傳回相應的欄值
      1. 如果是同網站 wiki 頁,送回 wiki 頁再修飾
      2. 如果不是,送回 WebContent 資料表中 path 對應的欄值
    • 函式 cuts :找出前後字串所夾的諸內容
    • 函式 replaces :代換掉前後字串所夾的諸內容
    • 函式 half :將utf8字串對折(或其他指定折數)後傳回為元素0,1,並傳回對折後的佔位寬度為元素2
    • 函式 halfstrFold :依指定字數折兩折或三折
  4. webContent.php:顯示跨 site 內容
    • 載入資料庫連接常數 constant.php
    • 載入 etable 的 DB.php
    • 連接資料庫
    • 表現當前的 theme
    • 依 URI 取出資料表內容秀出來
  5. webContent.js:和 webContent.php 配合,顯示跨 site 內容
    • 產生非同步請求物件
    • 函式 webContent(dataSource,divID)
  6. drawword.php:畫字,配合 fonts 資料夾中的字形

Site之下

  1. index.php:和 Host 下的 webContent.php 一模一樣,只是多了載入 theme.php
  2. theme.php:
    • 載入 siteConstant.php
    • 派入 $html1 值
      1. 載入 style.css
      2. 載入 menu.css
      3. 載入 /webContent.js
      4. 秀 banner
      5. 以 /drawword.php 畫字
      6. 秀 導航列
      7. 開始 content div
    • 派入 $html2 值
      1. 結束 content div
      2. 結束 body
      3. 結束 html
  3. siteConstant.php:各 site 專屬的常數、變數、函式
  4. style.css:整體樣式
  5. menu.css:導航列樣式
  6. banner.png:site 橫幅之背景
  7. navbar-bg.png:導航列背景