CON110.php 2.29 KB
<?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');
}
?>