[ Index ]

MailPress 544

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

title

Body

[close]

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

   1  <?php
   2  
   3  $xevery = array (    10     => sprintf(__('%1$s days', MP_TXTDOM), '10'), 
   4              15     => sprintf(__('%1$s days', MP_TXTDOM), '15'),  
   5              30     => sprintf(__('%1$s days', MP_TXTDOM), '30'),  
   6              60     => sprintf(__('%1$s days', MP_TXTDOM), '60'), 
   7              90     => sprintf(__('%1$s days', MP_TXTDOM), '90'), 
   8              120     => sprintf(__('%1$s days', MP_TXTDOM), '120'), 
   9              360     => sprintf(__('%1$s days', MP_TXTDOM), '360'),  ); 
  10  
  11  if (!isset($batch_delete_old_mails)) $batch_delete_old_mails = get_option(MailPress_delete_old_mails::option_name);
  12  ?>
  13  <tr>
  14      <th class='thtitle'><?php _e('Deleting Old Mails', MP_TXTDOM); ?></th>
  15      <td></td>
  16  </tr>
  17  <tr>
  18      <th><?php _e('Keep sent mails since', MP_TXTDOM); ?></th>
  19      <td class='field'>
  20          <select name='batch_delete_old_mails[days]'>
  21  <?php MP_AdminPage::select_option($xevery, $batch_delete_old_mails['days']);?>
  22          </select>
  23      </td>
  24  </tr>
  25  <tr>
  26      <th><?php _e('Submit batch with', MP_TXTDOM); ?></th>
  27      <td>
  28          <table class='general'>
  29              <tr>
  30                  <td class='pr10'>
  31                      <label for='batch_delete_old_mails_wp_cron'>
  32                          <input value='wpcron' name='batch_delete_old_mails[batch_mode]' id='batch_delete_old_mails_wp_cron' class='submit_batch_delete_old_mails tog' type='radio' <?php checked('wpcron', $batch_delete_old_mails['batch_mode']); ?> />
  33                          &#160;&#160;
  34                          <?php _e('WP_Cron', MP_TXTDOM); ?>
  35                      </label>
  36                  </td>
  37                  <td class='delete_old_mails_wpcron pr10 toggl4<?php if ('wpcron' != $batch_delete_old_mails['batch_mode']) echo ' hide'; ?>' style='padding-left:10px;vertical-align:bottom;'>
  38                      <?php _e('Every', MP_TXTDOM); ?>
  39                      &#160;&#160;
  40                      <select name='batch_delete_old_mails[every]' id='every' >
  41  <?php MP_AdminPage::select_option($xevery, $batch_delete_old_mails['every']);?>
  42                      </select>
  43                  </td>
  44              </tr>
  45              <tr>
  46                  <td class='pr10'>
  47                      <label for='batch_delete_old_mails_other'>
  48                          <input value='other' name='batch_delete_old_mails[batch_mode]' id='batch_delete_old_mails_other' class='submit_batch_delete_old_mails tog' type='radio' <?php checked('other', $batch_delete_old_mails['batch_mode']); ?> />
  49                          &#160;&#160;
  50                          <?php _e('Other', MP_TXTDOM); ?>
  51                      </label>
  52                  </td>
  53                  <td class='delete_old_mails_other pr10 toggl4<?php if ('other' != $batch_delete_old_mails['batch_mode']) echo ' hide'; ?>' >
  54                      <?php printf(__('see sample in "%1$s"', MP_TXTDOM), '<code>' . MP_CONTENT_DIR . 'xtras/mp_batch_delete_old_mails' . '</code>'); ?>
  55                  </td>
  56              </tr>
  57          </table>
  58      </td>
  59  </tr>
  60  <tr class='mp_sep' style='line-height:2px;padding:0;'><td style='line-height:2px;padding:0;'></td><td></td></tr>


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