资源简介
适合正在做毕业设计的计算机专业学生,简单明了的源代码,没有bug,可以放心使用的。

代码片段和文件信息
“““
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 += ““ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue
)
return Html
def IsCom
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 174 2010-04-17 15:53 电子商务网站PHP模板\.buildpath
文件 232 2011-09-17 16:46 电子商务网站PHP模板\.classpath
文件 688 2011-09-17 16:46 电子商务网站PHP模板\.project
文件 93 2010-04-17 16:03 电子商务网站PHP模板\.settings\org.eclipse.core.resources.prefs
文件 88 2010-04-17 16:03 电子商务网站PHP模板\.settings\org.eclipse.php.core.prefs
文件 2443 2010-04-17 15:53 电子商务网站PHP模板\about.php
文件 1884 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addaboutus.php
文件 2241 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addadmin.php
文件 1886 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addcontactus.php
文件 1892 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addgonggao.php
文件 4314 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addgoods.php
文件 2534 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addhealth.php
文件 1112 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addhealthleibie.php
文件 1808 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addkitchen.php
文件 1091 2010-04-17 16:03 电子商务网站PHP模板\admin\add\addleibie.php
文件 3552 2010-04-17 15:57 电子商务网站PHP模板\admin\adminaboutus.php
文件 3572 2010-04-17 15:57 电子商务网站PHP模板\admin\admincontactus.php
文件 3556 2010-04-17 15:57 电子商务网站PHP模板\admin\admingonggao.php
文件 3708 2010-04-17 15:57 电子商务网站PHP模板\admin\adminmessage.php
文件 2052 2010-04-17 15:57 电子商务网站PHP模板\admin\adminquartersale.php
文件 2196 2010-04-17 15:57 电子商务网站PHP模板\admin\admintimesale.php
文件 6914 2010-04-17 15:57 电子商务网站PHP模板\admin\admin_main.php
文件 6883 2010-04-17 16:03 电子商务网站PHP模板\admin\change\changegoods.php
文件 2266 2010-04-17 16:03 电子商务网站PHP模板\admin\change\changehealth.php
文件 299 2010-04-17 16:03 电子商务网站PHP模板\admin\change\changeleaveword.php
文件 830 2010-04-17 15:57 电子商务网站PHP模板\admin\chkadmin.php
文件 297 2010-04-17 16:03 电子商务网站PHP模板\admin\conn\conn.php
文件 297 2010-04-17 16:03 电子商务网站PHP模板\admin\conn\conn2.php
文件 3632 2010-04-17 16:03 电子商务网站PHP模板\admin\css\admin.css
文件 1186 2010-04-17 16:03 电子商务网站PHP模板\admin\css\forms.css
............此处省略2089个文件信息
- 上一篇:php-5.2.9-1-Win32.zip
- 下一篇:订餐网站外卖系统源码
相关资源
- 校园疫情防控进出登记管理系统THIN
- 手写签名,PHP +js+html5
- 学籍管理系统(php源码+mysql数据库)
- 新闻管理系统(原生php源码)
- php图书管理系统源码(附数据库)
- php文章管理系统源码(附数据库)
- PHP图书馆管理系统(源码 数据库脚本
- PHP考试答题系统
- 基于PHP的学生管理系统(优雅版)
- PHP物品管理系统
- php新闻管理系统源码
- resetful框架
- PHP免杀大马-过D盾过安全狗WAF免杀ph
- 友邻B2B系统(PHPB2B) 5.0.2 UTF-8
- 新型冠状病毒肺炎疫情实时图PHP源码
- PHP调用企业微信API接口底层类库
- 基于PHP的统一检索系统的设计与实现
- PHP版本的网络打印机提交打印代码
- conefor操作(Manual_Conefor_26)
- php Goto解密
- PHP大转盘抽奖
- php模拟文件上传(socket_upload.php)
- php连接mysql实现界面crud(附数据库文
- php在线相册(附数据库脚本)
- PHP在线人数统计
- php+Ajax无刷新分页列表
- PHP失物招领
- php 随机生成颜色
- php-redis中文帮助手册.chm
- php远程控制脚本
评论
共有 条评论