boinc/html/user/team_create_form.php

82 lines
2.0 KiB
PHP
Raw Normal View History

<?php
require_once("util.inc");
require_once("team.inc");
db_init();
$user = get_user_from_cookie();
if ($user == NULL) {
print_login_form();
exit();
}
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();
?>