我正在尝试创建一个可以有主题标题的新闻稿,并且有一个像地址簿这样的联系人列表,它存储在mySQL中。有三种用户类型,我希望能够将每种类型添加到他们自己的组中,并且在选择时,他们的电子邮件地址会进入“到”部分。我完全迷失了如何添加这两个功能。任何人都有任何想法?
<script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
],
});
</script>
<form method="post" action="somepage">
<textarea name="content" style="width:100%"></textarea>
</form>
然后我有了这个
的另一页<script language="JavaScript">
<!--
function autoResize(id){
var newheight;
var newwidth;
if(document.getElementById){
newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
}
document.getElementById(id).height= (newheight) + "px";
document.getElementById(id).width= (newwidth) + "px";
}
//-->
</script>
<!-- <IFRAME SRC="usagelogs/default.aspx" id="iframe1" marginheight="0" frameborder="0" onLoad="autoResize('iframe1');"></iframe>-->
<iframe width="100%" height="600px" scrolling="no" frameborder="0" align="middle" seamless="" src="newsletter.php" id="newsletterframe" name="newsletterframe" onLoad="autoResize('newsletterframe');">></iframe>