1 <h2><%text(_EDIT_ITEM)%></h2>
4 <script type="text/javascript" src="javascript/numbercheck.js"></script>
5 <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>
7 <form id="editform" method="post" action="index.php">
10 <input type="hidden" name="action" value="itemupdate" />
11 <input name="itemid" value="<%contents(itemid)%>" type="hidden" />
12 <input type="hidden" name="draftid" value="0" />
16 <th colspan="2"><%text(_EDIT_ITEM)%></th>
19 <td><%text(_AUTOSAVEDRAFT)%></td>
20 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
23 <td><%text(_EDIT_ORIG_AUTHOR)%></td>
24 <td><%contents(author)%></td>
26 <td><%text(_ADD_TITLE)%></td>
32 value="<%contents(title)%>" />
39 <%jsbuttonbar(media+preview)%>
44 rows="20"><%contents(body)%></textarea>
46 </tr><tr id="edit" style="display:none;">
47 <td><%text(_ADD_PREVIEW)%></td>
48 <td><b><span id="prevtitle"> </span></b><br />
49 <span id="prevbody"> </span><br />
50 <span id="prevmore"> </span><br />
54 <%ifblogsetting(bcomments)%>
56 <%text(_ADD_DISABLE_COMMENTS)%>
59 <input type="radio" name="closed" value="1" <%checkedonval(1,closed)%> tabindex="30" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
60 <input type="radio" name="closed" value="0" <%checkedonval(0,closed)%> tabindex="30" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>
62 <small><%text(_EDIT_COMMENTSNOTE)%></small>
67 <td><%text(_ADD_CATEGORY)%></td>
68 <td><%categories(40)%></td>
70 <td><%text(_EDIT_SUBMIT)%></td>
73 <input type="submit" tabindex="60" value="<%text(_EDIT_SUBMIT)%>" onclick="return checkSubmit();" />
75 <%ifitemproperty(draft)%>
77 <input name="actiontype" value="addnow" type="radio" id="act_now" /><label for="act_now" tabindex="61"><%text(_ADD_ADDNOW)%></label>
79 <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
81 <%text(_ADD_PLACE_ON)%>
82 <input id="inputday" name="day" tabindex="71" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />/
83 <input id="inputmonth" name="month" tabindex="72" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />/
84 <input id="inputyear" name="year" tabindex="73" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />
86 <input id="inputhour" name="hour" tabindex="74" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />:
87 <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />
89 <%ifblogsetting(ballowpast,0)%>
91 <%text(_ADD_NOPASTDATES)%>
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)%>
96 <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
99 <%ifitemproperty(draft,0)%>
101 <input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" tabindex="61" /><label for="act_edit"><%text(_BMLET_EDIT)%></label>
102 <%ifblogsetting(ballowpast)%>
104 <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_ADD_CHANGEDATE)%></label> <%helplink(changedate)%>
106 <input id="inputday" name="day" tabindex="71" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" />/
107 <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" />/
108 <input id="inputyear" name="year" tabindex="73" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />
110 <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" />:
111 <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" />
115 <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>
117 <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="72" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
121 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
128 <th colspan="2"><%text(_ADD_MORE)%></th>
131 <td><%text(_ADD_MORE)%>
132 <br /><%helplink(extended)%>
135 <%jsbuttonbar(media+preview)%>
140 rows="20"><%contents(more)%></textarea>
143 <td><%text(_SUBMIT)%></td>
145 <input tabindex="60" type="submit" value="<%text(_EDIT_SUBMIT)%>"
146 onclick="return checkSubmit();" />
147 <%ifautosave()%><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"
148 onclick="autoSaveDraft();" /><%endif%>
156 <%ifautosave()%><script type="text/javascript">
157 var xmlhttprequest = new Array();
158 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
159 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
160 var seconds = now(); // Last AutoDraft time
161 var checks = 0; // Number of checks since last AutoDraft
162 var addform = document.getElementById('editform'); // The form id
163 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
164 var goalurl = '../action.php'; // The PHP file where the content must be posted to
165 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
166 var formtype = 'edit'; // Add or edit form