資源簡介
本網(wǎng)絡(luò)中心網(wǎng)站從建立的實際情況出發(fā),經(jīng)過分析,確立了采用asp.net技術(shù)作為開發(fā)環(huán)境,SQL SERVER 2005作為數(shù)據(jù)庫服務(wù)器,IIS作為測試服務(wù)器。論述了基于B/S模式的網(wǎng)絡(luò)中心網(wǎng)站所用到的相關(guān)技術(shù)和方法,詳細(xì)討論了該網(wǎng)站的結(jié)構(gòu)及其實現(xiàn)過程,包括數(shù)據(jù)庫的邏輯設(shè)計和網(wǎng)站的前端及其后臺管理的設(shè)計與實現(xiàn)。該網(wǎng)絡(luò)中心網(wǎng)站可分為前臺管理和后臺管理,從管理員的角度出發(fā),管理員可以更好地對網(wǎng)絡(luò)中心進(jìn)行后臺動態(tài)管理,主要對其用戶角色,新聞類別,網(wǎng)絡(luò)中心故障申報和留言情況進(jìn)行管理;從用戶的角度看,用戶可以及時瀏覽有用的新聞信息,留言以及對網(wǎng)絡(luò)中心出現(xiàn)的故障發(fā)出故障申報,極大地提高了用戶的便利性服務(wù)。

代碼片段和文件信息
#!/usr/bin/env?python
“““
FCKeditor?-?The?text?editor?for?Internet?-?http://www.fckeditor.net
Copyright?(C)?2003-2007?Frederico?Caldeira?Knabben
==?BEGIN?LICENSE?==
Licensed?under?the?terms?of?any?of?the?following?licenses?at?your
choice:
?-?GNU?General?Public?License?Version?2?or?later?(the?“GPL“)
???http://www.gnu.org/licenses/gpl.html
?-?GNU?Lesser?General?Public?License?Version?2.1?or?later?(the?“LGPL“)
???http://www.gnu.org/licenses/lgpl.html
?-?Mozilla?Public?License?Version?1.1?or?later?(the?“MPL“)
???http://www.mozilla.org/MPL/MPL-1.1.html
==?END?LICENSE?==
Connector?for?Python.
Tested?With:
Standard:
Python?2.3.3
Zope:
Zope?Version:?(Zope?2.8.1-final?python?2.3.5?linux2)
Python?Version:?2.3.5?(#4?Mar?10?2005?01:40:25)
[GCC?3.3.3?20040412?(Red?Hat?Linux?3.3.3-7)]
System?Platform:?linux2
“““
“““
Author?Notes?(04?December?2005):
This?module?has?gone?through?quite?a?few?phases?of?change.??Obviously
I?am?only?supporting?that?part?of?the?code?that?I?use.??Initially
I?had?the?upload?directory?as?a?part?of?zope?(ie.?uploading?files
directly?into?Zope)?before?realising?that?there?were?too?many
complex?intricacies?within?Zope?to?deal?with.??Zope?is?one?ugly?piece
of?code.??So?I?decided?to?complement?Zope?by?an?Apache?server?(which
I?had?running?anyway?and?doing?nothing).??So?I?mapped?all?uploads
from?an?arbitrary?server?directory?to?an?arbitrary?web?directory.
All?the?FCKeditor?uploading?occurred?this?way?and?I?didn‘t?have?to
stuff?around?with?fiddling?with?Zope?objects?and?the?like?(which?are
terribly?complex?and?something?you?don‘t?want?to?do?-?trust?me).
Maybe?a?Zope?expert?can?touch?up?the?Zope?components.??In?the?end
I?had?FCKeditor?loaded?in?Zope?(probably?a?bad?idea?as?well)?and
I?replaced?the?connector.py?with?an?alias?to?a?server?module.
Right?now?all?Zope?components?will?simple?remain?as?is?because
I‘ve?had?enough?of?Zope.
See?notes?right?at?the?end?of?this?file?for?how?I?aliased?out?of?Zope.
Anyway?most?of?you?probably?wont?use?Zope?so?things?are?pretty
simple?in?that?regard.
Typically?SERVER_DIR?is?the?root?of?WEB_DIR?(not?necessarily).
Most?definitely?SERVER_USERFILES_DIR?points?to?WEB_USERFILES_DIR.
“““
import?cgi
import?re
import?os
import?string
“““
escape
Converts?the?special?characters?‘<‘?‘>‘?and?‘&‘.
RFC?1866?specifies?that?these?characters?be?represented
in?HTML?as?<?>?and?&?respectively.?In?Python
1.5?we?use?the?new?string.replace()?function?for?speed.
“““
def?escape(text?replace=string.replace):
????text?=?replace(text?‘&‘?‘&‘)?#?must?be?done?1st
????text?=?replace(text?‘<‘?‘<‘)
????text?=?replace(text?‘>‘?‘>‘)
????text?=?replace(text?‘“‘?‘"‘)
????return?text
“““
getFCKeditorConnector
Creates?a?new?instance?of?an?FCKeditorConnector?and?runs?it
“““
def?getFCKeditorConnector(context=None):
#?Called?from?Zope.??Passes?the?context?through
connector?=?FCKeditorC
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-05-22?08:32??DB\
?????文件?????3145728??2014-05-20?13:22??DB\UniversityCenterDB.mdf
?????文件?????1048576??2014-05-20?13:22??DB\UniversityCenterDB_log.ldf
?????目錄???????????0??2014-05-22?08:32??MyUniversityCenterWebsite\
?????目錄???????????0??2014-05-22?08:32??MyUniversityCenterWebsite\Admin\
?????文件????????1100??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\AddClass.aspx
?????文件????????1703??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\AddView.aspx
?????文件????????2208??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\AdminNews.aspx
?????文件????????1182??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Admin_UserAdd.aspx
?????目錄???????????0??2014-05-22?08:32??MyUniversityCenterWebsite\Admin\Bin\
?????文件???????93696??2010-07-18?19:32??MyUniversityCenterWebsite\Admin\Bin\FileUpload.dll
?????文件??????161280??2010-07-18?19:32??MyUniversityCenterWebsite\Admin\Bin\FileUpload.pdb
?????文件????????1190??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Class.aspx
?????文件????????1665??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Default.aspx
?????文件????????5028??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Default2.aspx
?????文件????????1025??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Default3.aspx
?????文件?????????879??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\EditClass.aspx
?????文件????????2177??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\EditDownLoad.aspx
?????文件????????1700??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\EditNews.aspx
?????文件?????????470??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Exit.aspx
?????文件????????1324??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Main.aspx
?????文件????????3357??2014-05-20?14:13??MyUniversityCenterWebsite\Admin\MasterPage.master
?????文件????????1839??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\PL.aspx
?????文件????????2380??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Reply.aspx
?????文件????????1741??2013-04-25?15:36??MyUniversityCenterWebsite\Admin\st
?????文件????????1309??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\User.aspx
?????文件?????????442??2014-05-20?12:54??MyUniversityCenterWebsite\Admin\Validata.aspx
?????目錄???????????0??2014-05-22?08:32??MyUniversityCenterWebsite\Admin\example_st
?????文件????????6456??2007-07-30?05:27??MyUniversityCenterWebsite\Admin\example_st
?????目錄???????????0??2014-05-22?08:32??MyUniversityCenterWebsite\Admin\fckeditor\
?????目錄???????????0??2014-05-22?08:32??MyUniversityCenterWebsite\Admin\fckeditor\editor\
............此處省略404個文件信息
評論
共有 條評論