計算機畢業(yè)設計 論文格式化系統(tǒng)——前臺的設計與實現(xiàn).doc
計算機畢業(yè)設計 論文格式化系統(tǒng)——前臺的設計與實現(xiàn),摘 要該系統(tǒng)是一個基于web的軟件。該系統(tǒng)的客戶端采用javascript和php作為平臺的開發(fā)語言,mysql作為后臺數(shù)據(jù)庫,apache2.0作為web服務器。該系統(tǒng)用javascrit腳本在客戶端封裝表單里面的數(shù)據(jù)并將這些數(shù)據(jù)封裝成xml字符串,然后發(fā)送這個字符串給服務器。在接收到送服務器端發(fā)送來的xml之后,系...


內(nèi)容介紹
此文檔由會員 allvs 發(fā)布摘 要
該系統(tǒng)是一個基于web的軟件。該系統(tǒng)的客戶端采用javascript和php作為平臺的開發(fā)語言,Mysql作為后臺數(shù)據(jù)庫,Apache2.0作為web服務器。該系統(tǒng)用javascrit腳本在客戶端封裝表單里面的數(shù)據(jù)并將這些數(shù)據(jù)封裝成xml字符串,然后發(fā)送這個字符串給服務器。在接收到送服務器端發(fā)送來的xml之后,系統(tǒng)用javascript腳本解析xml然后填寫到表單中去。他們可以按時的發(fā)表自己的論文。系統(tǒng)也提供學生和導師的論文交互平臺,論文交互平臺采用了php腳本編寫了數(shù)據(jù)庫操作類和常用函數(shù)類,然后用這些類創(chuàng)建新的對象來使用對象中的方法,比如數(shù)據(jù)庫連接的方法,數(shù)據(jù)庫查詢方法,上傳論文的方法等。并用了Apache的rewrite模塊來重定向請求的url。這篇論文還介紹了Smart template系統(tǒng)和它扮演的角色,還用一個例子來描述了怎么使用它來將php腳本和html代碼分離。論文中還解釋了在系統(tǒng)開發(fā)期間遇到的一些問題,比如修改mysql數(shù)據(jù)庫密碼的問題和其他的問題。
關(guān)鍵詞:javascript;xml;php;mysql;Apache;論文
The Essay Formatting System
——Front-side Design and Implementation
Abstract
This system is a software which is based on web. The front-side of this system uses javascript and php to take the onstage development language. Mysql makes the backstage database.Apache2.0 makes the web server. This system uses javascript script on fornt-side to get the from’s datas and encapsulate these datas to a xml string, then send the string to server. After received the xml data from server, system uses javascript script to parse the data then fill it into the form. This system also provides a essay exchange stage. The essay exchange stage uses php script to write database operation class and common functions class then uses these classes to create new objects to execute the functions of the object, such as database connect function, database query function, upload essay function and so on. And uses the rewrite module of Apache to redirect the request url. This essay also introduces the Smart template system, the role played by it and give an example to describe how to use it to separate php script from html code. In this essay also explain some problems during development system such as modify the password of mysql database and other problems.
Key words: javascript; xml; php; mysql; Apache; essay
1 引言 1
2 系統(tǒng)需求 1
2.1 系統(tǒng)需求概述 1
2.2 系統(tǒng)詳細需求分析 1
2.2.1 基于web開發(fā) 1
2.2.2 格式化文檔 2
2.2.3 前臺需求 2
2.2.4 性能需求 2
3 方案選擇 2
3.1 方案比較 2
3.1.1 系統(tǒng)模式比較 2
3.1.2 程序語言選擇與比較 3
3.1.3 數(shù)據(jù)庫的選擇 4
3.1.4 開發(fā)工具的選擇 5
3.2 環(huán)境搭建 5
3.2.1 安裝Apache web server 5
3.2.2 安裝PHP 5
3.2.3 安裝Mysql 5
4 總體設計 6
4.1 系統(tǒng)架構(gòu)設計 6
4.1.1 網(wǎng)絡架構(gòu) 6
4.1.2 系統(tǒng)邏輯服務器 6
4.2 總體結(jié)構(gòu) 7
4.3 系統(tǒng)工作流程圖 7
5 實現(xiàn)和編碼 8
5.1 數(shù)據(jù)庫設計 8
5.2 數(shù)據(jù)庫表結(jié)構(gòu)設計 9
5.3 系統(tǒng)程序?qū)崿F(xiàn) 12
5.3.1 前臺javascript程序工作流程 12
5.3.2 首頁的設計與javascript封裝XML 13
5.3.3 通過XMLHttpRequest對象發(fā)送XML 14
5.3.4 Smart template簡介 15
5.3.5 Smart template在本系統(tǒng)中的運用 15
5.3.6 系統(tǒng)數(shù)據(jù)庫封裝與操作 15
5.3.7 系統(tǒng)常用函數(shù)封裝設計 17
5.3.8 Apache Rewrite功能在系統(tǒng)中的運用 17
6 特殊問題解決辦法 19
6.1 mysql數(shù)據(jù)庫密碼修改問題 19
6.2 php自動轉(zhuǎn)義問題 19
7 測試與結(jié)果分析 19
7.1 運行模塊舉例 19
7.1.1 前臺上傳記錄模塊舉例 19
7.1.2 系統(tǒng)管理員模塊舉例 20
7.1.3 學生功能模塊舉例 21
7.1.4 導師功能模塊舉例 22
7.2 測試結(jié)果與分析 23
結(jié) 論 24
參考文獻 25
致 謝 26
聲 明 27
TA們正在看...
- 01.1四時田園雜興課堂教學教案教學設計(部編版).doc
- 01.2稚子弄冰課堂教學教案教學設計(部編版).doc
- 01.3村晚課堂教學教案教學設計(部編版).doc
- 02冬陽·童年·駱駝隊公開課優(yōu)秀教案教學設計(五年...doc
- 02冬陽·童年·駱駝隊最新教研教案教學設計(部編版...doc
- 02冬陽·童年·駱駝隊課堂教學教案教學設計(部編版).doc
- 03祖父的園子公開課優(yōu)秀教案教學設計(五年級下冊).doc
- 03祖父的園子最新教研教案教學設計(部編版五年級下...doc
- 03祖父的園子課堂教學教案教學設計(部編版).doc
- 04草船借箭公開課優(yōu)秀教案教學設計(五年級下冊).doc