<?php
/**************************************************************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@Authors: Ryan Thompson(hide@address.com)
***************************************************************************/
include("./data.php");
$service['add_header'] = TRUE;
include("../config.inc.php");
include($here. "/class.admin.php");
$admin = new admin;
echo $layout->page_header;
echo $layout->service_header($text['service_name'].' - '. $lang->msgs['create_group_account'], $admin->nav_buttons());
if($_POST['add_group'])
{
$groups->add_group($_POST);
}
?>
<form action="<?php echo $_SERVER['PHP_SELF']. "?x=". $_GET['x']. "&s=". $_GET['s']?>" method="post">
<table border="0" align="center">
<tr>
<td class="input_header"><?php echo $text['group_name']?>:</td>
<td class="list_dark"><input type="text" name="group_name"></td>
</tr>
<tr>
<td class="input_header" style="vertical-align:top">
<?php echo $text['select_users']?>:<br>
(<font style="font-size: 9pt; font-weight: normal"><?php echo $text['use_ctrl_for_multi']?></font>)
</td>
<td class="list_light">
<select name="users[]" size="10" multiple>
<?php
$sql = "SELECT user_id, username FROM o_users WHERE user_id!='1'";
$db->query($sql);
while($db->fetch_results())
{
echo "<option value=\"". $db->record['user_id']."\">". $db->record['username'] ."</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td class="input_header"></td>
<td class="list_dark"><input type="submit" class="button1" name="add_group" value="<?php echo $text['create_group']?>"></td>
</tr>
</table>
<?php
echo $layout->create_footer();
?>