CON110.php
2.29 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
57
58
59
60
61
62
63
64
65
<?php
//*****************************************************************************
//*
//* プログラム名:電子会議カテゴリ情報画面
//* プログラムID:CON110.php
//* 機能 :電子会議カテゴリ情報画面を表示する
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//*****************************************************************************
//* インクルードファイル
//*****************************************************************************
include("include/session_start.inc"); //セッション開始
include("include/SessionChk.inc"); //セッションチェック
include("include/dbcon.inc"); //DB接続
//*****************************************************************************
//* 画面制御
//*****************************************************************************
include("inc/input_chk.inc"); //
include('./include/smarty.conf'); //
include("inc/header.inc"); //
include("inc/CON110.inc"); //
include("menu_opacity.php"); //メニュー
if ($PHP_BIT[0]!=1){
echo "<br><br><br>";
echo "<a href='TOP000.php'><span class='Normalfont'>マスタ変更権限がありません</span></a>";
echo "<br><br><br>";
echo "<form name='e_gru'></form>";
include("include/copyright.inc");
exit;
}
$strSql = "SELECT category_no, category_name, disp_rank FROM mst_kaigi_category ORDER BY disp_rank";
$rsRecset = pg_exec($pg_con,$strSql);
$intRsCnt =pg_numrows($rsRecset);
for($i = 0 ; $i < $intRsCnt; $i++){
$selData[$i] = '<a href = "javascript:edit('.pg_result($rsRecset, $i, "category_no").')"> '.htmlspecialchars(pg_result($rsRecset, $i, "category_name")).'</a>';
$category_no[$i] = pg_result($rsRecset, $i, "category_no");
}
$strSql = "SELECT default_data FROM mst_default_data WHERE data_no = 1";
$rsRecset = pg_exec($pg_con,$strSql);
if(pg_numrows($rsRecset) > 0){
$txtRule = htmlspecialchars(pg_result($rsRecset,0,"default_data"));
}else{
$txtRule = "";
}
$o_smarty->assign('selData',$selData);
$o_smarty->assign('txtRule',$txtRule);
$o_smarty->assign('MaxCount',$intRsCnt-1);
$o_smarty->assign('category_no',$category_no);
$o_smarty->assign('PHP_TITLE_NAME',$PHP_TITLE_NAME[9]);
if ($PHP_BIT[0]==1){
$o_smarty->display('CON110.tpl');
}else{
$o_smarty->display('CON999.tpl');
}
?>