SUB0020.php 1.19 KB
<?PHP 
//*****************************************************************************
//* 
//* プログラム名:め〜るNiポン!V2
//* プログラムID:SUB0020.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/dbcon2.inc");


//********** メイン処理 **********//
//管理者処理
$strSQL = "SELECT * FROM mst_kanri WHERE user_id = '" . $_SESSION["PHP_POST_SYAIN_ID"] . "' ";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
	echo("SQL実行に失敗しました(SELECT)");
	exit;
}
for($intIdx = 0; $intIdx < pg_numrows($objRecSet) ; $intIdx++) {
		$objData = pg_fetch_object($objRecSet, $intIdx);
		$strUserName = JcodeConvert($objData->user_name, 1, 1);
}

$o_smarty->assign('strUserName' , $strUserName);
$o_smarty->display('SUB0020.tpl');

?>