资源简介
该汽车在线销售管理系统,采用了JSP技术开发,实现了汽车在线的销售管理功能。
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2008 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 22551040 2011-12-02 07:48 luxiang.avi
----------- --------- ---------- ----- ----
22551040 1
相关资源
- JSP+SQL汽车网上销售系统--毕业设计
- 毕业设计---048JSP汽车销售信息网站
- JSP+MYSQL汽车销售系统 源代码 论文
- 汽车销售管理系统mvc
- JSP+MYSQL二手汽车销售系统
- JSP+SQL汽车网上销售系统(毕业设计)
- javaWeb汽车销售系统
- JAVA JSP+MYSQL二手汽车销售系统
- 基于servlet+jsp的汽车销售管理系统
- 319JSP汽车销售管理系统.rar
- 汽车销售系统数据库课程设计
- 汽车销售系统java应用程序+SQL2000数据
- 汽车销售系统
- 基于javase汽车销售管理系统含数据库
- 基于java汽车销售系统
- 暑期实训demo一个汽车销售javaWeb应用
- 用jsp实现的web项目:汽车销售网
- 汽车销售管理系统java web源代码
- Eclipsejsp+MySQL 汽车销售信息管理系统
- 汽车销售管理系统 java
- Java 简单的汽车销售商场
- Java华奥汽车销售集团网源码(含数据
评论
共有 条评论