本文整理汇总了PHP中es_cls_dbquery::es_view_subscriber_count方法的典型用法代码示例。如果您正苦于以下问题:PHP es_cls_dbquery::es_view_subscriber_count方法的具体用法?PHP es_cls_dbquery::es_view_subscriber_count怎么用?PHP es_cls_dbquery::es_view_subscriber_count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类es_cls_dbquery
的用法示例。
在下文中一共展示了es_cls_dbquery::es_view_subscriber_count方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: es_subscriber_default
public static function es_subscriber_default()
{
$result = es_cls_dbquery::es_view_subscriber_count(0);
if ($result == 0) {
$form["es_email_mail"] = get_option('admin_email');
$form["es_email_name"] = "Admin";
$form["es_email_group"] = "Public";
$form["es_email_status"] = "Confirmed";
es_cls_dbquery::es_view_subscriber_ins($form, "insert");
$form["es_email_mail"] = "a.example@example.com";
$form["es_email_name"] = "Example";
$form["es_email_group"] = "Public";
$form["es_email_status"] = "Confirmed";
es_cls_dbquery::es_view_subscriber_ins($form, "insert");
}
return true;
}
示例2: isset
}
// Form submitted, check the data
$search = isset($_POST['searchquery']) ? $_POST['searchquery'] : 'ALL';
$search_sts = isset($_POST['searchquery_sts']) ? $_POST['searchquery_sts'] : '';
$search_count = isset($_POST['searchquery_cnt']) ? $_POST['searchquery_cnt'] : '1';
$search_group = isset($_POST['searchquery_group']) ? $_POST['searchquery_group'] : 'ALL';
if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
$did = isset($_GET['did']) ? $_GET['did'] : '0';
es_cls_security::es_check_number($did);
$es_success = '';
$es_success_msg = FALSE;
if (isset($_POST['frm_es_bulkaction']) && $_POST['frm_es_bulkaction'] != 'delete' && $_POST['frm_es_bulkaction'] != 'resend' && $_POST['frm_es_bulkaction'] != 'groupupdate' && $_POST['frm_es_bulkaction'] != 'search_sts' && $_POST['frm_es_bulkaction'] != 'search_cnt' && $_POST['frm_es_bulkaction'] != 'search_group') {
// Just security thingy that wordpress offers us
check_admin_referer('es_form_show');
// First check if ID exist with requested ID
$result = es_cls_dbquery::es_view_subscriber_count($did);
if ($result != '1') {
?>
<div class="error fade">
<p><strong><?php
_e('Oops, selected details doesnt exist.', ES_TDOMAIN);
?>
</strong></p>
</div>
<?php
} else {
// Form submitted, check the action
if (isset($_GET['ac']) && $_GET['ac'] == 'del' && isset($_GET['did']) && $_GET['did'] != '') {
// Delete selected record from the table
es_cls_dbquery::es_view_subscriber_delete($did);
// Set success message
示例3: die
//}
if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) {
die('You are not allowed to call this page directly.');
}
?>
<script language="javaScript" src="<?php
echo ES_URL;
?>
subscribers/view-subscriber.js"></script>
<?php
//$_SESSION['es_exportcsv'] = "YES";
$home_url = home_url('/');
$cnt_subscriber = 0;
$cnt_users = 0;
$cnt_comment_author = 0;
$cnt_subscriber = es_cls_dbquery::es_view_subscriber_count(0);
$cnt_users = $wpdb->get_var("select count(DISTINCT user_email) from " . $wpdb->prefix . "users");
$cnt_comment_author = $wpdb->get_var("SELECT count(DISTINCT comment_author_email) from " . $wpdb->prefix . "comments WHERE comment_author_email <> ''");
?>
<div class="wrap">
<div id="icon-plugins" class="icon32"></div>
<h2><?php
_e(ES_PLUGIN_DISPLAY, ES_TDOMAIN);
?>
</h2>
<div class="tool-box">
<h3 class="title"><?php
_e('Export email address in csv format', ES_TDOMAIN);
?>
</h3>
示例4: es_subscriber_default
public static function es_subscriber_default()
{
$result = es_cls_dbquery::es_view_subscriber_count(0);
if ($result == 0) {
$form["es_email_mail"] = get_option('admin_email');
$form["es_email_name"] = "Admin";
//XTEC ************ MODIFICAT - Changed default group from Public to Portada
//2016.03.29 @sarjona
$form["es_email_group"] = 'Portada';
//************ ORIGINAL
/*
$form["es_email_group"] = "Public";
*/
//************ FI
$form["es_email_status"] = "Confirmed";
es_cls_dbquery::es_view_subscriber_ins($form, "insert");
$form["es_email_mail"] = "a.example@example.com";
$form["es_email_name"] = "Example";
//XTEC ************ MODIFICAT - Changed default group from Public to Portada
//2016.03.29 @sarjona
$form["es_email_group"] = 'Portada';
//************ ORIGINAL
/*
$form["es_email_group"] = "Public";
*/
//************ FI
$form["es_email_status"] = "Confirmed";
es_cls_dbquery::es_view_subscriber_ins($form, "insert");
}
return true;
}