</td>
                </tr>
                <tr>
                    <td>
                        <a href="#" onmousedown="$('#template_body').val($('#template_body').val() + '<?php 
echo '<?php ?>';
?>
'); return false;" onclick="return false;">&lt;?php  ?&gt;</a>
                    </td>
                    <td>
                        code evaluated at send time
                    </td>
                </tr>
                <?php 
$x = 0;
$fields = module_newsletter::get_replace_fields();
foreach ($fields as $key => $val) {
    ?>
                <tr>
                    <td>
                        <a href="#" onmousedown="$('#template_body').val($('#template_body').val() + '{<?php 
    echo $key;
    ?>
}'); return false;" onclick="return false;"><?php 
    echo '{' . htmlspecialchars($key) . '}';
    ?>
</a>
                    </td>
                    <td>
                       <?php 
    echo htmlspecialchars($val);
Ejemplo n.º 2
0
                        </td>
                    </tr>
                    <?php 
}
?>
                    </tbody>
                </table>

                <?php 
print_heading(array('type' => 'h3', 'title' => 'Preview Dynamic Fields:'));
?>
                <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_form tbl_fixed">
                <tbody>
                    <?php 
$x = 0;
$fields = module_newsletter::get_replace_fields($newsletter_id, $send_id, $first_newsletter_member_id);
foreach ($fields as $key => $val) {
    ?>
                    <tr>
                        <td width="30">
                            <?php 
    if ($x > 4) {
        foreach (array_keys($extra_fields) as $extra_field) {
            if (strtoupper($extra_field) == $key) {
                ?>
                                           <input type="checkbox" name="f[]" value="<?php 
                echo htmlspecialchars($key);
                ?>
" <?php 
                echo isset($display_extra_fields[$key]) ? 'checked' : '';
                ?>