2005-09-26 08:52:30 +02:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2005-08-23 03:33:52 +02:00
|
|
|
<head>
|
2005-09-26 08:52:30 +02:00
|
|
|
<title>{$lang_insert_link_title}</title>
|
|
|
|
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
|
|
|
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
|
|
|
|
<script language="javascript" type="text/javascript" src="jscripts/link.js"></script>
|
2005-08-23 03:33:52 +02:00
|
|
|
</head>
|
2005-11-06 04:30:11 +01:00
|
|
|
<body onload="tinyMCEPopup.executeOnLoad('init();');document.getElementById('href').focus();" style="display: none">
|
2005-08-23 03:33:52 +02:00
|
|
|
<form onsubmit="insertLink();return false;">
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100">
|
|
|
|
<tr>
|
|
|
|
<td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="title" nowrap="nowrap">{$lang_insert_link_title}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td nowrap="nowrap">{$lang_insert_link_url}:</td>
|
|
|
|
<td> <table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
2005-09-26 08:52:30 +02:00
|
|
|
<td><input name="href" type="text" id="href" value="" style="width: 200px"></td>
|
2005-11-06 04:30:11 +01:00
|
|
|
<td id="hrefbrowsercontainer"> </td>
|
2005-08-23 03:33:52 +02:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
<!-- Link list -->
|
|
|
|
<script language="javascript">
|
|
|
|
if (typeof(tinyMCELinkList) != "undefined" && tinyMCELinkList.length > 0) {
|
|
|
|
var html = "";
|
|
|
|
|
|
|
|
html += '<tr><td>{$lang_link_list}:</td>';
|
|
|
|
html += '<td><select name="link_list" style="width: 200px" onchange="this.form.href.value=this.options[this.selectedIndex].value;">';
|
|
|
|
html += '<option value="">---</option>';
|
|
|
|
|
|
|
|
for (var i=0; i<tinyMCELinkList.length; i++)
|
|
|
|
html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
|
|
|
|
|
|
|
|
html += '</select></td></tr>';
|
|
|
|
|
|
|
|
document.write(html);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<!-- /Link list -->
|
2005-09-26 08:52:30 +02:00
|
|
|
<tr>
|
2005-08-23 03:33:52 +02:00
|
|
|
<td nowrap="nowrap">{$lang_insert_link_target}:</td>
|
|
|
|
<td><select name="target" style="width: 200px">
|
2005-09-26 08:52:30 +02:00
|
|
|
<option value="_self">{$lang_insert_link_target_same}</option>
|
2005-08-23 03:33:52 +02:00
|
|
|
<option value="_blank">{$lang_insert_link_target_blank}</option>
|
|
|
|
<script language="javascript">
|
2005-09-26 08:52:30 +02:00
|
|
|
var html = "";
|
2005-08-23 03:33:52 +02:00
|
|
|
var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';');
|
|
|
|
|
|
|
|
for (var i=0; i<targets.length; i++) {
|
|
|
|
var key, value;
|
|
|
|
|
|
|
|
if (targets[i] == "")
|
|
|
|
continue;
|
|
|
|
|
|
|
|
key = targets[i].split('=')[0];
|
|
|
|
value = targets[i].split('=')[1];
|
|
|
|
|
|
|
|
html += '<option value="' + value + '">' + key + '</option>';
|
|
|
|
}
|
|
|
|
|
|
|
|
document.write(html);
|
|
|
|
</script>
|
|
|
|
</select></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td nowrap="nowrap">{$lang_theme_insert_link_titlefield}:</td>
|
|
|
|
<td><input name="linktitle" type="text" id="linktitle" value="" style="width: 200px"></td>
|
|
|
|
</tr>
|
2005-09-26 08:52:30 +02:00
|
|
|
<tr id="styleSelectRow">
|
|
|
|
<td>{$lang_class_name}:</td>
|
2005-08-23 03:33:52 +02:00
|
|
|
<td>
|
2005-09-26 08:52:30 +02:00
|
|
|
<select id="styleSelect" name="styleSelect">
|
2005-08-23 03:33:52 +02:00
|
|
|
<option value="" selected>{$lang_theme_style_select}</option>
|
|
|
|
</select></td>
|
|
|
|
<td align="right"> </td>
|
|
|
|
<td align="right"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2005-11-06 04:30:11 +01:00
|
|
|
<td><input type="submit" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();">
|
2005-09-26 08:52:30 +02:00
|
|
|
</td>
|
|
|
|
<td align="right"><input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();"></td>
|
2005-08-23 03:33:52 +02:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|