[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-admin/includes/settings/tracking/ -> form.php (source)

   1  <?php // tracking
   2  
   3  if ( !isset( $tracking ) )
   4  {
   5      $tracking = get_option( MailPress_tracking::option_name );
   6  }
   7  
   8  foreach( array( 'mail', 'user' ) as $folder )
   9  {
  10      $MP_Tracking_metaboxes    = new MP_Tracking_metaboxes( $folder, array() );
  11      $tracking_reports[$folder]    = $MP_Tracking_metaboxes->get_all( $folder );
  12  }
  13  
  14  global $mp_general;
  15  if (!isset($mp_general['gmapkey']) || empty($mp_general['gmapkey'])) unset($tracking_reports['user']['u006'], $tracking_reports['mail']['m006']);
  16  ?>
  17  <form name="<?php echo basename(__DIR__); ?>" method="post" class="mp_settings">
  18      <input type="hidden" name="_tab" value="<?php echo basename(__DIR__); ?>" />
  19      <table class="form-table rc-table w40">
  20  
  21          <tr>
  22              <th><?php _e( 'User', 'MailPress' ); ?></th>
  23              <th><?php _e( 'Mail', 'MailPress' ); ?></th>
  24          </tr>
  25          <tr>
  26              <td class="vat field">
  27  <?php
  28  foreach ( $tracking_reports['user'] as $k => $v )
  29  {
  30  ?>
  31  <input type="checkbox" value="<?php echo $k; ?>" name="tracking[<?php echo $k; ?>]" id="<?php echo $k; ?>"<?php if ( isset( $tracking[$k] ) ) checked( $k, $tracking[$k] ); ?> /><label for="<?php echo $k; ?>">&#160;<?php echo $v['title']; ?></label><br />
  32  <?php
  33  }
  34  ?>
  35              </td>
  36              <td class="vat field">
  37  <?php
  38  foreach ( $tracking_reports['mail'] as $k => $v )
  39  {
  40  ?>
  41  <input type="checkbox" value="<?php echo $k; ?>" name="tracking[<?php echo $k; ?>]" id="<?php echo $k; ?>"<?php if ( isset( $tracking[$k] ) ) checked( $k, $tracking[$k] ); ?> /><label for="<?php echo $k; ?>">&#160;<?php echo $v['title']; ?></label><br />
  42  <?php
  43  }
  44  ?>
  45              </td>
  46          </tr>
  47  
  48      </table>
  49  
  50  <?php do_action( 'MailPress_settings_tracking_form' ); ?>
  51  
  52  <?php MP_AdminPage::save_button(); ?>
  53  
  54  </form>


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1