-<%xmldeclaration%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+<?xml version="1.0" encoding="<%text(_CHARSET)%>"?>\r
+<!-- %xmldeclaration% -->\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
<html <%text(_HTML_XML_NAME_SPACE_AND_LANG_CODE)%>>\r
<head>\r
<meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />\r
<!--\r
Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
- Copyright (C) 2002-2009 The Nucleus Group\r
+ Copyright (C) 2002-2010 The Nucleus Group\r
\r
This program is free software; you can redistribute it and/or\r
modify it under the terms of the GNU General Public License\r
(see nucleus/documentation/index.html#license for more info)\r
\r
@license http://nucleuscms.org/license.txt GNU General Public License\r
- @copyright Copyright (C) 2002-2009 The Nucleus Group\r
+ @copyright Copyright (C) 2002-2010 The Nucleus Group\r
$Id$\r
-->\r
<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/bookmarklet.css" />\r
<link rel="stylesheet" type="text/css" href="styles/addedit.css" />\r
<link rel="stylesheet" type="text/css" href="styles/jquery-ui/ui.all.css" />\r
<meta http-equiv="Content-Script-Type" content="text/javascript" />\r
<script type="text/javascript">\r
//<![CDATA[\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
- updAllPreviews();\r
-\r
- if (nucleus_initbm_oldonload)\r
- nucleus_initbm_oldonload();\r
- }\r
- window.onload = nucleus_initbm;\r
+ google.load("jqueryui", "1");\r
google.setOnLoadCallback(function() {\r
$(function(){\r
- $("#tabs > ul").tabs();\r
- $("table tr td:first-child").css("width", "14%");\r
+// var IE = '\v'=='v';\r
+ updAllPreviews();\r
+// $("table tr td:first-child").css("width", "14%");\r
+// if (!IE)\r
+// $("#body textarea, #more textarea").resizable({ containment: 'parent' });\r
+ $("#tabs").tabs();\r
+ $(".addFuture").change(function() {\r
+ $("#act_future").attr('checked', 'checked');\r
+ });\r
+ $("#showPreview").click(function() {updAllPreviews();});\r
+ $("#goSubmit").click(function() {checkSubmit();});\r
+ $("#canselButton").click(function() {window.close();});\r
+ $("#saveDraft").click(function() {\r
+ $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')');\r
+ autoSaveDraft();\r
+ });\r
+// $("#options tr td:nth-child(2)").css("width", "80% !important");\r
+// $("#options tr th").css({\r
+// width: "25%",\r
+// whiteSpace: "normal"\r
+// });\r
});\r
});\r
- function preautoSaveDraft() {\r
- $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')');\r
- autoSaveDraft();\r
- }\r
//]]>\r
</script>\r
- <script type="text/javascript" src="javascript/jquery-ui-personalized-1.6rc6.min.js"></script>\r
</head>\r
<body>\r
<h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>\r
<form id="addform" method="post" action="bookmarklet.php" >\r
- <div id="tabs" class="ui-tabs">\r
+ <div id="tabs">\r
<ul>\r
- <li><a href="#body"><%text(_BMLET_BODY)%> >></a></li>\r
- <li><a href="#more"><%text(_BMLET_MORE)%> >></a></li>\r
- <li><a href="#options"><%text(_BMLET_OPTIONS)%> >></a></li>\r
- <li><a href="#preview" onclick="updAllPreviews();"><%text(_BMLET_PREVIEW)%> >></a></li>\r
+ <li><a href="#body" tabindex="300"><%text(_BMLET_BODY)%> >></a></li>\r
+ <li><a href="#more" tabindex="310"><%text(_BMLET_MORE)%> >></a></li>\r
+ <li><a href="#options" tabindex="320"><%text(_BMLET_OPTIONS)%> >></a></li>\r
+ <li><a href="#preview" id="showPreview" name="showPreview" tabindex="330"><%text(_BMLET_PREVIEW)%> >></a></li>\r
</ul>\r
<input name="action" type="hidden" value="additem" />\r
<input name="blogid" type="hidden" value="<%blogid%>" />\r
<div id="body" class="contentblock">\r
<table summary="item body">\r
<tr>\r
- <td><%text(_ADD_TITLE)%></td>\r
- <td><input <%jsinput(title)%> type="text" size="60" maxlength="160" value="<%contents(title)%>" /></td>\r
+ <td style="width:20%"><%text(_ADD_TITLE)%></td>\r
+ <td><input <%jsinput(title)%> type="text" size="60" maxlength="160" value="<%contents(title)%>" tabindex="10" /></td>\r
</tr>\r
<tr>\r
<td><%text(_ADD_BODY)%> <%helplink(additem)%></td>\r
<td>\r
<%jsbuttonbar(media)%>\r
- <textarea <%jsinput(body)%> cols="58" rows="12"><%contents(body)%></textarea>\r
+ <textarea <%jsinput(body)%> cols="60" rows="20" tabindex="20"><%contents(body)%></textarea>\r
</td>\r
</tr>\r
<tr>\r
<td><%text(_ADD_CATEGORY)%></td>\r
- <td><%categories%></td>\r
+ <td><%categories(30)%></td>\r
</tr>\r
</table>\r
</div>\r
<div id="more" class="contentblock">\r
<table summary="item more">\r
<tr>\r
- <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
+ <td style="width:20%"><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
<td>\r
<%jsbuttonbar(media)%>\r
- <textarea <%jsinput(more)%> cols="58" rows="17"><%contents(more)%></textarea>\r
+ <textarea <%jsinput(more)%> cols="60" rows="22" tabindex="40"><%contents(more)%></textarea>\r
</td>\r
</tr>\r
</table>\r
<div id="options" class="contentblock">\r
<table summary="item options">\r
<%ifblogsetting(bcomments)%><tr>\r
- <td><%text(_ADD_DISABLE_COMMENTS)%></td>\r
+ <td style="width:20%"><%text(_ADD_DISABLE_COMMENTS)%></td>\r
<td>\r
- <input type='radio' name='closed' value='1' id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>\r
- <input type='radio' name='closed' value='0' checked='checked' id="closed_no" /><label for="closed_no"><%text(_NO)%></label>\r
+ <input type='radio' name='closed' value='1' id="closed_yes" tabindex="50" /><label for="closed_yes"><%text(_YES)%></label>\r
+ <input type='radio' name='closed' value='0' checked='checked' id="closed_no" tabindex="50" /><label for="closed_no"><%text(_NO)%></label>\r
</td>\r
</tr><%endif%>\r
<tr>\r
- <td><%text(_ADD_DRAFTNFUTURE)%></td>\r
+ <td style="width:20%"><%text(_ADD_DRAFTNFUTURE)%></td>\r
<td>\r
<ul class="nobullets">\r
- <li><input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" /><label for="act_now"><%text(_ADD_ADDNOW)%></label></li>\r
- <li><input name="actiontype" value="addfuture" type="radio" id="act_future" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%></li>\r
+ <li><input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="60" /><label for="act_now"><%text(_ADD_ADDNOW)%></label></li>\r
+ <li><input name="actiontype" value="addfuture" type="radio" id="act_future" tabindex="60" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%></li>\r
<li>\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;" /><%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
- <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
+ <input class="addFuture" id="inputyear" name="year" size="4" value="<%currenttime(year)%>" tabindex="70" /><%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>\r
+ <input class="addFuture" id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" tabindex="80" /><%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>\r
+ <input class="addFuture" id="inputday" name="day" size="2" value="<%currenttime(mday)%>" tabindex="90" /><%text(_ITEM_ADDEDITTEMPLATE_DAY)%>\r
+ <input class="addFuture" id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" tabindex="100" /><%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>\r
+ <input class="addFuture" id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" tabindex="110" /><%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)%><br /><%text(_ADD_NOPASTDATES)%><%endif%>\r
</div>\r
</li>\r
<li>\r
- <input name="actiontype" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
+ <input name="actiontype" value="adddraft" type="radio" id="act_draft" tabindex="60" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
</li>\r
- <li><input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked" /><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label></li>\r
+ <!-- li><input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked" tabindex="120" /><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label></li -->\r
</ul>\r
</td>\r
</tr>\r
</div>\r
</div>\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
+ <input id="goSubmit" type="submit" value="<%text(_BMLET_EDIT)%>" tabindex="200" />\r
+ <%ifautosave()%><input id="saveDraft" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" tabindex="400" /><%endif%>\r
+ <input id="canselButton" type="button" value="<%text(_BMLET_CANCEL)%>" tabindex="410" />\r
<%ifautosave()%><span class="autosavestatus">(<%text(_AUTOSAVEDRAFT)%> : <span class="lastsavedtime"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>)</span></span><%endif%>\r
</div>\r
</form>\r