Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / themes / advanced / link.htm
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3         <title>{$lang_insert_link_title}</title>
4         <script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
5         <script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
6         <script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
7         <script language="javascript" type="text/javascript" src="../../utils/validate.js"></script>
8         <script language="javascript" type="text/javascript" src="jscripts/link.js"></script>
9         <base target="_self" />
10 </head>
11 <!-- WordPress: onload after the init();'); -->
12 <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('href').focus();" style="display: none">
13 <form onsubmit="insertLink();return false;" action="#">
14         <div class="tabs">
15                 <ul>
16                         <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>
17                 </ul>
18         </div>
19
20         <div class="panel_wrapper">
21                 <div id="general_panel" class="panel current">
22
23                 <table border="0" cellpadding="4" cellspacing="0">
24           <tr>
25             <td nowrap="nowrap"><label for="href">{$lang_insert_link_url}</label></td>
26             <td><table border="0" cellspacing="0" cellpadding="0"> 
27                                   <tr> 
28                                         <td><input id="href" name="href" type="text" value="" style="width: 200px" onchange="checkPrefix(this);" /></td> 
29                                         <td id="hrefbrowsercontainer">&nbsp;</td>
30                                   </tr> 
31                                 </table></td>
32           </tr>
33                   <!-- Link list -->
34                   <script language="javascript">
35                         if (typeof(tinyMCELinkList) != "undefined" && tinyMCELinkList.length > 0) {
36                                 var html = "";
37
38                                 html += '<tr><td><label for="link_list">{$lang_link_list}</label></td>';
39                                 html += '<td><select id="link_list" name="link_list" style="width: 200px" onchange="this.form.href.value=this.options[this.selectedIndex].value;">';
40                                 html += '<option value="">---</option>';
41
42                                 for (var i=0; i<tinyMCELinkList.length; i++)
43                                         html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
44
45                                 html += '</select></td></tr>';
46
47                                 document.write(html);
48                         }
49                   </script>
50                   <!-- /Link list -->
51           <tr>
52             <td nowrap="nowrap"><label for="target">{$lang_insert_link_target}</label></td>
53             <td><select id="target" name="target" style="width: 200px">
54                 <option value="_self">{$lang_insert_link_target_same}</option>
55                 <option value="_blank">{$lang_insert_link_target_blank}</option>
56                                 <script language="javascript">
57                                         var html = "";
58                                         var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';');
59
60                                         for (var i=0; i<targets.length; i++) {
61                                                 var key, value;
62
63                                                 if (targets[i] == "")
64                                                         continue;
65
66                                                 key = targets[i].split('=')[0];
67                                                 value = targets[i].split('=')[1];
68
69                                                 html += '<option value="' + value + '">' + key + '</option>';
70                                         }
71
72                                         document.write(html);
73                                 </script>
74             </select></td>
75           </tr>
76           <tr>
77             <td nowrap="nowrap"><label for="linktitle">{$lang_theme_insert_link_titlefield}</label></td>
78             <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px"></td>
79           </tr>
80           <tr id="styleSelectRow">
81             <td><label for="styleSelect">{$lang_class_name}</label></td>
82             <td>
83                          <select id="styleSelect" name="styleSelect">
84                 <option value="" selected>{$lang_theme_style_select}</option>
85              </select></td>
86           </tr>
87         </table>
88                 </div>
89         </div>
90
91         <div class="mceActionPanel">
92                 <!-- WordPress: Buttons are reversed! -->
93                 <div style="float: left">
94                         <input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
95                 </div>
96
97                 <div style="float: right">
98                         <input type="submit" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();" />
99                 </div>
100         </div>
101 </form>
102 </body>
103 </html>