includes/clientside/tinymce/themes/advanced/link.htm
changeset 335 67bd3121a12e
parent 1 fe660c52c48f
child 543 dffcbfbc4e59
equal deleted inserted replaced
334:c72b545f1304 335:67bd3121a12e
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     3 <head>
     3 	<title>{$lang_insert_link_title}</title>
     4 	<title>{#advanced_dlg.link_title}</title>
     4 	<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
     5 	<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
     5 	<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
     6 	<script type="text/javascript" src="../../utils/mctabs.js"></script>
     6 	<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
     7 	<script type="text/javascript" src="../../utils/form_utils.js"></script>
     7 	<script language="javascript" type="text/javascript" src="jscripts/link.js"></script>
     8 	<script type="text/javascript" src="../../utils/validate.js"></script>
       
     9 	<script type="text/javascript" src="js/link.js"></script>
     8 	<base target="_self" />
    10 	<base target="_self" />
     9 </head>
    11 </head>
    10 <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
    12 <body id="link" style="display: none">
    11 <form onsubmit="insertLink();return false;" action="#">
    13 <form onsubmit="LinkDialog.update();return false;" action="#">
    12 	<div class="tabs">
    14 	<div class="tabs">
    13 		<ul>
    15 		<ul>
    14 			<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{$lang_insert_link_title}</a></span></li>
    16 			<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.link_title}</a></span></li>
    15 		</ul>
    17 		</ul>
    16 	</div>
    18 	</div>
    17 
    19 
    18 	<div class="panel_wrapper">
    20 	<div class="panel_wrapper">
    19 		<div id="general_panel" class="panel current">
    21 		<div id="general_panel" class="panel current">
    20 
    22 
    21 		<table border="0" cellpadding="4" cellspacing="0">
    23 		<table border="0" cellpadding="4" cellspacing="0">
    22           <tr>
    24           <tr>
    23             <td nowrap="nowrap"><label for="href">{$lang_insert_link_url}</label></td>
    25             <td nowrap="nowrap"><label for="href">{#advanced_dlg.link_url}</label></td>
    24             <td><table border="0" cellspacing="0" cellpadding="0"> 
    26             <td><table border="0" cellspacing="0" cellpadding="0"> 
    25 				  <tr> 
    27 				  <tr> 
    26 					<td><input id="href" name="href" type="text" value="" style="width: 200px" /></td> 
    28 					<td><input id="href" name="href" type="text" value="" style="width: 200px" onchange="LinkDialog.checkPrefix(this);" /></td> 
    27 					<td id="hrefbrowsercontainer">&nbsp;</td>
    29 					<td id="hrefbrowsercontainer">&nbsp;</td>
    28 				  </tr> 
    30 				  </tr> 
    29 				</table></td>
    31 				</table></td>
    30           </tr>
    32           </tr>
    31 		  <!-- Link list -->
    33 		  <tr>
    32 		  <script language="javascript">
    34 			<td><label for="link_list">{#advanced_dlg.link_list}</label></td>
    33 			if (typeof(tinyMCELinkList) != "undefined" && tinyMCELinkList.length > 0) {
    35 			<td><select id="link_list" name="link_list" onchange="document.getElementById('href').value=this.options[this.selectedIndex].value;"></select></td>
    34 				var html = "";
    36 		  </tr>
    35 
    37 		<tr>
    36 				html += '<tr><td><label for="link_list">{$lang_link_list}</label></td>';
    38 			<td><label id="targetlistlabel" for="targetlist">{#advanced_dlg.link_target}</label></td>
    37 				html += '<td><select id="link_list" name="link_list" style="width: 200px" onchange="this.form.href.value=this.options[this.selectedIndex].value;">';
    39 			<td><select id="target_list" name="target_list"></select></td>
    38 				html += '<option value="">---</option>';
    40 		</tr>
    39 
       
    40 				for (var i=0; i<tinyMCELinkList.length; i++)
       
    41 					html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
       
    42 
       
    43 				html += '</select></td></tr>';
       
    44 
       
    45 				document.write(html);
       
    46 			}
       
    47 		  </script>
       
    48 		  <!-- /Link list -->
       
    49           <tr>
    41           <tr>
    50             <td nowrap="nowrap"><label for="target">{$lang_insert_link_target}</label></td>
    42             <td nowrap="nowrap"><label for="linktitle">{#advanced_dlg.link_titlefield}</label></td>
    51             <td><select id="target" name="target" style="width: 200px">
    43             <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px" /></td>
    52                 <option value="_self">{$lang_insert_link_target_same}</option>
       
    53                 <option value="_blank">{$lang_insert_link_target_blank}</option>
       
    54 				<script language="javascript">
       
    55 					var html = "";
       
    56 					var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';');
       
    57 
       
    58 					for (var i=0; i<targets.length; i++) {
       
    59 						var key, value;
       
    60 
       
    61 						if (targets[i] == "")
       
    62 							continue;
       
    63 
       
    64 						key = targets[i].split('=')[0];
       
    65 						value = targets[i].split('=')[1];
       
    66 
       
    67 						html += '<option value="' + value + '">' + key + '</option>';
       
    68 					}
       
    69 
       
    70 					document.write(html);
       
    71 				</script>
       
    72             </select></td>
       
    73           </tr>
    44           </tr>
    74           <tr>
    45 			<tr>
    75             <td nowrap="nowrap"><label for="linktitle">{$lang_theme_insert_link_titlefield}</label></td>
    46 				<td><label for="class_list">{#class_name}</label></td>
    76             <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px"></td>
    47 				<td><select id="class_list" name="class_list"></select></td>
    77           </tr>
    48 			</tr>
    78           <tr id="styleSelectRow">
       
    79             <td><label for="styleSelect">{$lang_class_name}</label></td>
       
    80             <td>
       
    81 			 <select id="styleSelect" name="styleSelect">
       
    82                 <option value="" selected>{$lang_theme_style_select}</option>
       
    83              </select></td>
       
    84           </tr>
       
    85         </table>
    49         </table>
    86 		</div>
    50 		</div>
    87 	</div>
    51 	</div>
    88 
    52 
    89 	<div class="mceActionPanel">
    53 	<div class="mceActionPanel">
    90 		<div style="float: left">
    54 		<div style="float: left">
    91 			<input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();" />
    55 			<input type="button" id="insert" name="insert" value="{#insert}" onclick="LinkDialog.update();" />
    92 		</div>
    56 		</div>
    93 
    57 
    94 		<div style="float: right">
    58 		<div style="float: right">
    95 			<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
    59 			<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
    96 		</div>
    60 		</div>
    97 	</div>
    61 	</div>
    98 </form>
    62 </form>
    99 </body>
    63 </body>
   100 </html>
    64 </html>