温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:科信客户关系管理系统源码
当前文件:
KeXinCrm/fckeditor/editor/dialog/fck_button.html[3K,2009-6-12 11:46:27],打开代码结构图
KeXinCrm/fckeditor/editor/dialog/fck_button.html[3K,2009-6-12 11:46:27],打开代码结构图1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 2
<!-- 3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net 4
* Copyright (C) 2003-2007 Frederico Caldeira Knabben 5
* 6
* == BEGIN LICENSE == 7
* 8
* Licensed under the terms of any of the following licenses at your 9
* choice: 10
* 11
* - GNU General Public License Version 2 or later (the "GPL") 12
* http://www.gnu.org/licenses/gpl.html 13
* 14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15
* http://www.gnu.org/licenses/lgpl.html 16
* 17
* - Mozilla Public License Version 1.1 or later (the "MPL") 18
* http://www.mozilla.org/MPL/MPL-1.1.html 19
* 20
* == END LICENSE == 21
* 22
* File Name: fck_button.html 23
* Button dialog window. 24
* 25
* File Authors: 26
* Frederico Caldeira Knabben (www.fckeditor.net) 27
--> 28
<html xmlns="http://www.w3.org/1999/xhtml"> 29
<head> 30
<title>Button Properties</title> 31
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 32
<meta content="noindex, nofollow" name="robots" /> 33
<script src="common/fck_dialog_common.js" type="text/javascript"></script> 34
<script type="text/javascript"> 35
36
var oEditor = window.parent.InnerDialogLoaded() ; 37
38
// Gets the document DOM 39
var oDOM = oEditor.FCK.EditorDocument ; 40
41
var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ; 42
43
window.onload = function() 44
{ 45
// First of all, translate the dialog box texts 46
oEditor.FCKLanguageManager.TranslatePage(document) ; 47
48
if ( oActiveEl && oActiveEl.tagName.toUpperCase() == "INPUT" && ( oActiveEl.type == "button" || oActiveEl.type == "submit" || oActiveEl.type == "reset" ) ) 49
{ 50
GetE('txtName').value = oActiveEl.name ; 51
GetE('txtValue').value = oActiveEl.value ; 52
GetE('txtType').value = oActiveEl.type ; 53
54
GetE('txtType').disabled = true ; 55
} 56
else 57
oActiveEl = null ; 58
59
window.parent.SetOkButton( true ) ; 60
} 61
62
function Ok() 63
{ 64
if ( !oActiveEl ) 65
{ 66
oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 67
oActiveEl.type = GetE('txtType').value ; 68
oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; 69
} 70
71
oActiveEl.name = GetE('txtName').value ; 72
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 73
74
return true ; 75
} 76
77
</script> 78
</head> 79
<body style="overflow: hidden"> 80
<table width="100%" style="height: 100%"> 81
<tr> 82
<td align="center"> 83
<table border="0" cellpadding="0" cellspacing="0" width="80%"> 84
<tr> 85
<td colspan=""> 86
<span fcklang="DlgCheckboxName">Name</span><br /> 87
<input type="text" size="20" id="txtName" style="width: 100%" /> 88
</td> 89
</tr> 90
<tr> 91
<td> 92
<span fcklang="DlgButtonText">Text (Value)</span><br /> 93
<input type="text" id="txtValue" style="width: 100%" /> 94
</td> 95
</tr> 96
<tr> 97
<td> 98
<span fcklang="DlgButtonType">Type</span><br /> 99
<select id="txtType"> 100
<option fcklang="DlgButtonTypeBtn" value="button" selected="selected">Button</option> 101
<option fcklang="DlgButtonTypeSbm" value="submit">Submit</option> 102
<option fcklang="DlgButtonTypeRst" value="reset">Reset</option> 103
</select> 104
</td> 105
</tr> 106
</table> 107
</td> 108
</tr> 109
</table> 110
</body> 111
</html> 112






}
