MET008.php
1.61 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
//*****************************************************************************
//*
//* プログラム名:業務指示報告
//* プログラム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');
?>