1 <%xmldeclaration%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
2 <html <%text(_HTML_XML_NAME_SPACE_AND_LANG_CODE)%>>
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />
\r
6 Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
\r
7 Copyright (C) 2002-2009 The Nucleus Group
\r
9 This program is free software; you can redistribute it and/or
\r
10 modify it under the terms of the GNU General Public License
\r
11 as published by the Free Software Foundation; either version 2
\r
12 of the License, or (at your option) any later version.
\r
13 (see nucleus/documentation/index.html#license for more info)
\r
15 @license http://nucleuscms.org/license.txt GNU General Public License
\r
16 @copyright Copyright (C) 2002-2009 The Nucleus Group
\r
19 <title><%text(_ADD_ADDTO)%> '<%blogname%>'</title>
\r
20 <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />
\r
21 <link rel="stylesheet" type="text/css" href="styles/addedit.css" />
\r
22 <link rel="stylesheet" type="text/css" href="styles/jqueryui/ui.all.css" />
\r
23 <meta http-equiv="Content-Script-Type" content="text/javascript" />
\r
24 <script type="text/javascript" src="javascript/bookmarklet.js"></script>
\r
25 <script type="text/javascript" src="javascript/edit.js"></script>
\r
26 <script type="text/javascript" src="javascript/numbercheck.js"></script>
\r
27 <%ifautosave()%><script type="text/javascript" src="javascript/xmlhttprequest.js"></script><%endif%>
\r
28 <script type="text/javascript" src="http://www.google.com/jsapi"></script>
\r
31 <script type="text/javascript">
\r
33 google.load("jquery", "1");
\r
34 google.load("jqueryui", "1");
\r
35 var nucleus_initbm_oldonload = window.onload;
\r
36 function nucleus_initbm()
\r
41 if (nucleus_initbm_oldonload)
\r
42 nucleus_initbm_oldonload();
\r
44 window.onload = nucleus_initbm;
\r
45 google.setOnLoadCallback(function() {
\r
47 $("#tabs > ul").tabs();
\r
48 $("table tr td:first-child").css("width", "14%");
\r
51 function preautoSaveDraft() {
\r
52 $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')');
\r
59 <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>
\r
60 <form id="addform" method="post" action="bookmarklet.php" >
\r
61 <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
\r
62 <ul class=" ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
\r
63 <li class="ui-state-default ui-corner-top"><a href="#body"><%text(_BMLET_BODY)%> >></a></li>
\r
64 <li class="ui-state-default ui-corner-top"><a href="#more"><%text(_BMLET_MORE)%> >></a></li>
\r
65 <li class="ui-state-default ui-corner-top"><a href="#options"><%text(_BMLET_OPTIONS)%> >></a></li>
\r
66 <li class="ui-state-default ui-corner-top"><a href="#preview" onclick="updAllPreviews();"><%text(_BMLET_PREVIEW)%> >></a></li>
\r
68 <input name="action" type="hidden" value="additem" />
\r
69 <input name="blogid" type="hidden" value="<%blogid%>" />
\r
70 <input type="hidden" name="draftid" value="0" />
\r
72 <div id="body" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">
\r
73 <table summary="item body">
\r
75 <td><%text(_ADD_TITLE)%></td>
\r
76 <td><input <%jsinput(title)%> type="text" size="60" maxlength="160" value="<%contents(title)%>" /></td>
\r
79 <td><%text(_ADD_BODY)%> <%helplink(additem)%></td>
\r
81 <%jsbuttonbar(media)%>
\r
82 <textarea <%jsinput(body)%> cols="58" rows="12"><%contents(body)%></textarea>
\r
86 <td><%text(_ADD_CATEGORY)%></td>
\r
87 <td><%categories%></td>
\r
91 <div id="more" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">
\r
92 <table summary="item more">
\r
94 <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
\r
96 <%jsbuttonbar(media)%>
\r
97 <textarea <%jsinput(more)%> cols="58" rows="17"><%contents(more)%></textarea>
\r
102 <div id="options" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">
\r
103 <table summary="item options">
\r
104 <%ifblogsetting(bcomments)%><tr>
\r
105 <td><%text(_ADD_DISABLE_COMMENTS)%></td>
\r
107 <input type='radio' name='closed' value='1' id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
\r
108 <input type='radio' name='closed' value='0' checked='checked' id="closed_no" /><label for="closed_no"><%text(_NO)%></label>
\r
112 <td><%text(_ADD_DRAFTNFUTURE)%></td>
\r
114 <ul class="nobullets">
\r
115 <li><input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" /><label for="act_now"><%text(_ADD_ADDNOW)%></label></li>
\r
116 <li><input name="actiontype" value="addfuture" type="radio" id="act_future" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%></li>
\r
118 <div class="indent">
\r
119 <%text(_ADD_PLACE_ON)%>
\r
120 <input id="inputyear" name="year" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_YEAR)%>
\r
121 <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MONTH)%>
\r
122 <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_DAY)%>
\r
123 <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_HOUR)%>
\r
124 <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" /><%text(_ITEM_ADDEDITTEMPLATE_MINUTE)%>
\r
125 <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
126 <%ifblogsetting(ballowpast,0)%><br /><%text(_ADD_NOPASTDATES)%><%endif%>
\r
130 <input name="actiontype" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
\r
132 <li><input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked" /><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label></li>
\r
137 <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
\r
138 <td><%pluginextras%></td>
\r
143 <div id="preview" class="contentblock ui-tabs-panel ui-widget-content ui-corner-bottom">
\r
144 <h2><%text(_ADD_PREVIEW)%></h2>
\r
145 <strong><span id="prevtitle"> </span></strong>
\r
147 <span id="prevbody"> </span>
\r
149 <span id="prevmore"> </span>
\r
152 <div class="submitbuttons">
\r
153 <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />
\r
154 <%ifautosave()%><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="preautoSaveDraft();" /><%endif%>
\r
155 <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />
\r
156 <%ifautosave()%><span class="autosavestatus">(<%text(_AUTOSAVEDRAFT)%> : <span class="lastsavedtime"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>)</span></span><%endif%>
\r
159 <%ifautosave()%><script type="text/javascript">
\r
160 var xmlhttprequest = new Array();
\r
161 xmlhttprequest[0] = createHTTPHandler(); // AutoDraft handler
\r
162 xmlhttprequest[1] = createHTTPHandler(); // UpdateTicket handler
\r
163 var seconds = now(); // Last AutoDraft time
\r
164 var checks = 0; // Number of checks since last AutoDraft
\r
165 var addform = document.getElementById('addform'); // The form id
\r
166 var goal = document.getElementById('info'); // The html div id where 'Last saved: date time' must come
\r
167 var goalurl = '../action.php'; // The PHP file where the content must be posted to
\r
168 var lastsavedtext = '<%text(_AUTOSAVEDRAFT_LASTSAVED)%>'; // The language variable for 'Last saved'
\r
169 var formtype = 'add'; // Add or edit form
\r