本文整理汇总了PHP中es_cls_dbquery::es_view_subscriber_group方法的典型用法代码示例。如果您正苦于以下问题:PHP es_cls_dbquery::es_view_subscriber_group方法的具体用法?PHP es_cls_dbquery::es_view_subscriber_group怎么用?PHP es_cls_dbquery::es_view_subscriber_group使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类es_cls_dbquery
的用法示例。
在下文中一共展示了es_cls_dbquery::es_view_subscriber_group方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
?>
</p>
<label for="tag-display-status"><?php
_e('Select default group', 'email-subscribers');
?>
</label>
<select name="es_registered_group" id="es_email_group">
<option value=''><?php
_e('Select', 'email-subscribers');
?>
</option>
<?php
$thisselected = "";
$groups = array();
$groups = es_cls_dbquery::es_view_subscriber_group();
if (count($groups) > 0) {
$i = 1;
foreach ($groups as $group) {
if ($group["es_email_group"] == $es_registered_group) {
$thisselected = "selected='selected'";
}
?>
<option value='<?php
echo $group["es_email_group"];
?>
' <?php
echo $thisselected;
?>
><?php
echo $group["es_email_group"];
示例2: form
//.........这里部分代码省略.........
echo $this->get_field_name('es_af_email_mand');
?>
">
<option value="YES" <?php
$this->es_af_selected($es_af_email_mand == 'YES');
?>
>YES</option>
</select>
</p>
<p>
<label for="<?php
echo $this->get_field_id('es_af_group');
?>
"><?php
_e('Display GROUPS options', ES_AF_TDOMAIN);
?>
</label>
<select class="widefat" id="<?php
echo $this->get_field_id('es_af_group');
?>
" name="<?php
echo $this->get_field_name('es_af_group');
?>
">
<option value="YES" <?php
$this->es_af_selected($es_af_group == 'YES');
?>
>YES</option>
<option value="NO" <?php
$this->es_af_selected($es_af_group == 'NO');
?>
>NO</option>
</select>
</p>
<p>
<label for="<?php
echo $this->get_field_id('es_af_group_mand');
?>
"><?php
_e('Do you want to set mandatory option for GROUP box?', ES_AF_TDOMAIN);
?>
</label>
<select class="widefat" id="<?php
echo $this->get_field_id('es_af_group_mand');
?>
" name="<?php
echo $this->get_field_name('es_af_group_mand');
?>
">
<option value="YES" <?php
$this->es_af_selected($es_af_group_mand == 'YES');
?>
>YES</option>
<option value="NO" <?php
$this->es_af_selected($es_af_group_mand == 'NO');
?>
>NO</option>
</select>
</p>
<p>
<label for="<?php
echo $this->get_field_id('es_af_group_list');
?>
"><?php
_e('Enter GROUP name to display (coma separated value)', ES_AF_TDOMAIN);
?>
</label>
<input class="widefat" id="<?php
echo $this->get_field_id('es_af_group_list');
?>
" name="<?php
echo $this->get_field_name('es_af_group_list');
?>
" type="text" value="<?php
echo $es_af_group_list;
?>
" />
<?php
if (is_plugin_active('email-subscribers/email-subscribers.php')) {
$groups = array();
$groups = es_cls_dbquery::es_view_subscriber_group();
if (count($groups) > 0) {
$i = 1;
foreach ($groups as $group) {
if ($i != 1) {
echo ", ";
} else {
echo "<br>Existing Groups : ";
}
echo $group["es_email_group"];
$i = $i + 1;
}
}
}
?>
</p>
<?php
}