TDL003_m.php 1.36 KB
<?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");
	}
?>