完整的一套网络书店系统,可以学习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 codeaccesscust.mdb
文件 9411 2007-05-16 09:20 codeadminadmin.asp
文件 147 2007-05-04 10:25 codeadminlogin-out.asp
文件 5645 2007-05-12 16:33 codeadminlogin.asp
文件 932 2007-03-20 11:10 codeadmin-doadd-admin.asp
文件 722 2007-03-02 15:14 codeadmin-doadd-backup.asp
文件 1228 2007-05-05 10:03 codeadmin-doadd-book.asp
文件 1488 2007-03-27 10:29 codeadmin-doadd-class.asp
文件 599 2007-05-14 10:28 codeadmin-doadd-news.asp
文件 2057 2007-03-21 09:07 codeadmin-dorush-admin.asp
文件 3825 2007-05-16 09:28 codeadmin-dorush-back.asp
文件 943 2007-03-02 15:12 codeadmin-dorush-backup.asp
文件 3899 2007-05-12 15:53 codeadmin-dorush-book-lack.asp
文件 4122 2007-05-12 17:13 codeadmin-dorush-book-order.asp
文件 3907 2007-05-12 15:52 codeadmin-dorush-book.asp
文件 1339 2007-05-03 21:14 codeadmin-dorush-class.asp
文件 4125 2007-03-20 11:04 codeadmin-dorush-news.asp
文件 4177 2007-03-20 11:02 codeadmin-dorush-user.asp
文件 772 2007-03-20 11:15 codeadmin-docheck.asp
文件 332 2007-03-18 21:44 codeadmin-dodel-admin.asp
文件 319 2007-05-16 09:29 codeadmin-dodel-back.asp
文件 564 2007-03-02 15:44 codeadmin-dodel-backup.asp
文件 322 2007-05-12 15:46 codeadmin-dodel-book-lack.asp
文件 318 2007-05-12 17:14 codeadmin-dodel-book-order.asp
文件 317 2007-05-04 10:05 codeadmin-dodel-book.asp
文件 425 2007-05-03 21:12 codeadmin-dodel-class.asp
文件 331 2007-03-18 21:44 codeadmin-dodel-news.asp
文件 317 2007-03-11 22:22 codeadmin-dodel-user.asp
文件 511 2007-03-20 11:07 codeadmin-doedit-admin.asp
文件 401 2007-03-13 13:21 codeadmin-doedit-lang.asp
............此处省略822个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)