[ Index ]

MailPress 544

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

title

Body

[close]

/mp-admin/includes/settings/ -> batches_batch_spool_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_spool_send)) $batch_spool_send = get_option(MailPress_batch_spool_send::option_name);
  13  ?>
  14  <tr>
  15      <th class='thtitle'><?php _e('Sending Mails from spool', MP_TXTDOM); ?></th>
  16      <td></td>
  17  </tr>
  18  <tr<?php if (isset($spoolpath)) echo " class='form-invalid'"; ?>>
  19      <th><?php _e('Spool Path', MP_TXTDOM); ?></th>
  20      <td class='field'>
  21          <input type='text' size='100' name='batch_spool_send[path]' value="<?php if (isset($batch_spool_send['path'])) echo $batch_spool_send['path']; ?>" />
  22          <br /><?php printf(__('If empty, default path is %s but can be deleted anytime by automatic upgrade', MP_TXTDOM), '"<code>' . MP_ABSPATH . 'tmp/spool</code>"'  ); ?>
  23      </td>
  24  </tr>
  25  
  26  <tr>
  27      <th><?php _e('Time limit in seconds', MP_TXTDOM); ?></th>
  28      <td class='field'>
  29          <select name='batch_spool_send[time_limit]'>
  30  <?php MP_AdminPage::select_option($xevery, $batch_spool_send['time_limit']);?>
  31          </select>
  32      </td>
  33  </tr>
  34  <tr>
  35      <th><?php _e('Max mails sent per batch', MP_TXTDOM); ?></th>
  36      <td class='field'>
  37          <select name='batch_spool_send[per_pass]'>
  38  <?php MP_AdminPage::select_number(1, 10, $batch_spool_send['per_pass'], 1);?>
  39  <?php MP_AdminPage::select_number(11, 100, $batch_spool_send['per_pass'], 10);?>
  40  <?php MP_AdminPage::select_number(101, 1000, $batch_spool_send['per_pass'], 100);?>
  41  <?php MP_AdminPage::select_number(1001, 10000, $batch_spool_send['per_pass'], 1000);?>
  42          </select>
  43      </td>
  44  </tr>
  45  <tr>
  46      <th><?php _e('Max retries', MP_TXTDOM); ?></th>
  47      <td class='field'>
  48          <select name='batch_spool_send[max_retry]'  style='width:4em;'>
  49  <?php MP_AdminPage::select_number(0, 5, $batch_spool_send['max_retry']);?>
  50          </select>
  51      </td>
  52  </tr>
  53  <tr>
  54      <th><?php _e('Submit batch with', MP_TXTDOM); ?></th>
  55      <td>
  56          <table class='general'>
  57              <tr>
  58                  <td class='pr10'>
  59                      <label for='batch_spool_send_wp_cron'>
  60                          <input value='wpcron' name='batch_spool_send[batch_mode]' id='batch_spool_send_wp_cron' class='submit_spool tog' type='radio' <?php checked('wpcron', $batch_spool_send['batch_mode']); ?> />
  61                          &#160;&#160;
  62                          <?php _e('WP_Cron', MP_TXTDOM); ?>
  63                      </label>
  64                  </td>
  65                  <td class='wpcron pr10 toggl2<?php if ('wpcron' != $batch_spool_send['batch_mode']) echo ' hide'; ?>' style='padding-left:10px;vertical-align:bottom;'>
  66                      <?php _e('Every', MP_TXTDOM); ?>
  67                      &#160;&#160;
  68                      <select name='batch_spool_send[every]' id='every' >
  69  <?php MP_AdminPage::select_option($xevery, $batch_spool_send['every']);?>
  70                      </select>
  71                  </td>
  72              </tr>
  73              <tr>
  74                  <td class='pr10'>
  75                      <label for='batch_spool_send_other'>
  76                          <input value='other' name='batch_spool_send[batch_mode]' id='batch_spool_send_other' class='submit_spool tog' type='radio' <?php checked('other', $batch_spool_send['batch_mode']); ?> />
  77                          &#160;&#160;
  78                          <?php _e('Other', MP_TXTDOM); ?>
  79                      </label>
  80                  </td>
  81                  <td class='other pr10 toggl2<?php if ('other' != $batch_spool_send['batch_mode']) echo ' hide'; ?>' >
  82                      <?php printf(__('see sample in "%1$s"', MP_TXTDOM), '<code>' . MP_CONTENT_DIR . 'xtras/mp_batch_spool_send' . '</code>'); ?>
  83                  </td>
  84              </tr>
  85          </table>
  86      </td>
  87  </tr>
  88  <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