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


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怎么用?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;
 }
开发者ID:EugenBobrowski,项目名称:email-subscribers,代码行数:17,代码来源:db_default.php

示例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
开发者ID:GDG-JSS-NOIDA,项目名称:gdg_events_theme,代码行数:31,代码来源:view-subscriber-show.php

示例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>
开发者ID:GDG-JSS-NOIDA,项目名称:gdg_events_theme,代码行数:31,代码来源:view-subscriber-export.php

示例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;
 }
开发者ID:projectestac,项目名称:wordpress-email-subscribers,代码行数:31,代码来源:db_default.php


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