LIST1740.php
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?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');
?>