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