<?
session_start();
$mId=$_SESSION['mId'];
include("../function.php");
check_login();
putenv("NLS_LANG=TRADITIONAL CHINESE_TAIWAN.AL32UTF8");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>JUME(Join You And Me)揪咪揪團活動網</title>

<script src='../jQuery/jquery-1.2.6.js' type='text/javascript'></script>
<script type="text/javascript" src="js/jquery.rater.js"></script>
<link href="style/common.css" rel="stylesheet"/>
<link href="../member/style/mtake_show_detail.css" rel="stylesheet" type="text/css" media="screen" />
<link href="style/jquery.rater.css" rel="stylesheet"/>

</head>
<center>
<body>

<? 
include("../db.php");
$rId=$_GET["rId"];


$str = oci_parse($conn,"select MEMBER.MACCOUNT,RAISE.RPLACE,RAISE.RTIME,RAISE.RDATE,RAISE.RELSE,RAISE.RPHONE,RAISE.RLIMIT,RAISE.AID,TAKES.TRAFFIC,TAKES.MID from ((RAISE inner join TAKES on RAISE.RID=TAKES.RID) inner join MEMBER on RAISE.MID = MEMBER.MID) where RAISE.RID='$rId'") or die('Insert error');
                 oci_execute($str);




$row=oci_fetch_object($str);
 $row->AID;
//$row2=mysql_fetch_object($str2);
$str_1 = oci_parse($conn,"select * from ACTIVITY where AID='$row->AID'") or die('Insert error');
                 oci_execute($str_1);

$row_1=oci_fetch_object($str_1);?>

<div id="header">
<?
include("header2.php"); 
?>
</div>
<div id="content">
 <div id="raisedetail" align="center">
 <br />
 <br />
 <br />
<table align="center" id="temp">
     <tr>
    <th class="activity">活動名稱</th>
    <td><?=$row_1->ANAME?></td>
  </tr>
    <tr>
    <th class="activity">活動時間</th>
    <td><?=$row_1->ATIME?>~<?=$row_1->END_DATE?></td>
  </tr>
  <tr>

  <tr>
    <th>主揪</th>
    <td><?=$row->MACCOUNT?>
	
	</td>
  </tr>
  <tr>
    <th>集合地點</th>
    <td><?=$row->RPLACE?></td>
  </tr>
  <tr>
    <th>集合時間</th>
    <td>
	<?=$row->RTIME?>點
	</td>
  </tr>
  <tr>
    <th>集合日期</th>
    <td><?=$row->RDATE?></td>
  </tr>
  <tr>
    <th>主辦人電話</th>
    <td><?=$row->RPHONE?></td>
  </tr>
  
  <tr>
  	<th>可參加人數</th>
	<td><? if($row->RLIMIT=='0'){ echo "<font color='red'>揪團已滿</font>";}
			else { echo $row->RLIMIT;}?></td>
  </tr>
  <tr>
    <th>備註</th>
    <td><?=$row->RELSE?></td>
  </tr>

  <tr>
    <th>我的交通方式</th>
    <td><?=$row->TRAFFIC?></td>
  </tr>

</table> 

<?
$dtoday=date("Y-m-d");


?><p>
<input type="button" onClick="history.back(-1);" value="回上頁">
</p>
</center>
<br />
</div><!-- end #raisedetail -->

</div><!--end #content-->
<div id="footer">   
  <div id="footer-in" align="center">
    <p>版權資訊</p>
    <p>國立中山大學  資訊管理學系  揪咪揪團網 <a href="mailto:jumemis@yahoo.com.tw">揪咪團隊<img src="../mail/send email.gif" border="0"/></a> 版權所有  Taiwan All Rights Reserved</p> 
  </div><!-- end #footer-in -->
</div><!-- end #footer -->
</body>


</html>
