本文整理汇总了PHP中NewsletterControls::checkbox方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::checkbox方法的具体用法?PHP NewsletterControls::checkbox怎么用?PHP NewsletterControls::checkbox使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::checkbox方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
<table class="form-table">
<tr valign="top">
<th><?php
_e('Import Subscribers As', 'newsletter');
?>
</th>
<td>
<?php
$controls->select('import_as', array('C' => __('Confirmed', 'newsletter'), 'S' => __('Not confirmed', 'newsletter')));
?>
<br>
<?php
$controls->checkbox('override_status', __('Override status of existing users', 'newsletter'));
?>
</td>
</tr>
<tr valign="top">
<th>Import mode</th>
<td>
<?php
$controls->select('mode', array('update' => 'Update', 'overwrite' => 'Overwrite', 'skip' => 'Skip'));
?>
if email is already present
<div class="hints">
<strong>Update</strong>: <?php
_e('user data will be updated, existing preferences will be left untouched and new ones will be added.', 'newsletter');
?>
示例2: array
}
?>
<?php
$controls->select('search_order', $order_fields);
?>
<?php
$controls->select('search_limit', array(100 => 'Max 100 results', '1000' => 'Max 1000 result', '' => 'No limit'));
?>
<?php
$controls->select('search_list', $lists);
?>
<?php
$controls->checkbox('search_test');
?>
Test subscribers
<br />
<?php
_e('show clicks', 'newsletter');
?>
: <?php
$controls->yesno('search_clicks');
?>
who clicked:
<?php
$controls->select('search_link', $links);
?>
<div class="hints">
示例3:
</td>
</tr>
</table>
<h3>Special cases</h3>
<table class="form-table">
<tr valign="top">
<th>Already subscribed page content</th>
<td>
<?php
$controls->wp_editor('already_confirmed_text');
?>
<br>
<?php
$controls->checkbox('resend_welcome_email_disabled', 'Do not resend the welcome email');
?>
<p class="description">
Shown when the email is already subscribed and confirmed. The welcome email, if not disabled, will
be sent. Find out more on this topic on its
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/subscription-module#repeated" target="_blank">documentation page</a>.
</p>
</td>
</tr>
<tr valign="top">
<th>Error page content</th>
<td>
<?php
$controls->wp_editor('error_text');
?>
<p class="description">
示例4: htmlspecialchars
$nc->yesno('test');
?>
<div class="hints">
A test subscriber is a normal subscriber that is used when sending test are made, too.
</div>
</td>
</tr>
<tr valign="top">
<th>Lists</th>
<td>
<table>
<tr>
<td valign="top">
<?php
for ($i = 1; $i <= 5; $i++) {
$nc->checkbox('list_' . $i, '(' . $i . ') ' . htmlspecialchars($options_profile['list_' . $i]) . '<br />');
}
?>
</td>
<td valign="top">
<?php
for ($i = 6; $i <= 9; $i++) {
$nc->checkbox('list_' . $i, '(' . $i . ') ' . htmlspecialchars($options_profile['list_' . $i]) . '<br />');
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
示例5: array
<?php
$controls->show();
?>
<form id="channel" method="post" action="">
<?php
$controls->init();
?>
<div style="padding: .6em; border: 1px solid #ddd; background-color: #f4f4f4; border-radius: 3px;">
<?php
$controls->text('search_text', 80);
?>
<!--<?php
$controls->checkbox('search_test');
?>
show subscriber with "test" flag on-->
<?php
$controls->select('search_status', array('' => 'Any status', 'T' => 'Test subscribers', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'U' => 'Unsubscribed', 'B' => 'Bounced'));
?>
<?php
$controls->button('search', 'Search');
?>
</div>
<div class="newsletter-paginator">
<?php
示例6: array
<?php
$controls->text('search_text', 80, __('Search text', 'newsletter-users'));
?>
<?php
_e('filter by', 'newsletter-users');
?>
:<?php
$controls->select('search_status', array('' => 'Any status', 'T' => 'Test subscribers', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'U' => 'Unsubscribed', 'B' => 'Bounced'));
?>
<?php
$controls->button('search', __('Search', 'newsletter-users'));
?>
<br>
<?php
$controls->checkbox('show_preferences', __('Show preferences', 'newsletter-users'));
?>
</div>
<div class="newsletter-paginator">
<?php
$controls->button('first', '«');
$controls->button('prev', '‹');
$controls->text('search_page', 3);
?>
of <?php
echo $last_page + 1;
示例7:
<tr valign="top">
<th>Forced preferences</th>
<td>
<?php
$controls->preferences();
?>
<p class="description">
Add to new subscribers these preferences by default.
</p>
</td>
</tr>
<tr valign="top">
<th>Disable antibot/antispam?</th>
<td>
<?php
$controls->checkbox('antibot_disable');
?>
<p class="description">
Required for ajax form subsmissions.
</p>
</td>
</tr>
</table>
<h3>Special cases</h3>
<table class="form-table">
<!--
<tr valign="top">
<th>Already subscribed page content</th>
<td>
示例8:
?>
</p>
<h3><?php
_e('Subscription', 'newsletter');
?>
</h3>
<table class="form-table">
<tr valign="top">
<th> </th>
<td>
<?php
$nc->checkbox('noname', __('Do not ask the user name, only email.', 'newsletter'));
?>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Subscription form page', 'newsletter');
?>
</th>
<td>
<?php
$nc->editor('subscription_text');
?>
<br />
<?php
_e('This is the text showed to subscriber before the subscription form which is added automatically.', 'newsletter');
示例9: htmlspecialchars
<td>
<?php
$nc->text('subject', 70);
?>
<br />
<?php
_e('Tags: <strong>{name}</strong> receiver name.', 'newsletter');
?>
</td>
</tr>
<tr valign="top">
<th>Message</th>
<td>
<?php
$nc->checkbox('novisual', 'disable the visual editor');
?>
(save to apply and be sure to <a href="http://www.satollo.net/plugins/newsletter#composer">read here</a>)
<br />
<textarea name="options[message]" wrap="off" rows="20" style="font-family: monospace; width: 100%"><?php
echo htmlspecialchars($options['message']);
?>
</textarea>
<br />
<?php
_e('Tags: <strong>{name}</strong> receiver name;
<strong>{unsubscription_url}</strong> unsubscription URL;
<strong>{token}</strong> the subscriber token.', 'newsletter');
?>
</td>
</tr>
示例10:
<?php
$controls->button('search', __('Search', 'newsletter'));
?>
<?php
if ($where != "where 1=1") {
?>
<?php
$controls->button('reset', __('Reset Filters', 'newsletter'));
?>
<?php
}
?>
<br>
<?php
$controls->checkbox('show_preferences', __('Show lists', 'newsletter'));
?>
</div>
<div class="tnp-paginator">
<?php
$controls->button('first', '«');
$controls->button('prev', '‹');
$controls->text('search_page', 3);
?>
of <?php
echo $last_page + 1;
?>
<?php
$controls->button('go', __('Go', 'newsletter'));
示例11: array
<th>Enabled?</th>
<td>
<?php
$controls->yesno('enabled');
?>
</td>
</tr>
</table>
<h3>Recording</h3>
<table class="form-table">
<tr valign="top">
<th>Active?</th>
<td>
<?php
$controls->checkbox('record');
?>
<p class="description">
Disable the recording feature as soon as you finished to use it.
</p>
</td>
</tr>
</table>
<h3>Last recorded form</h3>
<?php
$record = get_option($module->prefix . '_record', array());
?>
<table class="widefat">