<title><%text(_ADD_ADDTO)%> '<%blogname%>'</title>\r
<link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" /> \r
<link rel="stylesheet" type="text/css" href="styles/addedit.css" /> \r
+ <link rel="stylesheet" type="text/css" href="styles/jqueryui/ui.all.css" />\r
<script type="text/javascript" src="javascript/bookmarklet.js"></script>\r
<script type="text/javascript" src="javascript/edit.js"></script>\r
<script type="text/javascript" src="javascript/numbercheck.js"></script>\r
<%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>\r
+ <script src="http://www.google.com/jsapi"></script>\r
<%init%>\r
<%extrahead%>\r
<script type="text/javascript">\r
+ google.load("jquery", "1");\r
+ google.load("jqueryui", "1");\r
var nucleus_initbm_oldonload = window.onload;\r
function nucleus_initbm()\r
{\r
- initStyles(); \r
+// initStyles(); \r
updAllPreviews();\r
\r
if (nucleus_initbm_oldonload)\r
nucleus_initbm_oldonload();\r
}\r
window.onload = nucleus_initbm;\r
+ google.setOnLoadCallback(function() {\r
+ $(function(){\r
+ $("#tabs > ul").tabs();\r
+ $("table tr td:first-child").css("width", "14%");\r
+ });\r
+ });\r
+ function preautoSaveDraft() {\r
+ $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')');\r
+ autoSaveDraft();\r
+ }\r
</script>\r
</head>\r
<body>\r
<h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>\r
+ <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">\r
+ <ul class=" ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">\r
+ <li class="ui-state-default ui-corner-top"><a href="#body"><%text(_BMLET_BODY)%> >></a></li>\r
+ <li class="ui-state-default ui-corner-top"><a href="#more"><%text(_BMLET_MORE)%> >></a></li>\r
+ <li class="ui-state-default ui-corner-top"><a href="#options"><%text(_BMLET_OPTIONS)%> >></a></li>\r
+ <li class="ui-state-default ui-corner-top"><a href="#preview"><%text(_BMLET_PREVIEW)%> >></a></li>\r
+ </ul>\r
<form id="addform" method="post" action="bookmarklet.php" ><div>\r
- \r
<input name="action" type="hidden" value="additem" />\r
<input name="blogid" type="hidden" value="<%blogid%>" />\r
<input type="hidden" name="draftid" value="0" />\r
<%ticket%>\r
- \r
- <div id="submit" class="buttonbar">\r
- <div id="switchbuttons">\r
- <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" />\r
- <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" />\r
- <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" />\r
- <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" />\r
- </div>\r
- <input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" />\r
- <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />\r
- </div>\r
+ <!-- div id="submit" class="buttonbar" -->\r
+ <!-- div id="switchbuttons" -->\r
+ <!-- input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> >>" / -->\r
+ <!-- input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> >>" / -->\r
+ <!-- input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> >>" / -->\r
+ <!-- input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> >>" / -->\r
+ <!-- /div -->\r
+ <!-- input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" / -->\r
+ <!-- input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" / -->\r
+ <!-- /div -->\r
\r
- <div id="body" class="contentblock">\r
+ <div id="body" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">\r
\r
<table>\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(_ADD_TITLE)%></td>\r
<td>\r
<%text(_ADD_CATEGORY)%></td>\r
<td><%categories%></td>\r
</tr>\r
- <tr>\r
+ <!-- tr>\r
<%ifautosave()%><td><%text(_AUTOSAVEDRAFT_NOW)%></td>\r
<td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td><%endif%>\r
- </tr>\r
+ </tr -->\r
</table>\r
\r
\r
</div>\r
\r
- <div id="more" class="contentblock">\r
+ <div id="more" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">\r
<table>\r
<tr>\r
<td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
rows="17"><%contents(more)%></textarea>\r
</td></tr></table>\r
</div>\r
- <div id="options" class="contentblock">\r
+ <div id="options" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">\r
<table>\r
<%ifblogsetting(bcomments)%>\r
<tr>\r
<input name="actiontype" value="addfuture" type="radio" id="act_future" /><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" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />年\r
- <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />月\r
- <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />日\r
+ <input id="inputyear" name="year" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>\r
+ <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>\r
+ <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_DAY)%>\r
\r
- <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />時\r
- <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />分\r
- <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
+ <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>\r
+ <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>\r
+ <br /><%text(_ITEM_ADDEDITTEMPLATE_FORMAT)%>(yyyy)<%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>(mm)<%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>(dd)<%text(_ITEM_ADDEDITTEMPLATE_DAY)%> (hh)<%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>(mm)<%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>\r
<%ifblogsetting(ballowpast,0)%>\r
<br />\r
<%text(_ADD_NOPASTDATES)%>\r
\r
</div>\r
\r
- <div id="preview" class="contentblock">\r
+ <div id="preview" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">\r
<h2><%text(_ADD_PREVIEW)%></h2>\r
\r
<b><span id="prevtitle"> </span></b>\r
</div>\r
\r
</div></form>\r
+ </div>\r
+\r
+ <div class="submitbuttons">\r
+ <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />\r
+ <%ifautosave()%><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="preautoSaveDraft();" /><%endif%>\r
+ <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />\r
+ <%ifautosave()%><span class="autosavestatus">(<%text(_AUTOSAVEDRAFT)%> : <span class="lastsavedtime"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>)</span></span><%endif%>\r
+ </div>\r
\r
<%ifautosave()%><script type="text/javascript">\r
var xmlhttprequest = new Array();\r
</script><%endif%>\r
\r
</body>\r
- </html>
\ No newline at end of file
+ </html>\r
+
\ No newline at end of file