MET910.php
1.07 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
<?php
//*****************************************************************************
//*
//* プログラム名:電子会議室
//* プログラムID:MET910.php
//* 機能 :電子会議室.既読確認
//* 作成者 :
//*
//*****************************************************************************
include("include/session_start.inc");
include("include/SessionChk.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);
$strSQL = "update pkaigi_tbl set read_flg = 1 ";
$strSQL .= "where syain_cd = '".$PHP_SYAIN_CD."' ";
$strSQL .= "and meeting_no = ".$mtgNo." ";
$strSQL .= "and remark_no = 0 ";
$strSQL .= "and answer_no = 0 ";
$strSQL .= "and cp_answer_no = 0";
$recData=pg_exec($strSQL);
if($recData==false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
?>
<script language="javascript">
function DoSubmit(){
document.e_gru.action = "MET030.php";
document.e_gru.method="POST";
document.e_gru.submit();
return false;
}
</script>
<body onload="DoSubmit()">
<form name = "e_gru" method="post"><input name='mtgNo' type="hidden" value="<?php echo $mtgNo ?>"></form>
</body>