[ Index ]

MailPress 544

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

title

Body

[close]

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

   1  <?php
   2  
   3  $xevery = array (    30     => sprintf(__('%1$s seconds', MP_TXTDOM), '30'), 
   4              45     => sprintf(__('%1$s seconds', MP_TXTDOM), '45'), 
   5              60     => sprintf(__('%1$s minute' , MP_TXTDOM) , ''), 
   6              120     => sprintf(__('%1$s minutes', MP_TXTDOM), '2'), 
   7              300     => sprintf(__('%1$s minutes', MP_TXTDOM), '5'), 
   8              900     => sprintf(__('%1$s minutes', MP_TXTDOM), '15'), 
   9              1800     => sprintf(__('%1$s minutes', MP_TXTDOM), '30'), 
  10              3600     => sprintf(__('%1$s hour',     MP_TXTDOM), '') ); 
  11  
  12  if (!isset($batch_send)) $batch_send = get_option(MailPress_batch_send::option_name);
  13  ?>
  14  <tr>
  15      <th class='thtitle'><?php _e('Sending Mails', MP_TXTDOM); ?></th>
  16      <td></td>
  17  </tr>
  18  <tr>
  19      <th><?php _e('Max mails sent per batch', MP_TXTDOM); ?></th>
  20      <td class='field'>
  21          <select name='batch_send[per_pass]'>
  22  <?php MP_AdminPage::select_number(1, 10, $batch_send['per_pass'], 1);?>
  23  <?php MP_AdminPage::select_number(11, 100, $batch_send['per_pass'], 10);?>
  24  <?php MP_AdminPage::select_number(101, 1000, $batch_send['per_pass'], 100);?>
  25  <?php MP_AdminPage::select_number(1001, 10000, $batch_send['per_pass'], 1000);?>
  26          </select>
  27      </td>
  28  </tr>
  29  <tr>
  30      <th><?php _e('Max retries', MP_TXTDOM); ?></th>
  31      <td class='field'>
  32          <select name='batch_send[max_retry]'  style='width:4em;'>
  33  <?php MP_AdminPage::select_number(0, 5, $batch_send['max_retry']);?>
  34          </select>
  35      </td>
  36  </tr>
  37  <tr>
  38      <th><?php _e('Submit batch with', MP_TXTDOM); ?></th>
  39      <td>
  40          <table class='general'>
  41              <tr>
  42                  <td class='pr10'>
  43                      <label for='batch_send_wp_cron'>
  44                          <input value='wpcron' name='batch_send[batch_mode]' id='batch_send_wp_cron' class='submit_batch tog' type='radio' <?php checked('wpcron', $batch_send['batch_mode']); ?> />
  45                          &#160;&#160;
  46                          <?php _e('WP_Cron', MP_TXTDOM); ?>
  47                      </label>
  48                  </td>
  49                  <td class='wpcron pr10 toggl2<?php if ('wpcron' != $batch_send['batch_mode']) echo ' hide'; ?>' style='padding-left:10px;vertical-align:bottom;'>
  50                      <?php _e('Every', MP_TXTDOM); ?>
  51                      &#160;&#160;
  52                      <select name='batch_send[every]' id='every' >
  53  <?php MP_AdminPage::select_option($xevery, $batch_send['every']);?>
  54                      </select>
  55                  </td>
  56              </tr>
  57              <tr>
  58                  <td class='pr10'>
  59                      <label for='batch_send_other'>
  60                          <input value='other' name='batch_send[batch_mode]' id='batch_send_other' class='submit_batch tog' type='radio' <?php checked('other', $batch_send['batch_mode']); ?> />
  61                          &#160;&#160;
  62                          <?php _e('Other', MP_TXTDOM); ?>
  63                      </label>
  64                  </td>
  65                  <td class='other pr10 toggl2<?php if ('other' != $batch_send['batch_mode']) echo ' hide'; ?>' >
  66                      <?php printf(__('see sample in "%1$s"', MP_TXTDOM), '<code>' . MP_CONTENT_DIR . 'xtras/mp_batch_send' . '</code>'); ?>
  67                  </td>
  68              </tr>
  69          </table>
  70      </td>
  71  </tr>
  72  <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