OSDN Git Service

/nucleus/libs/include/ 内のファイルを本家3.4RCに会わせて更新
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / bookmarklet-edit.template
index 34cf598..0f219d0 100755 (executable)
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-       <html xmlns="http://www.w3.org/1999/xhtml">
-       <head>
-               <title><%text(_EDIT_ITEM)%></title>
-               <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />
-               <link rel="stylesheet" type="text/css" href="styles/addedit.css" />                             
-               <script type="text/javascript" src="javascript/bookmarklet.js"></script>
-               <script type="text/javascript" src="javascript/edit.js"></script>
-               <script type="text/javascript" src="javascript/numbercheck.js"></script>
-               <script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
-               <%init%>
-               <%extrahead%>
-               <script type="text/javascript">
-                       var nucleus_initbm_oldonload = window.onload;
-                       function nucleus_initbm()
-                       {
-                               initStyles(); 
-                               updAllPreviews();
-
-                               if (nucleus_initbm_oldonload)
-                                       nucleus_initbm_oldonload();
-                       }
-                       window.onload = nucleus_initbm;
-               </script>
-       </head>
-       <body>
-               <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>
-               <form id="editform" method="post" action="bookmarklet.php" ><div>
-                       
-                       <input name="action" type="hidden" value="edititem" />
-                       <input name="itemid" type="hidden" value="<%contents(itemid)%>" />
-                       <input type="hidden" name="draftid" value="0" />
-                       <%ticket%>
-                       
-                       <div id="submit" class="buttonbar">
-                               <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />
-                               <div id="switchbuttons">
-                                       <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> &gt;&gt;" />
-                                       <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />
-                                       <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />
-                                       <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />
-                               </div>
-                       </div>
-
-                       <div id="body" class="contentblock">
-                               <table>
-                               <tr>
-                               <td><%text(_AUTOSAVEDRAFT)%></td>
-                               <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
-                               </tr>
-                               <tr>
-                               <td><%text(_ADD_TITLE)%></td>
-                               <td><input 
-                                       <%jsinput(title)%>
-                                       type="text" size="60" maxlength="160" 
-                                       value="<%contents(title)%>"
-                               /></td></tr>
-                       
-                               <tr><td>
-                               <%text(_ADD_BODY)%>
-                               </td><td>
-                               <%jsbuttonbar(media)%>
-                               <textarea 
-                                       <%jsinput(body)%>
-                                       cols="58" 
-                                       rows="12"><%contents(body)%></textarea>
-
-                               </td></tr>
-                               <tr>
-                               <td><%text(_ADD_CATEGORY)%></td>
-                               <td><%categories%></td>
-                               </tr>
-                               <tr>
-                               <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
-                               <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td>
-                               </tr>
-                               </table>
-                                       
-                       </div>
-                       
-                       <div id="more" class="contentblock">
-                               <table>
-                               <tr>
-                               <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
-                               <td>
-                               <%jsbuttonbar(media)%>
-                               <textarea 
-                                       <%jsinput(more)%>
-                                       cols="58" 
-                                       rows="17"><%contents(more)%></textarea>
-                               </td></tr></table>
-                       </div>
-                       <div id="options" class="contentblock">
-                               <table>
-                               <%ifblogsetting(bcomments)%>
-                                       <tr>
-                                       <td><%text(_ADD_DISABLE_COMMENTS)%></td>
-                                       <td>
-                                   <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>
-                                   <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>
-                                       </td>
-                                       </tr>
-                               <%endif%>
-                               
-                               <!-- The only actiontypes are 'edit', 'changedate' (no draft items can be edited) and 'delete' -->
-                               <tr>
-                               <td>Action</td>
-                               <td>
-                               <ul class="nobullets">
-                                       <li><input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" /><label for="act_edit"><%text(_BMLET_EDIT)%></label></li>
-                                       <li><input name="actiontype" value="delete" type="radio" id="act_delete" /><label for="act_delete"><%text(_BMLET_DELETE)%></label></li>
-                                       <%ifblogsetting(ballowpast)%>
-                                               <li>
-                                                       <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_BMLET_CHANGEDATE)%></label> <%helplink(changedate)%>
-                                                                       <div class="indent">
-                                                                               <input id="inputyear" name="year" tabindex="71" size="4" value="<%itemtime(year)%>" />年
-                                                                               <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" />月
-                                                                               <input id="inputday" name="day" tabindex="73" size="2" value="<%itemtime(mday)%>" />日
-                                                                               <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" />時
-                                                                               <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" />分
-                                                                               <br />
-                                                                               フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
-                                                                       </div>
-                                                       </li>
-                                       <%endif%>                                               
-                               </ul>
-                               </td></tr>
-                               
-                               <tr>
-                               <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
-                               <td>
-                               <%pluginextras%>
-                               </td></tr>
-                               
-                                 <%itemoptions%>
-                               </table>
-                               
-                       </div>
-                       
-                       <div id="preview" class="contentblock">
-                               <h2><%text(_ADD_PREVIEW)%></h2>
-                               
-                               <b><span id="prevtitle">&#160;</span></b>
-                               <br />
-                               <span id="prevbody">&#160;</span>
-                               <br />
-                               <span id="prevmore">&#160;</span>
-                       </div>
-                       
-               </div></form>
-
-       <script type="text/javascript">
-               var xmlhttprequest = new Array();
-               xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
-               xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
-               var seconds = now(); // Last AutoDraft time
-               var checks = 0; // Number of checks since last AutoDraft
-               var addform = document.getElementById('editform'); // The form id
-               var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
-               var goalurl = '../action.php'; // The PHP file where the content must be posted to
-               var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
-               var formtype = 'edit'; // Add or edit form
-       </script>
-
-       </body>
-       </html>
-
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+       <html xmlns="http://www.w3.org/1999/xhtml">\r
+       <head>\r
+               <meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />\r
+               <title><%text(_EDIT_ITEM)%></title>\r
+               <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />\r
+               <link rel="stylesheet" type="text/css" href="styles/addedit.css" />                             \r
+               <script type="text/javascript" src="javascript/bookmarklet.js"></script>\r
+               <script type="text/javascript" src="javascript/edit.js"></script>\r
+               <script type="text/javascript" src="javascript/numbercheck.js"></script>\r
+               <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>\r
+               <%init%>\r
+               <%extrahead%>\r
+               <script type="text/javascript">\r
+                       var nucleus_initbm_oldonload = window.onload;\r
+                       function nucleus_initbm()\r
+                       {\r
+                               initStyles(); \r
+                               updAllPreviews();\r
+\r
+                               if (nucleus_initbm_oldonload)\r
+                                       nucleus_initbm_oldonload();\r
+                       }\r
+                       window.onload = nucleus_initbm;\r
+               </script>\r
+       </head>\r
+       <body>\r
+               <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>\r
+               <form id="editform" method="post" action="bookmarklet.php" ><div>\r
+                       \r
+                       <input name="action" type="hidden" value="edititem" />\r
+                       <input name="itemid" type="hidden" value="<%contents(itemid)%>" />\r
+                       <input type="hidden" name="draftid" value="0" />\r
+                       <%ticket%>\r
+                       \r
+                       <div id="submit" class="buttonbar">\r
+                               <div id="switchbuttons">\r
+                                       <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />\r
+                               </div>\r
+                               <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />\r
+                               <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />\r
+                       </div>\r
+\r
+                       <div id="body" class="contentblock">\r
+                               <table>\r
+                               <%ifautosave()%><tr>\r
+                               <td><%text(_AUTOSAVEDRAFT)%></td>\r
+                               <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>\r
+                               </tr><%endif%>\r
+                               <tr>\r
+                               <td><%text(_ADD_TITLE)%></td>\r
+                               <td><input \r
+                                       <%jsinput(title)%>\r
+                                       type="text" size="60" maxlength="160" \r
+                                       value="<%contents(title)%>"\r
+                               /></td></tr>\r
+                       \r
+                               <tr><td>\r
+                               <%text(_ADD_BODY)%>\r
+                               </td><td>\r
+                               <%jsbuttonbar(media)%>\r
+                               <textarea \r
+                                       <%jsinput(body)%>\r
+                                       cols="58" \r
+                                       rows="12"><%contents(body)%></textarea>\r
+\r
+                               </td></tr>\r
+                               <tr>\r
+                               <td><%text(_ADD_CATEGORY)%></td>\r
+                               <td><%categories%></td>\r
+                               </tr>\r
+                               <tr>\r
+                               <%ifautosave()%><td><%text(_AUTOSAVEDRAFT_NOW)%></td>\r
+                               <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td><%endif%>\r
+                               </tr>\r
+                               </table>\r
+                                       \r
+                       </div>\r
+                       \r
+                       <div id="more" class="contentblock">\r
+                               <table>\r
+                               <tr>\r
+                               <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
+                               <td>\r
+                               <%jsbuttonbar(media)%>\r
+                               <textarea \r
+                                       <%jsinput(more)%>\r
+                                       cols="58" \r
+                                       rows="17"><%contents(more)%></textarea>\r
+                               </td></tr></table>\r
+                       </div>\r
+                       <div id="options" class="contentblock">\r
+                               <table>\r
+                               <%ifblogsetting(bcomments)%>\r
+                                       <tr>\r
+                                       <td><%text(_ADD_DISABLE_COMMENTS)%></td>\r
+                                       <td>\r
+                                   <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>\r
+                                   <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>\r
+                                       </td>\r
+                                       </tr>\r
+                               <%endif%>\r
+                               \r
+                               <!-- The only actiontypes are 'edit', 'changedate' (no draft items can be edited) and 'delete' -->\r
+                               <tr>\r
+                               <td>Action</td>\r
+                               <td>\r
+                               <ul class="nobullets">\r
+                                       <li><input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" /><label for="act_edit"><%text(_BMLET_EDIT)%></label></li>\r
+                                       <li><input name="actiontype" value="delete" type="radio" id="act_delete" /><label for="act_delete"><%text(_BMLET_DELETE)%></label></li>\r
+                                       <%ifblogsetting(ballowpast)%>\r
+                                               <li>\r
+                                                       <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_BMLET_CHANGEDATE)%></label> <%helplink(changedate)%>\r
+                                                                       <div class="indent">\r
+                                                                               <input id="inputyear" name="year" tabindex="71" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />年\r
+                                                                               <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" />月\r
+                                                                               <input id="inputday" name="day" tabindex="73" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" />日\r
+\r
+                                                                               <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" />時\r
+                                                                               <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" />分\r
+                                                                               <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
+                                                                       </div>\r
+                                                       </li>\r
+                                                       <li>\r
+                                                               <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>\r
+                                                       </li>\r
+                                       <%endif%>\r
+                               </ul>\r
+                               <input id="dosendping" name="dosendping" value="1" type="checkbox"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
+                               </td></tr>\r
+                               \r
+                               <tr>\r
+                               <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
+                               <td>\r
+                               <%pluginextras%>\r
+                               </td></tr>\r
+                               \r
+                                 <%itemoptions%>\r
+                               </table>\r
+                               \r
+                       </div>\r
+                       \r
+                       <div id="preview" class="contentblock">\r
+                               <h2><%text(_ADD_PREVIEW)%></h2>\r
+                               \r
+                               <b><span id="prevtitle">&#160;</span></b>\r
+                               <br />\r
+                               <span id="prevbody">&#160;</span>\r
+                               <br />\r
+                               <span id="prevmore">&#160;</span>\r
+                       </div>\r
+                       \r
+               </div></form>\r
+\r
+       <%ifautosave()%><script type="text/javascript">\r
+               var xmlhttprequest = new Array();\r
+               xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
+               xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
+               var seconds = now(); // Last AutoDraft time\r
+               var checks = 0; // Number of checks since last AutoDraft\r
+               var addform = document.getElementById('editform'); // The form id\r
+               var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
+               var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
+               var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
+               var formtype = 'edit'; // Add or edit form\r
+       </script><%endif%>\r
+\r
+       </body>\r
+       </html>\r
+\r