[ Index ]

MailPress 544

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

title

Body

[close]

/mp-includes/class/options/tracking/metaboxes/mail/ -> m004.php (source)

   1  <?php
   2  class MP_Tracking_metabox_m004 extends MP_tracking_metabox_
   3  {
   4      var $id    = 'm004';
   5      var $context= 'normal';
   6      var $file     = __FILE__;
   7  
   8  	function meta_box($mail)
   9      {
  10          global $wpdb;
  11          $tracks = $wpdb->get_results( $wpdb->prepare( "SELECT DATE(tmstp) as tmstp, count(*) as count FROM $wpdb->mp_tracks WHERE mail_id = %d AND track <> %s GROUP BY 1 ORDER BY 1 DESC ;", $mail->id, MailPress_tracking_openedmail) );
  12          if ($tracks) foreach($tracks as $track) echo $track->tmstp . ' <b>' . $track->count . '</b><br />';
  13      }
  14  }
  15  new MP_Tracking_metabox_m004(__('Clicks/day', MP_TXTDOM));


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1