[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/templates/fetchmail/ -> manage.inc (source)

   1  <form method="post" name="accounts" action="<?php echo $fetch_url ?>">
   2  <?php Util::pformInput() ?>
   3  <input type="hidden" name="actionID" value="fetchmail_pref_save" />
   4  <input type="hidden" name="edit_account" value="<?php if (!is_null($to_edit)) echo $to_edit; ?>" />
   5  <input type="hidden" name="fm_driver" value="<?php echo $driver ?>" />
   6  
   7  <?php echo _("Account's name:") ?><br />
   8  <input name="fm_id" size="30" maxlength="60" value="<?php if (!is_null($to_edit)) echo $fm_account->getValue('id', $to_edit) ?>" /><br />
   9  
  10  <?php echo _("Protocol:") ?><br />
  11  <select name="fm_protocol">
  12  <?php foreach ($fetchmail->getProtocolList() as $key => $val): ?>
  13    <option value="<?php echo $key ?>"<?php if (!is_null($to_edit) && ($fm_account->getValue('protocol', $to_edit) == $key)) echo ' selected="selected"' ?>><?php echo $val ?></option>
  14  <?php endforeach; ?>
  15  </select><br />
  16  
  17  <?php echo _("Username:") ?><br />
  18  <input name="fm_username" size="30" maxlength="60" value="<?php if (!is_null($to_edit)) echo $fm_account->getValue('username', $to_edit) ?>" /><br />
  19  
  20  <?php echo _("Password") ?><br />
  21  <input name="fm_password" size="30" maxlength="60" type="password" value="<?php if (!is_null($to_edit)) echo $fm_account->getValue('password', $to_edit) ?>" /><br />
  22  
  23  <?php echo _("Server:") ?><br />
  24  <input name="fm_server" size="30" maxlength="60" value="<?php if (!is_null($to_edit)) echo $fm_account->getValue('server', $to_edit) ?>" /><br />
  25  
  26  <?php if ($conf['user']['allow_folders']): ?>
  27  <?php echo _("Remote Mailbox:") ?><br />
  28  <input name="fm_rmailbox" size="30" maxlength="60" value="<?php if (!is_null($to_edit)) echo $fm_account->getValue('rmailbox', $to_edit) ?>" /><br />
  29  
  30  <?php echo _("Local Mailbox:") ?><br />
  31  <select name="fm_lmailbox">
  32    <?php echo IMP::flistSelect('', false, array(), !is_null($to_edit) ? $fm_account->getValue('lmailbox', $to_edit) : '') ?>
  33  </select><br />
  34  <?php endif; ?>
  35  
  36  <input type="checkbox" name="fm_onlynew" value="1"<?php if (!is_null($to_edit) && $fm_account->getValue('onlynew', $to_edit)) echo ' checked="checked"' ?> />
  37  <?php echo _("Get only new messages? (IMAP only)") ?><br />
  38  
  39  <input type="checkbox" name="fm_markseen" value="1"<?php if (!is_null($to_edit) && $fm_account->getValue('markseen', $to_edit)) echo ' checked="checked"' ?> />
  40  <?php echo _("Mark messages as seen? (IMAP only)") ?><br />
  41  
  42  <input type="checkbox" name="fm_del" value="1"<?php if (!is_null($to_edit) && $fm_account->getValue('del', $to_edit)) echo ' checked="checked"' ?> />
  43  <?php echo _("Delete fetched messages from remote server?") ?><br />
  44  
  45  <input type="checkbox" name="fm_loginfetch" value="1"<?php if (!is_null($to_edit) && $fm_account->getValue('loginfetch', $to_edit)) echo ' checked="checked"' ?> />
  46  <?php echo _("Fetch messages upon logging on?") ?><br />
  47  
  48  (<font color="red"><?php echo _("NOTE") ?>:</font> <?php printf(_("You need to have \"%s\" enabled in your maintenance options."), _("Perform maintenance operations on login?")) ?>)
  49  
  50  <?php if ($conf['fetchmail']['show_account_colors']): ?>
  51  <?php echo _("Color Indicator: "); ?><br />
  52  <table>
  53    <tr>
  54  <?php foreach ($fm_colors as $val): ?>
  55      <td bgcolor="<?php echo $val ?>">
  56        <input type="radio" name="fm_acctcolor" value="<?php echo $val ?>"<?php if (!is_null($to_edit) && $fm_account->getValue('acctcolor', $to_edit) == $val) echo ' checked="checked"' ?> />
  57      </td>
  58  <?php endforeach; ?>
  59    </tr>
  60  </table>
  61  <?php endif; ?>
  62  
  63  </td></tr></table></td></tr></table>
  64  
  65  <br />
  66  <table border="0" align="center" width="100%" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap">
  67  <input type="submit" name="save" class="button" onclick="document.accounts.actionID.value='fetchmail_prefs_save';return true" value="<?php echo ($actionID == 'fetchmail_create') ? _("Create") : _("Save") ?>" />
  68  <input type="submit" name="delete" class="button" onclick="document.accounts.actionID.value='fetchmail_prefs_delete'" value="<?php echo _("Delete") ?>" />
  69  <input type="button" name="back" class="button" onclick="document.location.href='<?php echo $prefs_url ?>'" value="<?php echo _("Return to Fetch Mail") ?>" />
  70  <input type="button" name="select" class="button" onclick="document.location.href='<?php echo $fetch_url ?>'" value="<?php echo _("Select Another Account") ?>" />
  71  </td></tr></table>
  72  </form>


Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics