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 content="noindex, nofollow" name="robots">
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
			}
42

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

    
61
			} 
62
			var oldid = 'LoginBox';
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
			
78
	<body scroll="yes" >
79
		 <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> 
80
		 	<tr> 
81
				<td>
82
					<table width="100%">
83
						<tr> 
84
							<td colspan="2"><span fckLang="WBDropletslblPageSelection">Select a Droplet to insert on page:</span>&nbsp;</td>
85
						</tr>
86
						<tr>
87
							<td colspan="2">
88
								<select id="cmbPages" style="WIDTH: 100%" size="10" name="cmbPages"  onchange="javascript:showdetail(this);" >
89
									<!-- BEGIN page_list_block -->
90
									<option value="{TITLE}"{SELECTED}>{TITLE}</option>
91
									<!-- END page_list_block -->
92
								</select>
93
							</td>
94
						</tr>
95
					</table>
96
					{LIST}
97
				</td>
98
			</tr>
99
		</table>
100
		
101
	</body>
102
</html> 
103
<!-- END main_block -->
(7-7/8)