OSDN Git Service

564cc371d1a455e26c828b9a69ab67f8cdfbff34
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / admin-add.template
1 <h2><%text(_ADD_ADDTO)%> '<%bloglink%>'</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="addform" method="post" action="index.php" >
8
9 <div>
10
11 <input type="hidden" name="action" value="additem" />
12 <input name="blogid" value="<%blogid%>" type="hidden" />
13 <input type="hidden" name="draftid" value="0" />
14 <%ticket%>
15
16 <table>
17         <tr>
18                 <th colspan="2"><%text(_ADD_CREATENEW)%></th>
19         </tr><tr>
20                 <td><%text(_AUTOSAVEDRAFT)%></td>
21                 <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
22         </tr><tr>
23                 <td><%text(_ADD_TITLE)%></td>
24                 <td><input 
25                         <%jsinput(title)%>
26                         tabindex="10"
27                         size="60" 
28                         maxlength="160" 
29                         value="<%contents(title)%>"
30                         /></td>
31         </tr><tr>
32                 <td>
33                         <%text(_ADD_BODY)%> <%helplink(additem)%>
34                 </td>
35                 <td>
36                         <%jsbuttonbar(media+preview)%>
37                         <textarea
38                                 <%jsinput(body)%>
39                                 tabindex="20"
40                                 cols="60"
41                                 rows="20"><%contents(body)%></textarea>
42                 </td>
43         </tr><tr id="edit" style="display:none;">
44                 <td><%text(_ADD_PREVIEW)%></td>
45                 <td><b><span id="prevtitle">&#160;</span></b><br />
46                         <span id="prevbody">&#160;</span><br />
47                         <span id="prevmore">&#160;</span><br />
48                 </td>
49         </tr><tr>
50         
51 <%ifblogsetting(bcomments)%>
52                 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
53                 <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>
56                 </td>
57         </tr><tr>
58 <%endif%>
59
60
61                 <td><%text(_ADD_CATEGORY)%></td>
62                 <td><%categories(40)%></td>
63         </tr><tr>
64                 <td><%text(_SUBMIT)%></td>
65                 <td>
66                         <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" 
67                                 onclick="return checkSubmit();" />
68
69                         <br /><br />
70
71                         <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="61" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>
72                         <br />
73                         <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future" ><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
74                         <div class="indent">
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)%>" />日
79                                  
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)%>" />分
82                                 <br />
83                                 フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
84                                 
85                                 <%ifblogsetting(ballowpast,0)%>
86                                         <br />
87                                         <%text(_ADD_NOPASTDATES)%>
88                                 <%endif%>
89                         </div>
90                         <input name="actiontype" tabindex="61" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
91                 </td>
92         </tr><tr>
93                 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
94                 <td>
95                         <%pluginextras%>
96                 </td>
97         </tr>
98                         <%itemoptions%> 
99     <tr>
100         <th colspan="2"><%text(_ADD_MORE)%></th>
101         </tr><tr>
102                 <td><%text(_ADD_MORE)%>
103                         <br /><%helplink(extended)%>
104                 </td>
105                 <td>
106                         <%jsbuttonbar(media+preview)%>          
107                         <textarea 
108                                 <%jsinput(more)%>                       
109                                 tabindex="70"
110                                 cols="60"
111                                 rows="20"
112                                 ><%contents(more)%></textarea>
113                 </td>
114         </tr><tr>
115                 <td><%text(_SUBMIT)%></td>
116                 <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();" />
121                 </td>
122         </tr>
123 </table>
124
125 </div>
126 </form>
127
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
139 </script>