<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>日記設置サンプル</title>
- <link rel="stylesheet" href="./js/lunardial/gen_stylesheet.css" type="text/css"/>
+ <link rel="stylesheet" href="./js/lunardial/gen_stylesheet.css" type="text/css"/>
<link rel="alternate" type="application/atom+xml" title="Atom" href="./xml/diary.xml"/>
<script type="text/javascript" src="./js/jquery/jquery-1.3.2.min.js">
</script>
<tbody>
<tr>
<td class="default" colspan="2" style="padding: 5px; text-align: center; vertical-align: bottom;">
- <div id="entrySelect">
- </div>
- <div id="logSelecter"></div>
+ <table>
+ <tbody>
+ <tr>
+ <td class="formnavi" style="padding: 0px 20px 0px 20px;">
+ 編集中のファイル
+ </td>
+ <td>
+ <div id="logSelecter">
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td class="formnavi" style="padding: 0px 20px 0px 20px;">
+ 編集する記事名
+ </td>
+ <td>
+ <div id="entrySelect">
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
<br>
- <input type="text" id="title" style="width: 100%">
+ <table style="width: 100%">
+ <tbody>
+ <tr>
+ <td class="formheader" style="text-align: center; width: 100px;">
+ タイトル
+ </td>
+ <td class="forminput" style="padding: 0px 5px 0px 3px;">
+ <input type="text" id="title" style="width: 100%">
+ </td>
+ </tr>
+ <tr>
+ <td class="formheader" style="text-align: center;">
+ 本文
+ </td>
+ <td class="forminput" style="padding: 0px 5px 0px 3px;">
+ <textarea id="stdin" rows="10" style="width: 100%">
+ </textarea>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <br>
+ <input type="button" value="追加/編集" onclick="javascript:applyChange();"> <input type="button" value="選択中の記事を削除" onclick="javascript:removeEntry()"> <input type="button" value="リセット" onclick="javascript:initLoad()"
<br>
- <textarea id="stdin" rows="10" style="width: 100%">
- </textarea>
<br>
- <input type="button" value="CONVERT" onclick="javascript:applyChange();"><input type="button" value="DELETE" onclick="javascript:removeEntry()"><input type="button" value="RESET" onclick="javascript:initLoad()"
</td>
</tr>
<tr>
- <td class="default" colspan="2" style="padding: 5px; text-align: center; vertical-align: bottom;">
+ <td class="default" colspan="2" style="padding: 5px 8px 5px 5px; text-align: center; vertical-align: bottom;">
<textarea id="stdout" rows="20" style="width: 100%">
</textarea>
</td>
if (editIndex >= 0) {
entryList.splice(index, 1);
refleshEntrylistBox();
+ editIndex = -1;
document.getElementById("stdout").value = ""
document.getElementById("title").value = "";
// コンボボックス要素を生成
document.getElementById("logSelecter").innerHTML = boxBuffer.join("");
- // 最新の日記をローディングする
- xmlLoader(initUrl);
+ // 最新の日記をローディングする
+ xmlLoader(initUrl);
}
});
}
}
stringBuffer.push("</select></form>");
// コンボボックス要素を生成
- editIndex = -1;
document.getElementById("entrySelect").innerHTML = stringBuffer.join("");
}