资源简介
包含数据库文件使用SQLSever,可能细节做得不完美,但网站功能齐全,
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2008 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 ==
This is the integration file for Python.
“““
import cgi
import os
import re
import string
def escape(text replace=string.replace):
“““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.
“““
text = replace(text ‘&‘ ‘&‘) # must be done 1st
text = replace(text ‘<‘ ‘<‘)
text = replace(text ‘>‘ ‘>‘)
text = replace(text ‘“‘ ‘"‘)
text = replace(text “‘“ ‘‘‘)
return text
# The FCKeditor class
class FCKeditor(object):
def __init__(self instanceName):
self.InstanceName = instanceName
self.basePath = ‘/fckeditor/‘
self.Width = ‘100%‘
self.Height = ‘200‘
self.ToolbarSet = ‘Default‘
self.Value = ‘‘;
self.Config = {}
def Create(self):
return self.CreateHtml()
def CreateHtml(self):
HtmlValue = escape(self.Value)
Html = ““
if (self.IsCompatible()):
File = “fckeditor.html“
link = “%seditor/%s?InstanceName=%s“ % (
self.basePath
File
self.InstanceName
)
if (self.ToolbarSet is not None):
link += “&Toolbar=%s“ % self.ToolbarSet
# Render the linked hidden field
Html += “yle=\“display:none\“ />“ % (
self.InstanceName
self.InstanceName
HtmlValue
)
# Render the configurations hidden field
Html += “yle=\“display:none\“ />“ % (
self.InstanceName
self.GetConfigFieldString()
)
# Render the editor iframe
Html += “rame id=\“%s\__frame\“ src=\“%s\“ width=\“%s\“ height=\“%s\“ frameborder=\“0\“ scrolling=\“no\“> rame>“ % (
self.InstanceName
link
self.Width
self.Height
)
else:
if (self.Width.find(“%%“) < 0):
WidthCSS = “%spx“ % self.Width
else:
WidthCSS = self.Width
if (self.Height.find(“%%“) < 0):
HeightCSS = “%spx“ % self.Height
else:
HeightCSS = self.Height
Html += ““ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue
)
return Html
def IsCom
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-20 21:57 新建文件夹\
文件 2031616 2017-04-20 21:57 新建文件夹\db_c2c_Data.MDF
文件 3211264 2017-04-20 21:57 新建文件夹\db_c2c_Log.LDF
目录 0 2017-04-20 21:52 新建文件夹\ershou\
文件 5186 2011-03-19 02:43 新建文件夹\ershou\.classpath
目录 0 2011-03-30 22:44 新建文件夹\ershou\.myeclipse\
文件 529 2011-03-19 03:51 新建文件夹\ershou\.myhibernatedata
文件 291 2011-03-19 03:51 新建文件夹\ershou\.myme
文件 1634 2011-03-19 03:51 新建文件夹\ershou\.project
目录 0 2017-04-20 21:52 新建文件夹\ershou\.settings\
文件 145 2011-03-26 00:18 新建文件夹\ershou\.settings\org.eclipse.core.resources.prefs
文件 330 2010-07-16 17:19 新建文件夹\ershou\.settings\org.eclipse.jdt.core.prefs
文件 273 2011-03-04 16:54 新建文件夹\ershou\.springBeans
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\catelog\
文件 3008 2017-04-20 20:03 新建文件夹\ershou\admin\catelog\catelogAdd.jsp
文件 3153 2017-04-20 20:03 新建文件夹\ershou\admin\catelog\catelogMana.jsp
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\gonggao\
文件 2979 2017-04-20 20:03 新建文件夹\ershou\admin\gonggao\gonggaoAdd.jsp
文件 1134 2017-04-20 20:03 新建文件夹\ershou\admin\gonggao\gonggaoDetail.jsp
文件 3040 2017-04-20 20:03 新建文件夹\ershou\admin\gonggao\gonggaoMana.jsp
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\goods\
文件 3966 2017-04-20 20:03 新建文件夹\ershou\admin\goods\goodsManaByAd.jsp
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\index\
文件 762 2017-04-20 20:03 新建文件夹\ershou\admin\index.jsp
文件 2812 2017-04-20 20:03 新建文件夹\ershou\admin\index\adminAdd.jsp
文件 2945 2017-04-20 20:03 新建文件夹\ershou\admin\index\adminManage.jsp
文件 2573 2017-04-20 20:03 新建文件夹\ershou\admin\index\sysPro.jsp
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\js\
文件 981 2017-04-20 20:03 新建文件夹\ershou\admin\js\list_nav.js
目录 0 2017-04-20 21:52 新建文件夹\ershou\admin\liuyan\
............此处省略2143个文件信息
评论
共有 条评论