CON111.php 1.97 KB
<?php 
//*****************************************************************************
//* 
//* プログラム名:電子会議室カテゴリ入力画面(新規・修正併用)
//* プログラムID:CON111.php
//* 機能        :電子会議室カテゴリを入力する
//* 作成者      :
//* 
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");

//*****************************************************************************
//* インクルードファイル
//*****************************************************************************
include("include/session_start.inc");				//セッション開始
include("include/SessionChk.inc");					//セッションチェック
include("include/dbcon.inc");								//DB接続

//*****************************************************************************
//* 画面制御
//*****************************************************************************
include("include/input_chk.inc");
include("inc/CON111.inc");
include("inc/header.inc");
include('./include/smarty.conf');
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;
}

switch ($_POST{"sinki_edit_flg"}) {
	case "sinki":
		$strCategoryType="";
		$strCategoryName="";
		break;
	case "edit":
		$strSql = "SELECT * FROM mst_kaigi_category Where category_no = ".$_POST["category_no"];
		$rsRecset = pg_exec($pg_con, $strSql);
		$strCategoryName = htmlspecialchars(pg_result($rsRecset, 0, "category_name"));
		break;
	}

$o_smarty->assign('strCategoryName',$strCategoryName);
$o_smarty->assign('strCategoryType',$strCategoryType);
$o_smarty->assign('sinki_edit_flg',$sinki_edit_flg);
$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('CON111.tpl');
}else{
	$o_smarty->display('CON999.tpl');
}
?>