温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:科信客户关系管理系统源码
当前文件:
KeXinCrm/fckeditor/editor/dialog/fck_checkbox.html[3K,2009-6-12 11:46:27],打开代码结构图
KeXinCrm/fckeditor/editor/dialog/fck_checkbox.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_checkbox.html 23
* Checkbox dialog window. 24
* 25
* File Authors: 26
* Frederico Caldeira Knabben (www.fckeditor.net) 27
--> 28
<html> 29
<head> 30
<title>Checkbox 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 == 'INPUT' && oActiveEl.type == 'checkbox' ) 49
{ 50
GetE('txtName').value = oActiveEl.name ; 51
GetE('txtValue').value = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ; 52
GetE('txtSelected').checked = oActiveEl.checked ; 53
} 54
else 55
oActiveEl = null ; 56
57
window.parent.SetOkButton( true ) ; 58
} 59
60
function Ok() 61
{ 62
if ( !oActiveEl ) 63
{ 64
oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 65
oActiveEl.type = 'checkbox' ; 66
oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; 67
} 68
69
if ( GetE('txtName').value.length > 0 ) 70
oActiveEl.name = GetE('txtName').value ; 71
72
if ( oEditor.FCKBrowserInfo.IsIE ) 73
oActiveEl.value = GetE('txtValue').value ; 74
else 75
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 76
77
var bIsChecked = GetE('txtSelected').checked ; 78
SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ; // For Firefox 79
oActiveEl.checked = bIsChecked ; 80
81
return true ; 82
} 83
84
</script> 85
</head> 86
<body style="OVERFLOW: hidden" scroll="no"> 87
<table height="100%" width="100%"> 88
<tr> 89
<td align="center"> 90
<table border="0" cellpadding="0" cellspacing="0" width="80%"> 91
<tr> 92
<td> 93
<span fckLang="DlgCheckboxName">Name</span><br> 94
<input type="text" size="20" id="txtName" style="WIDTH: 100%"> 95
</td> 96
</tr> 97
<tr> 98
<td> 99
<span fckLang="DlgCheckboxValue">Value</span><br> 100
<input type="text" size="20" id="txtValue" style="WIDTH: 100%"> 101
</td> 102
</tr> 103
<tr> 104
<td><input type="checkbox" id="txtSelected"><label for="txtSelected" fckLang="DlgCheckboxSelected">Checked</label></td> 105
</tr> 106
</table> 107
</td> 108
</tr> 109
</table> 110
</body> 111
</html> 112






}
