Project

General

Profile

1
<!-- BEGIN main_block -->
2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3
<html>
4
	<head>
5
		<title>WB Link - Insert Website Baker Droplet</title>
6
		<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
7
		<meta name="robots" content="noindex, nofollow" />
8
		<script type="text/javascript" src="fckwbdroplets.js"></script>
9
		<script type="text/javascript">
10
		<!--
11
			var oEditor			= window.parent.InnerDialogLoaded(); 
12
			var FCK				= oEditor.FCK; 
13
			var FCKLang			= oEditor.FCKLang ;
14
			var FCKConfig		= oEditor.FCKConfig ;
15
			//var FCKCMSCCMSModules	= oEditor.FCKCMSModules; 
16
			 
17
			// oLink: The actual selected link in the editor.
18
			var oLink = FCK.Selection.MoveToAncestorNode( 'A' ) ;
19
			if ( oLink )
20
				FCK.Selection.SelectNode( oLink ) ;
21
	
22
			window.onload = function ()	{ 
23
				// First of all, translates the dialog box texts.
24
				oEditor.FCKLanguageManager.TranslatePage(document);
25
				
26
				window.parent.SetOkButton( true );		//Show the "Ok" button. 
27
				
28
			} 
29
			 
30
			//If an anchor (A) object is currently selected, load the properties into the dialog 
31
			function LoadSelected()	{
32
				var sSelected;
33
				
34
				if ( oEditor.FCKBrowserInfo.IsGecko ) {
35
					sSelected = FCK.EditorWindow.getSelection();
36
				} else {
37
					sSelected = FCK.EditorDocument.selection.createRange().text;
38
				}
39
			}
40

    
41
			//Code that runs after the OK button is clicked 
42
			function Ok() {
43
				//Validate is option is selected
44
				var oDropletList = document.getElementById( 'cmbDroplets' ) ;
45
				if(oDropletList.selectedIndex == -1) {
46
					alert( FCKLang.WBDropletsErrPageSelect );
47
					return false;
48
				}
49
				
50
				var oTagLink = document.getElementById( 'chkTaglink' );
51
				
52
				var sDropletStr = oDropletList[oDropletList.selectedIndex].value;
53
				FCK.InsertHtml("[[" + sDropletStr + "]]");
54
				// the following line was commented out as it creates an error message in some browser (e.g. IE)
55
				// even Firefox seems not to make use of the title so we remove this option for know (doc)
56
				// SetAttribute( oLink, 'title', document.getElementById( 'txtTitle' ).value ) ;
57
			return true;
58

    
59
			}
60
			
61
			var oldid = 'LoginBox';
62
			
63
			function showdetail(obj) {
64
				var olditem = document.getElementById(oldid);
65
				var newitem = document.getElementById(obj.value);
66
				olditem.className='hidden';
67
				newitem.className='unhidden';
68
				oldid = obj.value;
69
			}
70
		//-->
71
		</script>
72
		<style>
73
			.hidden { display: none; }
74
			.unhidden { display: block; }
75
		</style>
76
	</head>
77
	<body scroll="yes" >
78
		<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> 
79
			<tr> 
80
				<td>
81
					<table width="100%">
82
						<tr> 
83
							<td colspan="2"><span fckLang="WBDropletslblPageSelection">Select a Droplet to insert on page:</span>&nbsp;</td>
84
						</tr>
85
						<tr>
86
							<td colspan="2">
87
								<select id="cmbDroplets" style="WIDTH: 100%" size="10" name="cmbDroplets"  onchange="javascript:showdetail(this);" >
88
									<!-- BEGIN droplets_list_block -->
89
									<option value="{TITLE}"{SELECTED}>{TITLE}</option>
90
									<!-- END droplets_list_block -->
91
								</select>
92
							</td>
93
						</tr>
94
					</table>
95
					{LIST}
96
				</td>
97
			</tr>
98
		</table>		
99
	</body>
100
</html> 
101
<!-- END main_block -->
(7-7/7)