OSDN Git Service

/nucleus/libs/include/ 内のファイルを本家3.4RCに会わせて更新
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / bookmarklet-edit.template
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
2         <html xmlns="http://www.w3.org/1999/xhtml">\r
3         <head>\r
4                 <meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />\r
5                 <title><%text(_EDIT_ITEM)%></title>\r
6                 <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />\r
7                 <link rel="stylesheet" type="text/css" href="styles/addedit.css" />                             \r
8                 <script type="text/javascript" src="javascript/bookmarklet.js"></script>\r
9                 <script type="text/javascript" src="javascript/edit.js"></script>\r
10                 <script type="text/javascript" src="javascript/numbercheck.js"></script>\r
11                 <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>\r
12                 <%init%>\r
13                 <%extrahead%>\r
14                 <script type="text/javascript">\r
15                         var nucleus_initbm_oldonload = window.onload;\r
16                         function nucleus_initbm()\r
17                         {\r
18                                 initStyles(); \r
19                                 updAllPreviews();\r
20 \r
21                                 if (nucleus_initbm_oldonload)\r
22                                         nucleus_initbm_oldonload();\r
23                         }\r
24                         window.onload = nucleus_initbm;\r
25                 </script>\r
26         </head>\r
27         <body>\r
28                 <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>\r
29                 <form id="editform" method="post" action="bookmarklet.php" ><div>\r
30                         \r
31                         <input name="action" type="hidden" value="edititem" />\r
32                         <input name="itemid" type="hidden" value="<%contents(itemid)%>" />\r
33                         <input type="hidden" name="draftid" value="0" />\r
34                         <%ticket%>\r
35                         \r
36                         <div id="submit" class="buttonbar">\r
37                                 <div id="switchbuttons">\r
38                                         <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> &gt;&gt;" />\r
39                                         <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />\r
40                                         <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />\r
41                                         <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />\r
42                                 </div>\r
43                                 <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />\r
44                                 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />\r
45                         </div>\r
46 \r
47                         <div id="body" class="contentblock">\r
48                                 <table>\r
49                                 <%ifautosave()%><tr>\r
50                                 <td><%text(_AUTOSAVEDRAFT)%></td>\r
51                                 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>\r
52                                 </tr><%endif%>\r
53                                 <tr>\r
54                                 <td><%text(_ADD_TITLE)%></td>\r
55                                 <td><input \r
56                                         <%jsinput(title)%>\r
57                                         type="text" size="60" maxlength="160" \r
58                                         value="<%contents(title)%>"\r
59                                 /></td></tr>\r
60                         \r
61                                 <tr><td>\r
62                                 <%text(_ADD_BODY)%>\r
63                                 </td><td>\r
64                                 <%jsbuttonbar(media)%>\r
65                                 <textarea \r
66                                         <%jsinput(body)%>\r
67                                         cols="58" \r
68                                         rows="12"><%contents(body)%></textarea>\r
69 \r
70                                 </td></tr>\r
71                                 <tr>\r
72                                 <td><%text(_ADD_CATEGORY)%></td>\r
73                                 <td><%categories%></td>\r
74                                 </tr>\r
75                                 <tr>\r
76                                 <%ifautosave()%><td><%text(_AUTOSAVEDRAFT_NOW)%></td>\r
77                                 <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td><%endif%>\r
78                                 </tr>\r
79                                 </table>\r
80                                         \r
81                         </div>\r
82                         \r
83                         <div id="more" class="contentblock">\r
84                                 <table>\r
85                                 <tr>\r
86                                 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
87                                 <td>\r
88                                 <%jsbuttonbar(media)%>\r
89                                 <textarea \r
90                                         <%jsinput(more)%>\r
91                                         cols="58" \r
92                                         rows="17"><%contents(more)%></textarea>\r
93                                 </td></tr></table>\r
94                         </div>\r
95                         <div id="options" class="contentblock">\r
96                                 <table>\r
97                                 <%ifblogsetting(bcomments)%>\r
98                                         <tr>\r
99                                         <td><%text(_ADD_DISABLE_COMMENTS)%></td>\r
100                                         <td>\r
101                                     <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>\r
102                                     <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>\r
103                                         </td>\r
104                                         </tr>\r
105                                 <%endif%>\r
106                                 \r
107                                 <!-- The only actiontypes are 'edit', 'changedate' (no draft items can be edited) and 'delete' -->\r
108                                 <tr>\r
109                                 <td>Action</td>\r
110                                 <td>\r
111                                 <ul class="nobullets">\r
112                                         <li><input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" /><label for="act_edit"><%text(_BMLET_EDIT)%></label></li>\r
113                                         <li><input name="actiontype" value="delete" type="radio" id="act_delete" /><label for="act_delete"><%text(_BMLET_DELETE)%></label></li>\r
114                                         <%ifblogsetting(ballowpast)%>\r
115                                                 <li>\r
116                                                         <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_BMLET_CHANGEDATE)%></label> <%helplink(changedate)%>\r
117                                                                         <div class="indent">\r
118                                                                                 <input id="inputyear" name="year" tabindex="71" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />年\r
119                                                                                 <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" />月\r
120                                                                                 <input id="inputday" name="day" tabindex="73" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" />日\r
121 \r
122                                                                                 <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" />時\r
123                                                                                 <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" />分\r
124                                                                                 <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
125                                                                         </div>\r
126                                                         </li>\r
127                                                         <li>\r
128                                                                 <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>\r
129                                                         </li>\r
130                                         <%endif%>\r
131                                 </ul>\r
132                                 <input id="dosendping" name="dosendping" value="1" type="checkbox"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
133                                 </td></tr>\r
134                                 \r
135                                 <tr>\r
136                                 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
137                                 <td>\r
138                                 <%pluginextras%>\r
139                                 </td></tr>\r
140                                 \r
141                                   <%itemoptions%>\r
142                                 </table>\r
143                                 \r
144                         </div>\r
145                         \r
146                         <div id="preview" class="contentblock">\r
147                                 <h2><%text(_ADD_PREVIEW)%></h2>\r
148                                 \r
149                                 <b><span id="prevtitle">&#160;</span></b>\r
150                                 <br />\r
151                                 <span id="prevbody">&#160;</span>\r
152                                 <br />\r
153                                 <span id="prevmore">&#160;</span>\r
154                         </div>\r
155                         \r
156                 </div></form>\r
157 \r
158         <%ifautosave()%><script type="text/javascript">\r
159                 var xmlhttprequest = new Array();\r
160                 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
161                 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
162                 var seconds = now(); // Last AutoDraft time\r
163                 var checks = 0; // Number of checks since last AutoDraft\r
164                 var addform = document.getElementById('editform'); // The form id\r
165                 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
166                 var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
167                 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
168                 var formtype = 'edit'; // Add or edit form\r
169         </script><%endif%>\r
170 \r
171         </body>\r
172         </html>\r
173 \r