6c060e5592
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3463 af16638f-c34d-0410-8cfa-b39d5352b314
114 lines
3.0 KiB
Plaintext
Executable File
114 lines
3.0 KiB
Plaintext
Executable File
<!--
|
|
|
|
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">
|
|
<title>Join a Selected Course</title>
|
|
</head>
|
|
<body>
|
|
|
|
<%@ include file="bbb_api.jsp"%>
|
|
|
|
<br>
|
|
|
|
<%
|
|
if (request.getParameterMap().isEmpty()) {
|
|
//
|
|
// Assume we want to create a meeting
|
|
//
|
|
%>
|
|
<a href="demo1.jsp">Join a Course</a>
|
|
|
|
|
<a href="demo2.jsp">Join a Selected Course</a>
|
|
|
|
|
<a href="demo3.jsp">Create Your Own Meeting</a>
|
|
|
|
|
<a href="/">Home</a>
|
|
|
|
<h2>Demo #2: Join a Selected Course</h2>
|
|
|
|
|
|
<FORM NAME="form1" METHOD="GET">
|
|
|
|
<table width=600 cellspacing="20" cellpadding="20"
|
|
style="border-collapse: collapse; border-right-color: rgb(136, 136, 136);"
|
|
border=3>
|
|
<tbody>
|
|
<tr>
|
|
<td width="50%">Join a Selected Course.</td>
|
|
|
|
<td width="50%">
|
|
|
|
<p />Enter your name: <input type="text" name="username" /> <br />
|
|
|
|
<INPUT TYPE=hidden NAME=action VALUE="create">
|
|
<p />Course: <select name="meetingID">
|
|
<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>
|
|
</select>
|
|
<p /><br />
|
|
<input type="submit" value="Join" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</FORM>
|
|
|
|
<%
|
|
} else if (request.getParameter("action").equals("create")) {
|
|
//
|
|
// Got an action=create
|
|
//
|
|
|
|
String username = request.getParameter("username");
|
|
String meetingID = request.getParameter("meetingID");
|
|
|
|
// String joinURL = getJoinURL(username, meetingID, "Welcome to " + meetingID );
|
|
String joinURL = getJoinURL(username, meetingID, "<br>Welcome to course: %%CONFNAME%%.<br>" );
|
|
|
|
if (joinURL.startsWith("http://")) {
|
|
%>
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
window.location.href="<%=joinURL%>";
|
|
</script>
|
|
|
|
<%
|
|
} else {
|
|
%>
|
|
|
|
Error: getJoinURL() failed
|
|
<p /><%=joinURL%> <%
|
|
}
|
|
}
|
|
%> <%@ include file="demo_footer.jsp"%>
|
|
</body>
|
|
</html>
|
|
|