<?php
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
$query = "SELECT * FROM contactform_header WHERE id = ".$fieldSetup['option_string'];
$result = @mysqli_query($GLOBALS['mysql_con'], $query);
$row = @mysqli_fetch_array($result);
?>
<h2><?php echo $translation->get("contactform_options"); ?> : <?= $row['description']; ?></h2>
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
 
    <tr>
            <input type="hidden" name="header_id<?=$fieldSetup['id']?>" value="<?=$fieldSetup['option_string']?>">
        <td>
        <? input($translation->get("recipient_name"), "receiver_name".$fieldSetup['id'], "text", isset($dataLinked["receiver_name"]) ? $dataLinked["receiver_name"] : $row['recipient_name'], 255) ?>
            <? input($translation->get("recipient_email"), "receiver_email".$fieldSetup['id'], "text", isset($dataLinked["receiver_email"]) ? $dataLinked["receiver_email"] : $row['recipient_email'], 255) ?>
        </td>
    </tr>
</table>