ADR013.php
1.58 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
<?php
//*****************************************************************************
//*
//* プログラム名:アドレス帳
//* プログラムID:ADR011.php
//* 機能 :取引先担当者詳細
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//***************************
//* インクルードファイル
//***************************
include("./include/session_start.inc");
include("./include/SessionChk.inc");
include('./include/smarty.conf');
include("./inc/header.inc");
include("./inc/STRING.inc");
//**** DB接続 ****//
include("./include/dbcon.inc");
//取引先担当者情報
$strSQL = "SELECT * FROM tantou_tbl WHERE seq = $ToriSeq";
$objToriTan = pg_exec($strSQL);
if ($objToriTan == false){
echo "データの取得に失敗しました。";
exit;
}
for ($inti = 0; $inti < pg_numrows($objToriTan); $inti++){
$objRecData = pg_fetch_object($objToriTan, $inti);
$PhpTantoName[$inti]=$objRecData->last_name_j.$objRecData->first_name_j;
$PhpTantophone[$inti]=$objRecData->phone;
$PhpTantoemail[$inti]=$objRecData->email;
$PhpTantoyaku[$inti]=$objRecData->yaku;
$PhpTanto_cd[$inti]=$objRecData->tori_syain_cd;
}
$PhpToriseq= $ToriSeq;
$o_smarty->assign('PhpTantoName',$PhpTantoName);
$o_smarty->assign('PhpTantophone',$PhpTantophone);
$o_smarty->assign('PhpTantoemail',$PhpTantoemail);
$o_smarty->assign('PhpTantoemail',$PhpTantoemail);
$o_smarty->assign('PhpTantoyaku',$PhpTantoyaku);
$o_smarty->assign('PhpTanto_cd',$PhpTanto_cd);
$o_smarty->assign('PhpToriseq',$PhpToriseq);
$o_smarty->display('ADR013.tpl');
?>