smtpform.html.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <form id='smtpForm' class='cell load-indicator main-form form-ajax'>
  2. <h4>
  3. <?php $enableSMTP= $this->system->smtpSnippetName();?>
  4. <?php echo html::checkbox('enableSMTP', array('true' => $lang->system->SMTP->enabled), $enableSMTP ? 'true' : '', (($smtpLinked or $activeSMTP) ? "onclick='return false;'" : ''));?>
  5. </h4>
  6. <table class="table table-form">
  7. <tbody>
  8. <tr>
  9. <th><?php echo $lang->system->SMTP->account;?></th>
  10. <td class='required w-300px'><?php echo html::input('user', zget($smtpSettings, 'SMTP_USER', ''), "class='form-control' placeholder='example@smtp.com'");?></td>
  11. <td></td>
  12. </tr>
  13. <tr>
  14. <th><?php echo $lang->system->SMTP->password;?></th>
  15. <td class='required'><?php echo html::input('pass', zget($smtpSettings, 'SMTP_PASS', ''), "class='form-control' placeholder=''");?></td>
  16. <td></td>
  17. </tr>
  18. <tr>
  19. <th><?php echo $lang->system->SMTP->host;?></th>
  20. <td class='required'><?php echo html::input('host', zget($smtpSettings, 'SMTP_HOST', ''), "class='form-control' placeholder=''");?></td>
  21. <td></td>
  22. </tr>
  23. <tr>
  24. <th><?php echo $lang->system->SMTP->port;?></th>
  25. <td class='required'><?php echo html::input('port', zget($smtpSettings, 'SMTP_PORT', ''), "class='form-control' placeholder='25'");?></td>
  26. <td></td>
  27. </tr>
  28. <tr>
  29. <td class='w-100px text-right'><?php echo html::commonButton($lang->system->verify, "id='verifyAccountBtn'");?></td>
  30. <td class='w-300px text-left'><span id='verifyResult'></span></td>
  31. <td></td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. <div class='text-center form-actions'><?php echo html::submitButton($activeSMTP ? $lang->system->SMTP->update : $lang->system->SMTP->install);?></div>
  36. </form>