PRJ995.php
997 Bytes
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
<?php
//*****************************************************************************
//*
//* プログラム名:プロジェクト管理
//* プログラムID:PRJ995.php
//* 機能 :コメント削除
//* 作成者 :
//*
//*****************************************************************************
header( "Content-type: text/html; charset=EUC-JP");
include("inc/session_start.inc");
include("inc/SessionChk.inc");
include('./include/smarty.conf');
$strDBinc="include/dbcon.inc";
include($strDBinc);
$strSQL = "delete from prj_comm_tbl where seq = ".$seq." and task_seq = ".$tseq." and task_sub_seq = ".$sseq." and comm_seq = ".$cseq." and comm_flg =".$mode;
$objRec = pg_exec($strSQL);
if($objRec == false){
echo("SQL実行に失敗しました(DELETE)");
exit;
}
//監査状態更新
$strSQL = "update prj_comm_tbl set ";
$strSQL .= "comment = '0' ";
$strSQL .= "where seq = ".$seq." and comm_flg = 3 ";
$objRec = pg_exec($strSQL);
if($objRec == false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
?>