MET991.php
1.47 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
//*****************************************************************************
//*
//* プログラム名:電子会議室
//* プログラムID:MET991.php
//* 機能 :電子会議室.会議削除
//* 作成者 :
//*
//*****************************************************************************
include("include/session_start.inc");
include("include/SessionChk.inc");
$strTempPath="temp/".$PHP_FOLDER_NAME."/kaigi/";
$strDBinc="include/dbcon.inc";
include($strDBinc);
//資料パス
$strSQL = "select file_name from kaigi_info_tbl where meeting_no = ".$mtgNo;
$recData=pg_exec($strSQL);
if($recData==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$objFtc = pg_fetch_object($recData, 0);
if(trim($objFtc->file_name) != ""){
$strArr=split("/",($objFtc->file_name));
if(count($strArr) > 0){
for($i=0;$i<=count($strArr)-1;$i++){
if(file_exists($strTempPath.$strArr[$i])){
unlink($strTempPath.$strArr[$i]);
}
}
}
}
//kaigi_info_tbl
$strSQL = "delete from kaigi_info_tbl where meeting_no = ".$mtgNo;
$recData=pg_exec($strSQL);
if($recData==false){
echo("SQL実行に失敗しました(DELETE)");
exit;
}
//kaigi_tbl
$strSQL = "delete from kaigi_tbl where meeting_no = ".$mtgNo;
$recData=pg_exec($strSQL);
if($recData==false){
echo("SQL実行に失敗しました(DELETE)");
exit;
}
//pkaigi_tbl
$strSQL = "delete from pkaigi_tbl where meeting_no = ".$mtgNo;
$recData=pg_exec($strSQL);
if($recData==false){
echo("SQL実行に失敗しました(DELETE)");
exit;
}
header("Location:MET010.php");
?>