MET008.php 1.61 KB
<?php 
//*****************************************************************************
//* 
//* プログラム名:業務指示報告
//* プログラムID:MET008.php
//* 機能        :発言削除確認
//* 作成者      :
//* 
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");

//*****************************************************************************
//* インクルードファイル
//*****************************************************************************
include("include/session_start.inc");
include("include/SessionChk.inc");
include('./include/smarty.conf');
include("include/dbcon.inc");								//DB接続

//*****************************************************************************
//* 画面制御
//*****************************************************************************
include("inc/header.inc");
include("inc/MET008.inc");
include("menu_opacity.php");							//メニューセット

// 0:削除権限なし 1:管理者 2:発言者
$del_flg=0;

//発言の削除
if(($title_no != "") && ($category_no != "")){
	//管理者権限取得している社員
	$strSQLtitle = "SELECT * FROM meet_tbl WHERE syain_cd = '$PHP_SYAIN_CD' and seq=$seq";
	$objRectitle = pg_exec($strSQLtitle);
	if($objRectitle==false){
		echo("SQL実行に失敗しました(SELECT)");
		exit;
	}
	if (pg_numrows($objRectitle)==1){
		$del_flg=2;
	}
}

//削除権限
if ($PHP_BIT[5] == 1){
	$del_flg=1;
}
	
$o_smarty->assign('del_flg',$del_flg);
$o_smarty->assign('seq',$seq);
$o_smarty->assign('title_no',$title_no);
$o_smarty->assign('category_no',$category_no);
$o_smarty->assign('kanri_flg',$kanri_flg);

$o_smarty->display('MET008.tpl');
?>