TDL003_m.php
1.36 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
<?php
//*****************************************************************************
//*
//* プログラム名:TODO(携帯電話)
//* プログラムID:TDL003_m.php
//* 機能 :
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=Shift_JIS");
//*** 広告 ***//
include("include_m/Advertisement.inc");
//*** 共通処理 ***//
include("include_m/CommonProcess.inc");
if ($intsts=="更新"){
if((int)$progress != 100){
$strEND = ", end_flg = 0 ";
}else{
$strEND = ", end_flg = 1 ";
}
//あっぷでーと
$strSQL = "update todo_tbl set ";
$strSQL .= "sinchoku = ".$progress.$strEND;
$strSQL .= "where seq = ".$seq;
$objRec = pg_exec($strSQL);
if($objRec == false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
if((int)$progress != 100){
header("Location: ./TDL002_m.php?seq=$seq&intPage=$intPage&$PHP_Argument");
}else{
header("Location: ./TDL001_m.php?$PHP_Argument");
}
}else if ($intsts=="完了する"){
$strEND = ", end_flg = 1 ";
//あっぷでーと
$strSQL = "update todo_tbl set ";
$strSQL .= "sinchoku = 100".$strEND;
$strSQL .= "where seq = ".$seq;
$objRec = pg_exec($strSQL);
if($objRec == false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
header("Location: ./TDL001_m.php?$PHP_Argument");
}
?>