[ Index ]

MailPress 7.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/options/tracking/metaboxes/user/ -> u004.php (source)

   1  <?php
   2  class MP_Tracking_metabox_u004 extends MP_tracking_metabox_
   3  {
   4      var $id    = 'u004';
   5      var $context= 'side';
   6      var $file     = __FILE__;
   7  
   8  	function meta_box( $mp_user )
   9      {
  10          global $wpdb;
  11          $tracks = $wpdb->get_results( $wpdb->prepare( "SELECT DATE( tmstp ) as tmstp, count( * ) as count FROM $wpdb->mp_tracks WHERE user_id = %d AND track <> %s GROUP BY 1 ORDER BY 1 DESC ;", $mp_user->id, MailPress_tracking_openedmail ) );
  12  
  13          if ( $tracks )
  14          {
  15              $out = '';
  16              foreach( $tracks as $track )
  17              {
  18                  $out .= $track->tmstp . ' <b>' . $track->count . '</b><br />';
  19              }
  20              echo $out;
  21          }
  22      }
  23  }
  24  new MP_Tracking_metabox_u004( __( 'Clicks/day', 'MailPress' ) );


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1