2 require('../conf/config.php3');
4 header("Location: group_admin.php3?login=$login");
8 if ($config[general_lib_type] != 'sql'){
10 <title>New group creation page</title>
11 <meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
12 <link rel="stylesheet" href="style.css">
16 <b>This page is only available if you are using sql as general library type</b>
23 require('../lib/attrshow.php3');
24 require('../lib/defaults.php3');
25 require("../lib/$config[general_lib_type]/group_info.php3");
27 if ($config[general_lib_type] == 'sql' && $config[sql_use_operators] == 'true'){
39 <title>New group creation page</title>
40 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
41 <link rel="stylesheet" href="style.css">
45 <table border=0 width=550 cellpadding=0 cellspacing=0>
47 <td align=center><img src="images/title2.gif"></td>
52 <table border=0 width=540 cellpadding=1 cellspacing=1>
55 <td bgcolor="black" width=200>
56 <table border=0 width=100% cellpadding=2 cellspacing=0>
57 <tr bgcolor="#907030" align=right valign=top><th>
58 <font color="white">Preferences for new group</font>
62 <tr bgcolor="black" valign=top><td colspan=2>
63 <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
67 if (is_file("../lib/$config[general_lib_type]/group_info.php3"))
68 include("../lib/$config[general_lib_type]/group_info.php3");
70 if ($group_exists != "no"){
72 <b>The group <i>$login</i> already exists in the group database</b>
76 if (is_file("../lib/$config[general_lib_type]/create_group.php3"))
77 include("../lib/$config[general_lib_type]/create_group.php3");
78 if (is_file("../lib/$config[general_lib_type]/group_info.php3"))
79 include("../lib/$config[general_lib_type]/group_info.php3");
84 <input type=hidden name=create value="0">
85 <input type=hidden name=show value="0">
86 <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
90 <td align=right colspan=$colspan bgcolor="#d0ddb0">
94 if (!isset($existing_groups))
95 echo "<b>No groups available</b>\n";
97 echo "<select name=\"existing_groups\">\n";
98 foreach ($existing_groups as $group => $count)
99 echo "<option value=\"$group\">$group\n";
106 <td align=right colspan=$colspan bgcolor="#d0ddb0">
109 <input type=text name="login" value="$login" size=35>
113 <td align=right colspan=$colspan bgcolor="#d0ddb0">
114 First member(s)<br>Separate group members<br> by whitespace or newline
116 <textarea name=members cols="15" wrap="PHYSICAL" rows=5></textarea>
121 foreach($show_attrs as $key => $desc){
122 $name = $attrmap["$key"];
125 $oper_name = $name . '_op';
126 $val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0];
129 <td align=right bgcolor="#d0ddb0">
137 <select name=$oper_name>
138 <option selected value="=">=
139 <option value=":=">:=
140 <option value="+=">+=
141 <option value="==">==
142 <option value="!=">!=
143 <option value=">">>
144 <option value=">=">>=
145 <option value="<"><
146 <option value="<="><=
147 <option value="=~">=~
148 <option value="!~">!~
156 <input type=text name="$name" value="$val" size=35>
164 <input type=submit class=button value="Create" OnClick="this.form.create.value=1">
166 <input type=submit class=button value="Show Group" OnClick="this.form.show.value=1">