SUB0020.php
1.19 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
<?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');
?>