<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script type="text/javascript" src="def01.php"></script>
<script type="text/javascript">
INTERMediatorOnPage.processingBeforePostOnlyContext = function (node) {
var dtString;
dtString = INTERMediatorLib.dateTimeStringISO(); // ←[MySQL]の場合こちらを残す
dtString = INTERMediatorLib.dateTimeStringFileMaker(); // ←[FileMaker]の場合こちらを残す
INTERMediator.additionalFieldValueOnNewRecord = {'message': [{field: "postdt", value: dtString}]};
return true;
};
</script>
<style>
TEXTAREA {
width: 400px;
height: 60px;
}
.grayback {
background-color: #CCCCCC;
}
.boldBottom {
border-bottom: 3px gray solid;
}
</style>
</head>
<body>
<h1>Memo Pad</h1>
<table>
<tbody data-im-control="post">
<tr>
<th>名前:</th>
<td>
<input type="text" data-im="message@user">
</td>
</tr>
<tr>
<th>メッセージ:</th>
<td>
<textarea data-im="message@message"></textarea><br>
<button data-im-control="post">入力</button>
</td>
</tr>
</tbody>
</table>
<div id="IM_NAVIGATOR"></div>
<table>
<tbody>
<tr>
<th>名前:</th>
<td data-im="message@user"></td>
<th>日時:</th>
<td data-im="message@postdt"></td>
<td></td>
</tr>
<tr>
<th>修正:</th>
<td colspan="3" class="grayback">
<textarea data-im="message@message"></textarea>
</td>
<td></td>
</tr>
<tr class="boldBottom">
<th>表示:</th>
<td colspan="3" class="grayback" data-im="message@message"></td>
<td style="vertical-align: bottom;"></td>
</tr>
</tbody>
</table>
</body>
</html>