示例#1
0
}
// Run the save draft method in every 30 seconds
window.setInterval("fnSaveDraft()", 30000);

$(document).ready(function() {;
    //$("#editor_bodyhtml_iframe").css("height","80px");
});
//]]>
</script>
<?php 
echo _('Select an email template');
echo '<form id="select_email_template"><select name="idtemplate" onchange=\'$("#select_email_template").submit();\'><option value="0"></option><option value="0">' . _('New Template') . '</option>';
$template_list = new EmailTemplateUser();
$template_list->query('SELECT * FROM ' . $template_list->getTable() . ' WHERE iduser='******'do_User']->iduser . ' AND name <> \'\'');
while ($template_list->next()) {
    echo '<option value="' . $template_list->getPrimaryKeyValue() . '">' . $template_list->name . '</option>';
}
?>
		</select>
		</form><a href=""><?php 
echo _('Manage your templates');
?>
</a><br />
		<?php 
echo _('Insert a merge field');
?>
		<form id="select_merge_field">
		<select name="merge_fields" onchange="fnInsertMergeField(this)">
		    <option value="0"><?php 
echo _('merge field');
?>