$row->AddViewField("VOTE_USER_ID", "<a title=\"" . GetMessage("VOTE_USER_LIST_TITLE") . "\" href=\"vote_user_list.php?lang=" . LANGUAGE_ID . "&find_id={$f_VOTE_USER_ID}&set_filter=Y\">{$f_VOTE_USER_ID}</a>");
    if (CModule::IncludeModule("statistic")) {
        $row->AddViewField("STAT_SESSION_ID", "<a title=\"" . GetMessage("VOTE_SESSIONU_LIST_TITLE") . "\" href=\"session_list.php?lang=" . LANGUAGE_ID . "&find_id={$f_STAT_SESSION_ID}&set_filter=Y\">{$f_STAT_SESSION_ID}</a>");
    }
    if (strlen($f_TITLE) > 0) {
        $txt = "[<a title='" . GetMessage("VOTE_EDIT_TITLE") . "' href='vote_edit.php?lang=" . LANGUAGE_ID . "&ID={$f_VOTE_ID}'>{$f_VOTE_ID}</a>] {$f_TITLE}";
    } elseif ($f_DESCRIPTION_TYPE == "html") {
        $txt = "[<a title='" . GetMessage("VOTE_EDIT_TITLE") . "' href='vote_edit.php?lang=" . LANGUAGE_ID . "&ID={$f_VOTE_ID}'>{$f_VOTE_ID}</a>] " . TruncateText(strip_tags(htmlspecialcharsback($f_DESCRIPTION)), 50);
    } else {
        $txt = "[<a href='vote_edit.php?lang=" . LANGUAGE_ID . "&ID={$f_VOTE_ID}'>{$f_VOTE_ID}</a>] " . TruncateText($f_DESCRIPTION, 50);
    }
    $row->AddViewField("TITLE", $txt);
    foreach ($arAllQuestions as $arQuestion) {
        $txt = '';
        foreach ($arQuestion["ANSWERS"] as $arAnswer) {
            if ($msg = CVoteEvent::GetAnswer($arRes['ID'], $arAnswer['ID'])) {
                if ($arAnswer['FIELD_TYPE'] < 4 && intval($msg) > 0) {
                    $msg = $arAnswer['MESSAGE'];
                }
                $txt .= htmlspecialcharsbx($msg) . '<br />';
            }
        }
        $row->AddViewField("Q" . $arQuestion["ID"], $txt);
    }
    $arActions = array();
    $arActions[] = array("DEFAULT" => true, "ICON" => "view", "TEXT" => GetMessage("VOTE_RESULT"), "ACTION" => $lAdmin->ActionRedirect("vote_user_results_table.php?lang=" . LANGUAGE_ID . "&EVENT_ID=" . $f_ID));
    if ($VOTE_RIGHT == "W") {
        $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("VOTE_DELETE_U"), "ACTION" => $lAdmin->ActionRedirect("javascript:if(confirm('" . GetMessage("VOTE_DELETE_CONFIRMATION") . "')) window.location='?lang=" . LANGUAGE_ID . "&action=delete&VOTE_ID={$VOTE_ID}&ID={$f_ID}&" . bitrix_sessid_get() . "'"));
    }
    $row->AddActions($arActions);
}
                echo $field_name;
                ?>
" value="<?php 
                echo htmlspecialcharsbx($value);
                ?>
" size="<?php 
                echo $arAnswer["FIELD_WIDTH"];
                ?>
" <?php 
                echo $arAnswer["FIELD_PARAM"];
                ?>
><?php 
                break;
            case 5:
                $field_name = "vote_memo_" . $arAnswer["ID"];
                $text = CVoteEvent::GetAnswer($EVENT_ID, $arAnswer["ID"]);
                ?>
<font class="text"><?php 
                if (strlen(trim($arAnswer["MESSAGE"])) > 0) {
                    echo $arAnswer["MESSAGE"] . "<br>";
                }
                ?>
</font><textarea name="<?php 
                echo $field_name;
                ?>
" <?php 
                echo $arAnswer["FIELD_PARAM"];
                ?>
 cols="<?php 
                echo $arAnswer["FIELD_WIDTH"];
                ?>