LIST1740.php 1.4 KB
<?PHP 
//*****************************************************************************
//* 
//* プログラム名:配信内容編集
//* プログラムID:LIST1740.php
//* 機能        :送信先種類を変更する
//* 
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");

//***************************
//* インクルードファイル
//***************************
include("./include/smarty.conf");
include("./include/session_start.inc");
include("./include/SessionChk2.inc");
include("./include/dbcon.inc");
include("./include/jcode.phps");

//********** ヘッダー処理 **********//
include("./include/headr_data.inc");

//********** メイン処理 **********//
include("./include/dbcon.inc");

$o_smarty->assign('mail_id'      , $_POST["mail_id"]);

//配信情報を取得
$strSQL = "SELECT * FROM mail_data WHERE mail_id = ".(int)$_POST["mail_id"];
$objRec = pg_exec($strSQL);
if($objRec==false){
	echo("SQL実行に失敗しました(SELECT)");
	exit;
}
$objData  = pg_fetch_object($objRec, 0);
switch ($objData->send_type) {
	case "0":
			$send_chk[0] = "checked";
			$send_chk[1] = "";
			$send_chk[2] = "";
			break;

	case "1":
			$send_chk[0] = "";
			$send_chk[1] = "checked";
			$send_chk[2] = "";
			break;

	case "2":
			$send_chk[0] = "";
			$send_chk[1] = "";
			$send_chk[2] = "checked";
			break;

}

$o_smarty->assign('send_chk'     , $send_chk);
$o_smarty->display('LIST1740.tpl');

?>