changed design
This commit is contained in:
parent
a8f2a82e53
commit
2cb8eb5487
|
@ -227,10 +227,11 @@ do { // X-Or, only one if() can be true
|
||||||
|
|
||||||
echo "</head><body>\n";
|
echo "</head><body>\n";
|
||||||
echo "<form action=\"groupedit.php\" method=\"post\">\n";
|
echo "<form action=\"groupedit.php\" method=\"post\">\n";
|
||||||
//echo "<table class=\"account\" width=\"100%\">\n";
|
if (is_array($errors)) {
|
||||||
//if (is_array($errors))
|
echo "<table class=\"account\" width=\"100%\">\n";
|
||||||
// for ($i=0; $i<sizeof($errors); $i++) StatusMessage($errors[$i][0], $errors[$i][1], $errors[$i][2]);
|
for ($i=0; $i<sizeof($errors); $i++) StatusMessage($errors[$i][0], $errors[$i][1], $errors[$i][2]);
|
||||||
|
echo "</table>";
|
||||||
|
}
|
||||||
// print_r($_SESSION['account']);
|
// print_r($_SESSION['account']);
|
||||||
|
|
||||||
switch ($select_local) { // Select which part of page will be loaded
|
switch ($select_local) { // Select which part of page will be loaded
|
||||||
|
@ -245,12 +246,22 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
case 'groupmembers':
|
case 'groupmembers':
|
||||||
ldapreload('user');
|
ldapreload('user');
|
||||||
echo "<input name=\"select\" type=\"hidden\" value=\"groupmembers\">\n";
|
echo "<input name=\"select\" type=\"hidden\" value=\"groupmembers\">\n";
|
||||||
|
echo "<table border=0 width=\"100%\">\n<tr><td valign=\"top\" width=\"15%\" >";
|
||||||
|
echo "<br><fieldset><legend>";
|
||||||
|
echo _('Please select page:');
|
||||||
|
echo "</legend>\n";
|
||||||
|
echo "<input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_members\" type=\"submit\" disabled value=\""; echo _('Members'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_quota\" type=\"submit\""; if (!isset($_SESSION['config']->scriptPath)) echo " disabled ";
|
||||||
|
echo "value=\""; echo _('Quota'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_final\" type=\"submit\" value=\""; echo _('Final');
|
||||||
|
echo "\"></fieldset></td>\n<td>";
|
||||||
echo "<fieldset><legend><b>". _('Additional group members') . "</b></legend>\n";
|
echo "<fieldset><legend><b>". _('Additional group members') . "</b></legend>\n";
|
||||||
echo "<table border=0 width=\"100%\">\n";
|
echo "<table border=0 width=\"100%\">\n";
|
||||||
echo "<td><fieldset><legend>";
|
echo "<tr><td><fieldset><legend>";
|
||||||
echo _('Group members');
|
echo _('Group members');
|
||||||
echo "</legend><select name=\"members[]\" size=15 multiple>\n";
|
echo "</legend><select name=\"members[]\" size=15 multiple>\n";
|
||||||
|
|
||||||
for ($i=0; $i<count($_SESSION['account']->unix_memberUid); $i++)
|
for ($i=0; $i<count($_SESSION['account']->unix_memberUid); $i++)
|
||||||
if ($_SESSION['account']->unix_memberUid[$i]!='') echo " <option>".$_SESSION['account']->unix_memberUid[$i]."</option>\n";
|
if ($_SESSION['account']->unix_memberUid[$i]!='') echo " <option>".$_SESSION['account']->unix_memberUid[$i]."</option>\n";
|
||||||
echo "</select></fieldset></td>\n";
|
echo "</select></fieldset></td>\n";
|
||||||
|
@ -265,19 +276,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
if (is_array($temp)) {
|
if (is_array($temp)) {
|
||||||
echo " <option>$temp[cn]</option>\n";
|
echo " <option>$temp[cn]</option>\n";
|
||||||
}
|
}
|
||||||
echo "</select></fieldset></td>\n</tr>\n</table>\n</fieldset>\n";
|
echo "</select></fieldset></td>\n</tr>\n</table>\n</fieldset>\n</tr>\n</table>\n";
|
||||||
echo "<table border=0 width=\"100%\">\n<tr>\n";
|
|
||||||
echo "<td>1. <input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>2. "; echo _('Members'); echo "</td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>3. <input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>4. <input name=\"next_quota\" type=\"submit\" value=\""; echo _('Quota'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>5. <input name=\"next_final\" type=\"submit\" value=\""; echo _('Final'); echo "\"></td>\n";
|
|
||||||
echo "</tr>\n</table>\n";
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'general':
|
case 'general':
|
||||||
|
@ -285,7 +284,17 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
// load list of profiles
|
// load list of profiles
|
||||||
$profilelist = getGroupProfiles();
|
$profilelist = getGroupProfiles();
|
||||||
// Show page info
|
// Show page info
|
||||||
echo "<input name=\"select\" type=\"hidden\" value=\"general\">\n";
|
echo "<table border=0 width=\"100%\">\n<tr><td valign=\"top\" width=\"15%\" >";
|
||||||
|
echo "<br><fieldset><legend>";
|
||||||
|
echo _('Please select page:');
|
||||||
|
echo "</legend>\n";
|
||||||
|
echo "<input name=\"next_general\" type=\"submit\" disabled value=\""; echo _('General'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_quota\" type=\"submit\""; if (!isset($_SESSION['config']->scriptPath)) echo " disabled ";
|
||||||
|
echo "value=\""; echo _('Quota'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_final\" type=\"submit\" value=\""; echo _('Final');
|
||||||
|
echo "\"></fieldset></td>\n<td>";
|
||||||
echo "<fieldset><legend><b>";
|
echo "<fieldset><legend><b>";
|
||||||
echo _("General properties");
|
echo _("General properties");
|
||||||
echo "</b></legend>\n<table border=0 width=\"100%\">\n<tr>\n<td>";
|
echo "</b></legend>\n<table border=0 width=\"100%\">\n<tr>\n<td>";
|
||||||
|
@ -313,7 +322,8 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
echo "</select></td>\n<td><a href=\"help.php?HelpNumber=462\" target=\"lamhelp\">"._('Help').
|
echo "</select></td>\n<td><a href=\"help.php?HelpNumber=462\" target=\"lamhelp\">"._('Help').
|
||||||
"</a></td>\n</tr>\n</table>";
|
"</a></td>\n</tr>\n</table>";
|
||||||
echo _('Values with * are required');
|
echo _('Values with * are required');
|
||||||
echo "</fieldset>\n";
|
echo "</fieldset>\n</td></tr></table>";
|
||||||
|
if (count($profilelist)!=0) {
|
||||||
echo "<fieldset><legend>";
|
echo "<fieldset><legend>";
|
||||||
echo _("Load profile");
|
echo _("Load profile");
|
||||||
echo "</legend>\n<table border=0>\n<tr>\n<td>";
|
echo "</legend>\n<table border=0>\n<tr>\n<td>";
|
||||||
|
@ -322,16 +332,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
echo "</select>\n".
|
echo "</select>\n".
|
||||||
"<input name=\"load\" type=\"submit\" value=\""; echo _('Load Profile');
|
"<input name=\"load\" type=\"submit\" value=\""; echo _('Load Profile');
|
||||||
echo "\"></td>\n</tr>\n</table>\n</fieldset>\n";
|
echo "\"></td>\n</tr>\n</table>\n</fieldset>\n";
|
||||||
echo "<table border=0 width=\"100%\">\n<tr>\n";
|
}
|
||||||
echo "<td>1. "; echo _('General'); echo "</td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>2. <input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>3. <input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>4. <input name=\"next_quota\" type=\"submit\" value=\""; echo _('Quota'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>5. <input name=\"next_final\" type=\"submit\" value=\""; echo _('Final'); echo "\"></td>\n";
|
|
||||||
echo "</tr>\n</table>\n";
|
echo "</tr>\n</table>\n";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -339,6 +340,17 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
// Samba Settings
|
// Samba Settings
|
||||||
if ($_SESSION['config']->samba3 == 'yes') $samba3domains = $_SESSION['ldap']->search_domains($_SESSION[config]->get_domainSuffix());
|
if ($_SESSION['config']->samba3 == 'yes') $samba3domains = $_SESSION['ldap']->search_domains($_SESSION[config]->get_domainSuffix());
|
||||||
echo "<input name=\"select\" type=\"hidden\" value=\"samba\">\n";
|
echo "<input name=\"select\" type=\"hidden\" value=\"samba\">\n";
|
||||||
|
echo "<table border=0 width=\"100%\">\n<tr><td valign=\"top\" width=\"15%\" >";
|
||||||
|
echo "<br><fieldset><legend>";
|
||||||
|
echo _('Please select page:');
|
||||||
|
echo "</legend>\n";
|
||||||
|
echo "<input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_samba\" type=\"submit\" disabled value=\""; echo _('Samba'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_quota\" type=\"submit\""; if (!isset($_SESSION['config']->scriptPath)) echo " disabled ";
|
||||||
|
echo "value=\""; echo _('Quota'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_final\" type=\"submit\" value=\""; echo _('Final');
|
||||||
|
echo "\"></fieldset></td>\n<td>";
|
||||||
echo "<fieldset><legend><b>"._('Samba properties')."</b></legend>\n";
|
echo "<fieldset><legend><b>"._('Samba properties')."</b></legend>\n";
|
||||||
echo "<table border=0 width=\"100%\"><tr><td>";
|
echo "<table border=0 width=\"100%\"><tr><td>";
|
||||||
echo _('Windows groupname');
|
echo _('Windows groupname');
|
||||||
|
@ -394,22 +406,22 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
else echo '<option>' . $samba3domains[$i]->name. '</option>';
|
else echo '<option>' . $samba3domains[$i]->name. '</option>';
|
||||||
}
|
}
|
||||||
echo '</select></td>'."\n".'<td><a href="help.php?HelpNumber=467" target="lamhelp">'._('Help').'</a></td></tr>'."\n";
|
echo '</select></td>'."\n".'<td><a href="help.php?HelpNumber=467" target="lamhelp">'._('Help').'</a></td></tr>'."\n";
|
||||||
echo "</table>\n</fieldset>\n";
|
echo "</table>\n</fieldset>\n</tr>\n</table>\n";
|
||||||
echo "<table border=0 width=\"100%\">\n<tr>\n";
|
|
||||||
echo "<td>2. <input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>2. <input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>3. "; echo _('Samba'); echo "</td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>4. <input name=\"next_quota\" type=\"submit\" value=\""; echo _('Quota'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>5. <input name=\"next_final\" type=\"submit\" value=\""; echo _('Final'); echo "\"></td>\n";
|
|
||||||
echo "</tr>\n</table>\n";
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'quota':
|
case 'quota':
|
||||||
// Quota Settings
|
// Quota Settings
|
||||||
|
echo "<input name=\"select\" type=\"hidden\" value=\"samba\">\n";
|
||||||
|
echo "<table border=0 width=\"100%\">\n<tr><td valign=\"top\" width=\"15%\" >";
|
||||||
|
echo "<br><fieldset><legend>";
|
||||||
|
echo _('Please select page:');
|
||||||
|
echo "</legend>\n";
|
||||||
|
echo "<input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_quota\" type=\"submit\" disabled value=\""; echo _('Quota'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_final\" type=\"submit\" value=\""; echo _('Final');
|
||||||
|
echo "\"></fieldset></td>\n<td>";
|
||||||
echo '<input name="select" type="hidden" value="quota">';
|
echo '<input name="select" type="hidden" value="quota">';
|
||||||
echo "<fieldset><legend><b>"._('Quota properties')."</b></legend>\n";
|
echo "<fieldset><legend><b>"._('Quota properties')."</b></legend>\n";
|
||||||
echo "<table border=0 width=\"100%\"><tr><td>";
|
echo "<table border=0 width=\"100%\"><tr><td>";
|
||||||
|
@ -434,23 +446,24 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
echo '<td>'.$_SESSION['account']->quota[$i][8].'</td></tr>'; // inodes grace period
|
echo '<td>'.$_SESSION['account']->quota[$i][8].'</td></tr>'; // inodes grace period
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
echo "</table>\n</fieldset>\n";
|
echo "</table>\n</fieldset>\n</tr>\n</table>\n";
|
||||||
echo "<table border=0 width=\"100%\">\n<tr>\n";
|
|
||||||
echo "<td>2. <input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>2. <input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>3. <input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>4. "; echo _('Quota'); echo "</td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>5. <input name=\"next_final\" type=\"submit\" value=\""; echo _('Final'); echo "\"></td>\n";
|
|
||||||
echo "</tr>\n</table>\n";
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'final':
|
case 'final':
|
||||||
// Final Settings
|
// Final Settings
|
||||||
echo '<input name="select" type="hidden" value="final">';
|
echo '<input name="select" type="hidden" value="final">';
|
||||||
|
echo "<input name=\"select\" type=\"hidden\" value=\"samba\">\n";
|
||||||
|
echo "<table border=0 width=\"100%\">\n<tr><td valign=\"top\" width=\"15%\" >";
|
||||||
|
echo "<br><fieldset><legend>";
|
||||||
|
echo _('Please select page:');
|
||||||
|
echo "</legend>\n";
|
||||||
|
echo "<input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_quota\" type=\"submit\""; if (!isset($_SESSION['config']->scriptPath)) echo " disabled ";
|
||||||
|
echo "value=\""; echo _('Quota'); echo "\">\n<br>";
|
||||||
|
echo "<input name=\"next_final\" type=\"submit\" disabled value=\""; echo _('Final');
|
||||||
|
echo "\"></fieldset></td>\n<td>";
|
||||||
echo "<fieldset><legend><b>";
|
echo "<fieldset><legend><b>";
|
||||||
if ($_SESSION['account_old']) echo _('Modify');
|
if ($_SESSION['account_old']) echo _('Modify');
|
||||||
else echo _('Create');
|
else echo _('Create');
|
||||||
|
@ -493,18 +506,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
||||||
else echo _('Create Account');
|
else echo _('Create Account');
|
||||||
echo '">'.
|
echo '">'.
|
||||||
'</td></tr>'."\n";
|
'</td></tr>'."\n";
|
||||||
echo "</table>\n</fieldset>\n";
|
echo "</table>\n</fieldset>\n</tr>\n</table>\n";
|
||||||
echo "<table border=0 width=\"100%\">\n<tr>\n";
|
|
||||||
echo "<td>2. <input name=\"next_general\" type=\"submit\" value=\""; echo _('General'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>2. <input name=\"next_members\" type=\"submit\" value=\""; echo _('Members'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>3. <input name=\"next_samba\" type=\"submit\" value=\""; echo _('Samba'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>4. <input name=\"next_quota\" type=\"submit\" value=\""; echo _('Quota'); echo "\"></td>\n";
|
|
||||||
echo "<td>==></td>";
|
|
||||||
echo "<td>5. "; echo _('Final'); echo "</td>\n";
|
|
||||||
echo "</tr>\n</table>\n";
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'finish':
|
case 'finish':
|
||||||
|
|
Loading…
Reference in New Issue