OSDN Git Service

/nucleus/libs/include/ 内のファイルを本家3.4RCに会わせて更新
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Thu, 5 Feb 2009 13:05:59 +0000 (13:05 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Thu, 5 Feb 2009 13:05:59 +0000 (13:05 +0000)
/nucleus/documentation/devdocs/plagins.html 途中

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@901 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/documentation/devdocs/plugins.html
utf8/nucleus/documentation/history.html
utf8/nucleus/libs/include/admin-add.template
utf8/nucleus/libs/include/admin-edit.template
utf8/nucleus/libs/include/bookmarklet-add.template
utf8/nucleus/libs/include/bookmarklet-edit.template
utf8/nucleus/libs/include/readme.txt

index 09ca533..3b41395 100755 (executable)
@@ -1965,10 +1965,10 @@ class NP_HelloWorld extends NucleusPlugin {
     <li>自分でデータベース接続をする場合、後でNucleusデータベースへの接続を復元するようにしてください。自前処理の後で <code>sql_connect()</code>  を呼ぶことで可能です。頻繁な再接続を避けるために、コンストラクタでそれを行うのも良いです。<code>$this- &gt;db</code>のリンクIDを保持でき、各クエリにそれを渡すことができます。</li>\r
     <li>バックアップ機能を使う時は、独自テーブルもバックアップに含めるよう、<code>getTableList()</code> を再定義してください。</li>\r
        <li>It's a good idea to make the removal of your database tables optional. This will allow your users to temporarily remove your plugin without losing the data. For instance, you may need to make changes to options or database tables requiring that the install() method be run to execute code neccessary to modify existing tables or options. This will require that your users uninstall the old version and then install the new version and losing their data in the process. To make the deletion of your tables optional, you can add an option like this in install():\r
     <li>自分でデータベース接続をする場合、後でNucleusデータベースへの接続を復元するようにしてください。自前処理の後で <code>sql_connect()</code>  を呼ぶことで可能です。頻繁な再接続を避けるために、コンストラクタでそれを行うのも良いです。<code>$this- &gt;db</code>のリンクIDを保持でき、各クエリにそれを渡すことができます。</li>\r
     <li>バックアップ機能を使う時は、独自テーブルもバックアップに含めるよう、<code>getTableList()</code> を再定義してください。</li>\r
        <li>It's a good idea to make the removal of your database tables optional. This will allow your users to temporarily remove your plugin without losing the data. For instance, you may need to make changes to options or database tables requiring that the install() method be run to execute code neccessary to modify existing tables or options. This will require that your users uninstall the old version and then install the new version and losing their data in the process. To make the deletion of your tables optional, you can add an option like this in install():\r
-       <pre class="example"><code>$this->createOption('del_uninstall', 'Delete NP_MyPlugin data tables on uninstall?', 'yesno','no');</code></pre>\r
+       <pre class="example"><code>$this-&gt;createOption('del_uninstall', 'Delete NP_MyPlugin data tables on uninstall?', 'yesno','no');</code></pre>\r
        and this snippet in uninstall():\r
        and this snippet in uninstall():\r
-       <pre class="example"><code>if ($this->getOption('del_uninstall') == 'yes')      {\r
-       foreach ($this->getTableList() as $table) {\r
+       <pre class="example"><code>if ($this-&gt;getOption('del_uninstall') == 'yes')   {\r
+       foreach ($this-&gt;getTableList() as $table) {\r
                sql_query("DROP TABLE $table");\r
        }\r
 }</code></pre></li>\r
                sql_query("DROP TABLE $table");\r
        }\r
 }</code></pre></li>\r
@@ -2034,15 +2034,15 @@ class NP_HelloWorld extends NucleusPlugin {
 }</code></pre>\r
   </li>\r
   <li> Optional. Make the <code>QuickMenu</code> entry optional, and restrict who sees it. The following assumes that an option, of type <code>yesno</code> and called <code>quickmenu</code>, exists in install(). It also will restrict viewing of the <code>QuickMenu</code> entry to super-admins and to blog-admins.\r
 }</code></pre>\r
   </li>\r
   <li> Optional. Make the <code>QuickMenu</code> entry optional, and restrict who sees it. The following assumes that an option, of type <code>yesno</code> and called <code>quickmenu</code>, exists in install(). It also will restrict viewing of the <code>QuickMenu</code> entry to super-admins and to blog-admins.\r
-       <pre class="example"><code>function event_QuickMenu(&$data) {\r
+       <pre class="example"><code>function event_QuickMenu(&amp;$data) {\r
     // only show when option enabled\r
     // only show when option enabled\r
-    if ($this->getOption('quickmenu') != 'yes') return;\r
+    if ($this-&gt;getOption('quickmenu') != 'yes') return;\r
     global $member;\r
     global $member;\r
-    if (!$member->isAdmin() && !count($member->getAdminBlogs())) return;\r
+    if (!$member-&gt;isAdmin() &amp;&amp; !count($member-&gt;getAdminBlogs())) return;\r
     array_push($data['options'],\r
     array_push($data['options'],\r
-       array('title' => 'PluginName',\r
-               'url' => $this->getAdminURL(),\r
-               'tooltip' => 'Administer NP_PluginName'));\r
+       array('title' =&gt; 'PluginName',\r
+               'url' =&gt; $this-&gt;getAdminURL(),\r
+               'tooltip' =&gt; 'Administer NP_PluginName'));\r
 }</code></pre>\r
   </li>\r
 </ol>\r
 }</code></pre>\r
   </li>\r
 </ol>\r
@@ -2133,202 +2133,202 @@ NucleusはこのAPIによって、インストール前に依存関係を検知
 <p>このプラグイン依存チェックは、他のプラグインが依存しているプラグインがアンインストールされることも防ぎます。</p>\r
 \r
 </div>\r
 <p>このプラグイン依存チェックは、他のプラグインが依存しているプラグインがアンインストールされることも防ぎます。</p>\r
 \r
 </div>\r
-<h1>Internationalizing Your Plugin <a name="internationalization" href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>\r
+<h1>プラグインの多国語化<a name="internationalization" href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>\r
 \r
 \r
-<p>Internationalization of a plugin allows your plugin to be easily used by people all over the world, people who do not \r
-speak the same language as you do. It requires a little additional work for you, but makes translating the output of your plugin \r
-as easy as translating a few phrases in a text file. Below is a description of the standard method suggested for use by Nucleus plugins. \r
-Thanks to Andy Matsubara for the instructions.</p>\r
+<p>あなたと同じ言葉を話さない世界中の人達がプラグインをより使いやすくするために、プラグインを多国語化できます。\r
+少し手間は増えますが、プラグインが出力する文章を翻訳するだけで可能です。\r
+以下に Nucleus のコアで用意されている標準的な手順を記載します。\r
+Andyさん、ありがとう!</p>\r
 \r
 <ol>\r
 \r
 <ol>\r
-       <li><strong>Develop your plugin</strong>\r
+       <li><strong>プラグインを作る</strong>\r
 \r
 \r
-At first, it is easier to develop it in your language. Use of language files is recommended after the plugin becomes stable.</li>\r
-       <li><strong>Create plugin directory</strong>\r
+先ずはじめに、あなたが普段使っている言葉でプラグインを作ります。プラグインが安定して動作するようになってから、言語ファイルを作成することが推奨されます。</li>\r
+       <li><strong>プラグインディレクトリを作る</strong>\r
 \r
 \r
-If your plugin name is NP_AbcDef, the plugin directory name is abcdef (always lower case).</li>\r
-       <li><strong>Create language files</strong>\r
+作ったプラグインの名前が NP_AbcDef なら、プラグインディレクトリの名前は abcdef になります(必ず小文字を使用すること)。</li>\r
+       <li><strong>言語ファイルを作る</strong>\r
 \r
 \r
-Create the language files in the directory of your plugin. The name of the language file must be the same as that of the Nucleus language file name. For example, english.php is for English and default use. japanese-utf8.php for Japanese(UTF-Cool,japanese-euc.php for Japanese(EUC-JP).</li>\r
-       <li><strong>Define strings</strong>\r
+プラグインディレクトリに言語ファイルを作成します。言語ファイルの名前は Nucleus コアが使用しているものと同じにします。例えば、英語なら english.php。日本語の UTF-8 なら japanese-utf8.phpになります(UTF がお勧めです。参考までに日本語の EUC の場合は japanese-euc.php になります)。</li>\r
+       <li><strong>文を定義する</strong>\r
 \r
 \r
-Define strings like below in the language file:\r
+次のように言語ファイル内で分を定義します。\r
 \r
 <pre class="example"><code>&lt;?php\r
 \r
 <pre class="example"><code>&lt;?php\r
-define('_ABCDEF_MESSAGENAME',                  'actual strings in the language');\r
+define('_ABCDEF_MESSAGENAME',                  '実際のメッセージ');\r
   . . .\r
 ?&gt;</code></pre>\r
 \r
   . . .\r
 ?&gt;</code></pre>\r
 \r
-You have to define them for all static strings in your plugin. As defined name is used globally in the environment, it is recommended to have a prefix derived from the plugin name(in this case _ABCDEF).</li>\r
-       <li><strong>Replace static strings</strong>\r
+全ての文を定義する必要があります。定数は一回しか定義できないので、既に定義されているものと重複しないようにプラグインの名前をはじめにつけることが推奨されます(この例だと _ABCDEF)。</li>\r
+       <li><strong>文の置き換え</strong>\r
 \r
 \r
-Replace static strings in your plugin with the defined names so they will change according to the language file.</li>\r
-       <li><strong>Create init method</strong>\r
+全ての文を、言語ファイルで定義した定数と置き換えます</li>\r
+       <li><strong>init() メソッドの編集</strong>\r
 \r
 \r
-Make the init method in the plugin like below\r
+プラグイン内の init() メソッドを、次のように編集します(既に init() メソッドを定義している場合は init() メソッド内にコードを追記します)。\r
 \r
 <pre class="example"><code>   function init() {\r
       // include language file for this plugin\r
       $language = ereg_replace( '[\\|/]', '', getLanguageName());\r
 \r
 <pre class="example"><code>   function init() {\r
       // include language file for this plugin\r
       $language = ereg_replace( '[\\|/]', '', getLanguageName());\r
-      if (file_exists($this->getDirectory().$language.'.php'))\r
-         include_once($this->getDirectory().$language.'.php');\r
+      if (file_exists($this-&gt;getDirectory().$language.'.php'))\r
+         include_once($this-&gt;getDirectory().$language.'.php');\r
       else\r
       else\r
-         include_once($this->getDirectory().'english.php');\r
+         include_once($this-&gt;getDirectory().'english.php');\r
    }</code></pre>\r
    }</code></pre>\r
-</li>\r
-This logic is same as Nucleus・language file setting.\r
-       <li><strong>Add language files</strong>\r
+このコードは Nucleus のコアで使用されているものと同一です。</li>\r
+\r
+       <li><strong>言語ファイルの追加</strong>\r
 \r
 \r
-As English is the default language, it is recommended to have at least the English version.    </li>\r
+「英語」が基本の言語になっていますので、「英語」の言語ファイルも追加することが望まれます。</li>\r
 </ol>\r
 \r
 \r
 \r
 </ol>\r
 \r
 \r
 \r
-<h1>Formatting your SkinVar output <a name="skinvar-formatting" href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>\r
+<h1>スキン変数の出力の書式 <a name="skinvar-formatting" href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>\r
 \r
 \r
-<p>Some great plugin ideas never receive general use simply because the output generated by the <code>doSkinVar()</code> method is not flexible enough to meet the needs of \r
-different skins or URL schemes. Nucleus provides some tools to help you generalize your output in ways that allow each user to fit it to his or her needs.</p>\r
+<p>偉大なプラグインのいくつかは、様々なスキンや URL の生成において、必ずしもそのまま使用できるとはいえません。なぜなら、doSkinVar() メソッドによって出力されるものが、\r
+ユーザーのニーズに十二分に合致するものであるとは言いがたいからです。Nucleus では、出力をここのユーザーによっておのおののニーズに沿ったものにする為に、いくつかのツールを用意しています。</p>\r
 \r
 \r
-<p>To create links to Nucleus pages, such as blogs, categories, items, member details, action.php, admin area, or the plugin admin page, use the built in Nucleus functions \r
-and global variables described below:</p>\r
+<p>各ブログ・カテゴリー・アイテム・メンバー、それから action.php や管理エリア、または各プラグインの管理エリアなどの URL を出力する為に、Nucleus はコアの機能として\r
+いくつかのファンクションとグローバル変数を用意しています。:</p>\r
 \r
 \r
-<table summary="An overview of functions and variables useful in creating links to Nucleus pages">\r
+<table summary="Nucleus の各ページへのリンクを生成する為に便利な変数とファンクション">\r
        <caption>Functions and variables useful in creating links to Nucleus pages</caption>\r
        <tr>\r
        <caption>Functions and variables useful in creating links to Nucleus pages</caption>\r
        <tr>\r
-               <th>Name</th><th>What</th><th>Parameters</th><th>Description</th>\r
+               <th>名前</th><th>種類</th><th>引数</th><th>説明</th>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['AdminURL']</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['AdminURL']</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full URL to the Nucleus Admin Area</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus の管理領域への絶対 URL</td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['PluginURL']</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['PluginURL']</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full URL to the Nucleus plugins directory. Use it to link to a plugin's admin page, like this <code>$CONF['PluginURL'].'pluginname/'</code></td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のプラグインディレクトリへの絶対 URL。<code>$CONF['PluginURL'].'pluginname/'</code> の様にして、プラグインの管理エリアへのリンク生成に使用する。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['ActionURL']</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['ActionURL']</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full URL to the Nucleus action.php file</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus の action.php への絶対 URL。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['MediaURL']</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['MediaURL']</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full URL to the Nucleus media folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のメディアディレクトリへの絶対 URL。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['SkinsURL']</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['SkinsURL']</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full URL to the Nucleus skins folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のスキンディレクトリへの絶対 URL。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['IndexURL']</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$CONF['IndexURL']</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full URL to the main Nucleus directory.</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のメインディレクトリへの絶対 URL。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_NUCLEUS</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_NUCLEUS</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full system path to the Nucleus Admin folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のメインディレクトリへのシステムルートからのフルパス。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_SKINS</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_SKINS</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full system path to the Nucleus skins folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のスキンディレクトリへのシステムルートからのフルパス。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_MEDIA</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_MEDIA</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full system path to the Nucleus media folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のメディアディレクトリへのシステムルートからのフルパス。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_PLUGINS</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_PLUGINS</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full system path to the Nucleus plugins folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のプラグインディレクトリへのシステムルートからのフルパス。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_LANG</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_LANG</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full system path to the Nucleus language folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus の言語ファイルディレクトリへのシステムルートからのフルパス。</td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_LIBS</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>$DIR_LIBS</code></td>\r
-               <td>Global variable</td>\r
-               <td>None</td>\r
-               <td>Full system path to the Nucleus libs folder</td>\r
+               <td>グローバル変数</td>\r
+               <td>なし</td>\r
+               <td>Nucleus のコアディレクトリへのシステムルートからのフルパス。</td>\r
        </tr>\r
        <tr>\r
                <td><code>getAdminURL()</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>getAdminURL()</code></td>\r
-               <td>method, PLUGIN class</td>\r
-               <td>None</td>\r
-               <td>Returns the URL of where the admin area of the plugin is located (if there is no such admin area, this information is invalid)</td>\r
+               <td>PLUGIN クラス内メソッド</td>\r
+               <td>なし</td>\r
+               <td>プラグインの管理エリアディレクトリが存在すればその URL を返す(存在しない場合は無効)。</td>\r
        </tr>\r
        <tr>\r
                <td><code>getDirectory()</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>getDirectory()</code></td>\r
-               <td>method, PLUGIN class</td>\r
-               <td>None</td>\r
-               <td>Returns the full system path where the extra files for the plugin are stored (if there are no such files, this information makes no sense). The result is something like ".../nucleus/plugins/plugname/"</td>\r
+               <td>PLUGIN クラス内メソッド</td>\r
+               <td>なし</td>\r
+               <td>プラグインの追加ファイルが格納されたサーバーのファイルシステムのパスを返します(存在しない場合は無効)。結果は".../nucleus/plugins/plugname/"のようになります。</td>\r
        </tr>\r
        <tr>\r
                <td><code>createItemLink($itemid, $extra = '')</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>createItemLink($itemid, $extra = '')</code></td>\r
-               <td>Global function</td>\r
-               <td><code>$itemid</code> Integer. ID of item being linked.<br />\r
-                       <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.\r
+               <td>グローバルファンクション</td>\r
+               <td><code>$itemid</code> 整数。リンクしたいアイテムの ID。<br />\r
+                       <code>$extra</code> 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。\r
                </td>\r
                </td>\r
-               <td>Returns the full URL, in scheme chosen by user, of item indicated by <code>$itemid</code></td>\r
+               <td>ユーザーによって選択されたスキームにより、 <code>$itemid</code> に対応したアイテムへのリンクが生成されます。</td>\r
        </tr>\r
        <tr>\r
                <td><code>createMemberLink($memberid, $extra = '')</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>createMemberLink($memberid, $extra = '')</code></td>\r
-               <td>Global function</td>\r
-               <td><code>$memberid</code> Integer. ID of member being linked.<br />\r
-                       <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.\r
+               <td>グローバルファンクション</td>\r
+               <td><code>$memberid</code> 整数。リンクしたい存在するメンバーの ID。<br />\r
+                       <code>$extra</code> 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。\r
                </td>\r
                </td>\r
-               <td>Returns the full URL, in scheme chosen by user, of member page indicated by <code>$memberid</code></td>\r
+               <td>ユーザーによって選択されたスキームにより、 <code>$memberid</code> に対応したメンバーへのリンクが生成されます。</td>\r
        </tr>\r
        <tr>\r
                <td><code>createCategoryLink($catid, $extra = '')</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>createCategoryLink($catid, $extra = '')</code></td>\r
-               <td>Global function</td>\r
-               <td><code>$catid</code> Integer. ID of category being linked.<br />\r
-                       <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.\r
+               <td>グローバルファンクション</td>\r
+               <td><code>$catid</code> 整数。リンクしたいカテゴリーの ID。<br />\r
+                       <code>$extra</code> 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。\r
                </td>\r
                </td>\r
-               <td>Returns the full URL, in scheme chosen by user, of category index page indicated by <code>$catid</code></td>\r
+               <td>ユーザーによって選択されたスキームにより、 <code>$catid</code> に対応したカテゴリーへのリンクが生成されます。</td>\r
        </tr>\r
        <tr>\r
                <td><code>createArchiveListLink($blogid = '', $extra = '')</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>createArchiveListLink($blogid = '', $extra = '')</code></td>\r
-               <td>Global function</td>\r
-               <td><code>$blogid</code> Integer. ID of blog whose archivelist is being linked.<br />\r
-                       <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.\r
+               <td>グローバルファンクション</td>\r
+               <td><code>$blogid</code> 整数。リンクしたいアーカイブ一覧が存在ブログの ID。<br />\r
+                       <code>$extra</code> 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。\r
                </td>\r
                </td>\r
-               <td>Returns the full URL, in scheme chosen by user, of archivelist page indicated by <code>$blogid</code></td>\r
+               <td>ユーザーによって選択されたスキームにより、 <code>$blogid</code> に対応したアーカイブ一覧へのリンクが生成されます。</td>\r
        </tr>\r
        <tr>\r
                <td><code>createArchiveLink($blogid, $archive, $extra = '')</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>createArchiveLink($blogid, $archive, $extra = '')</code></td>\r
-               <td>Global function</td>\r
-               <td><code>$blogid</code> Integer. ID of blog whose archive is being linked.<br />\r
-                       <code>$archive</code> String. Valid archive parameter for date (year-month) being linked.<br />\r
-                       <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.\r
+               <td>グローバルファンクション</td>\r
+               <td><code>$blogid</code> 整数。リンクしたい月別アーカイブが存在するブログの ID。<br />\r
+                       <code>$archive</code> 文字列。アーカイブのパラメータとして、渡した「日(または年、月)」のものが存在するもの。<br />\r
+                       <code>$extra</code> 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。\r
                </td>\r
                </td>\r
-               <td>Returns the full URL, in scheme chosen by user, of archive page indicated by <code>$blogid</code> and <code>$archive</code></td>\r
+               <td>ユーザーによって選択されたスキームにより、 <code>$blogid</code> に対応した月別アーカイブへのリンクが生成されます。</td>\r
        </tr>\r
        <tr>\r
                <td><code>createBlogidLink($blogid, $extra = '')</code></td>\r
        </tr>\r
        <tr>\r
                <td><code>createBlogidLink($blogid, $extra = '')</code></td>\r
-               <td>Global function</td>\r
-               <td><code>$blogid</code> Integer. ID of blog being linked.<br />\r
-                       <code>$extra</code> Associative Array. Containing key-value pairs corresponding to additional parameters-values that should appear in the link.\r
+               <td>グローバルファンクション</td>\r
+               <td><code>$blogid</code> 整数。リンクしたいブログの ID。<br />\r
+                       <code>$extra</code> 連想配列。「キー」と「値」のペアが、URL の「パラメータ」と「値」に反映される。\r
                </td>\r
                </td>\r
-               <td>Returns the full URL, in scheme chosen by user, of main index page indicated by <code>$blogid</code></td>\r
+               <td>ユーザーによって選択されたスキームにより、 <code>$blogid</code> に対応したブログへのリンクが生成されます。</td>\r
        </tr>\r
 </table>\r
 \r
        </tr>\r
 </table>\r
 \r
@@ -2340,22 +2340,22 @@ examples below, we will be creating a template with 2 variables, <code>&lt;%foo%
        <li><strong>Using Plugin Options</strong>. This method may be the simplest and will work on all versions 3.2 and higher. It's \r
        big disadvantage is that plugin options are deleted during an uninstall, so your users may lose customizations during an upgrade of \r
        your plugin. Simply create an option in the <code>install()</code> method like the following:\r
        <li><strong>Using Plugin Options</strong>. This method may be the simplest and will work on all versions 3.2 and higher. It's \r
        big disadvantage is that plugin options are deleted during an uninstall, so your users may lose customizations during an upgrade of \r
        your plugin. Simply create an option in the <code>install()</code> method like the following:\r
-       <pre class="example"><code>$this->createOption('my_template', \r
+       <pre class="example"><code>$this-&gt;createOption('my_template', \r
                'Template used to format output of plugin.', \r
                'textarea', \r
                '&lt;li&gt;&lt;%foo%&gt; loves &lt;%bar%&gt;&lt;/li&gt;');</code></pre>\r
        Then in the <code>doSkinVar()</code> method, determine the values of <code>foo</code> and <code>bar</code> and fill the template like this:\r
                'Template used to format output of plugin.', \r
                'textarea', \r
                '&lt;li&gt;&lt;%foo%&gt; loves &lt;%bar%&gt;&lt;/li&gt;');</code></pre>\r
        Then in the <code>doSkinVar()</code> method, determine the values of <code>foo</code> and <code>bar</code> and fill the template like this:\r
-       <pre class="example"><code>$mytemplate = $this->getOption('my_template');\r
+       <pre class="example"><code>$mytemplate = $this-&gt;getOption('my_template');\r
 $couples = array(\r
                        array(\r
 $couples = array(\r
                        array(\r
-                               'foo'=>'Ricky',\r
-                               'bar'=>'Lucy'),\r
+                               'foo'=&gt;'Ricky',\r
+                               'bar'=&gt;'Lucy'),\r
                        array(\r
                        array(\r
-                               'foo'=>'Sid',\r
-                               'bar'=>'Nancy'),\r
+                               'foo'=&gt;'Sid',\r
+                               'bar'=&gt;'Nancy'),\r
                        array(\r
                        array(\r
-                               'foo'=>'Mickey',\r
-                               'bar'=>'Minnie')\r
+                               'foo'=&gt;'Mickey',\r
+                               'bar'=&gt;'Minnie')\r
                        );\r
 foreach ($couples as $values) {\r
        echo TEMPLATE::fill($mytemplate,$values);\r
                        );\r
 foreach ($couples as $values) {\r
        echo TEMPLATE::fill($mytemplate,$values);\r
@@ -2370,20 +2370,20 @@ foreach ($couples as $values) {
        being using the database-stored template system and can be exported like other template fields. For a full sample plugin using this method, \r
        see this <a href="http://forum.nucleuscms.org/viewtopic.php?p=87672#87672" title="Sample">thread from the support forum</a>. A summary is given here. \r
        First, create the option in <code>install()</code> as in method 1, but now we will use it as a default.\r
        being using the database-stored template system and can be exported like other template fields. For a full sample plugin using this method, \r
        see this <a href="http://forum.nucleuscms.org/viewtopic.php?p=87672#87672" title="Sample">thread from the support forum</a>. A summary is given here. \r
        First, create the option in <code>install()</code> as in method 1, but now we will use it as a default.\r
-       <pre class="example"><code>$this->createOption('my_template', \r
+       <pre class="example"><code>$this-&gt;createOption('my_template', \r
                'Template used to format output of plugin.', \r
                'textarea', \r
                '&lt;li&gt;&lt;%foo%&gt; loves &lt;%bar%&gt;&lt;/li&gt;');</code></pre>\r
        Then, subscribe to the <code>TemplateExtraFields</code> event like this:\r
        <pre class="example"><code>function getEventList() { return array('TemplateExtraFields'); }</code></pre>\r
        Then, create a <code>event_TemplateExtraFields</code> method in your plugin, like this:\r
                'Template used to format output of plugin.', \r
                'textarea', \r
                '&lt;li&gt;&lt;%foo%&gt; loves &lt;%bar%&gt;&lt;/li&gt;');</code></pre>\r
        Then, subscribe to the <code>TemplateExtraFields</code> event like this:\r
        <pre class="example"><code>function getEventList() { return array('TemplateExtraFields'); }</code></pre>\r
        Then, create a <code>event_TemplateExtraFields</code> method in your plugin, like this:\r
-       <pre class="example"><code>function event_TemplateExtraFields(&$data) {\r
+       <pre class="example"><code>function event_TemplateExtraFields(&amp;$data) {\r
     /* Add an element in the $data['fields'] array using your plugin name as the key \r
        and an associative array containing the field name and field label*/\r
     /* note that your field names should be lowercase and include the name \r
        of your template as shown below. This will ensure that all template field names are unique. */\r
     $data['fields']['NP_TemplateTest'] = array(\r
     /* Add an element in the $data['fields'] array using your plugin name as the key \r
        and an associative array containing the field name and field label*/\r
     /* note that your field names should be lowercase and include the name \r
        of your template as shown below. This will ensure that all template field names are unique. */\r
     $data['fields']['NP_TemplateTest'] = array(\r
-        'templatetest_body'=>'TemplateTest Body'\r
+        'templatetest_body'=&gt;'TemplateTest Body'\r
     );\r
 }</code></pre>\r
        Then, in the <code>doSkinVar()</code> method, you need to retrieve the template and fill it. Note the skinvar now needs to take \r
     );\r
 }</code></pre>\r
        Then, in the <code>doSkinVar()</code> method, you need to retrieve the template and fill it. Note the skinvar now needs to take \r
@@ -2391,20 +2391,20 @@ foreach ($couples as $values) {
        <pre class="example"><code>function doSkinVar($skinType,$template = '') {\r
        global $blog, $CONF, $manager,$member;\r
 \r
        <pre class="example"><code>function doSkinVar($skinType,$template = '') {\r
        global $blog, $CONF, $manager,$member;\r
 \r
-       $template =& $manager->getTemplate($template);\r
+       $template =&amp; $manager-&gt;getTemplate($template);\r
        if (trim($template['templatetest_body']) == '')\r
        if (trim($template['templatetest_body']) == '')\r
-               $template['templatetest_body'] = $this->getOption('my_template');\r
+               $template['templatetest_body'] = $this-&gt;getOption('my_template');\r
                \r
        $couples = array(\r
                        array(\r
                \r
        $couples = array(\r
                        array(\r
-                               'foo'=>'Ricky',\r
-                               'bar'=>'Lucy'),\r
+                               'foo'=&gt;'Ricky',\r
+                               'bar'=&gt;'Lucy'),\r
                        array(\r
                        array(\r
-                               'foo'=>'Sid',\r
-                               'bar'=>'Nancy'),\r
+                               'foo'=&gt;'Sid',\r
+                               'bar'=&gt;'Nancy'),\r
                        array(\r
                        array(\r
-                               'foo'=>'Mickey',\r
-                               'bar'=>'Minnie')\r
+                               'foo'=&gt;'Mickey',\r
+                               'bar'=&gt;'Minnie')\r
                        );\r
        foreach ($couples as $values) {\r
                echo TEMPLATE::fill($template['templatetest_body'],$values);\r
                        );\r
        foreach ($couples as $values) {\r
                echo TEMPLATE::fill($template['templatetest_body'],$values);\r
@@ -2431,7 +2431,7 @@ foreach ($couples as $values) {
        $highlight = '';\r
        $template = 'default/index';\r
        $item_array = array($item1,$item2,$item3,$item4);\r
        $highlight = '';\r
        $template = 'default/index';\r
        $item_array = array($item1,$item2,$item3,$item4);\r
-       $blog->readLogFromList($item_array, $template);\r
+       $blog-&gt;readLogFromList($item_array, $template);\r
 }</code></pre>\r
        \r
        </li>\r
 }</code></pre>\r
        \r
        </li>\r
index aa7aa7d..8f0ff4c 100755 (executable)
@@ -60,7 +60,6 @@
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=110">#110(JP)</a>): When an item is added by "new category", a SendPing event doesn't occur. (shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=58">#58(JP)</a>): When database backup, table name and a column name are bound up with back quotat. (shizuki)</li>\r
                        <li>CHANGED: Eliminate few hardcoded language (shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=110">#110(JP)</a>): When an item is added by "new category", a SendPing event doesn't occur. (shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=58">#58(JP)</a>): When database backup, table name and a column name are bound up with back quotat. (shizuki)</li>\r
                        <li>CHANGED: Eliminate few hardcoded language (shizuki)</li>\r
-                       <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=94">#94(JP)</a>): A plugin option isn't generated. (kimitake/shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=79">#79(JP)</a>): Permission setting of upload isn't effective. (shizuki/yu)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=77">#77(JP)</a>): [XHTML] When the attribute of the option is hidden,&lt;tr&gt; isn't output. (shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=76">#76(JP)</a>): [XHTML] Validate admin-area. (shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=79">#79(JP)</a>): Permission setting of upload isn't effective. (shizuki/yu)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=77">#77(JP)</a>): [XHTML] When the attribute of the option is hidden,&lt;tr&gt; isn't output. (shizuki)</li>\r
                        <li>FIXED: (<a href="http://nucleus-jp.sourceforge.jp/tracker/index.php?do=details&amp;task_id=76">#76(JP)</a>): [XHTML] Validate admin-area. (shizuki)</li>\r
index 564cc37..030b695 100755 (executable)
-<h2><%text(_ADD_ADDTO)%> '<%bloglink%>'</h2>
-
-<%init%>
-<script type="text/javascript" src="javascript/numbercheck.js"></script>
-<script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
-
-<form id="addform" method="post" action="index.php" >
-
-<div>
-
-<input type="hidden" name="action" value="additem" />
-<input name="blogid" value="<%blogid%>" type="hidden" />
-<input type="hidden" name="draftid" value="0" />
-<%ticket%>
-
-<table>
-       <tr>
-               <th colspan="2"><%text(_ADD_CREATENEW)%></th>
-       </tr><tr>
-               <td><%text(_AUTOSAVEDRAFT)%></td>
-               <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></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)%> <%helplink(additem)%>
-               </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 name="closed" type="radio" tabindex="30" value="1" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
-                       <input name="closed" type="radio" tabindex="30" value="0" checked="checked" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>
-               </td>
-       </tr><tr>
-<%endif%>
-
-
-               <td><%text(_ADD_CATEGORY)%></td>
-               <td><%categories(40)%></td>
-       </tr><tr>
-               <td><%text(_SUBMIT)%></td>
-               <td>
-                       <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" 
-                               onclick="return checkSubmit();" />
-
-                       <br /><br />
-
-                       <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="61" /><label for="act_now"><%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="63" size="4" value="<%currenttime(year)%>" />年
-                               <input id="inputmonth" name="month" tabindex="64" size="2" value="<%currenttime(mon)%>" />月
-                               <input id="inputday" name="day" tabindex="65" size="2" value="<%currenttime(mday)%>" />日
-                                
-                               <input id="inputhour" name="hour" tabindex="66" size="2" value="<%currenttime(hours)%>" />時
-                               <input id="inputminutes" name="minutes" tabindex="67" size="2" value="<%currenttime(minutes)%>" />分
-                               <br />
-                               フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
-                               
-                               <%ifblogsetting(ballowpast,0)%>
-                                       <br />
-                                       <%text(_ADD_NOPASTDATES)%>
-                               <%endif%>
-                       </div>
-                       <input name="actiontype" tabindex="61" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
-               </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="70"
-                               cols="60"
-                               rows="20"
-                               ><%contents(more)%></textarea>
-               </td>
-       </tr><tr>
-               <td><%text(_SUBMIT)%></td>
-               <td>
-                       <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" 
-                               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('addform'); // 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 = 'add'; // Add or edit form
-</script>      
+<h2><%text(_ADD_ADDTO)%> '<%bloglink%>'</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="addform" method="post" action="index.php" >\r
+\r
+<div>\r
+\r
+<input type="hidden" name="action" value="additem" />\r
+<input name="blogid" value="<%blogid%>" type="hidden" />\r
+<input type="hidden" name="draftid" value="0" />\r
+<%ticket%>\r
+\r
+<table>\r
+       <tr>\r
+               <th colspan="2"><%text(_ADD_CREATENEW)%></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(_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)%> <%helplink(additem)%>\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><%text(_ADD_DISABLE_COMMENTS)%></td>\r
+               <td>\r
+                       <input name="closed" type="radio" tabindex="30" value="1" id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>\r
+                       <input name="closed" type="radio" tabindex="30" value="0" checked="checked" id="closed_no" /><label for="closed_no"><%text(_NO)%></label>\r
+               </td>\r
+       </tr><tr>\r
+<%endif%>\r
+\r
+\r
+               <td><%text(_ADD_CATEGORY)%></td>\r
+               <td><%categories(40)%></td>\r
+       </tr><tr>\r
+               <td><%text(_SUBMIT)%></td>\r
+               <td>\r
+                       <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" \r
+                               onclick="return checkSubmit();" />\r
+\r
+                       <br /><br />\r
+\r
+                       <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" tabindex="61" /><label for="act_now"><%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="63" size="4" value="<%currenttime(year)%>" onchange="document.forms[0].act_future.checked=true;" />年\r
+                               <input id="inputmonth" name="month" tabindex="64" size="2" value="<%currenttime(mon)%>" onchange="document.forms[0].act_future.checked=true;" />月\r
+                               <input id="inputday" name="day" tabindex="65" size="2" value="<%currenttime(mday)%>" onchange="document.forms[0].act_future.checked=true;" />日\r
+                                \r
+                               <input id="inputhour" name="hour" tabindex="66" size="2" value="<%currenttime(hours)%>" onchange="document.forms[0].act_future.checked=true;" />時\r
+                               <input id="inputminutes" name="minutes" tabindex="67" size="2" value="<%currenttime(minutes)%>" onchange="document.forms[0].act_future.checked=true;" />分\r
+                               <br />フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分\r
+                               \r
+                               <%ifblogsetting(ballowpast,0)%>\r
+                                       <br />\r
+                                       <%text(_ADD_NOPASTDATES)%>\r
+                               <%endif%>\r
+                       </div>\r
+                       <input name="actiontype" tabindex="61" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
+                       <br />\r
+                       <input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\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><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="70"\r
+                               cols="60"\r
+                               rows="20"\r
+                               ><%contents(more)%></textarea>\r
+               </td>\r
+       </tr><tr>\r
+               <td><%text(_SUBMIT)%></td>\r
+               <td>\r
+                       <input tabindex="60" type="submit" value="<%text(_ADD_ADDITEM)%>" \r
+                               onclick="return checkSubmit();" />\r
+                       <%ifautosave()%>\r
+                       <input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>"\r
+                               onclick="autoSaveDraft();" />\r
+                       <%endif%>\r
+               </td>\r
+       </tr>\r
+</table>\r
+\r
+</div>\r
+</form>\r
+<%ifautosave()%>\r
+<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('addform'); // 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 = 'add'; // Add or edit form\r
+</script>      \r
+<%endif%>\r
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
index b8179ed..c126171 100755 (executable)
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-       <html xmlns="http://www.w3.org/1999/xhtml">
-       <head>
-               <title><%text(_ADD_ADDTO)%> '<%blogname%>'</title>
-               <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" /> 
-               <link rel="stylesheet" type="text/css" href="styles/addedit.css" />             
-               <script type="text/javascript" src="javascript/bookmarklet.js"></script>
-               <script type="text/javascript" src="javascript/edit.js"></script>
-               <script type="text/javascript" src="javascript/numbercheck.js"></script>
-               <script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
-               <%init%>
-               <%extrahead%>
-               <script type="text/javascript">
-                       var nucleus_initbm_oldonload = window.onload;
-                       function nucleus_initbm()
-                       {
-                               initStyles(); 
-                               updAllPreviews();
-
-                               if (nucleus_initbm_oldonload)
-                                       nucleus_initbm_oldonload();
-                       }
-                       window.onload = nucleus_initbm;
-               </script>
-       </head>
-       <body>
-               <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>
-               <form id="addform" method="post" action="bookmarklet.php" ><div>
-                       
-                       <input name="action" type="hidden" value="additem" />
-                       <input name="blogid" type="hidden" value="<%blogid%>" />
-                       <input type="hidden" name="draftid" value="0" />
-                       <%ticket%>
-                       
-                       <div id="submit" class="buttonbar">
-                               <input type="submit" value="<%text(_BMLET_ADD)%>" onclick="return checkSubmit();" />
-                               <div id="switchbuttons">
-                                       <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> &gt;&gt;" />
-                                       <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />
-                                       <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />
-                                       <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />
-                               </div>
-                       </div>
-
-                       <div id="body" class="contentblock">
-
-                               <table>
-                               <tr>
-                               <td><%text(_AUTOSAVEDRAFT)%></td>
-                               <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
-                               </tr>
-                               <tr>
-                               <td><%text(_ADD_TITLE)%></td>
-                               <td>
-                               <input 
-                                       <%jsinput(title)%>
-                                       type="text" size="60" maxlength="160" 
-                                       value="<%contents(title)%>"
-                               /></td>
-                               </tr><tr>
-                               <td>
-                               <%text(_ADD_BODY)%> <%helplink(additem)%></td>
-                               <td>
-                               <%jsbuttonbar(media)%>
-                               <textarea 
-                                       <%jsinput(body)%>
-                                       cols="58" 
-                                       rows="12"><%contents(body)%></textarea>
-                                       
-                               </td></tr>
-                               <tr><td>
-                               <%text(_ADD_CATEGORY)%></td>
-                               <td><%categories%></td>
-                               </tr>
-                               <tr>
-                               <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
-                               <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td>
-                               </tr>
-                               </table>
-
-                                       
-                       </div>
-                       
-                       <div id="more" class="contentblock">
-                               <table>
-                               <tr>
-                               <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
-                               <td>
-                               <%jsbuttonbar(media)%>
-                               <textarea 
-                                       <%jsinput(more)%>
-                                       cols="58" 
-                                       rows="17"><%contents(more)%></textarea>
-                               </td></tr></table>
-                       </div>
-                       <div id="options" class="contentblock">
-                               <table>
-                               <%ifblogsetting(bcomments)%>
-                                       <tr>
-                                       <td><%text(_ADD_DISABLE_COMMENTS)%></td>
-                                       <td>
-                                       <input type='radio' name='closed' value='1' id="closed_yes" /><label for="closed_yes"><%text(_YES)%></label>
-                                       <input type='radio' name='closed' value='0' checked='checked' id="closed_no"/><label for="closed_no"><%text(_NO)%></label>
-                                       </td>
-                                       </tr>
-                               <%endif%>
-                               
-                               <tr>
-                               <td><%text(_ADD_DRAFTNFUTURE)%></td>
-                               <td>
-                                       <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>
-                                       <br />
-                                       <input name="actiontype" value="addfuture" type="radio" id="act_future" /><label for="act_future"><%text(_ADD_ADDLATER)%></label> <%helplink(future)%>
-                                       <div class="indent">
-                                               <%text(_ADD_PLACE_ON)%>
-                                               <input id="inputyear" name="year" size="4" value="<%currenttime(year)%>" />年
-                                               <input id="inputmonth" name="month" size="2" value="<%currenttime(mon)%>" />月
-                                               <input id="inputday" name="day" size="2" value="<%currenttime(mday)%>" />日
-                                               <input id="inputhour" name="hour" size="2" value="<%currenttime(hours)%>" />時
-                                               <input id="inputminutes" name="minutes" size="2" value="<%currenttime(minutes)%>" />分
-                                               <br />
-                                               フォーマット:(yyyy)年(mm)月(dd)日 (hh)時(mm)分
-                                               <%ifblogsetting(ballowpast,0)%>
-                                                       <br />
-                                                       <%text(_ADD_NOPASTDATES)%>
-                                               <%endif%>
-                                       </div>
-                                       <input name="actiontype" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>
-                               </td>
-                               </tr>
-                               <tr>
-                               <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
-                               <td>
-                               <%pluginextras%></td>
-                               </tr>
-                               
-                               
-                                 <%itemoptions%>
-                               </table>
-                               
-
-                       </div>
-                       
-                       <div id="preview" class="contentblock">
-                               <h2><%text(_ADD_PREVIEW)%></h2>
-                               
-                               <b><span id="prevtitle">&#160;</span></b>
-                               <br />
-                               <span id="prevbody">&#160;</span>
-                               <br />
-                               <span id="prevmore">&#160;</span>
-                       </div>
-                       
-               </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('addform'); // 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 = 'add'; // Add or edit form
-       </script>
-
-       </body>
-       </html>
-
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+       <html xmlns="http://www.w3.org/1999/xhtml">\r
+       <head>\r
+               <meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />\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/addedit.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
+               <%init%>\r
+               <%extrahead%>\r
+               <script type="text/javascript">\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
+               </script>\r
+       </head>\r
+       <body>\r
+               <h1><%text(_ADD_ADDTO)%> '<%bloglink%>'</h1>\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)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />\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
+\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
+                               <input \r
+                                       <%jsinput(title)%>\r
+                                       type="text" size="60" maxlength="160" \r
+                                       value="<%contents(title)%>"\r
+                               /></td>\r
+                               </tr><tr>\r
+                               <td>\r
+                               <%text(_ADD_BODY)%> <%helplink(additem)%></td>\r
+                               <td>\r
+                               <%jsbuttonbar(media)%>\r
+                               <textarea \r
+                                       <%jsinput(body)%>\r
+                                       cols="58" \r
+                                       rows="12"><%contents(body)%></textarea>\r
+                                       \r
+                               </td></tr>\r
+                               <tr><td>\r
+                               <%text(_ADD_CATEGORY)%></td>\r
+                               <td><%categories%></td>\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
+                               </table>\r
+\r
+                                       \r
+                       </div>\r
+                       \r
+                       <div id="more" class="contentblock">\r
+                               <table>\r
+                               <tr>\r
+                               <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
+                               <td>\r
+                               <%jsbuttonbar(media)%>\r
+                               <textarea \r
+                                       <%jsinput(more)%>\r
+                                       cols="58" \r
+                                       rows="17"><%contents(more)%></textarea>\r
+                               </td></tr></table>\r
+                       </div>\r
+                       <div id="options" class="contentblock">\r
+                               <table>\r
+                               <%ifblogsetting(bcomments)%>\r
+                                       <tr>\r
+                                       <td><%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
+                                       </td>\r
+                                       </tr>\r
+                               <%endif%>\r
+                               \r
+                               <tr>\r
+                               <td><%text(_ADD_DRAFTNFUTURE)%></td>\r
+                               <td>\r
+                                       <input name="actiontype" value="addnow" type="radio" checked='checked' id="act_now" /><label for="act_now"><%text(_ADD_ADDNOW)%></label>\r
+                                       <br />\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
+\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
+                                               <%ifblogsetting(ballowpast,0)%>\r
+                                                       <br />\r
+                                                       <%text(_ADD_NOPASTDATES)%>\r
+                                               <%endif%>\r
+                                       </div>\r
+                                       <input name="actiontype" value="adddraft" type="radio" id="act_draft" /><label for="act_draft"><%text(_ADD_ADDDRAFT)%></label> <%helplink(draft)%>\r
+                                       <br />\r
+                                       <input id="dosendping" name="dosendping" value="1" type="checkbox" checked="checked"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
+                               </td>\r
+                               </tr>\r
+                               <tr>\r
+                               <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
+                               <td>\r
+                               <%pluginextras%></td>\r
+                               </tr>\r
+                               \r
+                               \r
+                                 <%itemoptions%>\r
+                               </table>\r
+                               \r
+\r
+                       </div>\r
+                       \r
+                       <div id="preview" class="contentblock">\r
+                               <h2><%text(_ADD_PREVIEW)%></h2>\r
+                               \r
+                               <b><span id="prevtitle">&#160;</span></b>\r
+                               <br />\r
+                               <span id="prevbody">&#160;</span>\r
+                               <br />\r
+                               <span id="prevmore">&#160;</span>\r
+                       </div>\r
+                       \r
+               </div></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('addform'); // 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 = 'add'; // Add or edit form\r
+       </script><%endif%>\r
+\r
+       </body>\r
+       </html>
\ No newline at end of file
index 34cf598..0f219d0 100755 (executable)
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-       <html xmlns="http://www.w3.org/1999/xhtml">
-       <head>
-               <title><%text(_EDIT_ITEM)%></title>
-               <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />
-               <link rel="stylesheet" type="text/css" href="styles/addedit.css" />                             
-               <script type="text/javascript" src="javascript/bookmarklet.js"></script>
-               <script type="text/javascript" src="javascript/edit.js"></script>
-               <script type="text/javascript" src="javascript/numbercheck.js"></script>
-               <script type="text/javascript" src="javascript/xmlhttprequest.js"></script>
-               <%init%>
-               <%extrahead%>
-               <script type="text/javascript">
-                       var nucleus_initbm_oldonload = window.onload;
-                       function nucleus_initbm()
-                       {
-                               initStyles(); 
-                               updAllPreviews();
-
-                               if (nucleus_initbm_oldonload)
-                                       nucleus_initbm_oldonload();
-                       }
-                       window.onload = nucleus_initbm;
-               </script>
-       </head>
-       <body>
-               <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>
-               <form id="editform" method="post" action="bookmarklet.php" ><div>
-                       
-                       <input name="action" type="hidden" value="edititem" />
-                       <input name="itemid" type="hidden" value="<%contents(itemid)%>" />
-                       <input type="hidden" name="draftid" value="0" />
-                       <%ticket%>
-                       
-                       <div id="submit" class="buttonbar">
-                               <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />
-                               <div id="switchbuttons">
-                                       <input type="button" onclick="flipBlock('body');" value="<%text(_BMLET_BODY)%> &gt;&gt;" />
-                                       <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />
-                                       <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />
-                                       <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />
-                               </div>
-                       </div>
-
-                       <div id="body" class="contentblock">
-                               <table>
-                               <tr>
-                               <td><%text(_AUTOSAVEDRAFT)%></td>
-                               <td><span id="info"><%text(_AUTOSAVEDRAFT_NOTYETSAVED)%></span></td>
-                               </tr>
-                               <tr>
-                               <td><%text(_ADD_TITLE)%></td>
-                               <td><input 
-                                       <%jsinput(title)%>
-                                       type="text" size="60" maxlength="160" 
-                                       value="<%contents(title)%>"
-                               /></td></tr>
-                       
-                               <tr><td>
-                               <%text(_ADD_BODY)%>
-                               </td><td>
-                               <%jsbuttonbar(media)%>
-                               <textarea 
-                                       <%jsinput(body)%>
-                                       cols="58" 
-                                       rows="12"><%contents(body)%></textarea>
-
-                               </td></tr>
-                               <tr>
-                               <td><%text(_ADD_CATEGORY)%></td>
-                               <td><%categories%></td>
-                               </tr>
-                               <tr>
-                               <td><%text(_AUTOSAVEDRAFT_NOW)%></td>
-                               <td><input tabindex="80" type="button" name="autosavenow" value="<%text(_AUTOSAVEDRAFT_NOW)%>" onclick="autoSaveDraft();" /></td>
-                               </tr>
-                               </table>
-                                       
-                       </div>
-                       
-                       <div id="more" class="contentblock">
-                               <table>
-                               <tr>
-                               <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>
-                               <td>
-                               <%jsbuttonbar(media)%>
-                               <textarea 
-                                       <%jsinput(more)%>
-                                       cols="58" 
-                                       rows="17"><%contents(more)%></textarea>
-                               </td></tr></table>
-                       </div>
-                       <div id="options" class="contentblock">
-                               <table>
-                               <%ifblogsetting(bcomments)%>
-                                       <tr>
-                                       <td><%text(_ADD_DISABLE_COMMENTS)%></td>
-                                       <td>
-                                   <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>
-                                   <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>
-                                       </td>
-                                       </tr>
-                               <%endif%>
-                               
-                               <!-- The only actiontypes are 'edit', 'changedate' (no draft items can be edited) and 'delete' -->
-                               <tr>
-                               <td>Action</td>
-                               <td>
-                               <ul class="nobullets">
-                                       <li><input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" /><label for="act_edit"><%text(_BMLET_EDIT)%></label></li>
-                                       <li><input name="actiontype" value="delete" type="radio" id="act_delete" /><label for="act_delete"><%text(_BMLET_DELETE)%></label></li>
-                                       <%ifblogsetting(ballowpast)%>
-                                               <li>
-                                                       <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_BMLET_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>
-                                                       </li>
-                                       <%endif%>                                               
-                               </ul>
-                               </td></tr>
-                               
-                               <tr>
-                               <td><%text(_ADD_PLUGIN_EXTRAS)%></td>
-                               <td>
-                               <%pluginextras%>
-                               </td></tr>
-                               
-                                 <%itemoptions%>
-                               </table>
-                               
-                       </div>
-                       
-                       <div id="preview" class="contentblock">
-                               <h2><%text(_ADD_PREVIEW)%></h2>
-                               
-                               <b><span id="prevtitle">&#160;</span></b>
-                               <br />
-                               <span id="prevbody">&#160;</span>
-                               <br />
-                               <span id="prevmore">&#160;</span>
-                       </div>
-                       
-               </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>
-
-       </body>
-       </html>
-
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+       <html xmlns="http://www.w3.org/1999/xhtml">\r
+       <head>\r
+               <meta http-equiv="Content-Type" content="text/html; charset=<%text(_CHARSET)%>" />\r
+               <title><%text(_EDIT_ITEM)%></title>\r
+               <link rel="stylesheet" type="text/css" href="styles/bookmarklet.css" />\r
+               <link rel="stylesheet" type="text/css" href="styles/addedit.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
+               <%init%>\r
+               <%extrahead%>\r
+               <script type="text/javascript">\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
+               </script>\r
+       </head>\r
+       <body>\r
+               <h1><%text(_EDIT_ITEM)%> (<%contents(itemid)%>)</h1>\r
+               <form id="editform" method="post" action="bookmarklet.php" ><div>\r
+                       \r
+                       <input name="action" type="hidden" value="edititem" />\r
+                       <input name="itemid" type="hidden" value="<%contents(itemid)%>" />\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)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="flipBlock('more');" value="<%text(_BMLET_MORE)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="flipBlock('options');" value="<%text(_BMLET_OPTIONS)%> &gt;&gt;" />\r
+                                       <input type="button" onclick="updAllPreviews(); flipBlock('preview');" value="<%text(_BMLET_PREVIEW)%> &gt;&gt;" />\r
+                               </div>\r
+                               <input type="submit" value="<%text(_BMLET_EDIT)%>" onclick="return checkSubmit();" />\r
+                               <input type="button" value="<%text(_BMLET_CANCEL)%>" onclick="window.close();" />\r
+                       </div>\r
+\r
+                       <div id="body" class="contentblock">\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><input \r
+                                       <%jsinput(title)%>\r
+                                       type="text" size="60" maxlength="160" \r
+                                       value="<%contents(title)%>"\r
+                               /></td></tr>\r
+                       \r
+                               <tr><td>\r
+                               <%text(_ADD_BODY)%>\r
+                               </td><td>\r
+                               <%jsbuttonbar(media)%>\r
+                               <textarea \r
+                                       <%jsinput(body)%>\r
+                                       cols="58" \r
+                                       rows="12"><%contents(body)%></textarea>\r
+\r
+                               </td></tr>\r
+                               <tr>\r
+                               <td><%text(_ADD_CATEGORY)%></td>\r
+                               <td><%categories%></td>\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
+                               </table>\r
+                                       \r
+                       </div>\r
+                       \r
+                       <div id="more" class="contentblock">\r
+                               <table>\r
+                               <tr>\r
+                               <td><%text(_ADD_MORE)%> <%helplink(extended)%></td>\r
+                               <td>\r
+                               <%jsbuttonbar(media)%>\r
+                               <textarea \r
+                                       <%jsinput(more)%>\r
+                                       cols="58" \r
+                                       rows="17"><%contents(more)%></textarea>\r
+                               </td></tr></table>\r
+                       </div>\r
+                       <div id="options" class="contentblock">\r
+                               <table>\r
+                               <%ifblogsetting(bcomments)%>\r
+                                       <tr>\r
+                                       <td><%text(_ADD_DISABLE_COMMENTS)%></td>\r
+                                       <td>\r
+                                   <input type="radio" name="closed" value="1" id="closed_yes" <%checkedonval(1,closed)%> /><label for="closed_yes"><%text(_YES)%></label>\r
+                                   <input type="radio" name="closed" value="0" id="closed_no" <%checkedonval(0,closed)%> /><label for="closed_no"><%text(_NO)%></label>\r
+                                       </td>\r
+                                       </tr>\r
+                               <%endif%>\r
+                               \r
+                               <!-- The only actiontypes are 'edit', 'changedate' (no draft items can be edited) and 'delete' -->\r
+                               <tr>\r
+                               <td>Action</td>\r
+                               <td>\r
+                               <ul class="nobullets">\r
+                                       <li><input name="actiontype" value="edit" type="radio" checked="checked" id="act_edit" /><label for="act_edit"><%text(_BMLET_EDIT)%></label></li>\r
+                                       <li><input name="actiontype" value="delete" type="radio" id="act_delete" /><label for="act_delete"><%text(_BMLET_DELETE)%></label></li>\r
+                                       <%ifblogsetting(ballowpast)%>\r
+                                               <li>\r
+                                                       <input name="actiontype" value="changedate" type="radio" id="act_changedate" tabindex="70" /><label for="act_changedate"><%text(_BMLET_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
+                                                       </li>\r
+                                                       <li>\r
+                                                               <input name="actiontype" value="backtodrafts" type="radio" id="act_backtodrafts" tabindex="71" /><label for="act_backtodrafts"><%text(_BMLET_BACKTODRAFTS)%></label> <%helplink(draft)%>\r
+                                                       </li>\r
+                                       <%endif%>\r
+                               </ul>\r
+                               <input id="dosendping" name="dosendping" value="1" type="checkbox"><label for="dosendping"><%text(_UPDATEDPING_GOSENDPING)%></label>\r
+                               </td></tr>\r
+                               \r
+                               <tr>\r
+                               <td><%text(_ADD_PLUGIN_EXTRAS)%></td>\r
+                               <td>\r
+                               <%pluginextras%>\r
+                               </td></tr>\r
+                               \r
+                                 <%itemoptions%>\r
+                               </table>\r
+                               \r
+                       </div>\r
+                       \r
+                       <div id="preview" class="contentblock">\r
+                               <h2><%text(_ADD_PREVIEW)%></h2>\r
+                               \r
+                               <b><span id="prevtitle">&#160;</span></b>\r
+                               <br />\r
+                               <span id="prevbody">&#160;</span>\r
+                               <br />\r
+                               <span id="prevmore">&#160;</span>\r
+                       </div>\r
+                       \r
+               </div></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
+\r
+       </body>\r
+       </html>\r
+\r
index a90aa85..79faeae 100755 (executable)
@@ -1,7 +1,7 @@
 README for the libs/include directory
 -------------------------------------
 
 README for the libs/include directory
 -------------------------------------
 
-This directory contains templates used by the admin-area. 
-They're not really intended to be edited by the people using Nucleus (i.e. there's 
-no documentation and little support). But if you really can't stop yourself,
-go ahead :)
\ No newline at end of file
+このディレクトリのファイルは管理エリア内で使用します。
+本来、これらのファイルはユーザーによって編集されることを意図していません。
+これらのファイルに関するドキュメントもサポートもありませんが、自己責任において
+どうしても改造したいというのなら止めはしません。