资源简介
PHP典型模块和项目开发,12个高质量的PHP典型模块和6个PHP大型应用源码
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 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 += “
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-05-23 22:01 php典型模块与项目实战大全\
目录 0 2012-05-23 21:59 php典型模块与项目实战大全\05\
目录 0 2012-05-23 21:59 php典型模块与项目实战大全\05\guest\
文件 509 2011-05-30 18:43 php典型模块与项目实战大全\05\guest\admin.html
文件 897 2011-05-30 18:38 php典型模块与项目实战大全\05\guest\check.js
文件 542 2011-05-31 13:00 php典型模块与项目实战大全\05\guest\config.inc.php
文件 675 2010-02-22 19:57 php典型模块与项目实战大全\05\guest\delete.php
文件 2337 2011-05-30 18:12 php典型模块与项目实战大全\05\guest\guestbook.html
文件 1800 2011-05-30 21:49 php典型模块与项目实战大全\05\guest\guestbook.sql
目录 0 2012-05-23 21:59 php典型模块与项目实战大全\05\guest\images\
文件 454 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\bg_bbs.gif
文件 230 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\bg_footer.gif
文件 220 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\bg_news.gif
文件 320 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\bg_tab.gif
文件 190 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\botton_search.gif
文件 193 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\check.gif
文件 166 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\checkno.gif
文件 268 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\cr_bt.gif
文件 291 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\cr_top.gif
文件 102 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\dashline.gif
文件 165 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\fla_bt.gif
文件 230 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\fla_top.gif
文件 71 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\line.gif
文件 289 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\mainbt_bt.gif
文件 109 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\mainbt_m.gif
文件 322 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\mainbt_top.gif
文件 311 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\main_bt.gif
文件 318 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\main_top.gif
文件 221 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\navalign_bt.gif
文件 303 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\navalign_li.gif
文件 302 2007-12-03 08:24 php典型模块与项目实战大全\05\guest\images\navalign_li02.gif
............此处省略8844个文件信息
相关资源
- PHPCMS V9.6.6 修改版
- 十大精典PHP项目开发全程案例 CD源码
- phpyun4.6旗舰版20180825
- php项目驾考通项目源码
- GM手游平台php解密版本.zip
- PHP 开发资源库.exe
- Linux php-7.2.6
- ThinkPHP5企业微信小程序-前端demo+后端
- php-5.5.13.tar.gz
- php + mysql 服务器WampWAMP5-v1.7.4
- 在线会议室预定
- (php)仿金蝶电商进销存系统源码v
- php-5.2.8-win32-installer.msi
- php开发案例大全
- PHP与MySQL动态网站开发第4版,高清P
- PHP Live Chat Pro 在线客服在线即时聊天
- 旅游分享平台php源码及说明文档 非常
- php利用word模版替换并生成word
- PHP程序开发参考手册光盘源码
- PHP全自动微信吸粉推广源码.zip
- 中国商家收银系统
- php+mysql八大场景实战
- php5.2-7.0的sqlserver驱动集合及其依赖包
- phpstrom 10 完美汉化包
- 张帅个人博客开源项目:HTML+CSS+MySQ
- 代理防伪授权查询系统WODECMSv1.2php版
- 源码包php-5.3.3.tar.gz
- ThinkPHP实战 2017
- php购物网站
- php-7.3.6.tar.gz
评论
共有 条评论