一个较为完善的bbs论坛系统,其中包含了mysql数据库的脚本,还有页面的html文件,jsp文件,java源码可通过反编译获取,适合java新手进行模仿学习!
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4107 2009-05-25 20:36 editor_fulledit.css
文件 21974 2009-05-25 20:38 editor_fulleditor.jsp
文件 24293 2009-04-01 12:08 editor_fulleditor.js_old
文件 12484 2009-04-01 12:08 editor_fulleditor_js.jsp
文件 24687 2009-04-01 12:08 editor_fulleditor_js2.jsp
文件 66 2009-04-01 12:06 editor_fullimagesaleft.gif
文件 66 2009-04-01 12:06 editor_fullimagesaright.gif
文件 82 2009-04-01 12:06 editor_fullimagesold.gif
文件 131 2009-04-01 12:06 editor_fullimagesullist.gif
文件 66 2009-04-01 12:06 editor_fullimagescenter.gif
文件 138 2009-04-01 12:06 editor_fullimagescleancode.gif
文件 343 2009-04-01 12:06 editor_fullimagescode.gif
文件 364 2009-04-01 12:06 editor_fullimagescopy.gif
文件 336 2009-04-01 12:06 editor_fullimagescut.gif
文件 111 2009-04-01 12:06 editor_fullimagesdeletecolumn.gif
文件 113 2009-04-01 12:06 editor_fullimagesdeleterow.gif
文件 12954 2009-04-01 12:06 editor_fullimagesemot.htm
文件 13262 2009-04-01 12:06 editor_fullimagesemot.jsp
文件 1703 2009-04-01 12:07 editor_fullimagesemot_files1(1).gif
文件 901 2009-04-01 12:07 editor_fullimagesemot_files1.gif
文件 1689 2009-04-01 12:07 editor_fullimagesemot_files10(1).gif
文件 1114 2009-04-01 12:07 editor_fullimagesemot_files10.gif
文件 1740 2009-04-01 12:07 editor_fullimagesemot_files11(1).gif
文件 683 2009-04-01 12:07 editor_fullimagesemot_files11.gif
文件 2221 2009-04-01 12:07 editor_fullimagesemot_files12(1).gif
文件 1146 2009-04-01 12:07 editor_fullimagesemot_files12.gif
文件 1694 2009-04-01 12:07 editor_fullimagesemot_files13(1).gif
文件 1154 2009-04-01 12:07 editor_fullimagesemot_files13.gif
文件 1696 2009-04-01 12:07 editor_fullimagesemot_files14(1).gif
文件 1247 2009-04-01 12:07 editor_fullimagesemot_files14.gif
............此处省略6834个文件信息
“““
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4107 2009-05-25 20:36 editor_fulledit.css
文件 21974 2009-05-25 20:38 editor_fulleditor.jsp
文件 24293 2009-04-01 12:08 editor_fulleditor.js_old
文件 12484 2009-04-01 12:08 editor_fulleditor_js.jsp
文件 24687 2009-04-01 12:08 editor_fulleditor_js2.jsp
文件 66 2009-04-01 12:06 editor_fullimagesaleft.gif
文件 66 2009-04-01 12:06 editor_fullimagesaright.gif
文件 82 2009-04-01 12:06 editor_fullimagesold.gif
文件 131 2009-04-01 12:06 editor_fullimagesullist.gif
文件 66 2009-04-01 12:06 editor_fullimagescenter.gif
文件 138 2009-04-01 12:06 editor_fullimagescleancode.gif
文件 343 2009-04-01 12:06 editor_fullimagescode.gif
文件 364 2009-04-01 12:06 editor_fullimagescopy.gif
文件 336 2009-04-01 12:06 editor_fullimagescut.gif
文件 111 2009-04-01 12:06 editor_fullimagesdeletecolumn.gif
文件 113 2009-04-01 12:06 editor_fullimagesdeleterow.gif
文件 12954 2009-04-01 12:06 editor_fullimagesemot.htm
文件 13262 2009-04-01 12:06 editor_fullimagesemot.jsp
文件 1703 2009-04-01 12:07 editor_fullimagesemot_files1(1).gif
文件 901 2009-04-01 12:07 editor_fullimagesemot_files1.gif
文件 1689 2009-04-01 12:07 editor_fullimagesemot_files10(1).gif
文件 1114 2009-04-01 12:07 editor_fullimagesemot_files10.gif
文件 1740 2009-04-01 12:07 editor_fullimagesemot_files11(1).gif
文件 683 2009-04-01 12:07 editor_fullimagesemot_files11.gif
文件 2221 2009-04-01 12:07 editor_fullimagesemot_files12(1).gif
文件 1146 2009-04-01 12:07 editor_fullimagesemot_files12.gif
文件 1694 2009-04-01 12:07 editor_fullimagesemot_files13(1).gif
文件 1154 2009-04-01 12:07 editor_fullimagesemot_files13.gif
文件 1696 2009-04-01 12:07 editor_fullimagesemot_files14(1).gif
文件 1247 2009-04-01 12:07 editor_fullimagesemot_files14.gif
............此处省略6834个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)