fixed problem wrong page displayd
This commit is contained in:
parent
8dc5bfcef2
commit
b17fcabc62
|
@ -41,7 +41,7 @@ if ($_POST['back']) $select = 'main';
|
||||||
if ($_POST['cancel']) $select = 'cancel';
|
if ($_POST['cancel']) $select = 'cancel';
|
||||||
if ($_POST['create']) $select = 'create';
|
if ($_POST['create']) $select = 'create';
|
||||||
if ($_POST['pdf']) {
|
if ($_POST['pdf']) {
|
||||||
createpdf($_SESSION['accounts']);
|
createUserPDF($_SESSION['accounts']);
|
||||||
$select='pdf';
|
$select='pdf';
|
||||||
}
|
}
|
||||||
if (!$select && !$_SESSION['pointer']) $select='main';
|
if (!$select && !$_SESSION['pointer']) $select='main';
|
||||||
|
@ -305,9 +305,11 @@ switch ($select) {
|
||||||
echo '<tr><td>';
|
echo '<tr><td>';
|
||||||
echo _('All Users have been created');
|
echo _('All Users have been created');
|
||||||
echo '</td></tr><tr><td>';
|
echo '</td></tr><tr><td>';
|
||||||
echo '<tr><td><input name="cancel" type="submit" value="'; echo _('Mainmenu'); echo '">';
|
echo '<tr><td><input name="cancel" type="submit" value="'; echo _('User list'); echo '">';
|
||||||
echo '</td><td></td><td><input name="pdf" type="submit" value="'; echo _('Create PDF file'); echo '">';
|
echo '</td><td></td><td><input name="pdf" type="submit" value="'; echo _('Create PDF file'); echo '">';
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
if ( isset($_SESSION['pointer'])) unset($_SESSION['pointer']);
|
||||||
|
if ( isset($_SESSION['errors'])) unset($_SESSION['errors']);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue