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">
4 <title><%text(_ADD_ADDTO)%> '<%blogname%>'</title>
5 <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />
6 <link rel="stylesheet" type="text/css" href="styles/addedit.css" />
7 <script type="text/javascript" src="javascript/bookmarklet.js"></script>
8 <script type="text/javascript" src="javascript/edit.js"></script>
9 <script type="text/javascript" src="javascript/numbercheck.js"></script>
10 <script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
13 <script type="text/javascript">
14 var nucleus_initbm_oldonload = window.onload;
15 function nucleus_initbm()
20 if (nucleus_initbm_oldonload)
21 nucleus_initbm_oldonload();
23 window.onload = nucleus_initbm;
27 <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>
28 <form id="addform" method="post" action="bookmarklet.php" ><div>
30 <input name="action" type="hidden" value="additem" />
31 <input name="blogid" type="hidden" value="<%blogid%>" />
32 <input type="hidden" name="draftid" value="0" />
35 <div id="submit" class="buttonbar">
36 <input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" />
37 <div id="switchbuttons">
38 <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" />
39 <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" />
40 <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" />
41 <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" />
45 <div id="body" class="contentblock">
49 <td><%text(_AUTOSAVEDRAFT)%></td>
50 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
53 <td><%text(_ADD_TITLE)%></td>
57 type="text" size="60" maxlength="160"
58 value="<%contents(title)%>"
62 <%text(_ADD_BODY)%> <%helplink(additem)%></td>
64 <%jsbuttonbar(media)%>
68 rows="12"><%contents(body)%></textarea>
72 <%text(_ADD_CATEGORY)%></td>
73 <td><%categories%></td>
76 <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
77 <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td>
84 <div id="more" class="contentblock">
87 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
89 <%jsbuttonbar(media)%>
93 rows="17"><%contents(more)%></textarea>
96 <div id="options" class="contentblock">
98 <%ifblogsetting(bcomments)%>
100 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
102 <input type='radio' name='closed' value='1' id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
103 <input type='radio' name='closed' value='0' checked='checked' id="closed_no"/><label for="closed_no"><%text(_NO)%></label>
109 <td><%text(_ADD_DRAFTNFUTURE)%></td>
111 <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>
113 <input name="actiontype" value="addfuture" type="radio" id="act_future" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
115 <%text(_ADD_PLACE_ON)%>
116 <input id="inputyear" name="year" size="4" value="<%currenttime(year)%>" />年
117 <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" />月
118 <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" />日
119 <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" />時
120 <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" />分
122 フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
123 <%ifblogsetting(ballowpast,0)%>
125 <%text(_ADD_NOPASTDATES)%>
128 <input name="actiontype" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
132 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
134 <%pluginextras%></td>
144 <div id="preview" class="contentblock">
145 <h2><%text(_ADD_PREVIEW)%></h2>
147 <b><span id="prevtitle"> </span></b>
149 <span id="prevbody"> </span>
151 <span id="prevmore"> </span>
156 <script type="text/javascript">
157 var xmlhttprequest = new Array();
158 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
159 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
160 var seconds = now(); // Last AutoDraft time
161 var checks = 0; // Number of checks since last AutoDraft
162 var addform = document.getElementById('addform'); // The form id
163 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
164 var goalurl = '../action.php'; // The PHP file where the content must be posted to
165 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
166 var formtype = 'add'; // Add or edit form