本文整理汇总了PHP中NewsletterControls::button_confirm方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::button_confirm方法的具体用法?PHP NewsletterControls::button_confirm怎么用?PHP NewsletterControls::button_confirm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::button_confirm方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
}
}
?>
</small>
</td>
<?php
}
?>
<td>
<a class="button-secondary" href="admin.php?page=newsletter_users_edit&id=<?php
echo $s->id;
?>
">Edit</a>
<?php
$controls->button_confirm('remove', 'Remove', 'Proceed?', $s->id);
?>
<?php
//$controls->button('status', 'Confirm', 'newsletter_set_status(this.form,' . $s->id . ',\'C\')');
?>
<?php
//$controls->button('status', 'Unconfirm', 'newsletter_set_status(this.form,' . $s->id . ',\'S\')');
?>
<?php
$controls->button_confirm('resend', 'Resend confirmation', 'Proceed?', $s->id);
?>
<?php
$controls->button_confirm('resend_welcome', 'Resend welcome', 'Proceed?', $s->id);
?>
示例2:
</div>
</td>
</tr>
-->
</table>
<p class="submit">
<?php
if ($nc->data['status'] != 'sending') {
$nc->button('save', 'Save');
}
?>
<?php
if ($nc->data['status'] != 'sending') {
$nc->button_confirm('test', 'Save and test', 'Save and send test emails to test addresses?');
}
?>
<?php
if ($nc->data['status'] == 'new') {
$nc->button_confirm('send', 'Send', 'Start a real delivery?');
}
?>
<?php
if ($nc->data['status'] == 'sending') {
$nc->button_confirm('pause', 'Pause', 'Pause the delivery?');
}
?>
<?php
if ($nc->data['status'] == 'paused') {
示例3:
</p>
</div>
<?php
}
?>
<p>
<a href="<?php
echo $module->get_admin_page_url('theme');
?>
" class="button"><?php
_e('New newsletter', 'newsletter');
?>
</a>
<?php
$controls->button_confirm('delete_selected', __('Delete selected newsletters', 'newsletter'), __('Proceed?', 'newsletter'));
?>
<?php
$controls->button('send', __('Trigger the delivery engine', 'newsletter'));
?>
</p>
<table class="widefat" style="width: auto">
<thead>
<tr>
<th> </th>
<th>Id</th>
<th><?php
_e('Subject', 'newsletter');
?>
</th>
<th><?php
示例4:
<th>Subscription form style</th>
<td>
<?php
$controls->select('style', $module->get_styles());
?>
</td>
</tr>
<tr>
<th>Widget style</th>
<td>
<?php
$controls->select('widget_style', $module->get_styles());
?>
</td>
</tr>
</table>
</div>
</div>
<p>
<?php
$controls->button_save();
?>
<?php
$controls->button_confirm('reset', 'Reset all', 'Are you sure you want to reset all?');
?>
</p>
</form>
</div>
示例5:
?>
<form method="post" action="" id="newsletter-form">
<?php
$controls->init();
?>
<p class="submit">
<?php
if ($email['status'] != 'sending' && $email['status'] != 'sent') {
$controls->button('save', 'Save');
}
?>
<?php
if ($email['status'] != 'sending' && $email['status'] != 'sent') {
$controls->button_confirm('test', 'Save and test', 'Save and send test emails to test addresses?');
}
?>
<?php
if ($email['status'] == 'new') {
$controls->button_confirm('send', 'Send', 'Start a real delivery?');
}
?>
<?php
if ($email['status'] == 'sending') {
$controls->button_confirm('pause', 'Pause', 'Pause the delivery?');
}
?>
<?php
if ($email['status'] == 'paused') {
示例6:
}
?>
<td>
<a class="button-secondary" href="<?php
echo $module->get_admin_page_url('edit');
?>
&id=<?php
echo $s->id;
?>
"><?php
_e('Edit', 'newsletter-users');
?>
</a>
<?php
$controls->button_confirm('remove', __('Remove', 'newsletter-users'), __('Proceed?', 'newsletter-users'), $s->id);
?>
<?php
//$controls->button('status', 'Confirm', 'newsletter_set_status(this.form,' . $s->id . ',\'C\')');
?>
<?php
//$controls->button('status', 'Unconfirm', 'newsletter_set_status(this.form,' . $s->id . ',\'S\')');
?>
<?php
$controls->button_confirm('resend', __('Resend confirmation', 'newsletter-users'), __('Proceed?', 'newsletter-users'), $s->id);
?>
<?php
$controls->button_confirm('resend_welcome', __('Resend welcome', 'newsletter-users'), __('Proceed?', 'newsletter-users'), $s->id);
?>
示例7: count
</th>
</tr>
</thead>
<tr>
<td><?php
_e('Total collected emails', 'newsletter');
?>
</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . NEWSLETTER_USERS_TABLE);
?>
</td>
<td nowrap>
<?php
$controls->button_confirm('remove_all', __('Delete all', 'newsletter'), __('Are you sure you want to remove ALL subscribers?', 'newsletter'));
?>
</td>
</tr>
<tr>
<td><?php
_e('Confirmed', 'newsletter');
?>
</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . NEWSLETTER_USERS_TABLE . " where status='C'");
?>
</td>
<td nowrap>
<?php
示例8: count
<li><a href="#tabs-4">Bounces</a></li>
</ul>
<div id="tabs-1">
<table class="widefat" style="width: 300px;">
<thead><tr><th>Status</th><th>Total</th><th>Actions</th></thead>
<tr>
<td>Total in database</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . NEWSLETTER_USERS_TABLE);
?>
</td>
<td nowrap>
<?php
$controls->button_confirm('remove_all', 'Delete all', 'Are you sure you want to remove ALL subscribers?');
?>
</td>
</tr>
<tr>
<td>Confirmed</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . NEWSLETTER_USERS_TABLE . " where status='C'");
?>
</td>
<td nowrap>
<?php
$controls->button_confirm('unconfirm_all', 'Unconfirm all', 'Are you sure? No way back.');
?>
</td>
示例9:
<?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?');
}
?>
<?php
if ($email['status'] == 'new') {
$controls->button_confirm('send', __('Send', 'newsletter'), __('Start real delivery?', 'newsletter'));
}
?>
<?php
if ($email['status'] == 'sending') {
$controls->button_confirm('pause', __('Pause', 'newsletter'), __('Pause the delivery?', 'newsletter'));
}
?>
<?php
if ($email['status'] == 'paused') {
示例10:
<?php
//$controls->button('unconvert', 'Unconvert (DEBUG)');
?>
</p>
</div>
<?php
}
?>
<p>
<a href="<?php
echo $module->get_admin_page_url('theme');
?>
" class="button">New message</a>
<?php
$controls->button_confirm('delete_selected', 'Delete selected messages', 'Proceed?');
?>
<?php
$controls->button('send', 'Trigger the delivery engine');
?>
</p>
<table class="widefat" style="width: auto">
<thead>
<tr>
<th> </th>
<th>Id</th>
<th>Subject</th>
<th>Status</th>
<th>Progress<sup>*</sup></th>
<th>Date</th>
示例11: long
controller that will kill PHP scripts if they run too long (like
fastcgi). Time limit can be a problem while using external SMTPs, if they are slow. Newsletter
Pro, while sending, continously check the time limit and stops it self as the timeout is approaching.
</div>
</td>
</tr>
<tr valign="top">
<th>Memory limit</th>
<td>
<?php
echo @ini_get('memory_limit');
?>
<div class="hints">
Newsletter Pro tries (as does WordPress on admin side) to raise the memory limit to
256 megabytes while sending.
</div>
</td>
</tr>
</table>
<p class="submit">
<?php
$nc->button_confirm('remove', 'Totally remove this plugin', 'Really sure to totally remove this plugin. All data will be lost!');
?>
</p>
</form>
<p></p>
</div>
示例12: array
<td colspan="2"><h3><?php
_e('Import already registered users', 'newsletter');
?>
</h3></td>
</tr>
<tr>
<th><?php
_e('Import with status', 'newsletter');
?>
</th>
<td>
<?php
$controls->select('align_wp_users_status', array('C' => __('Confirmed', 'newsletter'), 'S' => __('Not confirmed', 'newsletter')));
?>
<?php
$controls->button_confirm('align_wp_users', __('Import', 'newsletter'), __('Proceed?', 'newsletter'));
?>
<p class="description">
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/subscribers-module#import-wp-users" target="_blank">
<?php
_e('Please, carefully read the documentation before taking this action!', 'newsletter');
?>
</a>
</p>
</td>
</tr>
</table>
<p>
<?php
$controls->button_save();
?>
示例13: count
echo $wpdb->get_var("select count(*) from " . $wpdb->prefix . "newsletter where status='C'");
?>
</td>
<td nowrap>
</td>
</tr>
<tr>
<td>Not confirmed</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . $wpdb->prefix . "newsletter where status='S'");
?>
</td>
<td nowrap>
<?php
$nc->button_confirm('remove_unconfirmed', 'Delete all not confirmed', 'Are you sure you want to delete ALL not confirmed subscribers?');
?>
<?php
$nc->button_confirm('confirm_all', 'Confirm all', 'Are you sure you want to mark ALL subscribers as confirmed?');
?>
</td>
</tr>
<tr>
<td>Subscribed to feed by mail</td>
<td nowrap>
<?php
echo $wpdb->get_var("select count(*) from " . $wpdb->prefix . "newsletter where status='C' and feed=1");
?>
(only for <a href="http://www.satollo.net/plugins/newsletter" target="_blank">Newsletter Pro</a>)
</td>
<td nowrap>