【正文】
))。 //文件上傳 if(!$thisuploaddo_upload(39。數(shù)據(jù)導(dǎo)入面板如下:圖31 導(dǎo)入數(shù)據(jù)面板示意圖一個(gè)典型的待導(dǎo)入文件數(shù)據(jù)格式如下:圖32 待導(dǎo)入文件數(shù)據(jù)格式示意圖數(shù)據(jù)導(dǎo)入模型:數(shù)據(jù)導(dǎo)入模型對(duì)象提供數(shù)據(jù)導(dǎo)入功能及其配套方法,其中包括作為接口的預(yù)處理方法,數(shù)據(jù)導(dǎo)入方法以及作為私有方法的SQL生成方法,字段校驗(yàn)方法等。至此,整個(gè)數(shù)據(jù)導(dǎo)入過程完成。前端控制器首先調(diào)用數(shù)據(jù)導(dǎo)入模型對(duì)象的預(yù)處理方法對(duì)待導(dǎo)入文件進(jìn)行內(nèi)容預(yù)處理,其目的是檢查待導(dǎo)入文件格式和數(shù)據(jù)是否合法以及相應(yīng)字段是否正確映射至數(shù)據(jù)庫相應(yīng)字段。表27 考試信息表字段類型可否為空考試號(hào)(主鍵)VARCHAR(64)NOT NULL考試名(唯一)VARCHAR(256)NOT NULL考試類別INT(10)NOT NULL考試課程INT(10)NOT NULL考試狀態(tài)VARCHAR(16)NOT NULL考試時(shí)間INT(10)NOT NULL考試時(shí)長(zhǎng)INT(4)NULL用戶角色表:存放根據(jù)學(xué)校組織結(jié)構(gòu)定義用戶角色。表23 專業(yè)表字段類型可否為空專業(yè)標(biāo)識(shí)(主鍵)VARCHAR(64)NOT NULL專業(yè)名(唯一)VARCHAR(64)NOT NULL課程表:存放開設(shè)課程信息,枚舉學(xué)校所有開設(shè)課程。輸出:根據(jù)用戶需求導(dǎo)出定制相應(yīng)字段數(shù)據(jù)的excel格式表格。第四章 結(jié)論回顧并總結(jié)了課題的研究過程中所做的工作,也思考了研究過程中遇到的問題并列出了實(shí)踐中的不足之處,最后根據(jù)自己的認(rèn)識(shí)對(duì)相關(guān)技術(shù)的發(fā)展前景進(jìn)行了展望。實(shí)現(xiàn)目標(biāo):通過對(duì)數(shù)據(jù)庫結(jié)構(gòu)的合理規(guī)劃和相關(guān)技術(shù)的應(yīng)用,并在操作流程上保證較高的可靠性和易用性。其實(shí),每當(dāng)要求用戶輸入構(gòu)造一個(gè)數(shù)據(jù)庫查詢時(shí),是在允許該用戶參與構(gòu)建一個(gè)存取數(shù)據(jù)庫服務(wù)器的命令。在應(yīng)用程序設(shè)計(jì)過程中,要注意安全問題的防范,尤其是數(shù)據(jù)庫的安全。MySQL軟件本身采用了較為開放的GPL(GNU通用公共許可證)開源協(xié)議。它根據(jù)軟件的普遍特征從邏輯上將軟件的結(jié)構(gòu)抽象成典型的三層模型,強(qiáng)制性使應(yīng)用程序的輸入、處理和輸出分開,分解成模型、視圖、控制器3種部件,它們各自處理自己的任務(wù)。PHP技術(shù)是當(dāng)前在中小型Web應(yīng)用開發(fā)中廣泛使用的技術(shù)。目前它已成為計(jì)算機(jī)網(wǎng)絡(luò)應(yīng)用的一種主要技術(shù),尤其重要的是Web動(dòng)態(tài)技術(shù)及與后臺(tái)數(shù)據(jù)庫的交互式動(dòng)態(tài)查詢技術(shù)。 本課題主要研究的是基于B/S模式的成績(jī)管理的設(shè)計(jì)與實(shí)現(xiàn),開發(fā)成績(jī)管理模塊將配合自動(dòng)閱卷模塊,自動(dòng)化批量導(dǎo)入成績(jī)數(shù)據(jù),方便地管理成績(jī);同時(shí)也可以方便地將指定數(shù)據(jù)導(dǎo)出系統(tǒng),用于數(shù)據(jù)歸檔和備份。該模塊采用B/S結(jié)構(gòu),基于Linux平臺(tái),使用MySQL分布式數(shù)據(jù)庫。自主答題卡系統(tǒng)——成績(jī)管理模塊的設(shè)計(jì)實(shí)現(xiàn)摘 要答題卡是現(xiàn)代考試考核的重要工具,它可以幫助閱卷工作高效準(zhǔn)確地完成,大量節(jié)省人力。同時(shí)該模塊為用戶提供了友好的管理界面和查詢接口,并保證了較高的易用性和可靠性。關(guān)鍵詞:成績(jī)管理;答題卡;數(shù)據(jù)庫;MVCABSTRACTThe answer sheet is an important tool of modern examination and assessment, which can make the grading work efficiently and accurately, and save a lot of manpower. On the basis of inherited advantages, autonomous answer sheet bee further cost savings, from selfgenerated to meet the needs of the answer sheet to the automatic scoring and then to performance management, integrate on the same system, and facilitate the operation and management greatly. According to the characteristics of the data of the answer sheet, as the last node of the whole process, score management module provide import and export functions of the data including score, which integrated in the system naturally. At the same time, the module also provides a friendly management interface and query interface for the users, and ensures a high usability and reliability. Based on the Linux platform, the module uses the B/S structure and MySQL distributed database. Its backend uses the CodeIgniter programming framework which based on PHP programming language and the MVC design pattern ,makes the code elegant and efficient. And its Frontend performance applies the JQuery framework and AJAX technology, so that the user requests can get the corresponding results without refreshing, and bring a good user experience.Key Words: Score Management;Answer Sheet;Database;MVC目 錄1 引言 1 課題來源及意義 1 國(guó)內(nèi)外發(fā)展現(xiàn)狀 1 本文的主要工作 2 設(shè)計(jì)思想和實(shí)現(xiàn)目標(biāo) 2 論文結(jié)構(gòu)安排 22 需求與設(shè)計(jì) 3 產(chǎn)品需求 3 系統(tǒng)設(shè)計(jì) 3 部署架構(gòu) 3 功能結(jié)構(gòu) 3 詳細(xì)設(shè)計(jì) 4 數(shù)據(jù)流圖 4 ER圖 4 數(shù)據(jù)庫設(shè)計(jì) 5 數(shù)據(jù)庫關(guān)系 83 功能與實(shí)現(xiàn) 9 數(shù)據(jù)的導(dǎo)入導(dǎo)出 9 數(shù)據(jù)的導(dǎo)入 9 數(shù)據(jù)的導(dǎo)出 12 數(shù)據(jù)的管理 14 數(shù)據(jù)查詢 14 數(shù)據(jù)錄入 14 數(shù)據(jù)修改 15 數(shù)據(jù)刪除 16 數(shù)據(jù)分析 17 用戶的分類與管理 19 用戶的分類 19 用戶的管理 19 用戶的角色 19 用戶的權(quán)限 19 系統(tǒng)相關(guān) 19 登錄與退出 20 緩存 21 日志 22 前端表現(xiàn) 22 開源框架 22 用戶界面 224 結(jié)論 24 所作工作及總結(jié) 24 存在的不足及展望 24參考文獻(xiàn) 25謝 辭 261 引言 課題來源及意義本課題來源于科學(xué)研究需求。它不僅為因特網(wǎng)的普及起到關(guān)鍵性的作用,而且還在其它相關(guān)計(jì)算機(jī)網(wǎng)絡(luò)應(yīng)用技術(shù)發(fā)展中起到關(guān)鍵作用,如因特網(wǎng)、電子商務(wù)等。另外,PHP能夠作為ApacheWeb服務(wù)器的模塊執(zhí)行,使得它的執(zhí)行效率要普遍高于其他CGI程序。MVC(ModelViewController,模型-視圖-控制器)是一種軟件設(shè)計(jì)模式[3]。它完全支持標(biāo)準(zhǔn)SQL(structured query langu