ADR013.php 1.58 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";
$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');

?>