-
大小: 3.49MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-11-16
- 语言: JavaScript
- 标签: jquery 网络书店
资源简介
完整的一套网络书店系统,可以学习jquery的好的例子
代码片段和文件信息
“““
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 ==
File Name: fckeditor.py
This is the integration file for Python.
File Authors:
Andrew Liu (andrew@liuholdings.com)
“““
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
Wid
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1433600 2008-03-05 22:17 code\access\cust.mdb
文件 9411 2007-05-16 09:20 code\admin\admin.asp
文件 147 2007-05-04 10:25 code\admin\login-out.asp
文件 5645 2007-05-12 16:33 code\admin\login.asp
文件 932 2007-03-20 11:10 code\admin-do\add-admin.asp
文件 722 2007-03-02 15:14 code\admin-do\add-backup.asp
文件 1228 2007-05-05 10:03 code\admin-do\add-book.asp
文件 1488 2007-03-27 10:29 code\admin-do\add-class.asp
文件 599 2007-05-14 10:28 code\admin-do\add-news.asp
文件 2057 2007-03-21 09:07 code\admin-do\brush-admin.asp
文件 3825 2007-05-16 09:28 code\admin-do\brush-back.asp
文件 943 2007-03-02 15:12 code\admin-do\brush-backup.asp
文件 3899 2007-05-12 15:53 code\admin-do\brush-book-lack.asp
文件 4122 2007-05-12 17:13 code\admin-do\brush-book-order.asp
文件 3907 2007-05-12 15:52 code\admin-do\brush-book.asp
文件 1339 2007-05-03 21:14 code\admin-do\brush-class.asp
文件 4125 2007-03-20 11:04 code\admin-do\brush-news.asp
文件 4177 2007-03-20 11:02 code\admin-do\brush-user.asp
文件 772 2007-03-20 11:15 code\admin-do\check.asp
文件 332 2007-03-18 21:44 code\admin-do\del-admin.asp
文件 319 2007-05-16 09:29 code\admin-do\del-back.asp
文件 564 2007-03-02 15:44 code\admin-do\del-backup.asp
文件 322 2007-05-12 15:46 code\admin-do\del-book-lack.asp
文件 318 2007-05-12 17:14 code\admin-do\del-book-order.asp
文件 317 2007-05-04 10:05 code\admin-do\del-book.asp
文件 425 2007-05-03 21:12 code\admin-do\del-class.asp
文件 331 2007-03-18 21:44 code\admin-do\del-news.asp
文件 317 2007-03-11 22:22 code\admin-do\del-user.asp
文件 511 2007-03-20 11:07 code\admin-do\edit-admin.asp
文件 401 2007-03-13 13:21 code\admin-do\edit-lang.asp
............此处省略822个文件信息
相关资源
- struts2+jquery+ajax文件异步上传
- table jsontest
- 《jQuery Mobile实战》(陶国荣)源码
- SpringMVC+JSON+mybatis+jQuery+Ajax+Maven做的无
- 无jQuery的SignalR项目
- JQuery的几个精典应用实
- 一号店项目jquery
- jquery-dataTables简单
- JQuery十个适合初学者
- jquery api 3.3.1中文文档
- nodejs+express+mongodb+bootstrap+jquery+ejs写的
- 动力节点_jQuery讲义.pdf
- Jquery录取信息系统
- jQuery版图书馆管理系统
- jQuery Easy UI基础篇
- [jQuery] jQuery 经典 (英文版)
- jquery点击向上弹出二级菜单,再点击
- jsTreeSelect jquery 树形下拉菜单
- jQuery API 官方文档 最新版
- jQuery基础教程
- jQuery实现心形图片墙随机放大显示源
- 李炎恢在线课堂jQuery讲义(总)
- jquery教学ppt课件
- jQuery纸牌游戏
- div+css+JQuery仿京东商品详情界面
- jQuery学生信息管理
- 基于框架的网上购物源码
- Jquery特效合集
- 基于jquery Circlr 360度3D旋转插件
- jQuery总结xmind图超级详细
评论
共有 条评论