4 <skin name="admin/bookmarklet"/>
5 <template name="admin/bookmarklet"/>
6 <info><![CDATA[20120430]]></info>
8 <skin name="admin/bookmarklet" type="text/html" includeMode="skindir" includePrefix="admin/bookmarklet">
10 <![CDATA[ADMIN Area Default Bookmarklet Skin]]>
13 <part name="createitem">
15 <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>
17 <form id="addform" method="post" action="<%adminurl%>bookmarklet.php" >
20 <input type="hidden" name="action" value="additem" />
21 <input type="hidden" name="blogid" value="<%blogid%>" />
22 <input type="hidden" name="draftid" value="0" />
26 <div id="submit" class="buttonbar">
27 <div id="switchbuttons">
28 <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" />
29 <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" />
30 <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" />
31 <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" />
33 <input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" />
34 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
37 <div id="body" class="contentblock">
38 <table frame="box" rules="all" summary="<%text(_BMLET_BODY)%>">
41 <td><%text(_AUTOSAVEDRAFT)%></td>
42 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
46 <td><%text(_ADD_TITLE)%></td>
47 <td><input type="text" id="inputtitle" name="title" value="<%contents(title)%>" size="60" maxlength="160" /></td>
51 <%text(_ADD_BODY)%> <%helplink(additem)%></td>
54 <div class="jsbuttonbar">
56 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
57 <img src="<%skinfile(/images/button-cut.gif)%>" title="<%text(_ADD_CUT_TT)%>(Ctrl + X)" alt="<%text(_ADD_CUT_TT)%>(Ctrl + X)" width="16" height="16" />
59 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
60 <img src="<%skinfile(/images/button-copy.gif)%>" title="<%text(_ADD_COPY_TT)%>(Ctrl + C)" alt="<%text(_ADD_COPY_TT)%>(Ctrl + C)" width="16" height="16" />
62 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
63 <img src="<%skinfile(/images/button-paste.gif)%>" title="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" alt="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" width="16" height="16" />
65 <span class="jsbuttonspacer"> </span>
66 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
67 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" alt="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" width="16" height="16" />
69 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
70 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" alt="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" width="16" height="16" />
72 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
73 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" alt="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" width="16" height="16" />
77 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
78 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
80 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
81 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
83 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
84 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
87 <span class="jsbuttonspacer"> </span>
88 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
89 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
91 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
92 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
94 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
95 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
97 <span class="jsbuttonspacer"> </span>
98 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
99 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
101 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
102 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
104 <span class="jsbuttonspacer"> </span>
105 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
106 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
109 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
110 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
113 <div class="jsbuttonend"></div>
116 <textarea id="inputbody" name="body" cols="58" rows="12"><%contents(body)%></textarea></td>
119 <td><%text(_ADD_CATEGORY)%></td>
120 <td><%categories%></td>
124 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
125 <td><input type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" tabindex="80" onclick="autoSaveDraft();" /></td>
131 <div id="more" class="contentblock">
132 <table frame="box" rules="all" summary="<%text(_BMLET_MORE)%>">
134 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
137 <div class="jsbuttonbar">
139 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
140 <img src="<%skinfile(/images/button-cut.gif)%>" title="<%text(_ADD_CUT_TT)%>(Ctrl + X)" alt="<%text(_ADD_CUT_TT)%>(Ctrl + X)" width="16" height="16" />
142 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
143 <img src="<%skinfile(/images/button-copy.gif)%>" title="<%text(_ADD_COPY_TT)%>(Ctrl + C)" alt="<%text(_ADD_COPY_TT)%>(Ctrl + C)" width="16" height="16" />
145 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
146 <img src="<%skinfile(/images/button-paste.gif)%>" title="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" alt="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" width="16" height="16" />
148 <span class="jsbuttonspacer"> </span>
149 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
150 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" alt="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" width="16" height="16" />
152 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
153 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" alt="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" width="16" height="16" />
155 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
156 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" alt="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" width="16" height="16" />
160 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
161 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
163 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
164 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
166 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
167 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
170 <span class="jsbuttonspacer"> </span>
171 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
172 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
174 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
175 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
177 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
178 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
180 <span class="jsbuttonspacer"> </span>
181 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
182 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
184 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
185 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
187 <span class="jsbuttonspacer"> </span>
188 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
189 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
192 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
193 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
196 <div class="jsbuttonend"></div>
199 <textarea id="inputmore" name="more" cols="58" rows="17"><%contents(more)%></textarea>
205 <div id="options" class="contentblock">
206 <table frame="box" rules="all" summary="<%text(_BMLET_OPTIONS)%>">
208 <%if(blogsetting, bcomments)%>
210 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
212 <input type='radio' id="closed_yes" name='closed' value='1' />
213 <label for="closed_yes"><%text(_YES)%></label>
214 <input type='radio' id="closed_no" name='closed' value='0' checked='checked' />
215 <label for="closed_no"><%text(_NO)%></label>
221 <td><%text(_ADD_DRAFTNFUTURE)%></td>
223 <input type="radio" name="actiontype" value="addnow" checked='checked' id="act_now" />
224 <label for="act_now"><%text(_ADD_ADDNOW)%></label><br />
225 <input type="radio" id="act_future" name="actiontype" value="addfuture" />
226 <label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
228 <%text(_ADD_PLACE_ON)%>
229 <input id="inputday" name="day" value="<%currenttime(mday)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />/
230 <input id="inputmonth" name="month" value="<%currenttime(mon)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />/
231 <input id="inputyear" name="year" value="<%currenttime(year)%>" size="4" onchange="document.forms[0].act_future.checked=true;" />
233 <input id="inputhour" name="hour" value="<%currenttime(hours)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />:
234 <input id="inputminutes" name="minutes" value="<%currenttime(minutes)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />
237 <%if(blogsetting, ballowpast,0)%>
239 <%text(_ADD_NOPASTDATES)%>
243 <input type="radio" name="actiontype" value="adddraft" id="act_draft" />
244 <label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
249 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
250 <td><%pluginextras%></td>
257 <div id="preview" class="contentblock">
258 <h2><%text(_ADD_PREVIEW)%></h2>
259 <b><span id="prevtitle"> </span></b><br />
260 <span id="prevbody"> </span><br />
261 <span id="prevmore"> </span>
265 <script type="text/javascript">
266 var xmlhttprequest = new Array();
267 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
268 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
269 var seconds = now(); // Last AutoDraft time
270 var checks = 0; // Number of checks since last AutoDraft
271 var addform = document.getElementById('addform');
272 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
273 var goalurl = '../action.php'; // The PHP file where the content must be posted to
274 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
275 var formtype = 'add';
285 <part name="itemedit">
286 <![CDATA[<%pagehead%>
287 <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>
288 <form id="editform" method="post" action="<%adminurl%>bookmarklet.php" ><div>
289 <input type="hidden" name="action" value="edititem" />
290 <input type="hidden" name="itemid" value="<%contents(itemid)%>" />
291 <input type="hidden" name="draftid" value="0" />
294 <div id="submit" class="buttonbar">
295 <div id="switchbuttons">
296 <input type="button" value="<%text(_BMLET_BODY)%> >>" onclick="flipBlock('body');" />
297 <input type="button" value="<%text(_BMLET_MORE)%> >>" onclick="flipBlock('more');" />
298 <input type="button" value="<%text(_BMLET_OPTIONS)%> >>" onclick="flipBlock('options');" />
299 <input type="button" value="<%text(_BMLET_PREVIEW)%> >>" onclick="updAllPreviews(); flipBlock('preview');" />
301 <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />
302 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
305 <div id="body" class="contentblock">
306 <table frame="box" rules="all" summary="<%text(_BMLET_BODY)%>">
310 <td><%text(_AUTOSAVEDRAFT)%></td>
311 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
316 <td><%text(_ADD_TITLE)%></td>
317 <td><input type="text" id="inputtitle" name="title" value="<%contents(title)%>" size="60" maxlength="160" /></td>
320 <td><%text(_ADD_BODY)%></td>
323 <div class="jsbuttonbar">
325 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
326 <img src="<%skinfile(/images/button-cut.gif)%>" title="<%text(_ADD_CUT_TT)%>(Ctrl + X)" alt="<%text(_ADD_CUT_TT)%>(Ctrl + X)" width="16" height="16" />
328 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
329 <img src="<%skinfile(/images/button-copy.gif)%>" title="<%text(_ADD_COPY_TT)%>(Ctrl + C)" alt="<%text(_ADD_COPY_TT)%>(Ctrl + C)" width="16" height="16" />
331 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
332 <img src="<%skinfile(/images/button-paste.gif)%>" title="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" alt="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" width="16" height="16" />
334 <span class="jsbuttonspacer"> </span>
335 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
336 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" alt="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" width="16" height="16" />
338 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
339 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" alt="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" width="16" height="16" />
341 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
342 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" alt="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" width="16" height="16" />
346 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
347 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
349 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
350 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
352 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
353 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
356 <span class="jsbuttonspacer"> </span>
357 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
358 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
360 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
361 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
363 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
364 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
366 <span class="jsbuttonspacer"> </span>
367 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
368 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
370 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
371 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
373 <span class="jsbuttonspacer"> </span>
374 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
375 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
378 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
379 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
382 <div class="jsbuttonend"></div>
385 <textarea id="inputbody" name="body" cols="58" rows="12"><%contents(body)%></textarea>
389 <td><%text(_ADD_CATEGORY)%></td>
390 <td><%categories%></td>
394 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
395 <td><input type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" tabindex="80" onclick="autoSaveDraft();" /></td>
401 <div id="more" class="contentblock">
402 <table frame="box" rules="all" summary="<%text(_BMLET_MORE)%>">
404 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
407 <div class="jsbuttonbar">
409 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
410 <img src="<%skinfile(/images/button-cut.gif)%>" title="<%text(_ADD_CUT_TT)%>(Ctrl + X)" alt="<%text(_ADD_CUT_TT)%>(Ctrl + X)" width="16" height="16" />
412 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
413 <img src="<%skinfile(/images/button-copy.gif)%>" title="<%text(_ADD_COPY_TT)%>(Ctrl + C)" alt="<%text(_ADD_COPY_TT)%>(Ctrl + C)" width="16" height="16" />
415 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
416 <img src="<%skinfile(/images/button-paste.gif)%>" title="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" alt="<%text(_ADD_PASTE_TT)%>(Ctrl + V)" width="16" height="16" />
418 <span class="jsbuttonspacer"> </span>
419 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
420 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" alt="<%text(_ADD_BOLD_TT)%>(Ctrl + Shift + B)" width="16" height="16" />
422 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
423 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" alt="<%text(_ADD_ITALIC_TT)%>(Ctrl + Shift + I)" width="16" height="16" />
425 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
426 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" alt="<%text(_ADD_HREF_TT)%>(Ctrl + Shift + A)" width="16" height="16" />
430 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
431 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
433 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
434 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
436 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
437 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
440 <span class="jsbuttonspacer"> </span>
441 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
442 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
444 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
445 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
447 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
448 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
450 <span class="jsbuttonspacer"> </span>
451 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
452 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
454 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
455 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
457 <span class="jsbuttonspacer"> </span>
458 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
459 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
462 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
463 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
466 <div class="jsbuttonend"></div>
469 <textarea id="inputmore" name="more" cols="58" rows="17"><%contents(more)%></textarea>
475 <div id="options" class="contentblock">
476 <table frame="box" rules="all" summary="<%text(_BMLET_OPTIONS)%>">
477 <%if(blogsetting, bcomments)%>
479 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
481 <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>
482 <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>
487 <td><%text(_SUBMIT)%></td>
489 <input id="act_edit" type="radio" name="actiontype" value="edit" checked="checked" />
490 <label for="act_edit"><%text(_BMLET_EDIT)%></label><br />
491 <input id="act_delete" type="radio" name="actiontype" value="delete" />
492 <label for="act_delete"><%text(_BMLET_DELETE)%></label><br />
494 <%if(blogsetting, ballowpast)%>
495 <input id="act_changedate" name="actiontype" value="changedate" type="radio" tabindex="70" />
496 <label for="act_changedate"><%text(_BMLET_CHANGEDATE)%></label> <%helplink(changedate)%>
499 <input id="inputday" name="day" value="<%itemtime(mday)%>" size="2" tabindex="71" onchange="document.forms[0].act_changedate.checked=true;" />/
500 <input id="inputmonth" name="month" value="<%itemtime(mon)%>" tabindex="72" size="2" onchange="document.forms[0].act_changedate.checked=true;" />/
501 <input id="inputyear" name="year" tabindex="73" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />
503 <input id="inputhour" name="hour" value="<%itemtime(hours)%>" size="2" tabindex="74" onchange="document.forms[0].act_changedate.checked=true;" />:
504 <input id="inputminutes" name="minutes" value="<%itemtime(minutes)%>" size="2" tabindex="75" onchange="document.forms[0].act_changedate.checked=true;" />
507 <input type="radio" id="act_backtodrafts" name="actiontype" value="backtodrafts" tabindex="71" />
508 <label for="act_backtodrafts">
509 <%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>
516 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
517 <td><%pluginextras%></td>
524 <div id="preview" class="contentblock">
525 <h2><%text(_ADD_PREVIEW)%></h2>
526 <b><span id="prevtitle"> </span></b><br />
527 <span id="prevbody"> </span><br />
528 <span id="prevmore"> </span>
533 <script type="text/javascript">
534 var xmlhttprequest = new Array();
535 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
536 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
537 var seconds = now(); // Last AutoDraft time
538 var checks = 0; // Number of checks since last AutoDraft
539 var addform = document.getElementById('editform');
540 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
541 var goalurl = '../action.php'; // The PHP file where the content must be posted to
542 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
543 var formtype = 'edit';
549 <part name="pagefoot">
555 <part name="pagehead">
556 <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
557 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%locale%>" lang="<%locale%>">
559 <title><%title%></title>
560 <link rel="stylesheet" type="text/css" href="<%skinfile(/styles/bookmarklet.css)%>" />
561 <link rel="stylesheet" type="text/css" href="<%skinfile(/styles/addedit.css)%>" />
562 <script type="text/javascript" src="<%skinfile(/javascripts/bookmarklet.js)%>"></script>
563 <script type="text/javascript" src="<%skinfile(/javascripts/edit.js)%>"></script>
564 <script type="text/javascript" src="<%skinfile(/javascripts/numbercheck.js)%>"></script>
567 <script type="text/javascript" src="<%skinfile(/javascripts/xmlhttprequest.js)%>"></script>
574 <script type="text/javascript">
575 var nucleus_initbm_oldonload = window.onload;
576 function nucleus_initbm()
581 if ( nucleus_initbm_oldonload )
583 nucleus_initbm_oldonload();
586 window.onload = nucleus_initbm;
592 <part name="showlogin">
593 <![CDATA[<%pagehead%><h2><%text(_LOGIN)%></h2>
595 <form method="post" action="<%adminurl%>bookmarklet.php">
597 <%text(_LOGIN_NAME)%> <br /><input name="login" tabindex="10" /><br />
598 <%text(_LOGIN_PASSWORD)%> <br /><input name="password" tabindex="20" type="password" /><br />
599 <input type="checkbox" value="1" name="shared" tabindex="40" id="shared" />
600 <label for="shared"><%text(_LOGIN_SHARED)%></label><br />
601 <a href="forgotpassword.php"><%text(_LOGIN_FORGOT)%></a>
605 <input type="hidden" name="blogid" value="<%blogid%>" />
606 <input type="hidden" name="itemid" value="<%itemid%>" />
607 <input type="hidden" name="logtext" value="<%log_text%>" />
608 <input type="hidden" name="loglink" value="<%log_link%>" />
609 <input type="hidden" name="loglinktitle" value="<%log_linktitle%>" />
611 <input type="hidden" name="nextaction" value="<%action%>" />
612 <button type="submit" name="action" value="login"><%text(_LOGIN)%></button>
615 <%pagefoot%>]]></part>
617 <part name="adminerrorpage"><![CDATA[
620 <p><a href="<%adminurl%>bookmarklet.php" onclick="window.close();window.opener.location.reload();"><%text(_POPUP_CLOSE)%></a></p>
625 <template name="admin/bookmarklet">
626 <description><![CDATA[ADMIN Area Default bookmarklet template]]></description>