LIST1750.php
1.62 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
<?PHP
//*****************************************************************************
//*
//* プログラム名:め〜るNiポン!V2
//* プログラムID:LIST1750.php
//* 機能 :配信内容を登録する
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//***************************
//* インクルードファイル
//***************************
include("./include/smarty.conf");
include("./include/session_start.inc");
include("./include/SessionChk2.inc");
include("./include/jcode.phps");
//********** ヘッダー処理 **********//
include("./include/headr_data.inc");
//********** メイン処理 **********//
include("./include/dbcon.inc");
$o_smarty->assign('mail_id' , $_POST["mail_id"]);
//表示項目名を取得
//$strSQL = "SELECT disp_id, disp_name FROM mst_disp ORDER BY disp_id";
//$objRec = pg_exec($strSQL);
//if($objRec==false){
// echo("SQL実行に失敗しました(SELECT)");
// exit;
//}
//for($intI = 0; $intI < pg_numrows($objRec) ; $intI++) {
// $objData = pg_fetch_object($objRecSet, $intI);
// $intDisp_id[$intI] = $objData->disp_id;
// $strDisp_Name[$intI] = JcodeConvert($objData->disp_name, 1, 1);
//}
//配信情報を取得
$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);
$subject_name = $objData->subject_name;
$contents = $objData->contents;
$o_smarty->assign('subject_name' , $subject_name);
$o_smarty->assign('contents' , $contents);
$o_smarty->display('LIST1750.tpl');
?>