如何使用html,php和tinymce创建包含联系人列表的简报

时间:2013-08-09 08:40:35

标签: php html tinymce

我正在尝试创建一个可以有主题标题的新闻稿,并且有一个像地址簿这样的联系人列表,它存储在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>

1 个答案:

答案 0 :(得分:1)

为什么不使用www.mailchimp.com?只是想知道。