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="admin" includePrefix="admin/bookmarklet">
\r
10 <![CDATA[ADMIN Area Default Bookmarklet Skin]]>
\r
12 <part name="createitem">
\r
13 <![CDATA[<h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>
\r
14 <form id="addform" method="post" action="bookmarklet.php" >
\r
16 <input name="action" type="hidden" value="additem" />
\r
17 <input name="blogid" type="hidden" value="<%blogid%>" />
\r
18 <input type="hidden" name="draftid" value="0" />
\r
21 <div id="submit" class="buttonbar">
\r
22 <div id="switchbuttons">
\r
23 <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" />
\r
24 <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" />
\r
25 <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" />
\r
26 <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" />
\r
28 <input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" />
\r
29 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
\r
32 <div id="body" class="contentblock">
\r
33 <table frame="box" rules="all" summary="<%text(_BMLET_BODY)%>">
\r
36 <td><%text(_AUTOSAVEDRAFT)%></td>
\r
37 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
\r
41 <td><%text(_ADD_TITLE)%></td>
\r
42 <td><input <%jsinput(title)%> type="text" size="60" maxlength="160" value="<%contents(title)%>" /></td>
\r
46 <%text(_ADD_BODY)%> <%helplink(additem)%></td>
\r
48 <%jsbuttonbar(media)%>
\r
50 <%jsinput(body)%> cols="58" rows="12"><%contents(body)%></textarea></td>
\r
53 <td><%text(_ADD_CATEGORY)%></td>
\r
54 <td><%categories%></td>
\r
58 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
\r
59 <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td>
\r
65 <div id="more" class="contentblock">
\r
66 <table frame="box" rules="all" summary="<%text(_BMLET_MORE)%>">
\r
68 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
\r
70 <%jsbuttonbar(media)%>
\r
71 <textarea <%jsinput(more)%> cols="58" rows="17"><%contents(more)%></textarea>
\r
77 <div id="options" class="contentblock">
\r
78 <table frame="box" rules="all" summary="<%text(_BMLET_OPTIONS)%>">
\r
79 <%if(blogsetting, bcomments)%>
\r
81 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
\r
83 <input id="closed_yes" type='radio' name='closed' value='1' /><label for="closed_yes"><%text(_YES)%></label>
\r
84 <input id="closed_no" type='radio' name='closed' value='0' checked='checked' /><label for="closed_no"><%text(_NO)%></label>
\r
89 <td><%text(_ADD_DRAFTNFUTURE)%></td>
\r
91 <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" />
\r
92 <label for="act_now"><%text(_ADD_ADDNOW)%></label><br />
\r
93 <input name="actiontype" value="addfuture" type="radio" id="act_future" />
\r
94 <label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
\r
95 <div class="indent">
\r
96 <%text(_ADD_PLACE_ON)%>
\r
97 <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />/
\r
98 <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />/
\r
99 <input id="inputyear" name="year" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />
\r
101 <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />:
\r
102 <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />
\r
104 <%if(blogsetting, ballowpast,0)%>
\r
106 <%text(_ADD_NOPASTDATES)%>
\r
109 <input name="actiontype" value="adddraft" type="radio" id="act_draft" />
\r
110 <label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
\r
114 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
\r
115 <td><%pluginextras%></td>
\r
122 <div id="preview" class="contentblock">
\r
123 <h2><%text(_ADD_PREVIEW)%></h2>
\r
124 <b><span id="prevtitle"> </span></b><br />
\r
125 <span id="prevbody"> </span><br />
\r
126 <span id="prevmore"> </span>
\r
135 <part name="itemedit">
\r
136 <![CDATA[<h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>
\r
137 <form id="editform" method="post" action="bookmarklet.php" ><div>
\r
138 <input name="action" type="hidden" value="edititem" />
\r
139 <input name="itemid" type="hidden" value="<%contents(itemid)%>" />
\r
140 <input type="hidden" name="draftid" value="0" />
\r
143 <div id="submit" class="buttonbar">
\r
144 <div id="switchbuttons">
\r
145 <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" />
\r
146 <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" />
\r
147 <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" />
\r
148 <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" />
\r
150 <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />
\r
151 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
\r
154 <div id="body" class="contentblock">
\r
155 <table frame="box" rules="all" summary="<%text(_BMLET_BODY)%>">
\r
158 <td><%text(_AUTOSAVEDRAFT)%></td>
\r
159 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
\r
163 <td><%text(_ADD_TITLE)%></td>
\r
164 <td><input <%jsinput(title)%> type="text" size="60" maxlength="160" value="<%contents(title)%>" /></td>
\r
167 <td><%text(_ADD_BODY)%></td>
\r
169 <%jsbuttonbar(media)%>
\r
170 <textarea <%jsinput(body)%> cols="58" rows="12"><%contents(body)%></textarea>
\r
174 <td><%text(_ADD_CATEGORY)%></td>
\r
175 <td><%categories%></td>
\r
179 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
\r
180 <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td>
\r
186 <div id="more" class="contentblock">
\r
187 <table frame="box" rules="all" summary="<%text(_BMLET_MORE)%>">
\r
189 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
\r
191 <%jsbuttonbar(media)%>
\r
192 <textarea <%jsinput(more)%> cols="58" rows="17"><%contents(more)%></textarea>
\r
198 <div id="options" class="contentblock">
\r
199 <table frame="box" rules="all" summary="<%text(_BMLET_OPTIONS)%>">
\r
200 <%if(blogsetting, bcomments)%>
\r
202 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
\r
204 <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>
\r
205 <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>
\r
210 <td><%text(_SUBMIT)%></td>
\r
212 <input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" /><label for="act_edit"><%text(_BMLET_EDIT)%></label>
\r
213 <input name="actiontype" value="delete" type="radio" id="act_delete" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
\r
214 <%if(blogsetting, ballowpast)%>
\r
215 <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" />
\r
216 <label for="act_changedate"><%text(_BMLET_CHANGEDATE)%></label> <%helplink(changedate)%>
\r
217 <div class="indent">
\r
218 <input id="inputday" name="day" tabindex="71" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" />/
\r
219 <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" />/
\r
220 <input id="inputyear" name="year" tabindex="73" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />
\r
222 <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" />:
\r
223 <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" />
\r
226 <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts">
\r
227 <%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>
\r
232 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
\r
233 <td><%pluginextras%></td>
\r
239 <div id="preview" class="contentblock">
\r
240 <h2><%text(_ADD_PREVIEW)%></h2>
\r
241 <b><span id="prevtitle"> </span></b><br />
\r
242 <span id="prevbody"> </span><br />
\r
243 <span id="prevmore"> </span>
\r
250 <part name="pagefoot">
\r
251 <![CDATA[<%if(autosave)%>
\r
252 <script type="text/javascript">
\r
253 var xmlhttprequest = new Array();
\r
254 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
\r
255 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
\r
256 var seconds = now(); // Last AutoDraft time
\r
257 var checks = 0; // Number of checks since last AutoDraft
\r
258 var addform = document.getElementById('addform'); // The form id
\r
259 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
\r
260 var goalurl = '../action.php'; // The PHP file where the content must be posted to
\r
261 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
\r
262 var formtype = 'add'; // Add or edit form
\r
269 <part name="pagehead">
\r
270 <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
271 <html xmlns="http://www.w3.org/1999/xhtml">
\r
273 <title><%title%></title>
\r
274 <link rel="stylesheet" type="text/css" href="<%skinfile(styles/bookmarklet.css)%>" />
\r
275 <link rel="stylesheet" type="text/css" href="<%skinfile(styles/addedit.css)%>" />
\r
276 <script type="text/javascript" src="<%skinfile(javascript/bookmarklet.js)%>"></script>
\r
277 <script type="text/javascript" src="<%skinfile(javascript/edit.js)%>"></script>
\r
278 <script type="text/javascript" src="<%skinfile(javascript/numbercheck.js)%>"></script>
\r
281 <script type="text/javascript" src="<%skinfile(javascript/xmlhttprequest.js)%>"></script>
\r
288 <script type="text/javascript">
\r
289 var nucleus_initbm_oldonload = window.onload;
\r
290 function nucleus_initbm()
\r
295 if ( nucleus_initbm_oldonload )
\r
297 nucleus_initbm_oldonload();
\r
300 window.onload = nucleus_initbm;
\r
306 <part name="showlogin">
\r
307 <![CDATA[<h2><%text(_LOGIN)%></h2>
\r
309 <form action="bookmarklet.php" method="post">
\r
311 <%text(_LOGIN_NAME)%> <br /><input name="login" tabindex="10" /><br />
\r
312 <%text(_LOGIN_PASSWORD)%> <br /><input name="password" tabindex="20" type="password" /><br />
\r
313 <input type="checkbox" value="1" name="shared" tabindex="40" id="shared" />
\r
314 <label for="shared"><%text(_LOGIN_SHARED)%></label><br />
\r
315 <a href="forgotpassword.html"><%text(_LOGIN_FORGOT)%></a>
\r
317 <%passrequestvars%>
\r
319 <input type="hidden" name="blogid" value="<%blogid%>" />
\r
320 <input type="hidden" name="itemid" value="<%itemid%>" />
\r
321 <input type="hidden" name="logtext" value="<%log_text%>" />
\r
322 <input type="hidden" name="loglink" value="<%log_link%>" />
\r
323 <input type="hidden" name="loglinktitle" value="<%log_linktitle%>" />
\r
325 <input type="hidden" name="nextaction" value="<%action%>" />
\r
326 <button type="submit" name="action" value="login"><%text(_LOGIN)%></button>
\r
331 <part name="adminerrorpage"><![CDATA[<p><%headmessage%></p>
\r
332 <p><a href="bookmarklet.php" onclick="window.close();window.opener.location.reload();"></a></p>
\r
336 <template name="admin/default">
\r
337 <description><![CDATA[デフォルト管理画面用テンプレート]]></description>
\r