web/drupal/modules/fckeditor/plugins/linktonode/fck_linktonode.html
branchdrupal
changeset 74 0ff3ba646492
equal deleted inserted replaced
73:fcf75e232c5b 74:0ff3ba646492
       
     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  * Link dialog window.
       
    23 -->
       
    24 <html>
       
    25 	<head>
       
    26 		<title>Link Properties</title>
       
    27 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
    28 		<meta name="robots" content="noindex, nofollow" />
       
    29 	<script type="text/javascript">
       
    30 	var oEditor		= window.parent.InnerDialogLoaded() ;
       
    31 	var FCK			= oEditor.FCK ;
       
    32 	var FCKLang		= oEditor.FCKLang ;
       
    33 	var FCKConfig	= oEditor.FCKConfig ;
       
    34 	var FCKRegexLib	= oEditor.FCKRegexLib ;
       
    35 	var FCKTools	= oEditor.FCKTools ;
       
    36 
       
    37 	// this is a hack to get rid of errors coming from references to tinyMCE in 
       
    38 	// original functions.js tahen from linktonode
       
    39 	tinyMCE = new Object();
       
    40 	var baseUrl = FCKConfig.BasePath;
       
    41 	
       
    42 	document.write( '<script src="' + FCKConfig.BasePath + 'dialog/common/fck_dialog_common.js" type="text/javascript"><\/script>' ) ;
       
    43 
       
    44 	//<!-- linktonode START -->
       
    45 	//source: popup.php
       
    46 	function appendScripts() {
       
    47 		var jquery = document.createElement("script");
       
    48 		var functions = document.createElement("script");
       
    49 		var url = FCKConfig.BasePath.substring(0, FCKConfig.BasePath.indexOf('modules/'));
       
    50 		if (url.indexOf('sites/') > -1) {
       
    51 			url = url.substring(0, url.indexOf('sites/'));
       
    52 		}
       
    53 		jquery.type = functions.type = "text/javascript";
       
    54 		jquery.src = url + "misc/jquery.js";
       
    55 		functions.src = "jscripts/functions.js";
       
    56 		document.getElementsByTagName("head")[0].appendChild(jquery);
       
    57 		document.getElementsByTagName("head")[0].appendChild(functions);
       
    58 	}
       
    59 	appendScripts();
       
    60 	//<!-- linktonode END -->
       
    61 	</script>
       
    62 	
       
    63 	<!--
       
    64 	The original fck_link.js taken from FCKeditor
       
    65 	Injected code is between tags: 
       
    66 	!-- linktonode START -- 
       
    67 	and 
       
    68 	!-- linktonode END --
       
    69 	-->
       
    70 	<script src="jscripts/fck_link.js" type="text/javascript"></script>
       
    71 	<script src="jscripts/utils.js" type="text/javascript"></script>
       
    72 	
       
    73 	<!-- linktonode START -->
       
    74     <link rel="stylesheet" href="css/linktocontent.css" type="text/css" />
       
    75 	<!-- linktonode END -->
       
    76 	
       
    77 	</head>
       
    78 	<body scroll="no" style="OVERFLOW: hidden">
       
    79 		<div id="divInfo">
       
    80 			<div id="divLinkTypeUrl">
       
    81 				<table cellspacing="0" cellpadding="0" width="100%" border="0" dir="ltr">
       
    82 					<tr>
       
    83 						<td nowrap="nowrap" id="drupalLnkType" style="display:none">
       
    84 							<span fckLang="DlgLnkType">Link Type</span><br />
       
    85 							<input type="hidden" id="cmbLinkProtocol" value=""/>
       
    86 							<input type="hidden" id="cmbLinkType" value=""/>
       
    87 							<select id="cmbDrupalProtocol" onchange="SaveDrupalUrls();">
       
    88 								<option value="path" selected="selected" fckLang="DlgDrupalPath">path</option>
       
    89 								<option value="internal" fckLang="DlgDrupalInternal">internal</option>
       
    90 							</select>
       
    91 						</td>
       
    92 						<td nowrap="nowrap">&nbsp;</td>
       
    93 						<td nowrap="nowrap" width="100%">
       
    94 							<span fckLang="DlgLnkURL">URL</span><br />
       
    95 							<input id="txtUrl" style="WIDTH: 100%" type="text" onkeyup="OnUrlChange();" onchange="OnUrlChange();" />
       
    96 							<input id="txtUrlPath" type="hidden" />
       
    97 							<input id="txtUrlInternal" type="hidden" />
       
    98 						</td>
       
    99 					</tr>
       
   100 				</table>
       
   101 				<br />
       
   102 			</div>
       
   103 <!-- linktonode START -->
       
   104    <div class="panel_wrap">
       
   105     <div id="browse_panel" class="panel current">
       
   106      <form id="form_browse" action="#" onsubmit="return false;">
       
   107       <span fckLang="DlgBrowseDocs">browse documents</span>
       
   108      </form>
       
   109     </div>
       
   110    </div>
       
   111 
       
   112     <!-- node list -->
       
   113     <div class="panel_wrap" id="list">
       
   114      <div class="nodes">
       
   115       <div id="nodelist" class="scrollable accessible">
       
   116        <table cellspacing="0" summary="nodelist" width="100%">
       
   117         <thead>
       
   118          <tr>
       
   119           <th><span fckLang="DlgNodeTitle">Node title</span></th>
       
   120           <th><span fckLang="DlgNodeCreated">Created</span></th>
       
   121           <th><span fckLang="DlgNodeAuthor">Author</span></th>
       
   122          </tr>
       
   123         </thead>
       
   124         <tbody>
       
   125         </tbody>
       
   126        </table>
       
   127       </div>
       
   128      </div>
       
   129     </div>
       
   130 <!-- linktonode END -->
       
   131 				
       
   132 				<!-- linktonode START -->
       
   133 				<div id="statusImg"><img alt="loading" src="images/loading.gif" /><span fckLang="DlgLoading">loading...</span></div>
       
   134 				<!-- linktonode END -->
       
   135 			
       
   136 			<div id="divLinkTypeAnchor" style="DISPLAY: none" align="center">
       
   137 				<div id="divSelAnchor" style="DISPLAY: none">
       
   138 					<table cellspacing="0" cellpadding="0" border="0" width="70%">
       
   139 						<tr>
       
   140 							<td colspan="3">
       
   141 								<span fckLang="DlgLnkAnchorSel">Select an Anchor</span>
       
   142 							</td>
       
   143 						</tr>
       
   144 						<tr>
       
   145 							<td width="50%">
       
   146 								<span fckLang="DlgLnkAnchorByName">By Anchor Name</span><br />
       
   147 								<select id="cmbAnchorName" onchange="GetE('cmbAnchorId').value='';" style="WIDTH: 100%">
       
   148 									<option value="" selected="selected"></option>
       
   149 								</select>
       
   150 							</td>
       
   151 							<td>&nbsp;&nbsp;&nbsp;</td>
       
   152 							<td width="50%">
       
   153 								<span fckLang="DlgLnkAnchorById">By Element Id</span><br />
       
   154 								<select id="cmbAnchorId" onchange="GetE('cmbAnchorName').value='';" style="WIDTH: 100%">
       
   155 									<option value="" selected="selected"></option>
       
   156 								</select>
       
   157 							</td>
       
   158 						</tr>
       
   159 					</table>
       
   160 				</div>
       
   161 				<div id="divNoAnchor" style="DISPLAY: none">
       
   162 					<span fckLang="DlgLnkNoAnchors">&lt;No anchors available in the document&gt;</span>
       
   163 				</div>
       
   164 			</div>
       
   165 			<div id="divLinkTypeEMail" style="DISPLAY: none">
       
   166 				<span fckLang="DlgLnkEMail">E-Mail Address</span><br />
       
   167 				<input id="txtEMailAddress" style="WIDTH: 100%" type="text" /><br />
       
   168 				<span fckLang="DlgLnkEMailSubject">Message Subject</span><br />
       
   169 				<input id="txtEMailSubject" style="WIDTH: 100%" type="text" /><br />
       
   170 				<span fckLang="DlgLnkEMailBody">Message Body</span><br />
       
   171 				<textarea id="txtEMailBody" style="WIDTH: 100%" rows="3" cols="20"></textarea>
       
   172 			</div>
       
   173 		</div>
       
   174 		<div id="divUpload" style="DISPLAY: none">
       
   175 			<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data" action="" onsubmit="return CheckUpload();">
       
   176 				<span fckLang="DlgLnkUpload">Upload</span><br />
       
   177 				<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br />
       
   178 				<br />
       
   179 				<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" />
       
   180 				<iframe name="UploadWindow" style="DISPLAY: none" src="javascript:void(0)"></iframe>
       
   181 			</form>
       
   182 		</div>
       
   183 		<div id="divTarget" style="DISPLAY: none">
       
   184 			<table cellspacing="0" cellpadding="0" width="100%" border="0">
       
   185 				<tr>
       
   186 					<td nowrap="nowrap">
       
   187 						<span fckLang="DlgLnkTarget">Target</span><br />
       
   188 						<select id="cmbTarget" onchange="SetTarget(this.value);">
       
   189 							<option value="" fckLang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
       
   190 							<option value="frame" fckLang="DlgLnkTargetFrame">&lt;frame&gt;</option>
       
   191 							<option value="popup" fckLang="DlgLnkTargetPopup">&lt;popup window&gt;</option>
       
   192 							<option value="_blank" fckLang="DlgLnkTargetBlank">New Window (_blank)</option>
       
   193 							<option value="_top" fckLang="DlgLnkTargetTop">Topmost Window (_top)</option>
       
   194 							<option value="_self" fckLang="DlgLnkTargetSelf">Same Window (_self)</option>
       
   195 							<option value="_parent" fckLang="DlgLnkTargetParent">Parent Window (_parent)</option>
       
   196 						</select>
       
   197 					</td>
       
   198 					<td>&nbsp;</td>
       
   199 					<td id="tdTargetFrame" nowrap="nowrap" width="100%">
       
   200 						<span fckLang="DlgLnkTargetFrameName">Target Frame Name</span><br />
       
   201 						<input id="txtTargetFrame" style="WIDTH: 100%" type="text" onkeyup="OnTargetNameChange();"
       
   202 							onchange="OnTargetNameChange();" />
       
   203 					</td>
       
   204 					<td id="tdPopupName" style="DISPLAY: none" nowrap="nowrap" width="100%">
       
   205 						<span fckLang="DlgLnkPopWinName">Popup Window Name</span><br />
       
   206 						<input id="txtPopupName" style="WIDTH: 100%" type="text" />
       
   207 					</td>
       
   208 				</tr>
       
   209 			</table>
       
   210 			<br />
       
   211 			<table id="tablePopupFeatures" style="DISPLAY: none" cellspacing="0" cellpadding="0" align="center"
       
   212 				border="0">
       
   213 				<tr>
       
   214 					<td>
       
   215 						<span fckLang="DlgLnkPopWinFeat">Popup Window Features</span><br />
       
   216 						<table cellspacing="0" cellpadding="0" border="0">
       
   217 							<tr>
       
   218 								<td valign="top" nowrap="nowrap" width="50%">
       
   219 									<input id="chkPopupResizable" name="chkFeature" value="resizable" type="checkbox" /><label for="chkPopupResizable" fckLang="DlgLnkPopResize">Resizable</label><br />
       
   220 									<input id="chkPopupLocationBar" name="chkFeature" value="location" type="checkbox" /><label for="chkPopupLocationBar" fckLang="DlgLnkPopLocation">Location
       
   221 										Bar</label><br />
       
   222 									<input id="chkPopupManuBar" name="chkFeature" value="menubar" type="checkbox" /><label for="chkPopupManuBar" fckLang="DlgLnkPopMenu">Menu
       
   223 										Bar</label><br />
       
   224 									<input id="chkPopupScrollBars" name="chkFeature" value="scrollbars" type="checkbox" /><label for="chkPopupScrollBars" fckLang="DlgLnkPopScroll">Scroll
       
   225 										Bars</label>
       
   226 								</td>
       
   227 								<td></td>
       
   228 								<td valign="top" nowrap="nowrap" width="50%">
       
   229 									<input id="chkPopupStatusBar" name="chkFeature" value="status" type="checkbox" /><label for="chkPopupStatusBar" fckLang="DlgLnkPopStatus">Status
       
   230 										Bar</label><br />
       
   231 									<input id="chkPopupToolbar" name="chkFeature" value="toolbar" type="checkbox" /><label for="chkPopupToolbar" fckLang="DlgLnkPopToolbar">Toolbar</label><br />
       
   232 									<input id="chkPopupFullScreen" name="chkFeature" value="fullscreen" type="checkbox" /><label for="chkPopupFullScreen" fckLang="DlgLnkPopFullScrn">Full
       
   233 										Screen (IE)</label><br />
       
   234 									<input id="chkPopupDependent" name="chkFeature" value="dependent" type="checkbox" /><label for="chkPopupDependent" fckLang="DlgLnkPopDependent">Dependent
       
   235 										(Netscape)</label>
       
   236 								</td>
       
   237 							</tr>
       
   238 							<tr>
       
   239 								<td valign="top" nowrap="nowrap" width="50%">&nbsp;</td>
       
   240 								<td></td>
       
   241 								<td valign="top" nowrap="nowrap" width="50%"></td>
       
   242 							</tr>
       
   243 							<tr>
       
   244 								<td valign="top">
       
   245 									<table cellspacing="0" cellpadding="0" border="0">
       
   246 										<tr>
       
   247 											<td nowrap="nowrap"><span fckLang="DlgLnkPopWidth">Width</span></td>
       
   248 											<td>&nbsp;<input id="txtPopupWidth" type="text" maxlength="4" size="4" /></td>
       
   249 										</tr>
       
   250 										<tr>
       
   251 											<td nowrap="nowrap"><span fckLang="DlgLnkPopHeight">Height</span></td>
       
   252 											<td>&nbsp;<input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td>
       
   253 										</tr>
       
   254 									</table>
       
   255 								</td>
       
   256 								<td>&nbsp;&nbsp;</td>
       
   257 								<td valign="top">
       
   258 									<table cellspacing="0" cellpadding="0" border="0">
       
   259 										<tr>
       
   260 											<td nowrap="nowrap"><span fckLang="DlgLnkPopLeft">Left Position</span></td>
       
   261 											<td>&nbsp;<input id="txtPopupLeft" type="text" maxlength="4" size="4" /></td>
       
   262 										</tr>
       
   263 										<tr>
       
   264 											<td nowrap="nowrap"><span fckLang="DlgLnkPopTop">Top Position</span></td>
       
   265 											<td>&nbsp;<input id="txtPopupTop" type="text" maxlength="4" size="4" /></td>
       
   266 										</tr>
       
   267 									</table>
       
   268 								</td>
       
   269 							</tr>
       
   270 						</table>
       
   271 					</td>
       
   272 				</tr>
       
   273 			</table>
       
   274 		</div>
       
   275 		<div id="divAttribs" style="DISPLAY: none">
       
   276 			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
       
   277 				<tr>
       
   278 					<td valign="top" width="50%">
       
   279 						<span fckLang="DlgGenId">Id</span><br />
       
   280 						<input id="txtAttId" style="WIDTH: 100%" type="text" />
       
   281 					</td>
       
   282 					<td width="1"></td>
       
   283 					<td valign="top">
       
   284 						<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
       
   285 							<tr>
       
   286 								<td width="60%">
       
   287 									<span fckLang="DlgGenLangDir">Language Direction</span><br />
       
   288 									<select id="cmbAttLangDir" style="WIDTH: 100%">
       
   289 										<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
       
   290 										<option value="ltr" fckLang="DlgGenLangDirLtr">Left to Right (LTR)</option>
       
   291 										<option value="rtl" fckLang="DlgGenLangDirRtl">Right to Left (RTL)</option>
       
   292 									</select>
       
   293 								</td>
       
   294 								<td width="1%">&nbsp;&nbsp;&nbsp;</td>
       
   295 								<td nowrap="nowrap"><span fckLang="DlgGenAccessKey">Access Key</span><br />
       
   296 									<input id="txtAttAccessKey" style="WIDTH: 100%" type="text" maxlength="1" size="1" />
       
   297 								</td>
       
   298 							</tr>
       
   299 						</table>
       
   300 					</td>
       
   301 				</tr>
       
   302 				<tr>
       
   303 					<td valign="top" width="50%">
       
   304 						<span fckLang="DlgGenName">Name</span><br />
       
   305 						<input id="txtAttName" style="WIDTH: 100%" type="text" />
       
   306 					</td>
       
   307 					<td width="1"></td>
       
   308 					<td valign="top">
       
   309 						<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
       
   310 							<tr>
       
   311 								<td width="60%">
       
   312 									<span fckLang="DlgGenLangCode">Language Code</span><br />
       
   313 									<input id="txtAttLangCode" style="WIDTH: 100%" type="text" />
       
   314 								</td>
       
   315 								<td width="1%">&nbsp;&nbsp;&nbsp;</td>
       
   316 								<td nowrap="nowrap">
       
   317 									<span fckLang="DlgGenTabIndex">Tab Index</span><br />
       
   318 									<input id="txtAttTabIndex" style="WIDTH: 100%" type="text" maxlength="5" size="5" />
       
   319 								</td>
       
   320 							</tr>
       
   321 						</table>
       
   322 					</td>
       
   323 				</tr>
       
   324 				<tr>
       
   325 					<td valign="top" width="50%">&nbsp;</td>
       
   326 					<td width="1"></td>
       
   327 					<td valign="top"></td>
       
   328 				</tr>
       
   329 				<tr>
       
   330 					<td valign="top" width="50%">
       
   331 						<span fckLang="DlgGenTitle">Advisory Title</span><br />
       
   332 						<input id="txtAttTitle" style="WIDTH: 100%" type="text" />
       
   333 					</td>
       
   334 					<td width="1">&nbsp;&nbsp;&nbsp;</td>
       
   335 					<td valign="top">
       
   336 						<span fckLang="DlgGenContType">Advisory Content Type</span><br />
       
   337 						<input id="txtAttContentType" style="WIDTH: 100%" type="text" />
       
   338 					</td>
       
   339 				</tr>
       
   340 				<tr>
       
   341 					<td valign="top">
       
   342 						<span fckLang="DlgGenClass">Stylesheet Classes</span><br />
       
   343 						<input id="txtAttClasses" style="WIDTH: 100%" type="text" />
       
   344 					</td>
       
   345 					<td></td>
       
   346 					<td valign="top">
       
   347 						<span fckLang="DlgGenLinkCharset">Linked Resource Charset</span><br />
       
   348 						<input id="txtAttCharSet" style="WIDTH: 100%" type="text" />
       
   349 					</td>
       
   350 				</tr>
       
   351 			</table>
       
   352 			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
       
   353 				<tr>
       
   354 					<td>
       
   355 						<span fckLang="DlgGenStyle">Style</span><br />
       
   356 						<input id="txtAttStyle" style="WIDTH: 100%" type="text" />
       
   357 					</td>
       
   358 				</tr>
       
   359 			</table>
       
   360 		</div>
       
   361 	</body>
       
   362 </html>