Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / themes / advanced / image.htm
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3         <title>{$lang_insert_image_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="jscripts/image.js"></script>
8         <base target="_self" />
9 </head>
10 <!-- WordPress: extra onload stuff is WP -->
11 <body id="image" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('src').focus();" style="display: none">
12 <form onsubmit="insertImage();return false;" action="#">
13         <div class="tabs">
14                 <ul>
15                         <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{$lang_insert_image_title}</a></span></li>
16                 </ul>
17         </div>
18
19         <div class="panel_wrapper">
20                 <div id="general_panel" class="panel current">
21      <table border="0" cellpadding="4" cellspacing="0">
22           <tr>
23             <td nowrap="nowrap"><label for="src">{$lang_insert_image_src}</label></td>
24             <td><table border="0" cellspacing="0" cellpadding="0">
25                 <tr>
26                   <td><input id="src" name="src" type="text" value="" style="width: 200px" onchange="getImageData();" /></td>
27                   <td id="srcbrowsercontainer">&nbsp;</td>
28                 </tr>
29               </table></td>
30           </tr>
31                   <!-- Image list -->
32                   <script language="javascript">
33                         if (typeof(tinyMCEImageList) != "undefined" && tinyMCEImageList.length > 0) {
34                                 var html = "";
35
36                                 html += '<tr><td><label for="image_list">{$lang_image_list}</label></td>';
37                                 html += '<td><select id="image_list" name="image_list" style="width: 200px" onchange="this.form.src.value=this.options[this.selectedIndex].value;resetImageData();getImageData();">';
38                                 html += '<option value="">---</option>';
39
40                                 for (var i=0; i<tinyMCEImageList.length; i++)
41                                         html += '<option value="' + tinyMCEImageList[i][1] + '">' + tinyMCEImageList[i][0] + '</option>';
42
43                                 html += '</select></td></tr>';
44
45                                 document.write(html);
46                         }
47                   </script>
48                   <!-- /Image list -->
49           <tr>
50             <td nowrap="nowrap"><label for="alt">{$lang_insert_image_alt}</label></td>
51             <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
52           </tr>
53           <tr>
54             <td nowrap="nowrap"><label for="align">{$lang_insert_image_align}</label></td>
55             <td><select id="align" name="align">
56                 <option value="">{$lang_insert_image_align_default}</option>
57                 <option value="baseline">{$lang_insert_image_align_baseline}</option>
58                 <option value="top">{$lang_insert_image_align_top}</option>
59                 <option value="middle">{$lang_insert_image_align_middle}</option>
60                 <option value="bottom">{$lang_insert_image_align_bottom}</option>
61                 <option value="texttop">{$lang_insert_image_align_texttop}</option>
62                 <option value="absmiddle">{$lang_insert_image_align_absmiddle}</option>
63                 <option value="absbottom">{$lang_insert_image_align_absbottom}</option>
64                 <option value="left">{$lang_insert_image_align_left}</option>
65                 <option value="right">{$lang_insert_image_align_right}</option>
66               </select></td>
67           </tr>
68           <tr>
69             <td nowrap="nowrap"><label for="width">{$lang_insert_image_dimensions}</label></td>
70             <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
71               x
72               <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
73           </tr>
74           <tr>
75             <td nowrap="nowrap"><label for="border">{$lang_insert_image_border}</label></td>
76             <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" /></td>
77           </tr>
78           <tr>
79             <td nowrap="nowrap"><label for="vspace">{$lang_insert_image_vspace}</label></td>
80             <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" /></td>
81           </tr>
82           <tr>
83             <td nowrap="nowrap"><label for="hspace">{$lang_insert_image_hspace}</label></td>
84             <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" /></td>
85           </tr>
86         </table>
87                 </div>
88         </div>
89
90         <div class="mceActionPanel">
91                 <!-- WordPress: buttons reversed! -->
92                 <div style="float: left">
93                         <input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
94                 </div>
95
96                 <div style="float: right">
97                         <input type="submit" id="insert" name="insert" value="{$lang_insert}" onclick="insertImage();" />
98                 </div>
99         </div>
100 </form>
101 </body>
102 </html>