0)) $select = 'list';
if ($_POST['back']) $select = 'main';
if ($_POST['cancel']) $select = 'cancel';
if ($_POST['create']) $select = 'create';
if ($_POST['pdf']) {
createpdf($_SESSION['accounts']);
$select='pdf';
}
if (!$select && !$_SESSION['pointer']) $select='main';
if (!$select && $_SESSION['pointer']) $select='create';
if ($select!='pdf') {
// Write HTML-Header and part of Table
echo '';
echo '
';
echo _('Create new Accounts');
echo '
';
}
switch ($select) {
case 'cancel':
if ( session_is_registered("accounts")) session_unregister("accounts");
if ( session_is_registered("pointer")) session_unregister("pointer");
echo '';
break;
case 'create':
if ($_SESSION['pointer'] < sizeof($_SESSION['accounts'])) {
$refresh = get_cfg_var('max_execution_time')-5;
echo '';
}
break;
}
if ($select!='pdf') {
echo '
';
?>