MST1310.php
1.46 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
55
56
<?PHP
//*****************************************************************************
//*
//* プログラム名:め〜るNiポン!V2
//* プログラムID:MST1310.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/dbcon.inc");
//***************************
//* 初期処理
//***************************
$objConn = null; //接続オブジェクト
$objRecSet = null; //レコードセットオブジェクト
$strSQL = ""; //SQL文
$intDisp_Count = 0;
//表示名称を取得
$strSQL = "SELECT disp_id,disp_name FROM mst_disp ORDER BY disp_id ";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$intDisp_Count = pg_numrows($objRecSet);
for($intIdx = 0; $intIdx < $intDisp_Count ; $intIdx++) {
$objData = pg_fetch_object($objRecSet, $intIdx);
$intDisp_Id[$intIdx] = $objData->disp_id;
$strDisp_Name[$intIdx] = JcodeConvert($objData->disp_name, 1, 1);
}
$o_smarty->assign('strDisp_Name' , $strDisp_Name);
$o_smarty->display('MST1310.tpl');
?>