OSDN Git Service

/nucleus/libs/include/ 内のファイルを本家3.4RCに会わせて更新
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / admin-add.template
1 <h2><%text(_ADD_ADDTO)%> '<%bloglink%>'</h2>\r
2 \r
3 <%init%>\r
4 <script type="text/javascript" src="javascript/numbercheck.js"></script>\r
5 <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>\r
6 \r
7 <form id="addform" method="post" action="index.php" >\r
8 \r
9 <div>\r
10 \r
11 <input type="hidden" name="action" value="additem" />\r
12 <input name="blogid" value="<%blogid%>" type="hidden" />\r
13 <input type="hidden" name="draftid" value="0" />\r
14 <%ticket%>\r
15 \r
16 <table>\r
17         <tr>\r
18                 <th colspan="2"><%text(_ADD_CREATENEW)%></th>\r
19         </tr>\r
20         <%ifautosave()%><tr>\r
21                 <td><%text(_AUTOSAVEDRAFT)%></td>\r
22                 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>\r
23         </tr><%endif%>\r
24         <tr>\r
25                 <td><%text(_ADD_TITLE)%></td>\r
26                 <td><input \r
27                         <%jsinput(title)%>\r
28                         tabindex="10"\r
29                         size="60" \r
30                         maxlength="160" \r
31                         value="<%contents(title)%>"\r
32                         /></td>\r
33         </tr><tr>\r
34                 <td>\r
35                         <%text(_ADD_BODY)%> <%helplink(additem)%>\r
36                 </td>\r
37                 <td>\r
38                         <%jsbuttonbar(media+preview)%>\r
39                         <textarea\r
40                                 <%jsinput(body)%>\r
41                                 tabindex="20"\r
42                                 cols="60"\r
43                                 rows="20"><%contents(body)%></textarea>\r
44                 </td>\r
45         </tr><tr id="edit" style="display:none;">\r
46                 <td><%text(_ADD_PREVIEW)%></td>\r
47                 <td><b><span id="prevtitle">&#160;</span></b><br />\r
48                         <span id="prevbody">&#160;</span><br />\r
49                         <span id="prevmore">&#160;</span><br />\r
50                 </td>\r
51         </tr><tr>\r
52         \r
53 <%ifblogsetting(bcomments)%>\r
54                 <td><%text(_ADD_DISABLE_COMMENTS)%></td>\r
55                 <td>\r
56                         <input name="closed" type="radio" tabindex="30" value="1" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>\r
57                         <input name="closed" type="radio" tabindex="30" value="0" checked="checked" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>\r
58                 </td>\r
59         </tr><tr>\r
60 <%endif%>\r
61 \r
62 \r
63                 <td><%text(_ADD_CATEGORY)%></td>\r
64                 <td><%categories(40)%></td>\r
65         </tr><tr>\r
66                 <td><%text(_SUBMIT)%></td>\r
67                 <td>\r
68                         <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" \r
69                                 onclick="return checkSubmit();" />\r
70 \r
71                         <br /><br />\r
72 \r
73                         <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="61" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>\r
74                         <br />\r
75                         <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future" ><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>\r
76                         <div class="indent">\r
77                                 <%text(_ADD_PLACE_ON)%>\r
78                                 <input id="inputyear" name="year" tabindex="63" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />年\r
79                                 <input id="inputmonth" name="month" tabindex="64" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />月\r
80                                 <input id="inputday" name="day" tabindex="65" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />日\r
81                                  \r
82                                 <input id="inputhour" name="hour" tabindex="66" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />時\r
83                                 <input id="inputminutes" name="minutes" tabindex="67" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />分\r
84                                 <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
85                                 \r
86                                 <%ifblogsetting(ballowpast,0)%>\r
87                                         <br />\r
88                                         <%text(_ADD_NOPASTDATES)%>\r
89                                 <%endif%>\r
90                         </div>\r
91                         <input name="actiontype" tabindex="61" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
92                         <br />\r
93                         <input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
94                 </td>\r
95         </tr><tr>\r
96                 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
97                 <td>\r
98                         <%pluginextras%>\r
99                 </td>\r
100         </tr>\r
101                         <%itemoptions%> \r
102     <tr>\r
103         <th colspan="2"><%text(_ADD_MORE)%></th>\r
104         </tr><tr>\r
105                 <td><%text(_ADD_MORE)%>\r
106                         <br /><%helplink(extended)%>\r
107                 </td>\r
108                 <td>\r
109                         <%jsbuttonbar(media+preview)%>          \r
110                         <textarea \r
111                                 <%jsinput(more)%>                       \r
112                                 tabindex="70"\r
113                                 cols="60"\r
114                                 rows="20"\r
115                                 ><%contents(more)%></textarea>\r
116                 </td>\r
117         </tr><tr>\r
118                 <td><%text(_SUBMIT)%></td>\r
119                 <td>\r
120                         <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" \r
121                                 onclick="return checkSubmit();" />\r
122                         <%ifautosave()%>\r
123                         <input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"\r
124                                 onclick="autoSaveDraft();" />\r
125                         <%endif%>\r
126                 </td>\r
127         </tr>\r
128 </table>\r
129 \r
130 </div>\r
131 </form>\r
132 <%ifautosave()%>\r
133 <script type="text/javascript">\r
134         var xmlhttprequest = new Array();\r
135         xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
136         xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
137         var seconds = now(); // Last AutoDraft time\r
138         var checks = 0; // Number of checks since last AutoDraft\r
139         var addform = document.getElementById('addform'); // The form id\r
140         var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
141         var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
142         var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
143         var formtype = 'add'; // Add or edit form\r
144 </script>       \r
145 <%endif%>\r