OSDN Git Service

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