MET060.php 4.08 KB
<?php 

//*****************************************************************************

//* 

//* プログラム名:電子会議室詳細

//* プログラムID:MET060.php

//* 機能        :電子会議室議事録画面

//* 作成者      :

//* 

//*****************************************************************************


header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include("include/STRING.inc");
include('./include/smarty.conf');
include("inc/header.inc");
include("inc/input_chk.inc");
include("inc/MET060.inc");

//メニューセット
include("menu_opacity.php");
$strDBinc="../".$PHP_FOLDER."/include/dbcon.inc";

include($strDBinc);

$strSQL="";
$objRec="null";
//URL関数
function link_url($str){
		$regex = "((https?://|ftp://)([0-9A-Za-z:_?./~%;()=+#-]|&amp;)+)";
		$str = eregi_replace($regex, "<a href=\"\\1\" target=\"_blank\">\\1</a>", $str);

		$regex_mail = "((mailto:)?([0-9A-Za-z._-]+@[0-9A-Za-z.-]+))";
		$str = eregi_replace($regex_mail, "<a href=\"mailto:\\3\">\\1</a>", $str);

		return $str;
}

$strTitle = "電子会議室(議事録)";

	$strSQL = "select theme, measure, meeting_rule, etc,date_start, date_end, chairperson, minutes, minutes_maker, 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 = link_url(str_replace ("\r\n","<br>",htmlspecialchars($ftcData->measure)));
	$strMeeting_rule = link_url(str_replace ("\r\n","<br>",htmlspecialchars($ftcData->meeting_rule)));
	$strEtc = link_url(str_replace ("\r\n","<br>",htmlspecialchars($ftcData->etc)));
	
	//参加者
	$strSpk = $ftcData->list_spk;
	$strObs = $ftcData->list_obs;	
	
	//期間
	$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 .= "時";
	
	//議長・議事録作成者 番号
	//$strCPNo = trim($ftcData->chairperson);
	$strMKNo = trim($ftcData->minutes_maker);
	
	//カテゴリ名
	$strCTGName = $ftcData->category_name;
	
	//議事録
	if($txtMinutes != ""){
		$strMinutes = $txtMinutes;
	}else{
		$strMinutes = $ftcData->minutes;
	}

	if($strMKNo == $PHP_SYAIN_CD){
		$flgMNT = 1;
		
		$strSQL = "select speak from kaigi_tbl where meeting_no = ".$mtgNo." ";
		$strSQL .= "order by remark_no desc, answer_no desc, cp_answer_no desc";
		$recSPK=pg_exec($strSQL);
		if($recSPK==false){
			echo("SQL実行に失敗しました(SELECT)");
			exit;
		}
		$strALL = "";
		if(pg_numrows($recSPK)>0){
			for($i=0;$i<pg_numrows($recSPK)-1;$i++){
				$fetchData = pg_fetch_object($recSPK,$i);
				$strALL .= ($fetchData->speak)."\n";
			}
		}
	}else{
		$flgMNT = 0;
	
	}




$o_smarty->assign('strTitle',$strTitle);
$o_smarty->assign('strTheme',$strTheme);
$o_smarty->assign('strMeasure',$strMeasure);
$o_smarty->assign('strMeeting_rule',$strMeeting_rule);
$o_smarty->assign('strEtc',$strEtc);
$o_smarty->assign('strDate',$strDate);
$o_smarty->assign('strCTGName',$strCTGName);
$o_smarty->assign('mtgNo',$mtgNo);
$o_smarty->assign('remNo',$remNo);
$o_smarty->assign('strALL',$strALL);
$o_smarty->assign('strMinutes', $strMinutes);
$o_smarty->assign('strSpk', $strSpk);
$o_smarty->assign('strObs', $strObs);

$o_smarty->assign('flgMNT', $flgMNT);
$o_smarty->assign('mode', $mode);

$o_smarty->assign('PHP_TITLE_NAME',$PHP_TITLE_NAME[9]);

$o_smarty->display('MET060.tpl');

?>