ADR011.php
1.48 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
<?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 AND tori_syain_cd='$TantoSeq'";
$objToriTan = pg_exec($strSQL);
if ($objToriTan == false){
echo "データの取得に失敗しました。";
exit;
}
$objRecData = pg_fetch_object($objToriTan, 0);
$PhpTantobusyo=$objRecData->busyo;
$PhpTantoName=$objRecData->last_name_e.$objRecData->first_name_e;
if ($objRecData->sex=='t'){
$PhpTantosex="男";
}else{
$PhpTantosex="女";
}
$PhpTantohandy=$objRecData->handy;
$PhpTanto_memo=$objRecData->memo;
$o_smarty->assign('ToriSeq',$ToriSeq);
$o_smarty->assign('TantoSeq',$TantoSeq);
$o_smarty->assign('PhpTantoName',$PhpTantoName);
$o_smarty->assign('PhpTantobusyo',$PhpTantobusyo);
$o_smarty->assign('PhpTantosex',$PhpTantosex);
$o_smarty->assign('PhpTantohandy',$PhpTantohandy);
$o_smarty->assign('PhpTanto_memo',$PhpTanto_memo);
$o_smarty->display('ADR011.tpl');
?>