OSDN Git Service

/nucleus/libs/include/ 内のファイルを本家3.4RCに会わせて更新
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / include / admin-edit.template
index 1ed648e..0411253 100755 (executable)
-<h2><%text(_EDIT_ITEM)%></h2>
-
-<%init%>
-<script type="text/javascript" src="javascript/numbercheck.js"></script>
-<script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
-
-<form id="editform" method="post" action="index.php">
-<div>
-
-<input type="hidden" name="action" value="itemupdate" />
-<input name="itemid" value="<%contents(itemid)%>" type="hidden" />
-<input type="hidden" name="draftid" value="0" />
-<%ticket%>
-
-<table><tr>
-       <th colspan="2"><%text(_EDIT_ITEM)%></th>
-</tr><tr>
-       <td><%text(_AUTOSAVEDRAFT)%></td>
-       <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
-</tr><tr>
-       <td><%text(_EDIT_ORIG_AUTHOR)%></td>
-       <td><%contents(author)%></td>
-</tr><tr>
-       <td><%text(_ADD_TITLE)%></td>
-       <td><input 
-                       <%jsinput(title)%>
-                       tabindex="10" 
-                       size="60" 
-                       maxlength="160" 
-                       value="<%contents(title)%>" />
-       </td>
-</tr><tr>
-       <td>
-               <%text(_ADD_BODY)%>
-       </td>
-       <td>
-               <%jsbuttonbar(media+preview)%>  
-               <textarea 
-                       <%jsinput(body)%>
-                       tabindex="20"
-                       cols="60"
-                       rows="20"><%contents(body)%></textarea>
-       </td>
-</tr><tr id="edit" style="display:none;">
-       <td><%text(_ADD_PREVIEW)%></td>
-       <td><b><span id="prevtitle">&#160;</span></b><br />
-               <span id="prevbody">&#160;</span><br />
-               <span id="prevmore">&#160;</span><br />
-       </td>
-</tr><tr>
-
-<%ifblogsetting(bcomments)%>
-               <td>
-                       <%text(_ADD_DISABLE_COMMENTS)%>
-               </td>
-               <td> 
-                       <input type="radio" name="closed" value="1" <%checkedonval(1,closed)%> tabindex="30" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
-                       <input type="radio" name="closed" value="0" <%checkedonval(0,closed)%> tabindex="30" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>
-                       <br />
-                       <small><%text(_EDIT_COMMENTSNOTE)%></small>     
-               </td>
-       </tr><tr>                               
-<%endif%>
-
-       <td><%text(_ADD_CATEGORY)%></td>
-       <td><%categories(40)%></td>
-</tr><tr>
-       <td><%text(_EDIT_SUBMIT)%></td>
-       <td>
-
-               <input type="submit" tabindex="60" value="<%text(_EDIT_SUBMIT)%>" onclick="return checkSubmit();" />
-
-<%ifitemproperty(draft)%>
-               <br /><br />
-               <input name="actiontype" value="addnow" type="radio" id="act_now" /><label for="act_now" tabindex="61"><%text(_ADD_ADDNOW)%></label>
-               <br />
-               <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
-               <div class="indent">
-                       <%text(_ADD_PLACE_ON)%>
-                       <input id="inputyear" name="year" tabindex="71" size="4" value="<%currenttime(year)%>" />/
-                       <input id="inputmonth" name="month" tabindex="72" size="2" value="<%currenttime(mon)%>" />/
-                       <input id="inputday" name="day" tabindex="73" size="2" value="<%currenttime(mday)%>" />&nbsp;
-                       
-                       <input id="inputhour" name="hour" tabindex="74" size="2" value="<%currenttime(hours)%>" />:
-                       <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%currenttime(minutes)%>" />
-                       (yyyy/mm/dd hh:mm)
-                       <%ifblogsetting(ballowpast,0)%>
-                               <br />
-                               <%text(_ADD_NOPASTDATES)%>
-                       <%endif%>
-               </div>
-               <input name="actiontype" value="adddraft" type="radio" checked='checked' id="act_draft" tabindex="61" /><label for="act_draft"><%text(_EDIT_BACKTODRAFTS)%></label> <%helplink(draft)%>
-               <br />
-               <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
-<%endif%>
-
-<%ifitemproperty(draft,0)%>
-       <br /><br />
-       <input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" tabindex="61" /><label for="act_edit"><%text(_BMLET_EDIT)%></label>
-       <%ifblogsetting(ballowpast)%>
-               <br />
-               <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_ADD_CHANGEDATE)%></label> <%helplink(changedate)%>
-                       <div class="indent">
-                               <input id="inputyear" name="year" tabindex="71" size="4" value="<%itemtime(year)%>" />年
-                               <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" />月
-                               <input id="inputday" name="day" tabindex="73" size="2" value="<%itemtime(mday)%>" />日
-                                
-                               <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" />時
-                               <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" />分
-                               <br />
-                               フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
-                       </div>
-       <%endif%>       
-       <br />
-       <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>
-<%endif%>
-
-       </td>
-</tr><tr>
-       <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
-       <td>
-               <%pluginextras%>
-       </td>   
-</tr>
-                       <%itemoptions%> 
-<tr>
-       <th colspan="2"><%text(_ADD_MORE)%></th>
-</tr>
-<tr>
-       <td><%text(_ADD_MORE)%>
-               <br /><%helplink(extended)%>
-       </td>
-       <td>
-               <%jsbuttonbar(media+preview)%>
-               <textarea 
-                       <%jsinput(more)%>
-                       tabindex="90" 
-                       cols="60" 
-                       rows="20"><%contents(more)%></textarea>
-       </td>
-</tr><tr>
-               <td><%text(_SUBMIT)%></td>
-               <td>
-                       <input tabindex="60" type="submit" value="<%text(_EDIT_SUBMIT)%>" 
-                               onclick="return checkSubmit();" />
-                       <input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"
-                               onclick="autoSaveDraft();" />
-               </td>
-       
-</tr></table>
-
-</div>
-</form>
-
-<script type="text/javascript">
-       var xmlhttprequest = new Array();
-       xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
-       xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
-       var seconds = now(); // Last AutoDraft time
-       var checks = 0; // Number of checks since last AutoDraft
-       var addform = document.getElementById('editform'); // The form id
-       var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
-       var goalurl = '../action.php'; // The PHP file where the content must be posted to
-       var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
-       var formtype = 'edit'; // Add or edit form
-</script>      
+<h2><%text(_EDIT_ITEM)%></h2>\r
+\r
+<%init%>\r
+<script type="text/javascript" src="javascript/numbercheck.js"></script>\r
+<%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>\r
+\r
+<form id="editform" method="post" action="index.php">\r
+<div>\r
+\r
+<input type="hidden" name="action" value="itemupdate" />\r
+<input name="itemid" value="<%contents(itemid)%>" type="hidden" />\r
+<input type="hidden" name="draftid" value="0" />\r
+<%ticket%>\r
+\r
+<table><tr>\r
+       <th colspan="2"><%text(_EDIT_ITEM)%></th>\r
+</tr>\r
+<%ifautosave()%><tr>\r
+       <td><%text(_AUTOSAVEDRAFT)%></td>\r
+       <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>\r
+</tr><%endif%>\r
+<tr>\r
+       <td><%text(_EDIT_ORIG_AUTHOR)%></td>\r
+       <td><%contents(author)%></td>\r
+</tr><tr>\r
+       <td><%text(_ADD_TITLE)%></td>\r
+       <td><input \r
+                       <%jsinput(title)%>\r
+                       tabindex="10" \r
+                       size="60" \r
+                       maxlength="160" \r
+                       value="<%contents(title)%>" />\r
+       </td>\r
+</tr><tr>\r
+       <td>\r
+               <%text(_ADD_BODY)%>\r
+       </td>\r
+       <td>\r
+               <%jsbuttonbar(media+preview)%>  \r
+               <textarea \r
+                       <%jsinput(body)%>\r
+                       tabindex="20"\r
+                       cols="60"\r
+                       rows="20"><%contents(body)%></textarea>\r
+       </td>\r
+</tr><tr id="edit" style="display:none;">\r
+       <td><%text(_ADD_PREVIEW)%></td>\r
+       <td><b><span id="prevtitle">&#160;</span></b><br />\r
+               <span id="prevbody">&#160;</span><br />\r
+               <span id="prevmore">&#160;</span><br />\r
+       </td>\r
+</tr><tr>\r
+\r
+<%ifblogsetting(bcomments)%>\r
+               <td>\r
+                       <%text(_ADD_DISABLE_COMMENTS)%>\r
+               </td>\r
+               <td> \r
+                       <input type="radio" name="closed" value="1" <%checkedonval(1,closed)%> tabindex="30" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>\r
+                       <input type="radio" name="closed" value="0" <%checkedonval(0,closed)%> tabindex="30" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>\r
+                       <br />\r
+                       <small><%text(_EDIT_COMMENTSNOTE)%></small>     \r
+               </td>\r
+       </tr><tr>                               \r
+<%endif%>\r
+\r
+       <td><%text(_ADD_CATEGORY)%></td>\r
+       <td><%categories(40)%></td>\r
+</tr><tr>\r
+       <td><%text(_EDIT_SUBMIT)%></td>\r
+       <td>\r
+\r
+               <input type="submit" tabindex="60" value="<%text(_EDIT_SUBMIT)%>" onclick="return checkSubmit();" />\r
+\r
+<%ifitemproperty(draft)%>\r
+               <br /><br />\r
+               <input name="actiontype" value="addnow" type="radio" id="act_now" /><label for="act_now" tabindex="61"><%text(_ADD_ADDNOW)%></label>\r
+               <br />\r
+               <input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="61" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>\r
+               <div class="indent">\r
+                       <%text(_ADD_PLACE_ON)%>\r
+                       <input id="inputyear" name="year" tabindex="71" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />年\r
+                       <input id="inputmonth" name="month" tabindex="72" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />月\r
+                       <input id="inputday" name="day" tabindex="73" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />日\r
+                       \r
+                       <input id="inputhour" name="hour" tabindex="74" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />時\r
+                       <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />分\r
+                               <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
+                       <%ifblogsetting(ballowpast,0)%>\r
+                               <br />\r
+                               <%text(_ADD_NOPASTDATES)%>\r
+                       <%endif%>\r
+               </div>\r
+               <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
+               <br />\r
+               <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>\r
+<%endif%>\r
+\r
+<%ifitemproperty(draft,0)%>\r
+       <br /><br />\r
+       <input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" tabindex="61" /><label for="act_edit"><%text(_BMLET_EDIT)%></label>\r
+       <%ifblogsetting(ballowpast)%>\r
+               <br />\r
+               <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_ADD_CHANGEDATE)%></label> <%helplink(changedate)%>\r
+                       <div class="indent">\r
+                               <input id="inputyear" name="year" tabindex="71" size="4" value="<%itemtime(year)%>" onchange="document.forms[0].act_changedate.checked=true;" />年\r
+                               <input id="inputmonth" name="month" tabindex="72" size="2" value="<%itemtime(mon)%>" onchange="document.forms[0].act_changedate.checked=true;" />月\r
+                               <input id="inputday" name="day" tabindex="73" size="2" value="<%itemtime(mday)%>" onchange="document.forms[0].act_changedate.checked=true;" />日\r
+                                \r
+                               <input id="inputhour" name="hour" tabindex="74" size="2" value="<%itemtime(hours)%>" onchange="document.forms[0].act_changedate.checked=true;" />時\r
+                               <input id="inputminutes" name="minutes" tabindex="75" size="2" value="<%itemtime(minutes)%>" onchange="document.forms[0].act_changedate.checked=true;" />分\r
+                               <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
+                       </div>\r
+       <%endif%>       \r
+       <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>\r
+       <br />\r
+       <input name="actiontype" value="delete" type="radio" id="act_delete" tabindex="61" /><label for="act_delete"><%text(_BMLET_DELETE)%></label>\r
+<%endif%>\r
+       <br />\r
+       <input id="dosendping" name="dosendping" value="1" type="checkbox"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
+\r
+       </td>\r
+</tr><tr>\r
+       <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
+       <td>\r
+               <%pluginextras%>\r
+       </td>   \r
+</tr>\r
+                       <%itemoptions%> \r
+<tr>\r
+       <th colspan="2"><%text(_ADD_MORE)%></th>\r
+</tr>\r
+<tr>\r
+       <td><%text(_ADD_MORE)%>\r
+               <br /><%helplink(extended)%>\r
+       </td>\r
+       <td>\r
+               <%jsbuttonbar(media+preview)%>\r
+               <textarea \r
+                       <%jsinput(more)%>\r
+                       tabindex="90" \r
+                       cols="60" \r
+                       rows="20"><%contents(more)%></textarea>\r
+       </td>\r
+</tr><tr>\r
+               <td><%text(_SUBMIT)%></td>\r
+               <td>\r
+                       <input tabindex="60" type="submit" value="<%text(_EDIT_SUBMIT)%>" \r
+                               onclick="return checkSubmit();" />\r
+                       <%ifautosave()%><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"\r
+                               onclick="autoSaveDraft();" /><%endif%>\r
+               </td>\r
+       \r
+</tr></table>\r
+\r
+</div>\r
+</form>\r
+\r
+<%ifautosave()%><script type="text/javascript">\r
+       var xmlhttprequest = new Array();\r
+       xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler\r
+       xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler\r
+       var seconds = now(); // Last AutoDraft time\r
+       var checks = 0; // Number of checks since last AutoDraft\r
+       var addform = document.getElementById('editform'); // The form id\r
+       var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come\r
+       var goalurl = '../action.php'; // The PHP file where the content must be posted to\r
+       var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'\r
+       var formtype = 'edit'; // Add or edit form\r
+</script><%endif%>\r