MET961.php 4.06 KB
<?php 
//*****************************************************************************
//* 
//* プログラム名:電子会議室
//* プログラムID:MET961.php
//* 機能        :電子会議室.議事録更新
//* 作成者      :
//* 
//*****************************************************************************

include("include/session_start.inc");
include("include/SessionChk.inc");

$strDBinc="include/dbcon.inc";
include($strDBinc);
$strSQL = "update kaigi_info_tbl set minutes = '".addslashes($txtMinutes)."' where meeting_no = ".$mtgNo;
$recData=pg_exec($strSQL);
if($recData==false){
	echo("SQL実行に失敗しました(UPDATE)");
	exit;
}

if($mode==1){
	//保存
	$strURL="MET030.php";
}else{
	//回覧

	$strSQL = "select theme, measure, meeting_rule, etc,date_start, date_end, chairperson, minutes_maker, minutes, list_spk, list_obs, ";
	$strSQL .= "file_name, file_name_jp, notice_flg, opener, mst_kaigi_category.category_name ";
	$strSQL .= "from kaigi_info_tbl join mst_kaigi_category on mst_kaigi_category.category_no = kaigi_info_tbl.category_no ";
	$strSQL .= "where meeting_no = ".$mtgNo;
	$recData=pg_exec($strSQL);
	if($recData==false){
		echo("SQL実行に失敗しました(SELECT)");
		exit;
	}
	$ftcData = pg_fetch_object($recData,0);
	//テーマ・議題・ルール・特記事項・議長フラグ
	$strTheme        = $ftcData->theme;
	$strMeasure      = $ftcData->measure;
	$strMeeting_rule = $ftcData->meeting_rule;
	$strEtc = $ftcData->etc;
	//カテゴリ名
	$strCTGName = $ftcData->category_name;
	//期間
	$strDate_start = $ftcData->date_start;
	$strDate_end = $ftcData->date_end;
	$strDate = (int) substr($strDate_start,0,4);
	$strDate .= "年";
	$strDate .= (int) substr($strDate_start,4,2);
	$strDate .= "月";
	$strDate .= (int) substr($strDate_start,6,2);
	$strDate .= "日";
	$strDate .= (int) substr($strDate_start,8,2);
	$strDate .= "時 〜 ";
	$strDate .= (int) substr($strDate_end,0,4);
	$strDate .= "年";
	$strDate .= (int) substr($strDate_end,4,2);
	$strDate .= "月";
	$strDate .= (int) substr($strDate_end,6,2);
	$strDate .= "日";
	$strDate .= (int) substr($strDate_end,8,2);
	$strDate .= "時";
	//発言者
	$strSpeaker = $ftcData->list_spk;
	//オブザーバ
	$strObserver = $ftcData->list_obs;
	//議事録
	$strMinutes = $ftcData->minutes;

	$strSQL = "select name_kj_sei, name_kj_mei from syain_tbl where syain_cd = '".($ftcData->chairperson)."'";
	$recData2=pg_exec($strSQL);
	if($recData2==false){
		echo("SQL実行に失敗しました(SELECT)");
		exit;
	}
	$ftcData2 = pg_fetch_object($recData2,0);
	//議長名
	$strChairP = ($ftcData2->name_kj_sei).($ftcData2->name_kj_mei);

	$strSQL = "select name_kj_sei, name_kj_mei from syain_tbl where syain_cd = '".($ftcData->minutes_maker)."'";
	$recData2=pg_exec($strSQL);
	if($recData2==false){
		echo("SQL実行に失敗しました(SELECT)");
		exit;
	}
	$ftcData2 = pg_fetch_object($recData2,0);
	//議事録作成者名
	$strMinutesMk = ($ftcData2->name_kj_sei).($ftcData2->name_kj_mei);

	//遷移先
	$strURL="CIR002.php";
}

?>

<script language="javascript">
function DoSubmit(){
	document.e_gru.action = "<?php  echo $strURL ?>";
	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 ?>">
<input name='mode'  type="hidden" value="<?php  echo $mode ?>">

<input name='txtTheme'  type="hidden" value="<?php  echo $strTheme ?>">
<input name='txtMeasure'  type="hidden" value="<?php  echo $strMeasure ?>">
<input name='txtRule'  type="hidden" value="<?php  echo $strMeeting_rule ?>">
<input name='txtEtc'  type="hidden" value="<?php  echo $strEtc ?>">
<input name='txtCTGName'  type="hidden" value="<?php  echo $strCTGName ?>">
<input name='txtTerm'  type="hidden" value="<?php  echo $strDate ?>">
<input name='txtSpeaker'  type="hidden" value="<?php  echo $strSpeaker ?>">
<input name='txtObserver'  type="hidden" value="<?php  echo $strObserver ?>">
<input name='txtMinutes'  type="hidden" value="<?php  echo $strMinutes ?>">
<input name='txtChairP'  type="hidden" value="<?php  echo $strChairP ?>">
<input name='txtMinutesMk'  type="hidden" value="<?php  echo $strMinutesMk ?>">
</form>
</body>