Location: PHPKode > projects > ConPortal > conportal/register_users.php
<?php
/*
 *  ConPortal - Pomona College ITS scheduling appplication
 *  Copyright (C) 2005-2006  Pomona College
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of version 2 of the GNU General Public License
 *  as published by the Free Software Foundation.
 *
 *  This program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once('standard.php');

xhtml_header_privileged('Register a New User', 'manage_perms');

$groups = getPrimaryGroups();
$supers = sortUsersByName(getAllSuperUsers());
$seniority = getSeniorityLevels();
?>

<form method='post' action='redirects/perms_add.php' id='addUser'>
<label for='user'>Username:</label>
    <input type='text' name='user' id='user' size='20' />
<br /><label for='first'>First:</label>
    <input type='text' name='first' id='first' size='20' />
<br /><label for='last'>Last:</label>
    <input type='text' name='last' id='last' size='20' />
<br /><label for='primary_group'>Consultant Group:</label>
    <select name='primary_group' id='primary_group'><?
    foreach ($groups as $g) {
        $i = getGroupDetails($g);
        echo "\n    <option value='$g'>".$i['description']."</option>";
    }
?>
    </select>
<br /><label for='phone'>Phone:</label>
    <input type='text' name='phone' id='phone' size='10' />
<?php
	if(BUCKNELL_OPTIONS == TRUE)
	{
		echo "<br /><label for='cell'>Cell Phone:</label>
    <input type='text' name='cell' id='cell' size='10' />";
	}
?>
<br /><label for='sn'>Screen Name:</label>
    <input type='text' name='sn' id='sn' size='20' />
<br /><label for='super'>Supervisor:</label>
    <select name='super' id='super'><?
    foreach ($supers as $s) {
        echo "\n    <option value='{$s['name']}'>{$s['name']}</option>";
    }
?>

    </select>
<br /><label for='seniority'>Seniority:</label>
    <select name='seniority' id='seniority'><?
    foreach ($seniority as $s) {
        echo "\n    <option value='".$s['pid']."'>".$s['description']."</option>";
    }
?>  
</select>

<br /><label for='return_to_page'>Register another?</label>
    <input type='checkbox' name='return_to_page' id='return_to_page' value='yes' />
<br /><input type='submit' name='add_user' value='Submit...' />&nbsp;&nbsp;
<button onclick='javascript:window.history.back(); return false'>Go back a page
</button>

<?
xhtml_footer();
?>
Return current item: ConPortal