OSDN Git Service

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