OSDN Git Service

# FIXED: atom.phpとxml-rss2.phpで_CHARSETをチェックして文字コード変換(Nicleus3.41 へアップグレード後 xml-rss2...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / admin-edit.template
1 <h2><%text(_EDIT_ITEM)%></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="editform" method="post" action="index.php">\r
8 <div>\r
9 \r
10 <input type="hidden" name="action" value="itemupdate" />\r
11 <input name="itemid" value="<%contents(itemid)%>" type="hidden" />\r
12 <input type="hidden" name="draftid" value="0" />\r
13 <%ticket%>\r
14 \r
15 <table><tr>\r
16         <th colspan="2"><%text(_EDIT_ITEM)%></th>\r
17 </tr>\r
18 <%ifautosave()%><tr>\r
19         <td><%text(_AUTOSAVEDRAFT)%></td>\r
20         <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>\r
21 </tr><%endif%>\r
22 <tr>\r
23         <td><%text(_EDIT_ORIG_AUTHOR)%></td>\r
24         <td><%contents(author)%></td>\r
25 </tr><tr>\r
26         <td><%text(_ADD_TITLE)%></td>\r
27         <td><input \r
28                         <%jsinput(title)%>\r
29                         tabindex="10" \r
30                         size="60" \r
31                         maxlength="160" \r
32                         value="<%contents(title)%>" />\r
33         </td>\r
34 </tr><tr>\r
35         <td>\r
36                 <%text(_ADD_BODY)%>\r
37         </td>\r
38         <td>\r
39                 <%jsbuttonbar(media+preview)%>  \r
40                 <textarea \r
41                         <%jsinput(body)%>\r
42                         tabindex="20"\r
43                         cols="60"\r
44                         rows="20"><%contents(body)%></textarea>\r
45         </td>\r
46 </tr><tr id="edit" style="display:none;">\r
47         <td><%text(_ADD_PREVIEW)%></td>\r
48         <td><b><span id="prevtitle">&#160;</span></b><br />\r
49                 <span id="prevbody">&#160;</span><br />\r
50                 <span id="prevmore">&#160;</span><br />\r
51         </td>\r
52 </tr><tr>\r
53 \r
54 <%ifblogsetting(bcomments)%>\r
55                 <td>\r
56                         <%text(_ADD_DISABLE_COMMENTS)%>\r
57                 </td>\r
58                 <td> \r
59                         <input type="radio" name="closed" value="1" <%checkedonval(1,closed)%> tabindex="30" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>\r
60                         <input type="radio" name="closed" value="0" <%checkedonval(0,closed)%> tabindex="30" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>\r
61                         <br />\r
62                         <small><%text(_EDIT_COMMENTSNOTE)%></small>     \r
63                 </td>\r
64         </tr><tr>                               \r
65 <%endif%>\r
66 \r
67         <td><%text(_ADD_CATEGORY)%></td>\r
68         <td><%categories(40)%></td>\r
69 </tr><tr>\r
70         <td><%text(_EDIT_SUBMIT)%></td>\r
71         <td>\r
72 \r
73                 <input type="submit" tabindex="60" value="<%text(_EDIT_SUBMIT)%>" onclick="return checkSubmit();" />\r
74 \r
75 <%ifitemproperty(draft)%>\r
76                 <br /><br />\r
77                 <input name="actiontype" value="addnow" type="radio" id="act_now" /><label for="act_now" tabindex="61"><%text(_ADD_ADDNOW)%></label>\r
78                 <br />\r
79                 <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>\r
80                 <div class="indent">\r
81                         <%text(_ADD_PLACE_ON)%>\r
82                         <input id="inputyear" name="year" tabindex="71" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>\r
83                         <input id="inputmonth" name="month" tabindex="72" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>\r
84                         <input id="inputday" name="day" tabindex="73" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_DAY)%>\r
85                         \r
86                         <input id="inputhour" name="hour" tabindex="74" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>\r
87                         <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>\r
88                                 <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
89                         <%ifblogsetting(ballowpast,0)%>\r
90                                 <br />\r
91                                 <%text(_ADD_NOPASTDATES)%>\r
92                         <%endif%>\r
93                 </div>\r
94                 <input name="actiontype" value="adddraft" type="radio" checked='checked' id="act_draft" tabindex="61" /><label for="act_draft"><%text(_EDIT_BACKTODRAFTS)%></label> <%helplink(draft)%>\r
95                 <br />\r
96                 <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>\r
97 <%endif%>\r
98 \r
99 <%ifitemproperty(draft,0)%>\r
100         <br /><br />\r
101         <input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" tabindex="61" /><label for="act_edit"><%text(_BMLET_EDIT)%></label>\r
102         <%ifblogsetting(ballowpast)%>\r
103                 <br />\r
104                 <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_ADD_CHANGEDATE)%></label> <%helplink(changedate)%>\r
105                         <div class="indent">\r
106                                 <input id="inputyear" name="year" tabindex="71" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>\r
107                                 <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>\r
108                                 <input id="inputday" name="day" tabindex="73" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_DAY)%>\r
109                                  \r
110                                 <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>\r
111                                 <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>\r
112                                 <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
113                         </div>\r
114         <%endif%>       \r
115         <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>\r
116         <br />\r
117         <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>\r
118 <%endif%>\r
119 \r
120         </td>\r
121 </tr><tr>\r
122         <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
123         <td>\r
124                 <%pluginextras%>\r
125         </td>   \r
126 </tr>\r
127                         <%itemoptions%> \r
128 <tr>\r
129         <th colspan="2"><%text(_ADD_MORE)%></th>\r
130 </tr>\r
131 <tr>\r
132         <td><%text(_ADD_MORE)%>\r
133                 <br /><%helplink(extended)%>\r
134         </td>\r
135         <td>\r
136                 <%jsbuttonbar(media+preview)%>\r
137                 <textarea \r
138                         <%jsinput(more)%>\r
139                         tabindex="90" \r
140                         cols="60" \r
141                         rows="20"><%contents(more)%></textarea>\r
142         </td>\r
143 </tr><tr>\r
144                 <td><%text(_SUBMIT)%></td>\r
145                 <td>\r
146                         <input tabindex="60" type="submit" value="<%text(_EDIT_SUBMIT)%>" \r
147                                 onclick="return checkSubmit();" />\r
148                         <%ifautosave()%><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"\r
149                                 onclick="autoSaveDraft();" /><%endif%>\r
150                 </td>\r
151         \r
152 </tr></table>\r
153 \r
154 </div>\r
155 </form>\r
156 \r
157 <%ifautosave()%><script type="text/javascript">\r
158         var xmlhttprequest = new Array();\r
159         xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
160         xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
161         var seconds = now(); // Last AutoDraft time\r
162         var checks = 0; // Number of checks since last AutoDraft\r
163         var addform = document.getElementById('editform'); // The form id\r
164         var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
165         var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
166         var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
167         var formtype = 'edit'; // Add or edit form\r
168 </script><%endif%>\r