1 <?xml version="1.0"?>
\r
4 <skin name="admin/bookmarklet"/>
\r
5 <template name="admin/bookmarklet"/>
\r
6 <info><![CDATA[20120430]]></info>
\r
8 <skin name="admin/bookmarklet" type="text/html" includeMode="skindir" includePrefix="admin/bookmarklet">
\r
10 <![CDATA[ADMIN Area Default Bookmarklet Skin]]>
\r
12 <part name="createitem">
\r
13 <![CDATA[<%pagehead%>
\r
14 <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>
\r
16 <form id="addform" method="post" action="<%adminurl%>bookmarklet.php" >
\r
19 <input type="hidden" name="action" value="additem" />
\r
20 <input type="hidden" name="blogid" value="<%blogid%>" />
\r
21 <input type="hidden" name="draftid" value="0" />
\r
25 <div id="submit" class="buttonbar">
\r
26 <div id="switchbuttons">
\r
27 <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" />
\r
28 <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" />
\r
29 <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" />
\r
30 <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" />
\r
32 <input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" />
\r
33 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
\r
36 <div id="body" class="contentblock">
\r
37 <table frame="box" rules="all" summary="<%text(_BMLET_BODY)%>">
\r
40 <td><%text(_AUTOSAVEDRAFT)%></td>
\r
41 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
\r
45 <td><%text(_ADD_TITLE)%></td>
\r
46 <td><input type="text" id="inputtitle" name="title" value="<%contents(title)%>" size="60" maxlength="160" /></td>
\r
50 <%text(_ADD_BODY)%> <%helplink(additem)%></td>
\r
53 <div class="jsbuttonbar">
\r
55 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
\r
56 <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" />
\r
58 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
\r
59 <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" />
\r
61 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
\r
62 <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" />
\r
64 <span class="jsbuttonspacer"> </span>
\r
65 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
66 <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" />
\r
68 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
69 <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" />
\r
71 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
72 <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" />
\r
76 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
77 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
\r
79 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
80 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
\r
82 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
83 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
\r
86 <span class="jsbuttonspacer"> </span>
\r
87 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
\r
88 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
\r
90 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
\r
91 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
\r
93 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
\r
94 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
\r
96 <span class="jsbuttonspacer"> </span>
\r
97 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
\r
98 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
\r
100 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
\r
101 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
\r
103 <span class="jsbuttonspacer"> </span>
\r
104 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
\r
105 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
\r
108 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
\r
109 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
\r
112 <div class="jsbuttonend"></div>
\r
115 <textarea id="inputbody" name="body" cols="58" rows="12"><%contents(body)%></textarea></td>
\r
118 <td><%text(_ADD_CATEGORY)%></td>
\r
119 <td><%categories%></td>
\r
123 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
\r
124 <td><input type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" tabindex="80" onclick="autoSaveDraft();" /></td>
\r
130 <div id="more" class="contentblock">
\r
131 <table frame="box" rules="all" summary="<%text(_BMLET_MORE)%>">
\r
133 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
\r
136 <div class="jsbuttonbar">
\r
138 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
\r
139 <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" />
\r
141 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
\r
142 <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" />
\r
144 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
\r
145 <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" />
\r
147 <span class="jsbuttonspacer"> </span>
\r
148 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
149 <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" />
\r
151 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
152 <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" />
\r
154 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
155 <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" />
\r
159 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
160 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
\r
162 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
163 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
\r
165 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
166 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
\r
169 <span class="jsbuttonspacer"> </span>
\r
170 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
\r
171 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
\r
173 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
\r
174 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
\r
176 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
\r
177 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
\r
179 <span class="jsbuttonspacer"> </span>
\r
180 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
\r
181 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
\r
183 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
\r
184 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
\r
186 <span class="jsbuttonspacer"> </span>
\r
187 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
\r
188 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
\r
191 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
\r
192 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
\r
195 <div class="jsbuttonend"></div>
\r
198 <textarea id="inputmore" name="more" cols="58" rows="17"><%contents(more)%></textarea>
\r
204 <div id="options" class="contentblock">
\r
205 <table frame="box" rules="all" summary="<%text(_BMLET_OPTIONS)%>">
\r
207 <%if(blogsetting, bcomments)%>
\r
209 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
\r
211 <input type='radio' id="closed_yes" name='closed' value='1' />
\r
212 <label for="closed_yes"><%text(_YES)%></label>
\r
213 <input type='radio' id="closed_no" name='closed' value='0' checked='checked' />
\r
214 <label for="closed_no"><%text(_NO)%></label>
\r
220 <td><%text(_ADD_DRAFTNFUTURE)%></td>
\r
222 <input type="radio" name="actiontype" value="addnow" checked='checked' id="act_now" />
\r
223 <label for="act_now"><%text(_ADD_ADDNOW)%></label><br />
\r
224 <input type="radio" id="act_future" name="actiontype" value="addfuture" />
\r
225 <label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
\r
226 <div class="indent">
\r
227 <%text(_ADD_PLACE_ON)%>
\r
228 <input id="inputday" name="day" value="<%currenttime(mday)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />/
\r
229 <input id="inputmonth" name="month" value="<%currenttime(mon)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />/
\r
230 <input id="inputyear" name="year" value="<%currenttime(year)%>" size="4" onchange="document.forms[0].act_future.checked=true;" />
\r
232 <input id="inputhour" name="hour" value="<%currenttime(hours)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />:
\r
233 <input id="inputminutes" name="minutes" value="<%currenttime(minutes)%>" size="2" onchange="document.forms[0].act_future.checked=true;" />
\r
236 <%if(blogsetting, ballowpast,0)%>
\r
238 <%text(_ADD_NOPASTDATES)%>
\r
242 <input type="radio" name="actiontype" value="adddraft" id="act_draft" />
\r
243 <label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
\r
248 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
\r
249 <td><%pluginextras%></td>
\r
256 <div id="preview" class="contentblock">
\r
257 <h2><%text(_ADD_PREVIEW)%></h2>
\r
258 <b><span id="prevtitle"> </span></b><br />
\r
259 <span id="prevbody"> </span><br />
\r
260 <span id="prevmore"> </span>
\r
264 <script type="text/javascript">
\r
265 var xmlhttprequest = new Array();
\r
266 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
\r
267 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
\r
268 var seconds = now(); // Last AutoDraft time
\r
269 var checks = 0; // Number of checks since last AutoDraft
\r
270 var addform = document.getElementById('addform');
\r
271 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
\r
272 var goalurl = '../action.php'; // The PHP file where the content must be posted to
\r
273 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
\r
274 var formtype = 'add';
\r
284 <part name="itemedit">
\r
285 <![CDATA[<%pagehead%>
\r
286 <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>
\r
287 <form id="editform" method="post" action="<%adminurl%>bookmarklet.php" ><div>
\r
288 <input type="hidden" name="action" value="edititem" />
\r
289 <input type="hidden" name="itemid" value="<%contents(itemid)%>" />
\r
290 <input type="hidden" name="draftid" value="0" />
\r
293 <div id="submit" class="buttonbar">
\r
294 <div id="switchbuttons">
\r
295 <input type="button" value="<%text(_BMLET_BODY)%> >>" onclick="flipBlock('body');" />
\r
296 <input type="button" value="<%text(_BMLET_MORE)%> >>" onclick="flipBlock('more');" />
\r
297 <input type="button" value="<%text(_BMLET_OPTIONS)%> >>" onclick="flipBlock('options');" />
\r
298 <input type="button" value="<%text(_BMLET_PREVIEW)%> >>" onclick="updAllPreviews(); flipBlock('preview');" />
\r
300 <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />
\r
301 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
\r
304 <div id="body" class="contentblock">
\r
305 <table frame="box" rules="all" summary="<%text(_BMLET_BODY)%>">
\r
309 <td><%text(_AUTOSAVEDRAFT)%></td>
\r
310 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
\r
315 <td><%text(_ADD_TITLE)%></td>
\r
316 <td><input type="text" id="inputtitle" name="title" value="<%contents(title)%>" size="60" maxlength="160" /></td>
\r
319 <td><%text(_ADD_BODY)%></td>
\r
322 <div class="jsbuttonbar">
\r
324 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
\r
325 <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" />
\r
327 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
\r
328 <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" />
\r
330 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
\r
331 <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" />
\r
333 <span class="jsbuttonspacer"> </span>
\r
334 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
335 <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" />
\r
337 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
338 <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" />
\r
340 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
341 <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" />
\r
345 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
346 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
\r
348 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
349 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
\r
351 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
352 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
\r
355 <span class="jsbuttonspacer"> </span>
\r
356 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
\r
357 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
\r
359 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
\r
360 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
\r
362 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
\r
363 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
\r
365 <span class="jsbuttonspacer"> </span>
\r
366 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
\r
367 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
\r
369 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
\r
370 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
\r
372 <span class="jsbuttonspacer"> </span>
\r
373 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
\r
374 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
\r
377 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
\r
378 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
\r
381 <div class="jsbuttonend"></div>
\r
384 <textarea id="inputbody" name="body" cols="58" rows="12"><%contents(body)%></textarea>
\r
388 <td><%text(_ADD_CATEGORY)%></td>
\r
389 <td><%categories%></td>
\r
393 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
\r
394 <td><input type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" tabindex="80" onclick="autoSaveDraft();" /></td>
\r
400 <div id="more" class="contentblock">
\r
401 <table frame="box" rules="all" summary="<%text(_BMLET_MORE)%>">
\r
403 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
\r
406 <div class="jsbuttonbar">
\r
408 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="cutThis()">
\r
409 <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" />
\r
411 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="copyThis()">
\r
412 <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" />
\r
414 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="pasteThis()">
\r
415 <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" />
\r
417 <span class="jsbuttonspacer"> </span>
\r
418 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
419 <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" />
\r
421 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
422 <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" />
\r
424 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
425 <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" />
\r
429 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="boldThis()">
\r
430 <img src="<%skinfile(/images/button-bold.gif)%>" title="<%text(_ADD_BOLD_TT)%>" alt="<%text(_ADD_BOLD_TT)%>" width="16" height="16" />
\r
432 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="italicThis()">
\r
433 <img src="<%skinfile(/images/button-italic.gif)%>" title="<%text(_ADD_ITALIC_TT)%>" alt="<%text(_ADD_ITALIC_TT)%>" width="16" height="16" />
\r
435 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="ahrefThis()">
\r
436 <img src="<%skinfile(/images/button-link.gif)%>" title="<%text(_ADD_HREF_TT)%>" alt="<%text(_ADD_HREF_TT)%>" width="16" height="16" />
\r
439 <span class="jsbuttonspacer"> </span>
\r
440 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignleftThis()">
\r
441 <img src="<%skinfile(/images/button-alignleft.gif)%>" title="<%text(_ADD_ALIGNLEFT_TT)%>" alt="<%text(_ADD_ALIGNLEFT_TT)%>" width="16" height="16" />
\r
443 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="alignrightThis()">
\r
444 <img src="<%skinfile(/images/button-alignright.gif)%>" title="<%text(_ADD_ALIGNRIGHT_TT)%>" alt="<%text(_ADD_ALIGNRIGHT_TT)%>" width="16" height="16" />
\r
446 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="aligncenterThis()">
\r
447 <img src="<%skinfile(/images/button-aligncenter.gif)%>" title="<%text(_ADD_ALIGNCENTER_TT)%>" alt="<%text(_ADD_ALIGNCENTER_TT)%>" width="16" height="16" />
\r
449 <span class="jsbuttonspacer"> </span>
\r
450 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="leftThis()">
\r
451 <img src="<%skinfile(/images/button-left.gif)%>" title="<%text(_ADD_LEFT_TT)%>" alt="<%text(_ADD_LEFT_TT)%>" width="16" height="16" />
\r
453 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="rightThis()">
\r
454 <img src="<%skinfile(/images/button-right.gif)%>" title="<%text(_ADD_RIGHT_TT)%>" alt="<%text(_ADD_RIGHT_TT)%>" width="16" height="16" />
\r
456 <span class="jsbuttonspacer"> </span>
\r
457 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="addMedia()">
\r
458 <img src="<%skinfile(/images/button-media.gif)%>" title="<%text(_ADD_MEDIA_TT)%>" alt="<%text(_ADD_MEDIA_TT)%>" width="16" height="16" />
\r
461 <span class="jsbutton" onmouseover="BtnHighlight(this);" onmouseout="BtnNormal(this);" onclick="showedit()">
\r
462 <img src="<%skinfile(/images/button-preview.gif)%>" title="<%text(_ADD_PREVIEW_TT)%>" alt="<%text(_ADD_PREVIEW_TT)%>" width="16" height="16" />
\r
465 <div class="jsbuttonend"></div>
\r
468 <textarea id="inputmore" name="more" cols="58" rows="17"><%contents(more)%></textarea>
\r
474 <div id="options" class="contentblock">
\r
475 <table frame="box" rules="all" summary="<%text(_BMLET_OPTIONS)%>">
\r
476 <%if(blogsetting, bcomments)%>
\r
478 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
\r
480 <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>
\r
481 <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>
\r
486 <td><%text(_SUBMIT)%></td>
\r
488 <input id="act_edit" type="radio" name="actiontype" value="edit" checked="checked" />
\r
489 <label for="act_edit"><%text(_BMLET_EDIT)%></label><br />
\r
490 <input id="act_delete" type="radio" name="actiontype" value="delete" />
\r
491 <label for="act_delete"><%text(_BMLET_DELETE)%></label><br />
\r
493 <%if(blogsetting, ballowpast)%>
\r
494 <input id="act_changedate" name="actiontype" value="changedate" type="radio" tabindex="70" />
\r
495 <label for="act_changedate"><%text(_BMLET_CHANGEDATE)%></label> <%helplink(changedate)%>
\r
497 <div class="indent">
\r
498 <input id="inputday" name="day" value="<%itemtime(mday)%>" size="2" tabindex="71" onchange="document.forms[0].act_changedate.checked=true;" />/
\r
499 <input id="inputmonth" name="month" value="<%itemtime(mon)%>" tabindex="72" size="2" onchange="document.forms[0].act_changedate.checked=true;" />/
\r
500 <input id="inputyear" name="year" tabindex="73" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />
\r
502 <input id="inputhour" name="hour" value="<%itemtime(hours)%>" size="2" tabindex="74" onchange="document.forms[0].act_changedate.checked=true;" />:
\r
503 <input id="inputminutes" name="minutes" value="<%itemtime(minutes)%>" size="2" tabindex="75" onchange="document.forms[0].act_changedate.checked=true;" />
\r
506 <input type="radio" id="act_backtodrafts" name="actiontype" value="backtodrafts" tabindex="71" />
\r
507 <label for="act_backtodrafts">
\r
508 <%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>
\r
515 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
\r
516 <td><%pluginextras%></td>
\r
523 <div id="preview" class="contentblock">
\r
524 <h2><%text(_ADD_PREVIEW)%></h2>
\r
525 <b><span id="prevtitle"> </span></b><br />
\r
526 <span id="prevbody"> </span><br />
\r
527 <span id="prevmore"> </span>
\r
532 <script type="text/javascript">
\r
533 var xmlhttprequest = new Array();
\r
534 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
\r
535 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
\r
536 var seconds = now(); // Last AutoDraft time
\r
537 var checks = 0; // Number of checks since last AutoDraft
\r
538 var addform = document.getElementById('editform');
\r
539 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
\r
540 var goalurl = '../action.php'; // The PHP file where the content must be posted to
\r
541 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
\r
542 var formtype = 'edit';
\r
548 <part name="pagefoot">
\r
554 <part name="pagehead">
\r
555 <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
556 <html xmlns="http://www.w3.org/1999/xhtml">
\r
558 <title><%title%></title>
\r
559 <link rel="stylesheet" type="text/css" href="<%skinfile(/styles/bookmarklet.css)%>" />
\r
560 <link rel="stylesheet" type="text/css" href="<%skinfile(/styles/addedit.css)%>" />
\r
561 <script type="text/javascript" src="<%skinfile(/javascripts/bookmarklet.js)%>"></script>
\r
562 <script type="text/javascript" src="<%skinfile(/javascripts/edit.js)%>"></script>
\r
563 <script type="text/javascript" src="<%skinfile(/javascripts/numbercheck.js)%>"></script>
\r
566 <script type="text/javascript" src="<%skinfile(/javascripts/xmlhttprequest.js)%>"></script>
\r
573 <script type="text/javascript">
\r
574 var nucleus_initbm_oldonload = window.onload;
\r
575 function nucleus_initbm()
\r
580 if ( nucleus_initbm_oldonload )
\r
582 nucleus_initbm_oldonload();
\r
585 window.onload = nucleus_initbm;
\r
591 <part name="showlogin">
\r
592 <![CDATA[<%pagehead%><h2><%text(_LOGIN)%></h2>
\r
594 <form method="post" action="<%adminurl%>bookmarklet.php">
\r
596 <%text(_LOGIN_NAME)%> <br /><input name="login" tabindex="10" /><br />
\r
597 <%text(_LOGIN_PASSWORD)%> <br /><input name="password" tabindex="20" type="password" /><br />
\r
598 <input type="checkbox" value="1" name="shared" tabindex="40" id="shared" />
\r
599 <label for="shared"><%text(_LOGIN_SHARED)%></label><br />
\r
600 <a href="forgotpassword.php"><%text(_LOGIN_FORGOT)%></a>
\r
602 <%passrequestvars%>
\r
604 <input type="hidden" name="blogid" value="<%blogid%>" />
\r
605 <input type="hidden" name="itemid" value="<%itemid%>" />
\r
606 <input type="hidden" name="logtext" value="<%log_text%>" />
\r
607 <input type="hidden" name="loglink" value="<%log_link%>" />
\r
608 <input type="hidden" name="loglinktitle" value="<%log_linktitle%>" />
\r
610 <input type="hidden" name="nextaction" value="<%action%>" />
\r
611 <button type="submit" name="action" value="login"><%text(_LOGIN)%></button>
\r
614 <%pagefoot%>]]></part>
\r
616 <part name="adminerrorpage"><![CDATA[
\r
619 <p><a href="<%adminurl%>bookmarklet.php" onclick="window.close();window.opener.location.reload();"><%text(_POPUP_CLOSE)%></a></p>
\r
624 <template name="admin/bookmarklet">
\r
625 <description><![CDATA[ADMIN Area Default bookmarklet template]]></description>
\r