OSDN Git Service

# FIXED: atom.phpとxml-rss2.phpで_CHARSETをチェックして文字コード変換(Nicleus3.41 へアップグレード後 xml-rss2...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / bookmarklet-add.template
1 <%xmldeclaration%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
2         <html <%text(_HTML_XML_NAME_SPACE_AND_LANG_CODE)%>>\r
3         <head>\r
4                 <meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />\r
5         <!--\r
6                 Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
7                 Copyright (C) 2002-2009 The Nucleus Group\r
8 \r
9                 This program is free software; you can redistribute it and/or\r
10                 modify it under the terms of the GNU General Public License\r
11                 as published by the Free Software Foundation; either version 2\r
12                 of the License, or (at your option) any later version.\r
13                 (see nucleus/documentation/index.html#license for more info)\r
14 \r
15                 @license http://nucleuscms.org/license.txt GNU General Public License\r
16                 @copyright Copyright (C) 2002-2009 The Nucleus Group\r
17                 $Id$\r
18         -->\r
19                 <title><%text(_ADD_ADDTO)%> '<%blogname%>'</title>\r
20                 <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />\r
21                 <link rel="stylesheet" type="text/css" href="styles/addedit.css" />\r
22                 <link rel="stylesheet" type="text/css" href="styles/jquery-ui/ui.all.css" />\r
23                 <meta http-equiv="Content-Script-Type" content="text/javascript" />\r
24                 <script type="text/javascript" src="javascript/bookmarklet.js"></script>\r
25                 <script type="text/javascript" src="javascript/edit.js"></script>\r
26                 <script type="text/javascript" src="javascript/numbercheck.js"></script>\r
27                 <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>\r
28                 <script type="text/javascript" src="http://www.google.com/jsapi"></script>\r
29                 <%init%>\r
30                 <%extrahead%>\r
31                 <script type="text/javascript">\r
32                 //<![CDATA[\r
33                         google.load("jquery", "1");\r
34                         google.load("jqueryui", "1");\r
35                         google.setOnLoadCallback(function() {\r
36                                 $(function(){\r
37 //                                      var IE = '\v'=='v';\r
38                                         updAllPreviews();\r
39 //                                      $("table tr td:first-child").css("width", "14%");\r
40 //                                      if (!IE)\r
41                                                 $("#body textarea, #more textarea").resizable({ containment: 'parent' });\r
42                                         $("#tabs").tabs();\r
43                                         $(".addFuture").change(function() {\r
44                                                 $("#act_future").attr('checked', 'checked');\r
45                                         });\r
46                                         $("#showPreview").click(function() {updAllPreviews();});\r
47                                         $("#goSubmit").click(function() {checkSubmit();});\r
48                                         $("#canselButton").click(function() {window.close();});\r
49                                         $("#saveDraft").click(function() {\r
50                                                 $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')');\r
51                                                 autoSaveDraft();\r
52                                         });\r
53 //                                      $("#options tr td:nth-child(2)").css("width", "80% !important");\r
54                                         $("#options tr th").css({\r
55                                                 width: "25%",\r
56                                                 whiteSpace: "normal"\r
57                                         });\r
58                                 });\r
59                         });\r
60                 //]]>\r
61                 </script>\r
62         </head>\r
63         <body>\r
64                 <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>\r
65                 <form id="addform" method="post" action="bookmarklet.php" >\r
66                         <div id="tabs">\r
67                                 <ul>\r
68                                         <li><a href="#body" tabindex="300"><%text(_BMLET_BODY)%> &gt;&gt;</a></li>\r
69                                         <li><a href="#more" tabindex="310"><%text(_BMLET_MORE)%> &gt;&gt;</a></li>\r
70                                         <li><a href="#options" tabindex="320"><%text(_BMLET_OPTIONS)%> &gt;&gt;</a></li>\r
71                                         <li><a href="#preview" id="showPreview" tabindex="330"><%text(_BMLET_PREVIEW)%> &gt;&gt;</a></li>\r
72                                 </ul>\r
73                                 <input name="action" type="hidden" value="additem" />\r
74                                 <input name="blogid" type="hidden" value="<%blogid%>" />\r
75                                 <input type="hidden" name="draftid" value="0" />\r
76                                 <%ticket%>\r
77                                 <div id="body" class="contentblock">\r
78                                         <table summary="item body">\r
79                                                 <tr>\r
80                                                         <th><%text(_ADD_TITLE)%></th>\r
81                                                         <td><input <%jsinput(title)%> type="text" size="60" maxlength="160" value="<%contents(title)%>" tabindex="10" /></td>\r
82                                                 </tr>\r
83                                                 <tr>\r
84                                                         <th><%text(_ADD_BODY)%> <%helplink(additem)%></th>\r
85                                                         <td>\r
86                                                                 <%jsbuttonbar(media)%>\r
87                                                                 <textarea <%jsinput(body)%> cols="58" rows="12" tabindex="20"><%contents(body)%></textarea>\r
88                                                         </td>\r
89                                                 </tr>\r
90                                                 <tr>\r
91                                                         <th><%text(_ADD_CATEGORY)%></th>\r
92                                                         <td><%categories(30)%></td>\r
93                                                 </tr>\r
94                                         </table>\r
95                                 </div>\r
96                                 <div id="more" class="contentblock">\r
97                                         <table summary="item more">\r
98                                                 <tr>\r
99                                                         <th><%text(_ADD_MORE)%> <%helplink(extended)%></th>\r
100                                                         <td>\r
101                                                                 <%jsbuttonbar(media)%>\r
102                                                                 <textarea <%jsinput(more)%> cols="58" rows="17" tabindex="40"><%contents(more)%></textarea>\r
103                                                         </td>\r
104                                                 </tr>\r
105                                         </table>\r
106                                 </div>\r
107                                 <div id="options" class="contentblock">\r
108                                         <table summary="item options">\r
109                                                 <%ifblogsetting(bcomments)%><tr>\r
110                                                         <th><%text(_ADD_DISABLE_COMMENTS)%></th>\r
111                                                         <td>\r
112                                                                 <input type='radio' name='closed' value='1' id="closed_yes" tabindex="50" /><label for="closed_yes"><%text(_YES)%></label>\r
113                                                                 <input type='radio' name='closed' value='0' checked='checked' id="closed_no" tabindex="50" /><label for="closed_no"><%text(_NO)%></label>\r
114                                                         </td>\r
115                                                 </tr><%endif%>\r
116                                                 <tr>\r
117                                                         <th><%text(_ADD_DRAFTNFUTURE)%></th>\r
118                                                         <td>\r
119                                                                 <ul class="nobullets">\r
120                                                                         <li><input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="60" /><label for="act_now"><%text(_ADD_ADDNOW)%></label></li>\r
121                                                                         <li><input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="60" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%></li>\r
122                                                                         <li>\r
123                                                                                 <div class="indent">\r
124                                                                                         <%text(_ADD_PLACE_ON)%>\r
125                                                                                         <input class="addFuture" id="inputyear" name="year" size="4" value="<%currenttime(year)%>" tabindex="70" /><%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>\r
126                                                                                         <input class="addFuture" id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" tabindex="80" /><%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>\r
127                                                                                         <input class="addFuture" id="inputday" name="day" size="2" value="<%currenttime(mday)%>" tabindex="90" /><%text(_ITEM_ADDEDITTEMPLATE_DAY)%>\r
128                                                                                         <input class="addFuture" id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" tabindex="100" /><%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>\r
129                                                                                         <input class="addFuture" id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" tabindex="110" /><%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>\r
130                                                                                         <br /><%text(_ITEM_ADDEDITTEMPLATE_FORMAT)%>(yyyy)<%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>(mm)<%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>(dd)<%text(_ITEM_ADDEDITTEMPLATE_DAY)%> (hh)<%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>(mm)<%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>\r
131                                                                                         <%ifblogsetting(ballowpast,0)%><br /><%text(_ADD_NOPASTDATES)%><%endif%>\r
132                                                                                 </div>\r
133                                                                         </li>\r
134                                                                         <li>\r
135                                                                                 <input name="actiontype" value="adddraft" type="radio" id="act_draft" tabindex="60" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
136                                                                         </li>\r
137                                                                 </ul>\r
138                                                         </td>\r
139                                                 </tr>\r
140                                                 <tr>\r
141                                                         <th><%text(_ADD_PLUGIN_EXTRAS)%></th>\r
142                                                         <td><%pluginextras%></td>\r
143                                                 </tr>\r
144                                                 <%itemoptions%>\r
145                                         </table>\r
146                                 </div>\r
147                                 <div id="preview" class="contentblock">\r
148                                         <!-- h2><%text(_ADD_PREVIEW)%></h2 -->\r
149                                         <strong><span id="prevtitle">&#160;</span></strong>\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                         </div>\r
156                         <div class="submitbuttons">\r
157                                 <input id="goSubmit" type="submit" value="<%text(_BMLET_EDIT)%>" tabindex="200" />\r
158                                 <%ifautosave()%><input id="saveDraft" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" tabindex="400" /><%endif%>\r
159                                 <input id="canselButton" type="button" value="<%text(_BMLET_CANCEL)%>" tabindex="410" />\r
160                                 <%ifautosave()%><span class="autosavestatus">(<%text(_AUTOSAVEDRAFT)%>&nbsp;:&nbsp;<span class="lastsavedtime"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>)</span></span><%endif%>\r
161                         </div>\r
162                 </form>\r
163                 <%ifautosave()%><script type="text/javascript">\r
164                         var xmlhttprequest = new Array();\r
165                         xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
166                         xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
167                         var seconds = now(); // Last AutoDraft time\r
168                         var checks = 0; // Number of checks since last AutoDraft\r
169                         var addform = document.getElementById('addform'); // The form id\r
170                         var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
171                         var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
172                         var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
173                         var formtype = 'add'; // Add or edit form\r
174                 </script><%endif%>\r
175         </body>\r
176 </html>\r