资源简介
本网络中心网站从建立的实际情况出发,经过分析,确立了采用asp.net技术作为开发环境,SQL SERVER 2005作为数据库服务器,IIS作为测试服务器。论述了基于B/S模式的网络中心网站所用到的相关技术和方法,详细讨论了该网站的结构及其实现过程,包括数据库的逻辑设计和网站的前端及其后台管理的设计与实现。该网络中心网站可分为前台管理和后台管理,从管理员的角度出发,管理员可以更好地对网络中心进行后台动态管理,主要对其用户角色,新闻类别,网络中心故障申报和留言情况进行管理;从用户的角度看,用户可以及时浏览有用的新闻信息,留言以及对网络中心出现的故障发出故障申报,极大地提高了用户的便利性服务。
代码片段和文件信息
#!/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个文件信息
相关资源
- asp.net通用OA协同办公系统源码
- asp.net会员管理系统源码
- ASP.NET+sql数码购物网站的设计与实现
- ASP.NET网上人才招聘系统
- asp.net三层开发的完整茶叶网站
- ASP.NET MVC5 入门PPT
- 基于ASP.NET学生请假管理系统源码
- Asp.net+SqlServer在线答题系统源码+数据
- 物流信息管理平台系统
- ASP.NET旅游网站
- ASP.NET/c# sql server 航空售票系统
- 毕业设计----ASP.NET仓库管理系统
- ASP.NET学生选课系统
- ASP.NET开发的新闻发布系统
- ASP.NET学生点名系统设计与实现(论文
- ASP.NET微信开发包括图文上传菜单上传
- asp.net网上书店源码和报告
- asp.net学生信息管理代码和报告
- ASP.NET 调用摄像头
- ASP.NET小说网站毕业论文
- 高校OA系统
- asp.net+sql server 开发的花店网站源码
- ASP.NET案例教程
- 基于Asp.net的小型购物网站.rar
- ASP.NET开发供求信息网
- asp.net成绩查询系统
- ASP.NET学生选课系统.、c#学生选课系统
- ASP.NET+SQL学生二手物品交易系统(毕业
- ASP.NET高校学生考勤管理与预警系统。
- asp.net 微信支付V3.7完整可用代码和文
评论
共有 条评论