当前位置: 首页>>代码示例>>PHP>>正文


PHP NewsletterControls::init方法代码示例

本文整理汇总了PHP中NewsletterControls::init方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::init方法的具体用法?PHP NewsletterControls::init怎么用?PHP NewsletterControls::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NewsletterControls的用法示例。


在下文中一共展示了NewsletterControls::init方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: newsletter_get_theme_css_url

/",
        content_css: "<?php 
echo newsletter_get_theme_css_url($nc->data['theme']) . '?' . time();
?>
"
    });
</script>


<div class="wrap">

    <h2>Email Composer</h2>

    <form method="post" action="admin.php?page=newsletter/emails-edit.php">
        <?php 
$nc->init();
?>
        <?php 
$nc->hidden('id');
?>
        <?php 
$nc->hidden('status');
?>

        <table class="form-table">

            <tr valign="top">
                <th>Theme</th>
                <td>
                    <?php 
$nc->select_grouped('theme', array(array_merge(array('' => 'Custom themes'), newsletter_get_themes()), $themes, $themes_panel));
开发者ID:rajveerbeniwal,项目名称:rooms-dhkh,代码行数:31,代码来源:emails-edit.php

示例2:

            <a class="add-new-h2" href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-themes" target="_blank">Custom themes</a>
        </h2>
    </div>

    <div class="newsletter-separator"></div>

    <?php 
$controls->show();
?>

    <form method="post" id="newsletter-form" action="<?php 
echo $module->get_admin_page_url('new');
?>
">
        <?php 
$controls->init();
?>
        <?php 
$controls->hidden('theme');
?>
        <?php 
foreach ($themes as $key => &$data) {
    ?>
            <div class="tnp-theme-preview">
                <p><?php 
    echo $data['name'];
    ?>
</p>
                <a href="#" onclick="var f = document.getElementById('newsletter-form');
                        f.act.value = 'theme';
                        f.elements['options[theme]'].value = '<?php 
开发者ID:jekv,项目名称:devia,代码行数:31,代码来源:theme.php

示例3:

?>
</h2>
    
    </div>

	<div id="tnp-body">

    <?php 
if ($controls->data['status'] == 'S') {
    echo '<div class="newsletter-message">Warning! This email is configured to be sent to NOT CONFIRMED subscribers.</div>';
}
?>

    <form method="post" action="" id="newsletter-form">
        <?php 
$controls->init(array('cookie_name' => 'newsletter_emails_edit_tab'));
?>

        <p class="submit">
            <?php 
$controls->button_back('?page=newsletter_emails_index');
?>
            <?php 
if ($email['status'] != 'sending') {
    $controls->button_save();
}
?>
            <?php 
if ($email['status'] != 'sending' && $email['status'] != 'sent') {
    $controls->button_confirm('test', 'Save and test', 'Save and send test emails to test addresses?');
}
开发者ID:radikalportal,项目名称:radikalportal,代码行数:31,代码来源:edit.php


注:本文中的NewsletterControls::init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。