$listHtml .= '<ul>';
        foreach ($authArr as $k => $v) {
            $listHtml .= '<li>';
            $listHtml .= '<a href="authoreditor.php?authid=' . $k . '" target="_blank">' . $v . '</a>';
            $listHtml .= ' <input type="image" style="margin-left:5px;" src="../images/del.png" onclick="deleteRefAuthor(' . $k . ');" title="Delete author">';
            $listHtml .= '</li>';
        }
        $listHtml .= '</ul>';
    } else {
        $listHtml .= '<div><b>There are currently no authors connected with this reference.</b></div>';
    }
    echo $listHtml;
}
if ($action == "createauthor") {
    $refManager->createAuthor($firstName, $middleName, $lastName);
    $refAuthId = $refManager->getRefAuthId();
    $refManager->addAuthor($refId, $refAuthId);
    $authArr = $refManager->getRefAuthArr($refId);
    $listHtml = '';
    if ($authArr) {
        $listHtml .= '<ul>';
        foreach ($authArr as $k => $v) {
            $listHtml .= '<li>';
            $listHtml .= '<a href="authoreditor.php?authid=' . $k . '" target="_blank">' . $v . '</a>';
            $listHtml .= ' <input type="image" style="margin-left:5px;" src="../images/del.png" onclick="deleteRefAuthor(' . $k . ');" title="Delete author">';
            $listHtml .= '</li>';
        }
        $listHtml .= '</ul>';
    } else {
        $listHtml .= '<div><b>There are currently no authors connected with this reference.</b></div>';
    }