资源简介
实例精通Dreamweaver与PHP和MySQL整合应用--源代码,可以详细学习下。
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2007 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 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
)
Html += “ “
return Html
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15316121 2007-08-26 22:58 Files\Files\appserv-win32-2.4.9.exe
文件 2814264 2007-10-07 18:14 Files\Files\FileZilla_3.0.1_win32-setup.exe
文件 3725824 2007-10-07 16:19 Files\Files\mysql-connector-odbc-3.51.20-win32.msi
文件 8068700 2007-08-27 22:56 Files\Files\SQLyog605.exe
文件 34481 2007-09-17 17:25 Files\Files\terrafirma.zip
文件 90 2007-10-02 21:04 Example\Example\Chapter 03\PHP\3-2-2-1.php
文件 136 2007-08-27 09:35 Example\Example\Chapter 03\PHP\3-2-3-1.php
文件 180 2007-10-09 17:20 Example\Example\Chapter 03\PHP\3-2-3-2.php
文件 69 2007-08-27 09:35 Example\Example\Chapter 03\PHP\3-2-4-1.php
文件 98 2007-08-27 09:35 Example\Example\Chapter 03\PHP\3-2-4-2.php
文件 199 2007-08-27 09:35 Example\Example\Chapter 03\PHP\3-2-4-3.php
文件 235 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-4-4.php
文件 155 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-5-1.php
文件 63 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-5-2.php
文件 74 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-5-3.php
文件 228 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-6-1.php
文件 191 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-6-2.php
文件 113 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-6-3.php
文件 242 2007-08-27 09:36 Example\Example\Chapter 03\PHP\3-2-6-4.php
文件 279 2007-08-27 09:37 Example\Example\Chapter 03\PHP\3-2-6-5.php
文件 159 2007-08-27 09:38 Example\Example\Chapter 03\PHP\3-3-1-1.php
文件 151 2007-08-27 09:38 Example\Example\Chapter 03\PHP\3-3-1-2.php
文件 172 2007-08-27 09:38 Example\Example\Chapter 03\PHP\3-3-1-3.php
文件 165 2005-11-01 13:29 Example\Example\Chapter 03\PHP\3-3-2-1.php
文件 151 2005-11-01 13:29 Example\Example\Chapter 03\PHP\3-3-2-2.php
文件 156 2005-11-01 13:29 Example\Example\Chapter 03\PHP\3-3-2-3.php
文件 316 2007-10-04 14:37 Example\Example\Chapter 03\PHP\3-4-1.php
文件 204 2007-10-03 00:26 Example\Example\Chapter 03\PHP\3-4-2.php
文件 36 2007-10-03 00:42 Example\Example\Chapter 03\PHP\3-5-1.php
文件 235 2007-08-27 21:43 Example\Example\Chapter 03\PHP\3-5-2.php
............此处省略1564个文件信息
相关资源
- PHP项目开发案例全程实录-源代码
- Linux php-7.2.6
- php + mysql 服务器WampWAMP5-v1.7.4
- WampServer2.0.zip
- lamp兄弟连高洛峰细说php课件和源代码
- 最好的婚恋交友系统源代码
- 大道PHP:LAMP+Zend+开源框架整合开发与
- 包你说小程序源码php 前后台代码,及
- 免费分享thinkphp框架开发周易八字起名
- wampServer2.2 32位可在XP系统中可用,适
- PHP项目开发案例全程实录第2版-源代码
- 12月最新PHP+MYSQL闪拍网源码 网络竞拍
- PHP+MySQL网上购物系统153489
- PHP写的14个项目案例代码.rar152763
- phpword完整代码包含sample无需安装可直
- Wampserver2.4-64位标准版
- php+mysql案例源代码
- 完美开心农场网页源代码php完美开心
- 博客源码资源 源代码 带数据库带后
- php商城代码源码
- php典型模块与项目实战源代码
- H5微信游戏八戒夺宝网站源码 已破解
- ecshop源代码+茶叶商城模板+后台+微信
- xampp-win32-7.2.6-0-VC15-installer.exe
- rips0.55汉化版
- PHP和MySQL Web开发(原书第4和第5版含代
- PHP MySQL 图书馆管理系统前后台全部代
- 生鲜超市源代码php+mysql
- 酒店管理系统PHP源码
- 进销存源代码
评论
共有 条评论