Fixed massupload and made it more useable

This commit is contained in:
katagia 2003-07-09 16:20:34 +00:00
parent db6c584126
commit 7e59efcee8
3 changed files with 335 additions and 77 deletions

View File

@ -181,6 +181,7 @@ function checkglobal($values, $type, $values_old=false) { // This functions chec
$return->general_gecos = $values->general_givenname . " " . $values->general_surname ;
$errors[] = array('INFO', _('Gecos'), _('Inserted sur- and givenname in gecos-field.'));
}
if ($values->general_group=='') $errors[] = array('ERROR', _('Primary Group'), _('No primary Group defined!'));
// Check if Username contents only valid characters
if ( !ereg('^([a-z]|[0-9]|[.]|[-]|[_])*$', $values->general_username))
$errors[] = array('ERROR', _('Username'), _('Username contents invalid characters. Valid characters are: a-z, 0-9 and .-_ !'));
@ -290,7 +291,7 @@ function checkglobal($values, $type, $values_old=false) { // This functions chec
if ( !ereg('^[a-z].*$', $values->general_username))
$errors[] = array('ERROR', _('Name'), _('Name contents invalid characters. First character must be a letter'));
// Return values and errors
if (!$errors) return array($return, '');
if (!$errors) return array($return);
else return array($return, $errors);
}
@ -374,7 +375,7 @@ function checksamba($values, $type) { // This function checks all samba account
}
else $return->smb_password = "";
// Return values and errors
if (!$errors) return array($return, '');
if (!$errors) return array($return);
else return array($return, $errors);
}
@ -401,7 +402,7 @@ function checkquota($values) { // This function checks all quota paramters
$i++;
}
// Return values and errors
if (!$errors) return array($return, '');
if (!$errors) return array($return);
else return array($return, $errors);
}

View File

@ -35,6 +35,7 @@ session_save_path('../sess');
$time=time();
if ($_POST['tolist'] && ($_FILES['userfile']['size']>0)) $select = 'list';
if ($_POST['list']) $select = 'list';
if ($_POST['back']) $select = 'main';
if ($_POST['cancel']) $select = 'cancel';
if ($_POST['create']) $select = 'create';
@ -84,8 +85,10 @@ switch ($select) {
case 'main':
if ( session_is_registered("accounts")) session_unregister("accounts");
if ( session_is_registered("pointer")) session_unregister("pointer");
if ( session_is_registered("errors")) session_unregister("errors");
session_register("accounts");
session_register("pointer");
session_register("errors");
$_SESSION['pointer']=0;
$profilelist = getUserProfiles();
echo '<tr><td><input name="select" type="hidden" value="main">';
@ -105,7 +108,18 @@ switch ($select) {
echo '</td><td><select name="f_selectprofile">';
foreach ($profilelist as $profile) echo '<option>' . $profile;
echo '</select>';
echo '</td></tr><tr><td>
echo '</td></tr>'."\n".'<tr><td>';
echo _('Suffix'); echo '</td><td><select name="f_general_suffix">';
foreach ($_SESSION['ldap']->search_units($_SESSION['config']->get_UserSuffix()) as $suffix) {
if ($_POST['f_general_suffix']) {
if ($_POST['f_general_suffix'] == $suffix)
echo '<option selected>' . $suffix. '</option>';
else echo '<option>' . $suffix. '</option>';
}
else echo '<option>' . $suffix. '</option>';
}
echo '</select></td><td><a href="help.php?HelpNumber=461" target="lamhelp">'._('Help').'</a>
</td></tr><tr><td>
<input type="hidden" name="MAX_FILE_SIZE" value="100000">';
echo _('Select file:');
echo '</td><td><input name="userfile" type="file"></td></tr>
@ -114,13 +128,17 @@ switch ($select) {
break;
case 'list':
if (!is_array($accounts)) $accounts = array();
$handle = fopen($_FILES['userfile']['tmp_name'], 'r');
$groups = array();
echo '<tr><td>';
echo _('Confirm List');
echo '</td></tr>';
if ($_FILES['userfile']['size']>0) {
$handle = fopen($_FILES['userfile']['tmp_name'], 'r');
for ($row=0; $line_array=fgetcsv($handle,2048); $row++) { // loops for every row
$iv = base64_decode($_COOKIE["IV"]);
$key = base64_decode($_COOKIE["Key"]);
$_SESSION['accounts'][$row] = loadUserProfile($_POST['f_selectprofile']) ;
$_SESSION['accounts'][$row]->general_dn = $_POST['f_general_suffix'];
if ($line_array[0]) $_SESSION['accounts'][$row]->general_surname = $line_array[0];
if ($line_array[1]) $_SESSION['accounts'][$row]->general_givenname = $line_array[1];
if ($line_array[2]) $_SESSION['accounts'][$row]->general_username = $line_array[2];
@ -134,74 +152,128 @@ switch ($select) {
if ($line_array[10]) $_SESSION['accounts'][$row]->personal_postalCode = $line_array[10];
if ($line_array[11]) $_SESSION['accounts'][$row]->personal_postalAddress = $line_array[11];
if ($line_array[12]) $_SESSION['accounts'][$row]->personal_employeeType = $line_array[12];
$_SESSION['accounts'][$row]->unix_password=genpasswd();
$_SESSION['accounts'][$row]->smb_password=genpasswd();
list($values, $errors) = checkglobal($_SESSION['accounts'][$row], 'user'); // account.inc
$_SESSION['accounts'][$row]->unix_password = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256,
$key, genpasswd(), MCRYPT_MODE_ECB, $iv));
$_SESSION['accounts'][$row]->smb_password=$_SESSION['accounts'][$row]->unix_password;
}
}
for ($row=0; $row<sizeof($_SESSION['accounts']); $row++) { // loops for every row
list($values, $_SESSION['errors'][$row]) = checkglobal($_SESSION['accounts'][$row], 'user'); // account.inc
if (is_object($values)) {
while (list($key, $val) = each($values)) // Set only defined values
if ($val) $_SESSION['accounts'][$row]->$key = $val;
$_SESSION['accounts'][$row]->general_uidNumber="";
}
if ($errors=='') {
list($values, $errors) = checkpersonal($_SESSION['accounts'][$row], 'user'); // account.inc
$error = checkunix($_SESSION['accounts'][$row], 'user'); // account.inc
$_SESSION['errors'][$row] = array_merge($_SESSION['errors'][$row], $error);
list($values, $error) = checksamba($_SESSION['accounts'][$row], 'user'); // account.inc
if (is_object($values)) {
while (list($key, $val) = each($values)) // Set only defined values
if ($val) $_SESSION['accounts'][$row]->$key = $val;
}
}
if ($errors=='') {
list($values, $errors) = checksamba($_SESSION['accounts'][$row], 'user'); // account.inc
$_SESSION['errors'][$row] = array_merge($_SESSION['errors'][$row], $error);
list($values, $error) = checkquota($_SESSION['accounts'][$row], 'user'); // account.inc
if (is_object($values)) {
while (list($key, $val) = each($values)) // Set only defined values
if ($val) $_SESSION['accounts'][$row]->$key = $val;
}
}
if ($errors=='') {
list($values, $errors) = checkquota($_SESSION['accounts'][$row], 'user'); // account.inc
$_SESSION['errors'][$row] = array_merge($_SESSION['errors'][$row], $error);
list($values, $error) = checkpersonal($_SESSION['accounts'][$row], 'user'); // account.inc
if (is_object($values)) {
while (list($key, $val) = each($values)) // Set only defined values
if ($val) $_SESSION['accounts'][$row]->$key = $val;
}
}
if ($errors=='') {
list($values, $errors) = checkpersonal($_SESSION['accounts'][$row], 'user'); // account.inc
if (is_object($values)) {
while (list($key, $val) = each($values)) // Set only defined values
if ($val) $_SESSION['accounts'][$row]->$key = $val;
}
}
if (is_array($errors))
for ($i=0; $i<sizeof($errors); $i++) StatusMessage($errors[$i][0], _('Invalid Value in row ').$row.'!', $errors[$i][2]);
if ((getgid($_SESSION['accounts'][$row]->general_group)==-1) && (!in_array($_SESSION['accounts'][$row]->general_group, $groups))) $groups[] = $_SESSION['accounts'][$row]->general_group;
$_SESSION['errors'][$row] = array_merge($_SESSION['errors'][$row], $error);
}
for ($i=0; $i<sizeof($groups); $i++)
if ($_SESSION['accounts'][$i]->general_group!='')
StatusMessage('INFO', _('Group ').
$_SESSION['accounts'][$i]->general_group._(' not found!'), _('It will be created.'));
if ($_FILES['userfile']['size']>0) {
fclose($handle);
unlink($_FILES['userfile']['tmp_name']);
}
echo '<tr><td>'._('row').'</td><td>'. _('Surname'). '</td><td>'. _('Givenname'). '</td><td>'. _('Username'). '</td><td>'. _('Primary Group'). '</td><td>'.
_('Title'). '</td><td>'. _('Mail Address'). '</td><td>'. _('Telephonenumber'). '</td><td>'. _('Mobiletelephonenumber')
. '</td><td>'. _('Facsimiletelephonenumber'). '</td><td>'. _('Street'). '</td><td>'. _('Postal Code')
. '</td><td>'. _('Postal Address'). '</td><td>'. _('Employee Type') .'</td></tr>';
_('Details'). '</td><td>' . _('Warnings'). '</td><td>' . _('Errors') . '</td></tr>';
for ($row=0; $row<sizeof($_SESSION['accounts']); $row++) { // loops for every row
echo '<tr><td>'.$row.'</td><td>'.
$_SESSION['accounts'][$row]->general_surname.'</td><td>'.
$_SESSION['accounts'][$row]->general_givenname.'</td><td>'.
$_SESSION['accounts'][$row]->general_username.'</td><td>'.
$_SESSION['accounts'][$row]->general_group.'</td><td>'.
$_SESSION['accounts'][$row]->personal_title.'</td><td>'.
$_SESSION['accounts'][$row]->personal_mail.'</td><td>'.
$_SESSION['accounts'][$row]->personal_telephoneNumber.'</td><td>'.
$_SESSION['accounts'][$row]->personal_mobileTelephoneNumber.'</td><td>'.
$_SESSION['accounts'][$row]->personal_facsimileTelephoneNumber.'</td><td>'.
$_SESSION['accounts'][$row]->personal_street.'</td><td>'.
$_SESSION['accounts'][$row]->personal_postalCode.'</td><td>'.
$_SESSION['accounts'][$row]->personal_postalAddress.'</td><td>'.
$_SESSION['accounts'][$row]->personal_employeeType.'</td></tr>';
$_SESSION['accounts'][$row]->general_group.'</td><td>
<a target=_blank href="massdetail.php?row='.$row.'&type=detail">'._('Show Details.').'</a></td><td>';
for ($i=$row+1; $i<sizeof($_SESSION['accounts']); $i++ ) {
if ($_SESSION['accounts'][$row]->general_username == $_SESSION['accounts'][$i]->general_username) { // Found user with same name
// Set Info
$_SESSION['errors'][$i][] = array('INFO', _('Warning'), _('Username in use. Selected next free username'));
// get last character of username
$lastchar = substr($_SESSION['accounts'][$i]->general_username, strlen($_SESSION['accounts'][$i]->general_username)-1, 1);
// Last character is no number
if ( !ereg('^([0-9])+$', $lastchar))
$_SESSION['accounts'][$i]->general_username = $_SESSION['accounts'][$i]->general_username . '2';
else {
$j=strlen($_SESSION['accounts'][$i]->general_username)-1;
$mark = false;
while (!$mark) {
if (ereg('^([0-9])+$',substr($_SESSION['accounts'][$i]->general_username, $j, strlen($_SESSION['accounts'][$i]->general_username)-$j))) $j--;
else $mark=true;
}
echo '<tr><td><input name="back" type="submit" value="'; echo _('Back'); echo '">';
// increase last number with one
$firstchars = substr($_SESSION['accounts'][$i]->general_username, 0, $j+1);
$lastchars = substr($_SESSION['accounts'][$i]->general_username, $j+1, strlen($_SESSION['accounts'][$i]->general_username)-$j);
$_SESSION['accounts'][$i]->general_username = $firstchars . (intval($lastchars)+1);
}
}
while ($temp = ldapexists($_SESSION['accounts'][$i], 'user')) {
// get last character of username
$lastchar = substr($_SESSION['accounts'][$i]->general_username, strlen($_SESSION['accounts'][$i]->general_username)-1, 1);
// Last character is no number
if ( !ereg('^([0-9])+$', $lastchar))
$_SESSION['accounts'][$i]->general_username = $_SESSION['accounts'][$i]->general_username . '2';
else {
$j=strlen($_SESSION['accounts'][$i]->general_username)-1;
$mark = false;
while (!$mark) {
if (ereg('^([0-9])+$',substr($_SESSION['accounts'][$i]->general_username, $j, strlen($_SESSION['accounts'][$i]->general_username)-$j))) $i--;
else $mark=true;
}
// increase last number with one
$firstchars = substr($_SESSION['accounts'][$i]->general_username, 0, $j+1);
$lastchars = substr($_SESSION['accounts'][$i]->general_username, $j+1, strlen($_SESSION['accounts'][$i]->general_username)-$j);
$_SESSION['accounts'][$i]->general_username = $firstchars . (intval($lastchars)+1);
}
}
}
if ($values->general_username != $return->general_username) $errors[] = array('WARN', _('Username'), _('Username allready in use. Selected next free username.'));
$found=false;
for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++)
if ($_SESSION['errors'][$row][$i][0] == 'INFO') $found=true;
if ($found) echo '<a target="massdetail" href="massdetail.php?row='.$row.'&type=warn">'._('Show Warnings.').'</a>';
echo '</td><td>';
$found=false;
for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++)
if ($_SESSION['errors'][$row][$i][0] == 'ERROR') $found=true;
if ($found) echo '<a target="massdetail" href="massdetail.php?row='.$row.'&type=error">'._('Show Errors.').'</a>';
echo '</td></tr>';
}
$noerrors=true;
for ($i=0; $i<sizeof($_SESSION['errors']); $i++)
for ($j=0; $j<sizeof($_SESSION['errors'][$i]); $j++)
if ($_SESSION['errors'][$i][$j][0] == 'ERROR') $noerrors=false;
$nowarn=true;
for ($i=0; $i<sizeof($_SESSION['errors']); $i++)
for ($j=0; $j<sizeof($_SESSION['errors'][$i]); $j++)
if ($_SESSION['errors'][$i][$j][0] == 'INFO') $nowarn=false;
echo '<br>';
if (!$noerrors) { echo '<tr><td>'. _('There are some errors!!') . '</td></tr>'; }
if (!$nowarn) { echo '<tr><td>'. _('There are some warnings.') . '</td></tr>'; }
echo '</table><br><table class="masscreate" width="100%">
<tr><td><input name="back" type="submit" value="'; echo _('Back'); echo '">';
echo '</td><td><input name="cancel" type="submit" value="'; echo _('Cancel'); echo '">';
echo '</td><td><input name="create" type="submit" value="'; echo _('Create'); echo '">';
echo '</td><td><input name="list" type="submit" value="'; echo _('Refresh'); echo '">';
if ($noerrors) { echo '</td><td><input name="create" type="submit" value="'; echo _('Create'); echo '">'; }
echo '</td></tr>';
break;
case 'create':
$stay=true;

View File

@ -0,0 +1,185 @@
<?php
/*
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 Tilo Lutz
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
LDAP Account Manager displays table for creating or modifying accounts in LDAP
*/
include_once('../lib/account.inc'); // File with custom functions
include_once('../lib/config.inc'); // File with configure-functions
session_save_path('../sess');
@session_start();
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>';
echo _('Create new Accounts');
echo '</title>
<link rel="stylesheet" type="text/css" href="../style/layout.css">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
</head><body>
<form enctype="multipart/form-data" action="massdetail.php" method="post">
<table class="massdetail" width="100%">
<tr><td></td></tr>';
if ($_GET) {
$row = $_GET['row'];
$select = $_GET['type'];
}
if ($_POST) {
$row = $_POST['row'];
$select = $_POST['type'];
}
if ($_POST['apply']) {
if ($_POST['f_general_surname']) $_SESSION['accounts'][$row]->general_surname = $_POST['f_general_surname'];
else $_SESSION['accounts'][$row]->general_surname='';
if ($_POST['f_general_givenname']) $_SESSION['accounts'][$row]->general_givenname = $_POST['f_general_givenname'];
else $_SESSION['accounts'][$row]->general_givenname='';
if ($_POST['f_general_username']) $_SESSION['accounts'][$row]->general_username = $_POST['f_general_username'];
else $_SESSION['accounts'][$row]->general_username='';
if ($_POST['f_general_group']) $_SESSION['accounts'][$row]->general_group = $_POST['f_general_group'];
else $_SESSION['accounts'][$row]->general_group='';
if ($_POST['f_personal_title']) $_SESSION['accounts'][$row]->personal_title = $_POST['f_personal_title'];
else $_SESSION['accounts'][$row]->personal_title='';
if ($_POST['f_personal_employeeType']) $_SESSION['accounts'][$row]->personal_employeeType = $_POST['f_personal_employeeType'];
else $_SESSION['accounts'][$row]->personal_employeeType='';
if ($_POST['f_personal_street']) $_SESSION['accounts'][$row]->personal_street = $_POST['f_personal_street'];
else $_SESSION['accounts'][$row]->personal_street='';
if ($_POST['f_personal_postalCode']) $_SESSION['accounts'][$row]->personal_postalCode = $_POST['f_personal_postalCode'];
else $_SESSION['accounts'][$row]->personal_postalCode='';
if ($_POST['f_personal_postalAddress']) $_SESSION['accounts'][$row]->personal_postalAddress = $_POST['f_personal_postalAddress'];
else $_SESSION['accounts'][$row]->personal_postalAddress='';
if ($_POST['f_personal_telephoneNumber']) $_SESSION['accounts'][$row]->personal_telephoneNumber = $_POST['f_personal_telephoneNumber'];
else $_SESSION['accounts'][$row]->personal_telephoneNumber='';
if ($_POST['f_personal_mobileTelephoneNumber']) $_SESSION['accounts'][$row]->personal_mobileTelephoneNumber = $_POST['f_personal_mobileTelephoneNumber'];
else $_SESSION['accounts'][$row]->personal_mobileTelephoneNumber='';
if ($_POST['f_personal_facsimileTelephoneNumber']) $_SESSION['accounts'][$row]->personal_facsimileTelephoneNumber = $_POST['f_personal_facsimileTelephoneNumber'];
else $_SESSION['accounts'][$row]->personal_facsimileTelephoneNumber='';
if ($_POST['f_personal_mail']) $_SESSION['accounts'][$row]->personal_mail = $_POST['f_personal_mail'];
else $_SESSION['accounts'][$row]->personal_mail='';
}
echo '<tr><td><input name="type" type="hidden" value="'.$select.'">';
echo '<tr><td><input name="row" type="hidden" value="'.$row.'">';
switch ($select) {
case 'error':
for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++)
if ($_SESSION['errors'][$row][$i][0] == 'ERROR')
StatusMessage('ERROR', _('Invalid Value!'), $_SESSION['errors'][$row][$i][2]);
break;
case 'warn':
for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++)
if ($_SESSION['errors'][$row][$i][0] == 'INFO')
StatusMessage('INFO', _('Check Value.'), $_SESSION['errors'][$row][$i][2]);
break;
case 'detail':
echo '<tr><td>';
echo _('Surname*');
echo '</td>'."\n".'<td>
<input name="f_general_surname" type="text" size="20" maxlength="20" value="' . $_SESSION['accounts'][$row]->general_surname . '">
</td><td>
<a href="help.php?HelpNumber=424" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Given name*');
echo '</td>'."\n".'<td>
<input name="f_general_givenname" type="text" size="20" maxlength="20" value="' . $_SESSION['accounts'][$row]->general_givenname . '">
</td>'."\n".'<td>
<a href="help.php?HelpNumber=425" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Username*');
echo "</td>\n<td>".
'<input name="f_general_username" type="text" size="20" maxlength="20" value="' . $_SESSION['accounts'][$row]->general_username . '">
</td><td>
<a href="help.php?HelpNumber=400" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Primary Group*');
echo "</td>\n<td>".
'<input name="f_general_group" type="text" size="20" maxlength="20" value="' . $_SESSION['accounts'][$row]->general_group . '">
</td><td>
<a href="help.php?HelpNumber=406" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Title');
echo '</td>'."\n".'<td>
<input name="f_personal_title" type="text" size="10" maxlength="10" value="' . $_SESSION['accounts'][$row]->personal_title . '"> ';
echo $_SESSION['account']->general_surname . ' ' . $_SESSION['account']->general_givenname . '</td><td>
<a href="help.php?HelpNumber=448" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Employee Type');
echo '</td>'."\n".'<td>
<input name="f_personal_employeeType" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_employeeType . '">
</td><td>
<a href="help.php?HelpNumber=449" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Street');
echo '</td>'."\n".'<td>
<input name="f_personal_street" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_street . '">
</td><td>
<a href="help.php?HelpNumber=450" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Postal code');
echo '</td>'."\n".'<td>
<input name="f_personal_postalCode" type="text" size="5" maxlength="5" value="' . $_SESSION['accounts'][$row]->personal_postalCode . '">
</td><td>
<a href="help.php?HelpNumber=451" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Postal address');
echo '</td>'."\n".'<td>
<input name="f_personal_postalAddress" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_postalAddress . '">
</td><td>
<a href="help.php?HelpNumber=452" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Telephone Number');
echo '</td>'."\n".'<td>
<input name="f_personal_telephoneNumber" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_telephoneNumber . '">
</td><td>
<a href="help.php?HelpNumber=453" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Mobile Phonenumber');
echo '</td>'."\n".'<td>
<input name="f_personal_mobileTelephoneNumber" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_mobileTelephoneNumber . '">
</td><td>
<a href="help.php?HelpNumber=454" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('Facsimile Number');
echo '</td>'."\n".'<td>
<input name="f_personal_facsimileTelephoneNumber" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_facsimileTelephoneNumber . '">
</td><td>
<a href="help.php?HelpNumber=455" target="lamhelp">'._('Help').'</a>
</td></tr>'."\n".'<tr><td>';
echo _('eMail Address');
echo '</td>'."\n".'<td>
<input name="f_personal_mail" type="text" size="30" maxlength="30" value="' . $_SESSION['accounts'][$row]->personal_mail . '">
</td><td>
<a href="help.php?HelpNumber=456" target="lamhelp">'._('Help').'</a>
</td></tr><br>';
echo '<tr><td><input name="apply" type="submit" value="'; echo _('Apply Changes'); echo '"></td><td></td><td>';
echo '<input name="undo" type="submit" value="'; echo _('Undo last Changes'); echo '"></td></tr>';
break;
}
echo '</table></form></body></html>';
?>