资源简介
只是我们的课程设计,做了个PHP+mysql。运用的是wamp服务器。大家可以下载一个。然后把数据库放到wamp安装目录bin/data/mysql里。然后把www放到wamp目录里把www替换。
代码片段和文件信息
“““
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13506 2010-12-30 20:59 201013048许金斌\201013048许金斌.docx
文件 0 2010-11-10 20:09 201013048许金斌\www\.me
文件 23234 2010-11-17 18:01 201013048许金斌\www\.me
文件 447305 2010-11-10 20:09 201013048许金斌\www\.me
..A..H. 172 2010-12-06 10:54 201013048许金斌\www\.me
..A..H. 2033 2010-11-17 18:01 201013048许金斌\www\.me
文件 206 2010-11-17 18:01 201013048许金斌\www\.me
文件 24358 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 328 2010-12-06 10:54 201013048许金斌\www\.me
文件 75 2010-11-17 18:01 201013048许金斌\www\.me
文件 454 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 328 2010-12-06 10:54 201013048许金斌\www\.me
文件 205 2010-11-17 18:01 201013048许金斌\www\.me
文件 312 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 328 2010-12-06 10:54 201013048许金斌\www\.me
文件 30 2010-11-17 18:01 201013048许金斌\www\.me
文件 179 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 328 2010-12-06 10:54 201013048许金斌\www\.me
文件 199 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 194 2010-12-06 10:54 201013048许金斌\www\.me
文件 88 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 194 2010-12-06 10:54 201013048许金斌\www\.me
文件 803 2010-11-17 18:01 201013048许金斌\www\.me
文件 168 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 328 2010-12-06 10:54 201013048许金斌\www\.me
文件 638 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 194 2010-12-06 10:54 201013048许金斌\www\.me
文件 79 2010-11-17 18:01 201013048许金斌\www\.me
..A..H. 194 2010-12-06 10:54 201013048许金斌\www\.me
文件 100 2010-11-17 18:01 201013048许金斌\www\.me
............此处省略1578个文件信息
评论
共有 条评论