ADR011.php 1.48 KB
<?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');



?>