Beispiel #1
0
    }
}
//=====================================================================
// 前処理
//=====================================================================
$datPluginCtl = new DatPluginCtl();
// [保存]ボタン
if (!empty($_POST['submit_save'])) {
    if ($datPluginCtl->save($_POST['dat']) !== false) {
        $_info_msg_ht .= '<p>○設定を更新保存しました</p>';
    } else {
        $_info_msg_ht .= '<p>×設定を更新保存できませんでした</p>';
    }
    // [リストを空にする]ボタン
} elseif (!empty($_POST['submit_default'])) {
    if ($datPluginCtl->clear()) {
        $_info_msg_ht .= '<p>○リストを空にしました</p>';
    } else {
        $_info_msg_ht .= '<p>×リストを空にできませんでした</p>';
    }
}
// リスト読み込み
$formdata = $datPluginCtl->load();
//=====================================================================
// プリント設定
//=====================================================================
$ptitle_top = 'DAT取得プラグイン編集';
$ptitle = strip_tags($ptitle_top);
$csrfid = P2Util::getCsrfId();
//=====================================================================
// プリント
Beispiel #2
0
    }
}
//=====================================================================
// 前処理
//=====================================================================
$datplugin = new DatPluginCtl();
// [保存]ボタン
if (!empty($_POST['submit_save'])) {
    if ($datplugin->save($_POST['dat']) !== FALSE) {
        $_info_msg_ht .= "<p>○設定を更新保存しました</p>";
    } else {
        $_info_msg_ht .= "<p>×設定を更新保存できませんでした</p>";
    }
    // [リストを空にする]ボタン
} elseif (!empty($_POST['submit_default'])) {
    if ($datplugin->clear()) {
        $_info_msg_ht .= "<p>○リストを空にしました</p>";
    } else {
        $_info_msg_ht .= "<p>×リストを空にできませんでした</p>";
    }
}
// リスト読み込み
$formdata = $datplugin->load();
//=====================================================================
// プリント設定
//=====================================================================
$ptitle_top = 'DAT取得プラグイン編集';
$ptitle = strip_tags($ptitle_top);
$csrfid = P2Util::getCsrfId();
//=====================================================================
// プリント