$anz_dienst = ermittle_typ_anruf($daten['dienst']);
 //TEMPLATE FUELLEN ANFANG:
 if ($show_entry_msns) {
     if ($i % 2 == 0) {
         $color = $row_color_1;
     } else {
         $color = $row_color_2;
     }
     if ($daten['rufnummer'] == "unknown") {
         $daten['rufnummer'] = $textdata['unknown'];
     }
     $template->assign_block_vars('tab1', array('DATA_ROW_COLOR' => $color, 'DATA_SHOW_SINGEL_STAT' => $anz_statistik, 'DATA_SHOW_DATE' => $anz_datum, 'DATA_SHOW_CLOCK' => $daten['uhrzeit'], 'DATA_SHOW_NUMBER' => $anz_rufnr, 'DATA_SHOW_CALLERS_NAME' => $anz_name, 'DATA_TO_ADDR' => $anz_insaddr));
     if ($_SESSION['show_sfcallnr'] && !empty($sfcallnr)) {
         $template->assign_block_vars('tab1.show_sfcallnr', array('DATA_NUMBERTOSF' => $sfcallnr));
     }
     if ($config['capisuite'] && $_SESSION['cs_user'] != "" && check_cs_username($_SESSION['cs_user']) == 0 && $_SESSION['show_linktoam']) {
         $template->assign_block_vars('tab1.show_cs_ab', array('DATA_SHOW_AB' => $anz_ab));
     }
     if ($_SESSION['show_type']) {
         $template->assign_block_vars('tab1.show_call_typ', array('DATA_CALLERS_TYP' => $anz_dienst));
     }
     if ($_SESSION['show_prefix']) {
         $template->assign_block_vars('tab1.show_prefix', array('DATA_SHOW_PREFIX' => $anz_vorwahl));
     }
     if ($_SESSION['show_msn']) {
         $template->assign_block_vars('tab1.show_msn', array('DATA_SHOW_MSN' => $anz_msn));
     }
     if ($_SESSION['show_callback']) {
         $template->assign_block_vars('tab1.show_call_back', array('DATA_SHOW_CALL_BACK' => $anz_rueckruf));
     }
     if ($_SESSION['allow_delete']) {
    email                : jonas.genannt@capi2name.de
 ***************************************************************************/
/***************************************************************************
 *                                                                         *
 *   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     *
 *   any later version.                                                    *
 *                                                                         *
 ***************************************************************************/
$seite = base64_encode("cs_answerphone.php");
include "./login_check.inc.php";
include "./header.inc.php";
$template->set_filenames(array('overall_body' => 'templates/' . $_SESSION['template'] . '/cs_answerphone.tpl'));
$template->assign_vars(array('L_SITE_TITLE' => $textdata['cs_ap_answerphone']));
if ($_SESSION['cs_user'] == "" or check_cs_username($_SESSION['cs_user']) != 0) {
    $template->assign_block_vars('user_error', array('L_USER_NOT_FOUND' => $textdata['cs_user_not_found']));
    $template->pparse('overall_body');
    include "./footer.inc.php";
    die;
}
if (isset($_GET['del']) && $_SESSION['allow_delete']) {
    $dataB->sql_connect($sql["host"], $sql["dbuser"], $sql["dbpasswd"], $sql["db"]);
    $sql_query = sprintf("UPDATE capisuite SET aktive='0' WHERE id=%s", $dataB->sql_checkn($_GET['del']));
    $result = $dataB->sql_query($sql_query);
    $dataB->sql_close();
}
$template->assign_block_vars('tab1', array('CS_AP_LIST' => $textdata['cs_ap_liste'], 'CS_AP_TIME' => $textdata['stat_anrufer_uhrzeit'], 'CS_AP_DATE' => $textdata['stat_anrufer_datum'], 'CS_AP_NR' => $textdata['stat_anrufer_rufnummer'], 'CS_AP_MSN' => $textdata['stat_anrufer_MSN'], 'CS_AP_NAME' => $textdata['showstatnew_name'], 'CS_PLAY' => $textdata['cs_ap_play']));
if ($_SESSION['allow_delete']) {
    $template->assign_block_vars('tab1.del', array('L_DELETE' => $textdata['showstatnew_loeschen']));
}