Beispiel #1
0
	 <title>Detail Information</title>
</head>
<body>
	<div style="margin:0 20% 0 20%">
	<?php 
require_once 'ClassConference.php';
session_start();
$_SESSION['last_url'] = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
if ($_POST['detail_cn'] != NULL) {
    $_SESSION['event_summary'] = $_POST['detail_cn'];
}
echo '<h1>' . $_SESSION['event_summary'] . '</h1>';
$detailconference = new Conference();
$dcn_id = $detailconference->findConferenceID($_SESSION['event_summary']);
$dcn_id_res = $detailconference->findConferenceInfo($dcn_id);
$detailconference->showConferenceInfo($dcn_id_res);
?>
	<div>
		<form role="form" action="add_event.php" method="post">
			<div class="form-group">
			<p>您的google账号</p>
			<input type="text" placeholder="*****@*****.**" name="googleid">
			<input type="submit" value="添加到您的Google Calendar" class="btn btn-primary"/>
			</div>
		</form>
	</div>
	<h3>
	<a href="index.php"><strong>回到主页</strong></a></h3>
	</div>
</body>
</html>
Beispiel #2
0
?>
	 <title>Searching</title>
</head>
<body>
<div style="margin:0 20% 0 20%">
<p><strong>搜索结果</strong></p>
<?php 
require_once 'ClassConference.php';
$searchShortname = $_POST['search_cfnm'];
$searchconf = new Conference();
$searchconf_id = $searchconf->findConferenceID($searchShortname);
if ($searchconf_id != null) {
    session_start();
    $_SESSION['last_url'] = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
    $searchconf_res = $searchconf->findConferenceInfo($searchconf_id);
    $searchconf->showConferenceInfo($searchconf_res);
    echo '<div>
	<!-- This Shit Part Is the API to  Google. Where it F google-->
		<form role="form" action="add_event.php" method="post">
			<div class="form-group">
			<input type="text" value="您的谷歌账号" placeholder="*****@*****.**" name="googleid">
			<input type="submit" value="添加到我的Google Calendar" class="btn btn-primary"/>
			</div>
		</form>
	</div> ';
} else {
    echo '<div>
	<p>对不起,没有找到您需要的信息。</p>
	</div>';
}
?>