<?php
	// 認証処理
	if (true === isset($_POST['password'])) {
		$password = '8b453ec9d3a60855a48a241e44e7db08';
		if (md5($_POST['password']) == $password) {
			setcookie('auth', 'slowmuon');
			header('location:'. $_SERVER['PHP_SELF']);
		}
	}

	// コンテンツ表示
	$contents = array();
	if (true === isset($_COOKIE['auth']) and 'slowmuon'== $_COOKIE['auth']) {
		$filename = './swf/swflist.dat';

		// SWFリスト
		$swf_list = scandir('swf/');
		if (true === is_file($filename)) {
			$list = file($filename);
			foreach ($list as $v) {
				$tmp = explode('||', $v);

				$pdf_flg = false;
				if (true === in_array($tmp[0] . '.swf', $swf_list)) {
					$pdf_flg = true;
				}

				$contents[] = array(
					'pdf' => $pdf_flg,
					'fname' => $tmp[0],
					'program' => $tmp[1],
					'name' => $tmp[2],
					'email' => $tmp[3],
					'title' => $tmp[4],
				);
			}
		}
	}
?>

<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
	<meta name="keywords" content="muon, ultra slow muon" />
	<meta http-equiv="content-type" content="application/xhtml+xml;charset=UTF-8" />
	<link rel="stylesheet" href="../css/bootstrap-1.0.0.css" />
	<link rel="stylesheet" href="../css/main.css" />
	<title>Ultra Slow Muon Microscope - Abstract</title>
	<script type="text/javascript">

		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-25776762-1']);
		_gaq.push(['_setDomainName', 'slowmuon.jp']);
		_gaq.push(['_trackPageview']);

		(function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();

	</script>

</head>
<body>
	<div id="header">

		<div id="study_title">
			<img src="../img/title_usm2013.gif" alt="" />
		</div>
		
		<div id="lang2013">
			<a href="http://slowmuon.jp/">日本語</a>|English
		</div>

		<div id="topimg">
			<img src="../img/topimg.jpg" alt="topimg" />
		</div>

		<ul class="tabs">
			<li><a href="../english/index.html">Home</a></li>
			<li><a href="index.html">USM2013 Top</a></li>
			<li><a href="https://slowmuon.jp/intl_symposium/registration.php">Registration</a></li>
			<li><a href="https://slowmuon.jp/intl_symposium/submission.php">Abstract</a></li>
			<li><a href="https://slowmuon.jp/intl_symposium/proceedings.html">Proceedings</a></li>
			<li><a href="organization.html">Committee</a></li>
			<li><a href="program.html">Program</a></li>
			<li class="active"><a href="presentation.php">Paticipants Only</a></li>
			<li><a href="http://www.kunibikimesse.jp/60.html" target="_blank">Access</a></li>
		</ul>
	</div>
	<div class="container">
		<h1>Participants Only</h1>
		
		<div class="section">
			<?php if (!isset($_COOKIE['auth'])):?>
			<p>
				Thank you for your kind participation to USM2013.
				This page is for further communication, information and discussion between participants. 
			</p>
			<form method="post" action="<?=$_SERVER['PHP_SELF']?>" class="form-inline">
				<label>Password:</label>
				<input type="password" name="password">
				<input type="submit" value="ENTER" class="btn btn-primary">
			</form>
			<?php endif;?>

			<?php if (isset($_COOKIE['auth'])):?>
			<h2>Photo gallary</h2>
			<div style="margin-bottom:15px;">
				Photos from the USM2013 are now available for digital download on courtesy of Inoue Laboratory, Hiroshima University.<a href="https://www.dropbox.com/sh/yc0odtqsau54yek/0UhA_XtzuD">Click Here</a>
			</div>
			<?php if (0 < count($contents)):?>
			<h2>Presentation</h2>
			<p>
				The slides and posters are provided by courtesy of presenters for further discussion and collaboration. Click the title and wait a moment to look the data. If you have any problems in viewing the data, or willing to contribute your presentation, please contact to <a href="mailto:slowmuon@yamanashi.ac.jp">slowmuon@yamanashi.ac.jp</a><br>
				Unauthorized reproduction prohibited.
			</p>
			<table class="table" id="presentation_tbl">
				<tr>
					<th>PDF</th>
					<th nowrap>Pg No.</th>
					<th>Author</th>
					<th>Title</th>
				</tr>
				<?php foreach($contents as $v): ?>
				<?php if ('' == $v['program']):?>
				<tr>
					<td colspan="4"><?php echo $v['fname']?></td>
				</tr>
				<?php else:?>
				<tr>
					<td><?php if (true === $v['pdf']):?><img src="../img/icon_1r_32.png" alt="pdf_icon" /><?php endif;?></td>
					<td><?php echo $v['program'];?></td>
					<td><?php echo $v['name'];?></td>
					<td><a href="show_swf.php?fname=<?php echo urlencode($v['fname']);?>"><?php echo $v['title'];?></a></td>
				</tr>
				<?php endif;?>
				<?php endforeach;?>
			</table>
			<?php endif;?>
			<?php endif; ?>
		</div>
	</div>

	<div id="footer">

		<div id="footer_block">
			<a href="../english/index.html">Home</a>|
			<a href="index.html">USM2013 Top</a>|
			<a href="https://slowmuon.jp/intl_symposium/registration.php">Registration</a>|
			<a href="https://slowmuon.jp/intl_symposium/submission.php">Abstract</a>|
			<a href="https://slowmuon.jp/intl_symposium/proceedings.php">Proceedings</a>|
			<a href="organization.html">Committee</a>|
			<a href="program.html">Program</a>|
			<a href="http://www.kunibikimesse.jp/60.html" target="_blank">Access</a>
		</div>


		<div id="footer_section">
			<div id="footer_info">
				(MEXT)  Grant-in-Aid for Scientific Research on Innovative Areas <br />
				Frontier of Materials, Life and Particle Science <br />
				Explored by Ultra Slow Muon Microscope <br />
				E-mail:slowmuon@yamanashi.ac.jp <br />
				TEL: +81-55-220-8681/FAX: +81-55-220-8682 <br />
				University of Yamanashi <br />
				4-3-11 Takeda,Kofu,Yamanashi 400-8511 Japan
 			</div>
			<div id="footer_logo">
				<img src="../img/footer.png" alt="logo" />
			</div>
		</div>
		<div id="footer_text">
			(MEXT)  Grant-in-Aid for Scientific Research on Innovative Areas <br />
			&copy; 2011 Frontier of Materials, Life and Particle Science Explored by Ultra Slow Muon Microscope
		</div>

	</div>
</body>
</html>
