annotate static/js/tiny_mce/plugins/advimage/image.htm @ 339:b871892264f2

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