A QCodo powered CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

238 lines
11 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>{#advimage_dlg.dialog_title}</title>
  5. <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
  6. <script type="text/javascript" src="../../utils/mctabs.js"></script>
  7. <script type="text/javascript" src="../../utils/form_utils.js"></script>
  8. <script type="text/javascript" src="../../utils/validate.js"></script>
  9. <script type="text/javascript" src="../../utils/editable_selects.js"></script>
  10. <script type="text/javascript" src="js/image.js"></script>
  11. <link href="css/advimage.css" rel="stylesheet" type="text/css" />
  12. <base target="_self" />
  13. </head>
  14. <body id="advimage" style="display: none">
  15. <form onsubmit="ImageDialog.insert();return false;" action="#">
  16. <div class="tabs">
  17. <ul>
  18. <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
  19. <li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
  20. <li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
  21. </ul>
  22. </div>
  23. <div class="panel_wrapper">
  24. <div id="general_panel" class="panel current">
  25. <fieldset>
  26. <legend>{#advimage_dlg.general}</legend>
  27. <table class="properties">
  28. <tr>
  29. <td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
  30. <td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
  31. <tr>
  32. <td><input name="src" type="text" id="src" value="" class="mceFocus" onchange="ImageDialog.showPreviewImage(this.value);" /></td>
  33. <td id="srcbrowsercontainer">&nbsp;</td>
  34. </tr>
  35. </table></td>
  36. </tr>
  37. <tr>
  38. <td><label for="src_list">{#advimage_dlg.image_list}</label></td>
  39. <td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"></select></td>
  40. </tr>
  41. <tr>
  42. <td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
  43. <td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
  44. </tr>
  45. <tr>
  46. <td class="column1"><label id="titlelabel" for="title">{#advimage_dlg.title}</label></td>
  47. <td colspan="2"><input id="title" name="title" type="text" value="" /></td>
  48. </tr>
  49. </table>
  50. </fieldset>
  51. <fieldset>
  52. <legend>{#advimage_dlg.preview}</legend>
  53. <div id="prev"></div>
  54. </fieldset>
  55. </div>
  56. <div id="appearance_panel" class="panel">
  57. <fieldset>
  58. <legend>{#advimage_dlg.tab_appearance}</legend>
  59. <table border="0" cellpadding="4" cellspacing="0">
  60. <tr>
  61. <td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
  62. <td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
  63. <option value="">{#not_set}</option>
  64. <option value="baseline">{#advimage_dlg.align_baseline}</option>
  65. <option value="top">{#advimage_dlg.align_top}</option>
  66. <option value="middle">{#advimage_dlg.align_middle}</option>
  67. <option value="bottom">{#advimage_dlg.align_bottom}</option>
  68. <option value="text-top">{#advimage_dlg.align_texttop}</option>
  69. <option value="text-bottom">{#advimage_dlg.align_textbottom}</option>
  70. <option value="left">{#advimage_dlg.align_left}</option>
  71. <option value="right">{#advimage_dlg.align_right}</option>
  72. </select>
  73. </td>
  74. <td rowspan="6" valign="top">
  75. <div class="alignPreview">
  76. <img id="alignSampleImg" src="img/sample.gif" alt="{#advimage_dlg.example_img}" />
  77. Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
  78. nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
  79. edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
  80. erat volutpat.
  81. </div>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
  86. <td nowrap="nowrap">
  87. <input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" /> x
  88. <input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" /> px
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>&nbsp;</td>
  93. <td><table border="0" cellpadding="0" cellspacing="0">
  94. <tr>
  95. <td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
  96. <td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
  97. </tr>
  98. </table></td>
  99. </tr>
  100. <tr>
  101. <td class="column1"><label id="vspacelabel" for="vspace">{#advimage_dlg.vspace}</label></td>
  102. <td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" />
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="column1"><label id="hspacelabel" for="hspace">{#advimage_dlg.hspace}</label></td>
  107. <td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" /></td>
  108. </tr>
  109. <tr>
  110. <td class="column1"><label id="borderlabel" for="border">{#advimage_dlg.border}</label></td>
  111. <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" /></td>
  112. </tr>
  113. <tr>
  114. <td><label for="class_list">{#class_name}</label></td>
  115. <td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"></select></td>
  116. </tr>
  117. <tr>
  118. <td class="column1"><label id="stylelabel" for="style">{#advimage_dlg.style}</label></td>
  119. <td colspan="2"><input id="style" name="style" type="text" value="" onchange="ImageDialog.changeAppearance();" /></td>
  120. </tr>
  121. <!-- <tr>
  122. <td class="column1"><label id="classeslabel" for="classes">{#advimage_dlg.classes}</label></td>
  123. <td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
  124. </tr> -->
  125. </table>
  126. </fieldset>
  127. </div>
  128. <div id="advanced_panel" class="panel">
  129. <fieldset>
  130. <legend>{#advimage_dlg.swap_image}</legend>
  131. <input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" />
  132. <label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
  133. <table border="0" cellpadding="4" cellspacing="0" width="100%">
  134. <tr>
  135. <td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
  136. <td><table border="0" cellspacing="0" cellpadding="0">
  137. <tr>
  138. <td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
  139. <td id="onmouseoversrccontainer">&nbsp;</td>
  140. </tr>
  141. </table></td>
  142. </tr>
  143. <tr>
  144. <td><label for="over_list">{#advimage_dlg.image_list}</label></td>
  145. <td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"></select></td>
  146. </tr>
  147. <tr>
  148. <td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
  149. <td class="column2"><table border="0" cellspacing="0" cellpadding="0">
  150. <tr>
  151. <td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
  152. <td id="onmouseoutsrccontainer">&nbsp;</td>
  153. </tr>
  154. </table></td>
  155. </tr>
  156. <tr>
  157. <td><label for="out_list">{#advimage_dlg.image_list}</label></td>
  158. <td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"></select></td>
  159. </tr>
  160. </table>
  161. </fieldset>
  162. <fieldset>
  163. <legend>{#advimage_dlg.misc}</legend>
  164. <table border="0" cellpadding="4" cellspacing="0">
  165. <tr>
  166. <td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
  167. <td><input id="id" name="id" type="text" value="" /></td>
  168. </tr>
  169. <tr>
  170. <td class="column1"><label id="dirlabel" for="dir">{#advimage_dlg.langdir}</label></td>
  171. <td>
  172. <select id="dir" name="dir" onchange="ImageDialog.changeAppearance();">
  173. <option value="">{#not_set}</option>
  174. <option value="ltr">{#advimage_dlg.ltr}</option>
  175. <option value="rtl">{#advimage_dlg.rtl}</option>
  176. </select>
  177. </td>
  178. </tr>
  179. <tr>
  180. <td class="column1"><label id="langlabel" for="lang">{#advimage_dlg.langcode}</label></td>
  181. <td>
  182. <input id="lang" name="lang" type="text" value="" />
  183. </td>
  184. </tr>
  185. <tr>
  186. <td class="column1"><label id="usemaplabel" for="usemap">{#advimage_dlg.map}</label></td>
  187. <td>
  188. <input id="usemap" name="usemap" type="text" value="" />
  189. </td>
  190. </tr>
  191. <tr>
  192. <td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
  193. <td><table border="0" cellspacing="0" cellpadding="0">
  194. <tr>
  195. <td><input id="longdesc" name="longdesc" type="text" value="" /></td>
  196. <td id="longdesccontainer">&nbsp;</td>
  197. </tr>
  198. </table></td>
  199. </tr>
  200. </table>
  201. </fieldset>
  202. </div>
  203. </div>
  204. <div class="mceActionPanel">
  205. <div style="float: left">
  206. <input type="submit" id="insert" name="insert" value="{#insert}" />
  207. </div>
  208. <div style="float: right">
  209. <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
  210. </div>
  211. </div>
  212. </form>
  213. </body>
  214. </html>