當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。