2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("team.inc");
|
2002-12-04 19:14:00 +00:00
|
|
|
|
|
|
|
$authenticator = init_session();
|
2002-08-07 18:56:55 +00:00
|
|
|
db_init();
|
|
|
|
|
2002-12-04 19:14:00 +00:00
|
|
|
$user = get_user_from_auth($authenticator);
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2002-08-30 00:10:40 +00:00
|
|
|
if ($user == NULL) {
|
|
|
|
print_login_form();
|
2002-11-11 19:40:22 +00:00
|
|
|
exit();
|
2002-08-30 00:10:40 +00:00
|
|
|
}
|
2002-11-11 19:40:22 +00:00
|
|
|
|
|
|
|
page_head("Create a team");
|
|
|
|
?>
|
|
|
|
|
|
|
|
<table width=780>
|
|
|
|
<tr><td valign=top>
|
|
|
|
<p>
|
|
|
|
Use this form to create a team.
|
|
|
|
You'll become the founding member of the team.
|
|
|
|
</td></tr></table>
|
|
|
|
<p>
|
|
|
|
<form method=post action=team_create_action.php>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td valign=top>Team name (text version)
|
|
|
|
<br><font size=2>This name will be printed as-is and is the name
|
|
|
|
you should use <br>when searching for your Team.
|
|
|
|
</td>
|
|
|
|
<td valign=top><input name=name type=text size=50>
|
|
|
|
</td>
|
|
|
|
</tr><tr>
|
|
|
|
<td width=30%>Team name (HTML version)
|
|
|
|
<br><font size=2>This name will be shown as HTML,
|
|
|
|
so you may include any HTML code that you want.
|
|
|
|
If you don't know HTML, just leave this box blank.
|
|
|
|
</td>
|
|
|
|
<td valign=top><input name=name_html type=text size=50>
|
|
|
|
</td>
|
|
|
|
</tr><tr>
|
|
|
|
<td valign=top>URL of team web page, if any:<br><font size=2>(without "http://")
|
|
|
|
<br><font size=2>This URL will be linked to from the team's page.
|
|
|
|
</td>
|
|
|
|
<td valign=top><input name=url size=60>
|
|
|
|
</td>
|
|
|
|
</tr><tr>
|
|
|
|
<td valign=top>Description of team:</td>
|
|
|
|
<td valign=top><textarea name=description cols=60 rows=10></textarea></td>
|
|
|
|
</tr><tr>
|
|
|
|
<td valign=top>Type of team:</td>
|
|
|
|
<td valign=top>
|
|
|
|
<input type=radio name=type value=4 checked>Club
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=1>Small Company (< 50 employees)
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=2>Medium Company (50-1000 employees)
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=3>Large Company (> 1000 employees)
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=5>Primary School
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=6>Secondary School
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=8>Junior College
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=7>University or Department
|
|
|
|
<br>
|
|
|
|
<input type=radio name=type value=9>Government Agency
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr><td valign=top><br></td><td valign=top>
|
|
|
|
<input type=submit name=new value="Create Team">
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
page_tail();
|
2002-08-30 00:10:40 +00:00
|
|
|
?>
|