MTG003_m.php 5.97 KB
<?php 
//*****************************************************************************
//* 
//* プログラム名:会議(携帯電話)
//* プログラムID:MTG003_m.php
//* 機能        :会議
//* 作成者      :
//* 
//*****************************************************************************
header("Content-type: text/html; charset=Shift_JIS");

//*** 広告 ***//
include("include_m/Advertisement.inc");

//*** 共通処理 ***//
include("include_m/CommonProcess.inc");

//*** 文字列処理 ***//
include("include_m/STRING.inc");

//*** 電子会議 ***
$strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'MET010.php'";
$rsRecset = pg_exec($strMenuSQL);
$PHP_TITLE_NAME=mb_convert_encoding(pg_result($rsRecset,0,"name"), "SJIS", "EUC-JP");

//*** 会議カテゴリ名 ****//
$strSQL = "select * from mst_kaigi_category ";
$strSQL .= " WHERE category_no=$ctgno";
$recData=pg_exec($strSQL);
if($recData==false){
		echo("SQL実行に失敗しました(SELECT)");
		exit;
}
$recSet = pg_fetch_object($recData, 0);
$PHP_TITLE_NAME.="(".mb_convert_encoding($recSet->category_name, "SJIS", "EUC-JP").")";

$strDate = date("Y").date("m").date("d").date("H");

if ($selDisp==""){
		$selDisp=1;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<META http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="basefont.css">
<TITLE>E-グルPro(<?php  echo $PHP_TITLE_NAME ?>)</TITLE>
</HEAD>
<BODY>
<form Method="GET" action="MTG010_m.php">
<center>
<?php  echo $PHP_TITLE_NAME ?><br>
<?php  echo $strName; ?>
<HR width="100%">
<?php  echo $koukokuTEL; ?>
</center>
<?php 
	//メニュー表示
	include("include_m/CommonMenuReturn.inc");
?>
<HR width="100%">
<a href="MTG001_m.php?<?php  echo $PHP_Argument.'&selDisp='.$selDisp; ?>"accesskey="1"><?php  echo Get_Num("1"); ?>カテゴリ一覧</A>&nbsp;
<a href="MTG002_m.php?<?php  echo $PHP_Argument.'&ctgno='.$ctgno.'&selDisp='.$selDisp ?>"accesskey="2"><?php  echo Get_Num("2"); ?>テーマ一覧</A><br>
<?php 

$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, mst_kaigi_category.category_no ";
$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);
$strCPNo = trim($ftcData->chairperson);
$date_end=$ftcData->date_end;
echo '【会議テーマ】<BR>';
echo str_replace ("\r\n","<br>",htmlspecialchars(mb_convert_encoding($ftcData->theme, "SJIS", "EUC-JP")));
echo '<br><br>';
//echo link_url(str_replace ("\r\n","<br>",htmlspecialchars(mb_convert_encoding($ftcData->measure, "SJIS", "EUC-JP"))));
//echo link_url(str_replace ("\r\n","<br>",htmlspecialchars(mb_convert_encoding($ftcData->meeting_rule, "SJIS", "EUC-JP"))));
//echo link_url(str_replace ("\r\n","<br>",htmlspecialchars(mb_convert_encoding($ftcData->etc, "SJIS", "EUC-JP"))));

echo '【議案】<br>';
$strSQL = "select kaigi_tbl.meeting_no, kaigi_tbl.remark_no, kaigi_tbl.answer_no, kaigi_tbl.cp_answer_no, speak, person ,date, syain_tbl.name_kj_sei, syain_tbl.name_kj_mei, pkaigi_tbl.read_flg, stop_flg ";
$strSQL .= "from kaigi_tbl ";
$strSQL .= "join pkaigi_tbl on pkaigi_tbl.syain_cd = '".$PHP_SYAIN_CD."' and kaigi_tbl.meeting_no = pkaigi_tbl.meeting_no and kaigi_tbl.remark_no = pkaigi_tbl.remark_no and kaigi_tbl.answer_no = pkaigi_tbl.answer_no and kaigi_tbl.cp_answer_no = pkaigi_tbl.cp_answer_no ";
$strSQL .= "join syain_tbl on syain_tbl.syain_cd = kaigi_tbl.person ";
$strSQL .= "where kaigi_tbl.cp_answer_no = 0 and kaigi_tbl.meeting_no = ".$mtgNo." and kaigi_tbl.answer_no = 0 ";
$strSQL .= "order by kaigi_tbl.remark_no desc, kaigi_tbl.answer_no desc, kaigi_tbl.cp_answer_no desc";
$recKaigi=pg_exec($strSQL);
if($recKaigi==false){
		echo("SQL実行に失敗しました(SELECT)");
		exit;
}
$max = pg_numrows($recKaigi)-1;
for($i=0;$i<$max;$i++){
		$ftcKaigi = pg_fetch_object($recKaigi, $i);
	
		$strTemp = $ftcKaigi->date;
		$strTemp = ((int) substr($strTemp,4,2))."/".((int) substr($strTemp,6,2))." ".substr($strTemp,8,2).":".substr($strTemp,10,2)."";

		echo '・<a href="MTG004_m.php?'.$PHP_Argument.'&ctgno='.$ctgno.'&mtgNo='.$mtgNo.'&remNo='.$ftcKaigi->remark_no.'&selDisp='.$selDisp.'">';
		echo LINE_DEL(mb_convert_encoding($ftcKaigi->speak, "SJIS", "EUC-JP" ),20);
		$strSQL = "select answer_no from pkaigi_tbl where syain_cd = '".$PHP_SYAIN_CD."' and meeting_no = ".$mtgNo." and remark_no = ".$ftcKaigi->remark_no." and read_flg = 0 order by answer_no desc";
		$recData2=pg_exec($strSQL);
		if($recData2==false){
			echo("SQL実行に失敗しました(SELECT)");
			exit;
		}
		if(pg_numrows($recData2) > 0){
				echo "(".pg_numrows($recData2).")";
		}
		echo '</a>';
		echo '<br> ';
		echo $strTemp;
		echo "(".mb_convert_encoding($ftcKaigi->name_kj_sei, "SJIS", "EUC-JP").mb_convert_encoding($ftcKaigi->name_kj_mei, "SJIS", "EUC-JP").")";
		echo '<br>';
}

?>
<?php  if(($strCPNo == $PHP_SYAIN_CD) && ($strDate<=$date_end)){?>
		<HR width="80%">
		【新規議案】<BR>
		<TEXTAREA name="M" rows="5" wrap="virtual" cols="20"></TEXTAREA><br>
		<input type="submit" value="提出する"><br>
<?php  } ?>
<br>
<a href="MTG001_m.php?<?php  echo $PHP_Argument.'&selDisp='.$selDisp; ?>"accesskey="1"><?php  echo Get_Num("1"); ?>カテゴリ一覧</A>&nbsp;
<a href="MTG002_m.php?<?php  echo $PHP_Argument.'&ctgno='.$ctgno.'&selDisp='.$selDisp ?>"accesskey="2"><?php  echo Get_Num("2"); ?>テーマ一覧</A><br>
<HR width="100%">
<?php 
	//メニュー表示
	include("include_m/CommonMenuReturn.inc");
?>
<INPUT TYPE="hidden" NAME="ctgno"   VALUE="<?php  echo $ctgno; ?>">
<INPUT TYPE="hidden" NAME="mtgNo"   VALUE="<?php  echo $mtgNo; ?>">
<INPUT TYPE="hidden" NAME="selDisp" VALUE="<?php  echo $selDisp; ?>">
<?php 
	//*** 共通変数取得 ***//
	include("include_m/CommonHidden.inc");
?>
</form>
</BODY>
</HTML>