OSDN Git Service

/nucleus/libs/include/ 内のファイルを本家3.4RCに会わせて更新
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / bookmarklet-add.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(_ADD_ADDTO)%> '<%blogname%>'</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(_ADD_ADDTO)%> '<%bloglink%>'</h1>\r
29                 <form id="addform" method="post" action="bookmarklet.php" ><div>\r
30                         \r
31                         <input name="action" type="hidden" value="additem" />\r
32                         <input name="blogid" type="hidden" value="<%blogid%>" />\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_ADD)%>" 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 \r
49                                 <table>\r
50                                 <%ifautosave()%><tr>\r
51                                 <td><%text(_AUTOSAVEDRAFT)%></td>\r
52                                 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>\r
53                                 </tr><%endif%>\r
54                                 <tr>\r
55                                 <td><%text(_ADD_TITLE)%></td>\r
56                                 <td>\r
57                                 <input \r
58                                         <%jsinput(title)%>\r
59                                         type="text" size="60" maxlength="160" \r
60                                         value="<%contents(title)%>"\r
61                                 /></td>\r
62                                 </tr><tr>\r
63                                 <td>\r
64                                 <%text(_ADD_BODY)%> <%helplink(additem)%></td>\r
65                                 <td>\r
66                                 <%jsbuttonbar(media)%>\r
67                                 <textarea \r
68                                         <%jsinput(body)%>\r
69                                         cols="58" \r
70                                         rows="12"><%contents(body)%></textarea>\r
71                                         \r
72                                 </td></tr>\r
73                                 <tr><td>\r
74                                 <%text(_ADD_CATEGORY)%></td>\r
75                                 <td><%categories%></td>\r
76                                 </tr>\r
77                                 <tr>\r
78                                 <%ifautosave()%><td><%text(_AUTOSAVEDRAFT_NOW)%></td>\r
79                                 <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td><%endif%>\r
80                                 </tr>\r
81                                 </table>\r
82 \r
83                                         \r
84                         </div>\r
85                         \r
86                         <div id="more" class="contentblock">\r
87                                 <table>\r
88                                 <tr>\r
89                                 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
90                                 <td>\r
91                                 <%jsbuttonbar(media)%>\r
92                                 <textarea \r
93                                         <%jsinput(more)%>\r
94                                         cols="58" \r
95                                         rows="17"><%contents(more)%></textarea>\r
96                                 </td></tr></table>\r
97                         </div>\r
98                         <div id="options" class="contentblock">\r
99                                 <table>\r
100                                 <%ifblogsetting(bcomments)%>\r
101                                         <tr>\r
102                                         <td><%text(_ADD_DISABLE_COMMENTS)%></td>\r
103                                         <td>\r
104                                         <input type='radio' name='closed' value='1' id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>\r
105                                         <input type='radio' name='closed' value='0' checked='checked' id="closed_no"/><label for="closed_no"><%text(_NO)%></label>\r
106                                         </td>\r
107                                         </tr>\r
108                                 <%endif%>\r
109                                 \r
110                                 <tr>\r
111                                 <td><%text(_ADD_DRAFTNFUTURE)%></td>\r
112                                 <td>\r
113                                         <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>\r
114                                         <br />\r
115                                         <input name="actiontype" value="addfuture" type="radio" id="act_future" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>\r
116                                         <div class="indent">\r
117                                                 <%text(_ADD_PLACE_ON)%>\r
118                                                 <input id="inputyear" name="year" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />年\r
119                                                 <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />月\r
120                                                 <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />日\r
121 \r
122                                                 <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />時\r
123                                                 <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />分\r
124                                                 <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
125                                                 <%ifblogsetting(ballowpast,0)%>\r
126                                                         <br />\r
127                                                         <%text(_ADD_NOPASTDATES)%>\r
128                                                 <%endif%>\r
129                                         </div>\r
130                                         <input name="actiontype" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
131                                         <br />\r
132                                         <input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
133                                 </td>\r
134                                 </tr>\r
135                                 <tr>\r
136                                 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
137                                 <td>\r
138                                 <%pluginextras%></td>\r
139                                 </tr>\r
140                                 \r
141                                 \r
142                                   <%itemoptions%>\r
143                                 </table>\r
144                                 \r
145 \r
146                         </div>\r
147                         \r
148                         <div id="preview" class="contentblock">\r
149                                 <h2><%text(_ADD_PREVIEW)%></h2>\r
150                                 \r
151                                 <b><span id="prevtitle">&#160;</span></b>\r
152                                 <br />\r
153                                 <span id="prevbody">&#160;</span>\r
154                                 <br />\r
155                                 <span id="prevmore">&#160;</span>\r
156                         </div>\r
157                         \r
158                 </div></form>\r
159 \r
160         <%ifautosave()%><script type="text/javascript">\r
161                 var xmlhttprequest = new Array();\r
162                 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
163                 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
164                 var seconds = now(); // Last AutoDraft time\r
165                 var checks = 0; // Number of checks since last AutoDraft\r
166                 var addform = document.getElementById('addform'); // The form id\r
167                 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
168                 var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
169                 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
170                 var formtype = 'add'; // Add or edit form\r
171         </script><%endif%>\r
172 \r
173         </body>\r
174         </html>