• 大小: 15.65MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: 其他
  • 标签:

资源简介

安乐居房产网站源码正式版 二手房源码 房产中介公司网站源码模板

资源截图

代码片段和文件信息

“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 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 += “yle=\“width: %s; height: %s;\“ wrap=\“virtual\“>%s“ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue

return Html

def IsCom

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1556  2010-12-10 23:18  房产网站源码\房产网站源码\.htaccess

     文件        134  2011-02-27 03:20  房产网站源码\房产网站源码\about\copyright.php

     文件        127  2011-02-27 03:16  房产网站源码\房产网站源码\about\hr.php

     文件        130  2011-02-27 03:17  房产网站源码\房产网站源码\about\index.php

     文件       1194  2011-02-27 02:59  房产网站源码\房产网站源码\about\path.inc.php

     文件        130  2011-02-27 03:22  房产网站源码\房产网站源码\about\state.php

     文件        131  2011-02-27 03:17  房产网站源码\房产网站源码\about\treaty.php

     文件      22594  2011-02-25 22:42  房产网站源码\房产网站源码\ad\0110.jpg

     文件      57385  2011-02-25 22:42  房产网站源码\房产网站源码\ad\0225.jpg

     文件      51059  2011-02-25 22:42  房产网站源码\房产网站源码\ad\1227.jpg

     文件      46971  2011-02-25 22:42  房产网站源码\房产网站源码\ad\280x80_16845435.jpg

     文件      64147  2011-02-25 22:42  房产网站源码\房产网站源码\ad\680X80.jpg

     文件      61665  2011-02-25 22:42  房产网站源码\房产网站源码\ad\99080.gif

     文件      13248  2011-02-25 22:42  房产网站源码\房产网站源码\ad\rzbanner.jpg

    ..A.SH.     21504  2011-03-03 01:12  房产网站源码\房产网站源码\ad\Thumbs.db

     文件       2479  2011-01-04 10:39  房产网站源码\房产网站源码\admin\advertise\ads.php

     文件       1460  2011-01-04 10:34  房产网站源码\房产网站源码\admin\advertise\index.php

     文件        217  2010-03-15 14:27  房产网站源码\房产网站源码\admin\advertise\path.inc.php

     文件        379  2011-01-21 23:57  房产网站源码\房产网站源码\admin\areas.php

     文件        803  2010-03-15 14:27  房产网站源码\房产网站源码\admin\borough\ajax.php

     文件       5081  2011-01-06 14:54  房产网站源码\房产网站源码\admin\borough\check.php

     文件       2514  2011-01-29 15:07  房产网站源码\房产网站源码\admin\borough\images\biaozhu.gif

     文件       2507  2011-01-29 15:11  房产网站源码\房产网站源码\admin\borough\images\modify_note.gif

     文件       6665  2011-01-22 02:03  房产网站源码\房产网站源码\admin\borough\index.php

     文件        240  2010-03-15 14:27  房产网站源码\房产网站源码\admin\borough\path.inc.php

     文件       2433  2010-03-15 14:27  房产网站源码\房产网站源码\admin\crontab\boroughAvg.php

     文件        766  2010-03-15 14:27  房产网站源码\房产网站源码\admin\crontab\boroughCombine.php

     文件        738  2010-03-15 14:27  房产网站源码\房产网站源码\admin\crontab\boroughHouseNum.php

     文件        583  2010-03-15 14:27  房产网站源码\房产网站源码\admin\crontab\boroughPicNum.php

     文件       1297  2010-03-15 14:27  房产网站源码\房产网站源码\admin\crontab\brokerA+.php

............此处省略4089个文件信息

评论

共有 条评论

相关资源