標(biāo)簽實現(xiàn)跳轉(zhuǎn)鏈接;然后,通過while循環(huán)使用mysqli_fetch_array()函數(shù)獲取數(shù)據(jù)表中的信息;最后,根據(jù)id參數(shù)使用select語句以升序的方式將數(shù)據(jù)顯示出來。圖4b是系統(tǒng)的信息管理中的添加信息界面,首先創(chuàng)建form表單;然后在表單中添加onSubmit單擊事件,通過JavaScript判斷添加的信息是否為空,如果添加的信息符合規(guī)范,則通過POST提交信息成功;最后通過$_POST獲取提交的信息,使用insert into語句添加信息到數(shù)據(jù)庫。信息添加流程為:①在系統(tǒng)后臺主頁面左側(cè)導(dǎo)航欄中點擊“信息管理”按鈕,進入信息管理界面。②在信息管理界面中,點擊“添加”按鈕,進入添加信息界面,填寫文章標(biāo)題,選擇欄目類型、模板類型,再進行信息編輯,可對文字進行樣式、格式、字體大小編輯,可以上傳圖片和視頻。③完成編輯后,點擊“提交”按鈕,可將輸入的信息自動添加到數(shù)據(jù)庫中。④信息添加成功后,后期管理員可以對信息進行審核、修改和刪除等維護操作。
3.3.2 ?模板管理實現(xiàn)
模板管理模塊的主要功能是使信息管理模塊中添加的科普信息在前臺有豐富多彩的顯示樣式,實現(xiàn)對信息顯示模板的添加、修改、刪除等管理與維護操作。圖5是模板管理中的修改模板界面效果圖,使用select語句查詢數(shù)據(jù)庫中該id對應(yīng)的信息,修改信息功能通過$_POST獲取提交的信息,使用update語句修改該id對應(yīng)的信息。模板管理模塊添加信息的業(yè)務(wù)邏輯與信息管理的基本相同。
模板修改流程類似于添加流程,點擊“模板管理”按鈕,進入模板管理界面,再點擊“修改模板”按鈕,進入修改模板界面,修改相關(guān)信息。其中,模板內(nèi)容為標(biāo)準(zhǔn)的網(wǎng)頁格式,如:
.........,請不要在里面放任何其他非法代碼。3.3.3 ?欄目管理實現(xiàn)
欄目管理的主要功能是對數(shù)據(jù)庫采集到的信息進行分類,使數(shù)據(jù)庫中的信息合理分配到不同的欄目中,方便瀏覽者們閱讀,實現(xiàn)對欄目的添加、修改和刪除管理和維護操作。防震減災(zāi)科普信息發(fā)布系統(tǒng)的欄目分為科普宣傳、地震快訊、地震監(jiān)測、震害防御、服務(wù)咨詢等欄目。欄目添加、欄目修改的業(yè)務(wù)邏輯類似于信息模塊與模板模塊,點擊“欄目管理”按鈕,進入欄目管理界面(圖6),點擊“添加欄目”實現(xiàn)欄目的增加,點擊“修改欄目”實現(xiàn)對現(xiàn)有欄目的修改,點擊“刪除”實現(xiàn)對現(xiàn)有欄目的刪除,刪除信息功能通過$_GET獲取要刪除信息對應(yīng)的id參數(shù),使用delete語句刪除數(shù)據(jù)庫中該id對應(yīng)的信息。
3.3.4 ?用戶管理實現(xiàn)
用戶管理的主要功能是實現(xiàn)系統(tǒng)用戶信息(用戶名、用戶密碼和用戶權(quán)限)的添加、修改和刪除功能,以及為了保障系統(tǒng)登陸的安全性,實現(xiàn)系統(tǒng)的登陸管理。用戶登陸界面如圖7a所示,用戶在登陸系統(tǒng)時必須同時輸入用戶名、密碼和驗證碼才能進入系統(tǒng)后臺管理界面。用戶管理界面如圖7b所示,用戶管理的添加、修改和刪除業(yè)務(wù)邏輯與前面的模塊類似。
用戶管理界面的底部與信息管理、模板管理和欄目管理類似,設(shè)計了分頁功能。首先設(shè)置每頁顯示的數(shù)據(jù)個數(shù);然后獲取最大頁數(shù)和總記錄數(shù);最后計算每頁從第幾條數(shù)據(jù)開始,獲取當(dāng)前頁,如果當(dāng)前頁為空或者小于第一頁,則顯示第一頁,如果當(dāng)前頁大于總記錄數(shù),則顯示最后一頁。
4 ?系統(tǒng)應(yīng)用及推廣
防震減災(zāi)科普信息發(fā)布系統(tǒng)經(jīng)過多次修改后,測試成功,基本能夠滿足公眾對于科普知識的需求。瀏覽者可以在該平臺上采用問答、評論、搜索等方式,獲取防震減災(zāi)科普知識。目前,該系統(tǒng)正處于試運行階段,在試運行過程中,工作人員將對系統(tǒng)進一步完善和優(yōu)化。后期工作人員將積極對該科普產(chǎn)品的推廣應(yīng)用做一些部署安排:將該系統(tǒng)在地震系統(tǒng)內(nèi)部投入試運行,在試運行階段,積極獲取一些改進的意見和建議,不斷優(yōu)化該系統(tǒng)的功能。將該系統(tǒng)在本地的企事業(yè)單位進行推廣使用,通過兄弟單位的幫助及號召力進行宣傳推廣。在一些重大的防震減災(zāi)日宣傳活動中,積極推廣該系統(tǒng)的功能及使用情況,向群眾進行普及。利用已有的微信公眾號、微博、官方網(wǎng)站等,在這些科普方式中加上防震減災(zāi)科普信息發(fā)布系統(tǒng)的超鏈接,突出顯示,積極向公眾進行推廣。
5 ?結(jié)束語
隨著互聯(lián)網(wǎng)技術(shù)的飛速發(fā)展,對防震減災(zāi)科普宣傳工作提出了更高的要求,在傳統(tǒng)宣傳方式的基礎(chǔ)上,要不斷創(chuàng)新宣傳方式,積極引入高新技術(shù),使其不斷向信息化方向發(fā)展。防震減災(zāi)科普宣傳發(fā)布系統(tǒng)緊密結(jié)合互聯(lián)網(wǎng)技術(shù),利用數(shù)據(jù)庫對地震信息資源進行有效管理,將地震科普信息系統(tǒng)全面的展示到網(wǎng)絡(luò)上,為公眾提供了一個可靠的、權(quán)威的學(xué)習(xí)平臺。本文設(shè)計實現(xiàn)的系統(tǒng)正在試運行階段,在推廣應(yīng)用的過程中,會根據(jù)未來公眾的需求,不斷完善系統(tǒng)功能,推進防震減災(zāi)科普宣傳的信息化建設(shè)。
參考文獻
- 董麗娜,連尉平,陳為濤,等. 防震減災(zāi)公共服務(wù)現(xiàn)狀與需求全國公眾調(diào)查結(jié)果分析[J]. 地震地質(zhì),2020,42(3):762-771 ???Dong L N,Lian W P,Chen W T,et al. Investigation of status and demand on public service of earthquake disaster mitigation in China[J]. Seismology and Geology,2020,42(3):762-771
- 李亞杰. 互聯(lián)網(wǎng)+背景下防震減災(zāi)科普宣傳模式研究[J]. 山西地震,2021(2):50-53 ???Li Y J. Research on popular science popularization mode of earthquake prevention and disaster reduction under internet plus background[J]. Earthquake Research in Shanxi,2021(2):50-53
- 李志恒,金興,李紅,等. 基于WAMP的地震科普信息數(shù)據(jù)庫發(fā)布系統(tǒng)設(shè)計與實現(xiàn)[J]. 地震工程學(xué)報,2021,43(5):1214-1219 ???Li Z H,Jin X,Li H,et al. Design and implementation of the publishing system for WAMP-based earthquake science information database[J]. China Earthquake Engineering Journal,2021,43(5):1214-1219
- 張廣萍, 何麗君. 關(guān)于加強甘肅省防震減災(zāi)公共服務(wù)的思考[J]. 地震科學(xué)進展,2023,53(3):127-132 ???Zhang G P, He L J. Some strategies for improving public services of earthquake prevention and disaster mitigation in Gansu Province[J]. Progress in Earthquake Sciences,2023,53(3):127-132
- 聚慕課教育研發(fā)中心. PHP從入門到項目實踐[M]. 北京:清華大學(xué)出版社,2019:32-587 ???Jumuke Education Research and Development Center. PHP from beginner to project practice[M]. Beijing:Tsinghua University Press,2019:32-587
- 閆曉美. 地震科普信息數(shù)據(jù)庫的設(shè)計與實現(xiàn)[J]. 山西地震,2016(4):35-39 ???Yan X M. The design and implementation of popular earthquake science information database[J]. Earthquake Research in Shanxi,2016(4):35-39
- 李洪明. 新聞發(fā)布管理信息系統(tǒng)的分析與設(shè)計[D]. 昆明:云南大學(xué),2013:19-56 ???Li H M. Analysis and design of news release management information system[D]. Kunming:Yunnan University,2013:19-56
Design and application of popular science information release system for earthquake prevention and disaster reduction
Kong Lingai*, Hu Zichao
Linyi Earthquake Monitoring Center Station of Shandong Earthquake Agency,Shandong Linyi 276000,China
[Abstract] ?China is a country prone to earthquakes, which have caused serious losses to people s lives and property. In the current situation where earthquake monitoring and prediction are not yet mature, the public s demand for earthquake information is increasing. Therefore, doing a good job in science popularization of earthquake prevention and disaster reduction is an important task at present. It is necessary to design a specialized popular science information release system for earthquake prevention and disaster reduction to better serve the public s popularization of earthquake knowledge, provide rich content, diverse forms and extensive systems, and meet the public s needs for earthquake knowledge. In the WAMP integrated development environment, the article uses the MySQL database to collect the information of earthquake prevention and disaster reduction such as articles, pictures, videos and audios, and uses PHP language to design and implement a set of popular science information release system for earthquake prevention and disaster reduction based on B/S structure. The system reasonably classifies the information and has the functions of search, query and message interaction. It provides a standardized, convenient and effective channel for the public to accurately obtain the knowledge of earthquake prevention and disaster reduction.
[Keywords] PHP language; science popularization of earthquake prevention and disaster reduction; MySQL database; WAMP integrated development environment