1 <h2><%text(_ADD_ADDTO)%> '<%bloglink%>'</h2>
4 <script type="text/javascript" src="javascript/numbercheck.js"></script>
5 <script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
7 <form id="addform" method="post" action="index.php" >
11 <input type="hidden" name="action" value="additem" />
12 <input name="blogid" value="<%blogid%>" type="hidden" />
13 <input type="hidden" name="draftid" value="0" />
18 <th colspan="2"><%text(_ADD_CREATENEW)%></th>
20 <td><%text(_AUTOSAVEDRAFT)%></td>
21 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
23 <td><%text(_ADD_TITLE)%></td>
29 value="<%contents(title)%>"
33 <%text(_ADD_BODY)%> <%helplink(additem)%>
36 <%jsbuttonbar(media+preview)%>
41 rows="20"><%contents(body)%></textarea>
43 </tr><tr id="edit" style="display:none;">
44 <td><%text(_ADD_PREVIEW)%></td>
45 <td><b><span id="prevtitle"> </span></b><br />
46 <span id="prevbody"> </span><br />
47 <span id="prevmore"> </span><br />
51 <%ifblogsetting(bcomments)%>
52 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
54 <input name="closed" type="radio" tabindex="30" value="1" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
55 <input name="closed" type="radio" tabindex="30" value="0" checked="checked" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>
61 <td><%text(_ADD_CATEGORY)%></td>
62 <td><%categories(40)%></td>
64 <td><%text(_SUBMIT)%></td>
66 <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>"
67 onclick="return checkSubmit();" />
71 <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="61" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>
73 <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future" ><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
75 <%text(_ADD_PLACE_ON)%>
76 <input id="inputyear" name="year" tabindex="63" size="4" value="<%currenttime(year)%>" />年
77 <input id="inputmonth" name="month" tabindex="64" size="2" value="<%currenttime(mon)%>" />月
78 <input id="inputday" name="day" tabindex="65" size="2" value="<%currenttime(mday)%>" />日
80 <input id="inputhour" name="hour" tabindex="66" size="2" value="<%currenttime(hours)%>" />時
81 <input id="inputminutes" name="minutes" tabindex="67" size="2" value="<%currenttime(minutes)%>" />分
83 フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
85 <%ifblogsetting(ballowpast,0)%>
87 <%text(_ADD_NOPASTDATES)%>
90 <input name="actiontype" tabindex="61" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
93 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
100 <th colspan="2"><%text(_ADD_MORE)%></th>
102 <td><%text(_ADD_MORE)%>
103 <br /><%helplink(extended)%>
106 <%jsbuttonbar(media+preview)%>
112 ><%contents(more)%></textarea>
115 <td><%text(_SUBMIT)%></td>
117 <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>"
118 onclick="return checkSubmit();" />
119 <input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"
120 onclick="autoSaveDraft();" />
128 <script type="text/javascript">
129 var xmlhttprequest = new Array();
130 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
131 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
132 var seconds = now(); // Last AutoDraft time
133 var checks = 0; // Number of checks since last AutoDraft
134 var addform = document.getElementById('addform'); // The form id
135 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
136 var goalurl = '../action.php'; // The PHP file where the content must be posted to
137 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
138 var formtype = 'add'; // Add or edit form