资源简介
PHP交友网站系统正式版下载婚恋网站源码征婚网PHP交友网站系统正式版下载婚恋网站源码征婚网
代码片段和文件信息
“““
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28456 2010-05-08 00:22 交友征婚婚恋网站系统\group\read.php
文件 2665 2009-05-21 13:08 交友征婚婚恋网站系统\FCKeditor\editor\lang\_translationstatus.txt
文件 707 2009-05-21 13:05 交友征婚婚恋网站系统\FCKeditor\editor\filemanager\connectors\py\htaccess.txt
文件 67713 2009-05-21 13:17 交友征婚婚恋网站系统\FCKeditor\license.txt
文件 5293 2010-05-10 10:04 交友征婚婚恋网站系统\安装文件及说明\PHP交友网站系统功能列表.txt
文件 2148 2010-05-10 09:43 交友征婚婚恋网站系统\安装文件及说明\安装说明.txt
文件 568 2010-03-29 14:16 交友征婚婚恋网站系统\安装文件及说明\我们的联系方式.txt
文件 247 2008-12-29 20:02 交友征婚婚恋网站系统\gyleditor\blank.htm
文件 13903 2007-09-21 14:28 交友征婚婚恋网站系统\group\images\Editor\include\emot.htm
文件 13259 2008-10-25 22:48 交友征婚婚恋网站系统\gyleditor\gyleditor.htm
文件 13205 2010-05-08 00:47 交友征婚婚恋网站系统\gyleditor\gyleditor_party.htm
文件 11924 2008-11-11 09:04 交友征婚婚恋网站系统\gyleditor\gyleditor2.htm
文件 11871 2010-05-08 00:47 交友征婚婚恋网站系统\gyleditor\gyleditor500.htm
文件 7458 2009-10-20 10:04 交友征婚婚恋网站系统\admin\sub\Editor\include\img.htm
文件 7458 2007-09-21 14:28 交友征婚婚恋网站系统\group\images\Editor\include\img.htm
文件 7458 2009-10-20 10:04 交友征婚婚恋网站系统\sub\Editor\include\img.htm
文件 1513 2009-10-20 10:04 交友征婚婚恋网站系统\admin\sub\Editor\include\rm.htm
文件 1513 2007-09-21 14:28 交友征婚婚恋网站系统\group\images\Editor\include\rm.htm
文件 1513 2008-06-06 15:10 交友征婚婚恋网站系统\gyleditor\rm.htm
文件 1513 2009-10-20 10:04 交友征婚婚恋网站系统\sub\Editor\include\rm.htm
文件 4173 2010-05-08 00:22 交友征婚婚恋网站系统\admin\sub\Editor\include\selcolor.htm
文件 4173 2010-05-08 00:22 交友征婚婚恋网站系统\group\images\Editor\include\selcolor.htm
文件 4173 2010-05-08 00:22 交友征婚婚恋网站系统\sub\Editor\include\selcolor.htm
文件 1229 2009-10-20 10:04 交友征婚婚恋网站系统\admin\sub\Editor\include\swf.htm
文件 1229 2007-09-21 14:28 交友征婚婚恋网站系统\group\images\Editor\include\swf.htm
文件 1229 2008-06-06 13:16 交友征婚婚恋网站系统\gyleditor\swf.htm
文件 1229 2009-10-20 10:04 交友征婚婚恋网站系统\sub\Editor\include\swf.htm
文件 1516 2009-10-20 10:04 交友征婚婚恋网站系统\admin\sub\Editor\include\wmv.htm
文件 1516 2007-09-21 14:28 交友征婚婚恋网站系统\group\images\Editor\include\wmv.htm
文件 1516 2008-06-06 14:46 交友征婚婚恋网站系统\gyleditor\wmv.htm
............此处省略2644个文件信息
- 上一篇:自己写的thinkPHP小型论坛系统
- 下一篇:基于PHP的学校综合信息管理系统
评论
共有 条评论