BBS005.php
1.26 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
<?php
//*****************************************************************************
//*
//* プログラム名:削除確認
//* プログラムID:BBS005.php
//* 機能 :削除確認
//* 作成者 :K.Yoshimrua
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/dbcon.inc");
include("include/session_start.inc");
include("include/SessionChk.inc");
$strSQLadm="";
$objRecadm="null";
$strSQL="";
$objRec="null";
//削除(管理者、作成者のみ)
$strSQLadm = "SELECT * FROM admini_tbl WHERE syain_cd = '$PHP_SYAIN_CD'";
$objRecadm = pg_exec($strSQLadm);
if($objRecadm==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$strSQL="Select * From bbs_tbl " .
"Where seq=$seq and syain_cd = '$PHP_SYAIN_CD'";
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
include("inc/BBS005.inc");
//メニュー
include("menu_opacity.php");
$rec_adm = pg_numrows($objRecadm);
$rec = pg_numrows($objRec);
$o_smarty->assign('rec_adm',$rec_adm);
$o_smarty->assign('rec',$rec);
$o_smarty->assign('intPage',$intPage);
$o_smarty->assign('seq',$seq);
$o_smarty->display('BBS005.tpl');
//コピーライト
include("inc/copyright.inc");
%>