<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* 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 ==
*
* Link dialog window.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="noindex, nofollow" name="robots" />
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
<script type="text/javascript">
var oEditor = window.parent.InnerDialogLoaded() ;
var FCK = oEditor.FCK ;
var FCKLang = oEditor.FCKLang ;
var FCKConfig = oEditor.FCKConfig ;
//#### Dialog Tabs
// Set the dialog tabs.
window.parent.AddTab( 'General' , FCKLang.DlgDocGeneralTab ) ;
window.parent.AddTab( 'Background' , FCKLang.DlgDocBackTab ) ;
window.parent.AddTab( 'Colors' , FCKLang.DlgDocColorsTab ) ;
window.parent.AddTab( 'Meta' , FCKLang.DlgDocMetaTab ) ;
// Function called when a dialog tag is selected.
function OnDialogTabChange( tabCode )
{
ShowE( 'divGeneral' , ( tabCode == 'General' ) ) ;
ShowE( 'divBackground' , ( tabCode == 'Background' ) ) ;
ShowE( 'divColors' , ( tabCode == 'Colors' ) ) ;
ShowE( 'divMeta' , ( tabCode == 'Meta' ) ) ;
ShowE( 'ePreview' , ( tabCode == 'Background' || tabCode == 'Colors' ) ) ;
}
//#### Get Base elements from the document: BEGIN
// The HTML element of the document.
var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
// The HEAD element of the document.
var oHead = oHTML.getElementsByTagName('head')[0] ;
var oBody = FCK.EditorDocument.body ;
// This object contains all META tags defined in the document.
var oMetaTags = new Object() ;
// Get all META tags defined in the document.
AppendMetaCollection( oMetaTags, oHead.getElementsByTagName('meta') ) ;
AppendMetaCollection( oMetaTags, oHead.getElementsByTagName('fck:meta') ) ;
function AppendMetaCollection( targetObject, metaCollection )
{
// Loop throw all METAs and put it in the HashTable.
for ( var i = 0 ; i < metaCollection.length ; i++ )
{
// Try to get the "name" attribute.
var sName = GetAttribute( metaCollection[i], 'name', GetAttribute( metaCollection[i], '___fcktoreplace:name', '' ) ) ;
// If no "name", try with the "http-equiv" attribute.
if ( sName.length == 0 )
{
if ( oEditor.FCKBrowserInfo.IsIE )
{
// Get the http-equiv value from the outerHTML.
var oHttpEquivMatch = metaCollection[i].outerHTML.match( oEditor.FCKRegexLib.MetaHttpEquiv ) ;
if ( oHttpEquivMatch )
sName = oHttpEquivMatch[1] ;
}
else
sName = GetAttribute( metaCollection[i], 'http-equiv', '' ) ;
}
if ( sName.length > 0 )
targetObject[ sName.toLowerCase() ] = metaCollection[i] ;
}
}
//#### END
// Set a META tag in the document.
function SetMetadata( name, content, isHttp )
{
if ( content.length == 0 )
{
RemoveMetadata( name ) ;
return ;
}
var oMeta = oMetaTags[ name.toLowerCase() ] ;
if ( !oMeta )
{
oMeta = oHead.appendChild( FCK.EditorDocument.createElement('META') ) ;
if ( isHttp )
SetAttribute( oMeta, 'http-equiv', name ) ;
else
{
// On IE, it is not possible to set the "name" attribute of the META tag.
// So a temporary attribute is used and it is replaced when getting the
// editor's HTML/XHTML value. This is sad, I know :(
if ( oEditor.FCKBrowserInfo.IsIE )
SetAttribute( oMeta, '___fcktoreplace:name', name ) ;
else
SetAttribute( oMeta, 'name', name ) ;
}
oMetaTags[ name.toLowerCase() ] = oMeta ;
}
SetAttribute( oMeta, 'content', content ) ;
// oMeta.content = content ;
}
function RemoveMetadata( name )
{
var oMeta = oMetaTags[ name.toLowerCase() ] ;
if ( oMeta && oMeta != null )
{
oMeta.parentNode.removeChild( oMeta ) ;
oMetaTags[ name.toLowerCase() ] = null ;
}
}
function GetMetadata( name )
{
var oMeta = oMetaTags[ name.toLowerCase() ] ;
if ( oMeta && oMeta != null )
return oMeta.getAttribute( 'content', 2 ) ;
else
return '' ;
}
window.onload = function ()
{
// Show/Hide the "Browse Server" button.
GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? "" : "none";
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage( document ) ;
FillFields() ;
UpdatePreview() ;
// Show the "Ok" button.
window.parent.SetOkButton( true ) ;
window.parent.SetAutoSize( true ) ;
}
function FillFields()
{
// ### General Info
GetE('txtPageTitle').value = FCK.EditorDocument.title ;
GetE('selDirection').value = GetAttribute( oHTML, 'dir', '' ) ;
GetE('txtLang').value = GetAttribute( oHTML, 'xml:lang', GetAttribute( oHTML, 'lang', '' ) ) ; // "xml:lang" takes precedence to "lang".
// Character Set Encoding.
// if ( oEditor.FCKBrowserInfo.IsIE )
// var sCharSet = FCK.EditorDocument.charset ;
// else
var sCharSet = GetMetadata( 'Content-Type' ) ;
if ( sCharSet != null && sCharSet.length > 0 )
{
// if ( !oEditor.FCKBrowserInfo.IsIE )
sCharSet = sCharSet.match( /[^=]*$/ ) ;
GetE('selCharSet').value = sCharSet ;
if ( GetE('selCharSet').selectedIndex == -1 )
{
GetE('selCharSet').value = '...' ;
GetE('txtCustomCharSet').value = sCharSet ;
CheckOther( GetE('selCharSet'), 'txtCustomCharSet' ) ;
}
}
// Document Type.
if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
{
GetE('selDocType').value = FCK.DocTypeDeclaration ;
if ( GetE('selDocType').selectedIndex == -1 )
{
GetE('selDocType').value = '...' ;
GetE('txtDocType').value = FCK.DocTypeDeclaration ;
CheckOther( GetE('selDocType'), 'txtDocType' ) ;
}
}
// Document Type.
GetE('chkIncXHTMLDecl').checked = ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 ) ;
// ### Background
GetE('txtBackColor').value = GetAttribute( oBody, 'bgColor' , '' ) ;
GetE('txtBackImage').value = GetAttribute( oBody, 'background' , '' ) ;
GetE('chkBackNoScroll').checked = ( GetAttribute( oBody, 'bgProperties', '' ).toLowerCase() == 'fixed' ) ;
// ### Colors
GetE('txtColorText').value = GetAttribute( oBody, 'text' , '' ) ;
GetE('txtColorLink').value = GetAttribute( oBody, 'link' , '' ) ;
GetE('txtColorVisited').value = GetAttribute( oBody, 'vLink' , '' ) ;
GetE('txtColorActive').value = GetAttribute( oBody, 'aLink' , '' ) ;
// ### Margins
GetE('txtMarginTop').value = GetAttribute( oBody, 'topMargin' , '' ) ;
GetE('txtMarginLeft').value = GetAttribute( oBody, 'leftMargin' , '' ) ;
GetE('txtMarginRight').value = GetAttribute( oBody, 'rightMargin' , '' ) ;
GetE('txtMarginBottom').value = GetAttribute( oBody, 'bottomMargin' , '' ) ;
// ### Meta Data
GetE('txtMetaKeywords').value = GetMetadata( 'keywords' ) ;
GetE('txtMetaDescription').value = GetMetadata( 'description' ) ;
GetE('txtMetaAuthor').value = GetMetadata( 'author' ) ;
GetE('txtMetaCopyright').value = GetMetadata( 'copyright' ) ;
}
// Called when the "Ok" button is clicked.
function Ok()
{
// ### General Info
FCK.EditorDocument.title = GetE('txtPageTitle').value ;
var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
SetAttribute( oHTML, 'dir' , GetE('selDirection').value ) ;
SetAttribute( oHTML, 'lang' , GetE('txtLang').value ) ;
SetAttribute( oHTML, 'xml:lang' , GetE(
没有合适的资源?快使用搜索试试~ 我知道了~
we7 CMS 源代码
共2000个文件
cs:1370个
gif:890个
js:551个
4星 · 超过85%的资源 需积分: 13 136 下载量 16 浏览量
2013-04-22
09:25:10
上传
评论
收藏 13.12MB ZIP 举报
温馨提示
we7 CMS 源代码,最新源代码。asp.net cms 最新源代码,可以下载,可学习 。
资源推荐
资源详情
资源评论
收起资源包目录
we7 CMS 源代码 (2000个子文件)
Global.asax 92B
ArticleListControl.ascx 19KB
ModelControl.ascx 19KB
Advice_config.ascx 16KB
Article_option.ascx 16KB
ListUIPanel.ascx 15KB
Article_thumbnail.ascx 14KB
Account_Basic.ascx 12KB
Article_image.ascx 11KB
AdviceListControl.ascx 10KB
Plugin_MyPlugins.ascx 10KB
Plugin_Registed.ascx 9KB
Advice_authorize.ascx 8KB
RetrievePassword.Common.ascx 8KB
CommentsList.Common.ascx 8KB
config.ascx 8KB
System_image.ascx 8KB
Panel_Edit.ascx 7KB
AdviceReplyEmailControl.ascx 7KB
Channel_authorize.ascx 7KB
config.ascx 7KB
Channel_basic.ascx 7KB
UserRegister.Simple.ascx 6KB
UserNav.Vertical.ascx 6KB
Plugin_List.ascx 6KB
AdviceListControlEx.ascx 6KB
AdviceSendEmailControl.ascx 6KB
ArticleView.Default.ascx 6KB
Panel_List.ascx 6KB
Channel_option.ascx 5KB
config.ascx 5KB
Channel_template.ascx 5KB
AdviceReplyStatisticsControl.ascx 5KB
Command.ascx 5KB
Account_Basic.ascx 5KB
Header.LogoQueryQuick.ascx 5KB
Plugin_ShopList.ascx 5KB
TemplateGroup_File.ascx 5KB
Login.Default.ascx 4KB
Role_Basic.ascx 4KB
wid_Product.ascx 4KB
TemplateGroup_Info.ascx 4KB
MultiUploadify.ascx 4KB
wid_Shop.ascx 4KB
Role_Accounts.ascx 4KB
Account_Roles.ascx 4KB
Login.rpf.ascx 4KB
Plugin_Start.ascx 4KB
Search.Bar.ascx 3KB
MultiCommand.ascx 3KB
Advice_option.ascx 3KB
UserNav.Horizontal.ascx 3KB
UserNav.VerticalNew.ascx 3KB
UserMenu.flat3.ascx 3KB
Account_Points.ascx 3KB
ChannelMenu.DropDown.ascx 3KB
Advice_File.ascx 3KB
Article_relates.ascx 3KB
RelationSelectEx.ascx 3KB
Search.SearchUI.ascx 3KB
wid_guide.ascx 3KB
Permission_Func.ascx 3KB
StrategySet.ascx 3KB
Login.Common.ascx 3KB
Article_tag.ascx 3KB
Channel_tag.ascx 2KB
NewsTab.Default.ascx 2KB
List.ascx 2KB
Article_file.ascx 2KB
PhotoUpload.ascx 2KB
Account_Password.ascx 2KB
LatestNews.LatestTopPicture.ascx 2KB
SiteProfile.ascx 2KB
ArticleSingle.Default.ascx 2KB
Condition.ascx 2KB
Thumbnail.ascx 2KB
ProcessHistoryList.ascx 2KB
ArticleList.2ColumnWidthImage.ascx 2KB
ChildrenTable.ascx 2KB
AdviceHistory.ascx 2KB
ChildrenTableHorizontal.ascx 2KB
UxLayoutEditor.ascx 2KB
Editor.ascx 2KB
Article_wap.ascx 2KB
Attachment.ascx 2KB
ChannelMenu.TopMenu.ascx 2KB
UxLayoutViewer.ascx 2KB
ListPanel.ascx 2KB
SimpleCommand.ascx 1KB
TagList.Hot.ascx 1KB
UserMenu.popdown.ascx 1KB
SelectInput.ascx 1KB
Login.Ex.ascx 1KB
Viewer.ascx 1KB
wid_myprocess.ascx 1KB
UserMenu.flat2.ascx 1KB
LinkList.Default.ascx 1KB
wid_myarticle.ascx 1KB
NewsTab.Speeches.ascx 1KB
Attachment.ascx 1KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
老程序员老马
- 粉丝: 1
- 资源: 27
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页