2009-12-24 10:01:26 +08:00
|
|
|
<!--
|
|
|
|
|
|
|
|
BigBlueButton - http://www.bigbluebutton.org
|
|
|
|
|
|
|
|
Copyright (c) 2008-2009 by respective authors (see below). All rights reserved.
|
|
|
|
|
|
|
|
BigBlueButton is free software; you can redistribute it and/or modify it under the
|
|
|
|
terms of the GNU Lesser General Public License as published by the Free Software
|
|
|
|
Foundation; either version 3 of the License, or (at your option) any later
|
|
|
|
version.
|
|
|
|
|
|
|
|
BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License along
|
|
|
|
with BigBlueButton; if not, If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
Author: Fred Dixon <ffdixon@bigbluebutton.org>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
|
|
|
pageEncoding="ISO-8859-1"%>
|
|
|
|
<!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=ISO-8859-1">
|
2010-01-24 03:19:14 +08:00
|
|
|
<title>Join a Selected Course</title>
|
2009-12-24 10:01:26 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2009-12-31 04:11:08 +08:00
|
|
|
<%@ include file="bbb_api.jsp"%>
|
2009-12-24 10:01:26 +08:00
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2010-01-24 03:19:14 +08:00
|
|
|
<%
|
|
|
|
if (request.getParameterMap().isEmpty()) {
|
|
|
|
//
|
|
|
|
// Assume we want to create a meeting
|
|
|
|
//
|
|
|
|
%>
|
2010-03-25 05:57:27 +08:00
|
|
|
|
|
|
|
<%@ include file="demo_header.jsp"%>
|
2010-01-24 03:19:14 +08:00
|
|
|
|
|
|
|
<h2>Demo #2: Join a Selected Course</h2>
|
2010-01-01 05:07:22 +08:00
|
|
|
|
2009-12-24 10:01:26 +08:00
|
|
|
|
|
|
|
<FORM NAME="form1" METHOD="GET">
|
2010-02-15 07:57:13 +08:00
|
|
|
<table cellpadding="5" cellspacing="5" style="width: 400px; ">
|
2010-01-01 05:07:22 +08:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2010-02-15 07:57:13 +08:00
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right; ">
|
|
|
|
Full Name:</td>
|
|
|
|
<td style="width: 5px; ">
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left ">
|
|
|
|
<input type="text" name="username" /></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: right; ">
|
|
|
|
Course:</td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left ">
|
|
|
|
<select name="meetingID">
|
2010-01-01 05:07:22 +08:00
|
|
|
<option value="English 232">English 232</option>
|
|
|
|
<option value="English 300">English 300</option>
|
|
|
|
<option value="English 402">English 402</option>
|
|
|
|
<option value="Demo Meeting">Demo Meeting</option>
|
2010-02-15 07:57:13 +08:00
|
|
|
</select>
|
2010-01-24 03:19:14 +08:00
|
|
|
</td>
|
2010-01-01 05:07:22 +08:00
|
|
|
</tr>
|
2010-02-15 07:57:13 +08:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="submit" value="Join" /></td>
|
|
|
|
</tr>
|
2010-01-01 05:07:22 +08:00
|
|
|
</tbody>
|
2009-12-24 10:01:26 +08:00
|
|
|
</table>
|
2010-02-15 07:57:13 +08:00
|
|
|
<INPUT TYPE=hidden NAME=action VALUE="create">
|
2009-12-24 10:01:26 +08:00
|
|
|
</FORM>
|
2010-01-01 05:07:22 +08:00
|
|
|
|
|
|
|
<%
|
2010-01-24 03:19:14 +08:00
|
|
|
} else if (request.getParameter("action").equals("create")) {
|
|
|
|
//
|
|
|
|
// Got an action=create
|
|
|
|
//
|
|
|
|
|
|
|
|
String username = request.getParameter("username");
|
|
|
|
String meetingID = request.getParameter("meetingID");
|
|
|
|
|
2010-01-24 10:11:47 +08:00
|
|
|
// String joinURL = getJoinURL(username, meetingID, "Welcome to " + meetingID );
|
|
|
|
String joinURL = getJoinURL(username, meetingID, "<br>Welcome to course: %%CONFNAME%%.<br>" );
|
2010-01-24 03:19:14 +08:00
|
|
|
|
|
|
|
if (joinURL.startsWith("http://")) {
|
2010-01-23 05:28:45 +08:00
|
|
|
%>
|
2010-01-01 05:07:22 +08:00
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
2010-01-24 03:19:14 +08:00
|
|
|
window.location.href="<%=joinURL%>";
|
2009-12-24 10:01:26 +08:00
|
|
|
</script>
|
|
|
|
|
2010-01-24 03:19:14 +08:00
|
|
|
<%
|
|
|
|
} else {
|
|
|
|
%>
|
2009-12-24 10:01:26 +08:00
|
|
|
|
2010-01-24 03:19:14 +08:00
|
|
|
Error: getJoinURL() failed
|
|
|
|
<p /><%=joinURL%> <%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%> <%@ include file="demo_footer.jsp"%>
|
2009-12-24 10:01:26 +08:00
|
|
|
</body>
|
2010-01-24 03:19:14 +08:00
|
|
|
</html>
|
|
|
|
|