<!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 = INTERMediatorLib.dateTimeStringISO(); // ←[MySQL]の場合こちらを残す
            var dtString = INTERMediatorLib.dateTimeStringFileMaker(); // ←[FileMaker]の場合こちらを残す
            INTERMediator.additionalFieldValueOnNewRecord = {'messageauth': [{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>
            <textarea data-im="messageauth@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="messageauth@user"></td>
        <th>日時:</th>
        <td data-im="messageauth@postdt"></td>
        <td></td>
    </tr>   <!-- 行をいくつか減らす -->
    <tr class="boldBottom">
        <th>表示:</th>
        <td colspan="3" class="grayback" 
                data-im="messageauth@message@innerHTML"></td>
        <td style="vertical-align: bottom;"></td>
    </tr>
    </tbody>
</table>
</body>
</html>