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

出自六年制學程
跳轉到: 導覽搜尋
檔案
檔案
 
(未顯示同用戶所作出之11次版本)
第 1 行: 第 1 行:
 
[[分類:etable]]
 
[[分類:etable]]
 
層級:一個host之下有多個site,諸site共同資源
 
層級:一個host之下有多個site,諸site共同資源
 +
 +
一個 site 是一組有共同 theme 的「連結集合」
 +
 +
各 site 的連結可以:
 +
#嵌入 wiki 頁
 +
#連向獨立的 php 或 html
 +
#嵌入 webContent 表中的某一筆(以 path 指示)
 +
#跳向 google 簡報
 +
#跳出播放 mp4
 
==Host之下==
 
==Host之下==
 
===資料夾===
 
===資料夾===
第 13 行: 第 22 行:
 
===檔案===
 
===檔案===
 
#index.php:以 header("location:/xxxxx/"); 跳至預設的site
 
#index.php:以 header("location:/xxxxx/"); 跳至預設的site
 +
#GfWebContent.php:給 print.php 和 constant.php 共用
 +
#*函式 webContent :由路徑傳回相應的欄值
 +
#*函式 cutTag :去除所有 <span class="mw-headline"…>○○○</span> 的 span 標籤,留下 ○○○
 
#print.php:產生 html
 
#print.php:產生 html
 
#constant.php:
 
#constant.php:
 
#*載入 etable 兩常數
 
#*載入 etable 兩常數
 
#*載入 etable 的 wiki 過濾函式 wiki.php
 
#*載入 etable 的 wiki 過濾函式 wiki.php
 +
#*#如果是同網站 wiki 頁,送回 wiki 頁再修飾
 +
#*#如果不是,送回 WebContent 資料表中 path 對應的欄值
 
#*函式 r2a :由$result傳回統計陣列
 
#*函式 r2a :由$result傳回統計陣列
#*函式 webContent :由路徑傳回相應的欄值
 
#*函式 cuts :找出前後字串所夾的諸內容
 
 
#*函式 replaces :代換掉前後字串所夾的諸內容
 
#*函式 replaces :代換掉前後字串所夾的諸內容
 
#*函式 half :將utf8字串對折(或其他指定折數)後傳回為元素0,1,並傳回對折後的佔位寬度為元素2
 
#*函式 half :將utf8字串對折(或其他指定折數)後傳回為元素0,1,並傳回對折後的佔位寬度為元素2
第 33 行: 第 45 行:
 
#*函式 webContent(dataSource,divID)
 
#*函式 webContent(dataSource,divID)
 
#drawword.php:畫字,配合 fonts 資料夾中的字形
 
#drawword.php:畫字,配合 fonts 資料夾中的字形
 +
 +
==Site之下==
 +
#index.php:和 Host 下的 webContent.php 一模一樣,只是多了載入 theme.php
 +
#theme.php:
 +
#*載入 siteConstant.php
 +
#*派入 $html1 值
 +
#*#載入 style.css
 +
#*#載入 menu.css
 +
#*#載入 /webContent.js
 +
#*#秀 banner
 +
#*#以 /drawword.php 畫字
 +
#*#秀 導航列
 +
#*#開始 content div
 +
#*派入 $html2 值
 +
#*#結束 content div
 +
#*#結束 body
 +
#*#結束 html
 +
#siteConstant.php:各 site 專屬的常數、變數、函式
 +
#style.css:整體樣式
 +
#menu.css:導航列樣式
 +
#banner.png:site 橫幅之背景
 +
#navbar-bg.png:導航列背景
 +
==函式化報名或問卷==
 +
===資料表部分===
 +
====主要資料表====
 +
#sid
 +
#取消報名
 +
#基本資料諸欄
 +
#*nickName:暱稱
 +
#*email:Email
 +
#*psd
 +
#*city:我來自
 +
#*idOfSchool:學生就讀小學
 +
#核取問題:S1~Sn
 +
#自動填入諸欄:
 +
#*signTime:修改時間
 +
#*ip
 +
#*notice:通知次數
 +
====Comment 資料表====
 +
#cid
 +
#email
 +
#姓名
 +
#comment
 +
#commentType:分建議、提問、發表
 +
#commentCategory:意見分類
 +
 +
===程式部分===
 +
#signupCommon.php:共用函式
 +
#signup.php:報名入口
 +
#signupR.php:報名資料入表
 +
#signupM.php:修改資料入口
 +
#signupE.php:修改資料表單
 +
#signupER.php:修改資料入表<br/>----------
 +
#signupPerson.php:報名者列表
 +
#participantNotice.php:寄通知給報名者
 +
#signupComment.php:回饋留言,須另一個 Comment 資料表

2016年6月5日 (日) 23:14的最新修訂版本

層級:一個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. GfWebContent.php:給 print.php 和 constant.php 共用
    • 函式 webContent :由路徑傳回相應的欄值
    • 函式 cutTag :去除所有 ○○○ 的 span 標籤,留下 ○○○
  3. print.php:產生 html
  4. constant.php:
    • 載入 etable 兩常數
    • 載入 etable 的 wiki 過濾函式 wiki.php
      1. 如果是同網站 wiki 頁,送回 wiki 頁再修飾
      2. 如果不是,送回 WebContent 資料表中 path 對應的欄值
    • 函式 r2a :由$result傳回統計陣列
    • 函式 replaces :代換掉前後字串所夾的諸內容
    • 函式 half :將utf8字串對折(或其他指定折數)後傳回為元素0,1,並傳回對折後的佔位寬度為元素2
    • 函式 halfstrFold :依指定字數折兩折或三折
  5. webContent.php:顯示跨 site 內容
    • 載入資料庫連接常數 constant.php
    • 載入 etable 的 DB.php
    • 連接資料庫
    • 表現當前的 theme
    • 依 URI 取出資料表內容秀出來
  6. webContent.js:和 webContent.php 配合,顯示跨 site 內容
    • 產生非同步請求物件
    • 函式 webContent(dataSource,divID)
  7. 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:導航列背景

函式化報名或問卷

資料表部分

主要資料表

  1. sid
  2. 取消報名
  3. 基本資料諸欄
    • nickName:暱稱
    • email:Email
    • psd
    • city:我來自
    • idOfSchool:學生就讀小學
  4. 核取問題:S1~Sn
  5. 自動填入諸欄:
    • signTime:修改時間
    • ip
    • notice:通知次數

Comment 資料表

  1. cid
  2. email
  3. 姓名
  4. comment
  5. commentType:分建議、提問、發表
  6. commentCategory:意見分類

程式部分

  1. signupCommon.php:共用函式
  2. signup.php:報名入口
  3. signupR.php:報名資料入表
  4. signupM.php:修改資料入口
  5. signupE.php:修改資料表單
  6. signupER.php:修改資料入表
    ----------
  7. signupPerson.php:報名者列表
  8. participantNotice.php:寄通知給報名者
  9. signupComment.php:回饋留言,須另一個 Comment 資料表