sendmail.html.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * The mail file of overtime module of RanZhi.
  4. *
  5. * @copyright Copyright 2009-2018 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Tingting Dai <daitingting@xirangit.com>
  8. * @package overtime
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php
  14. $app->loadConfig('mail');
  15. $domain = zget($this->config->mail, 'domain', common::getSysURL());
  16. $mailTitle = "{$lang->overtime->common}#{$overtime->id} ";
  17. $mailTitle .= html::a($domain . helper::createLink('my', 'review', "type=overtime", 'html') . "#app=oa", zget($users, $overtime->createdBy));
  18. $mailTitle .= formatTime($overtime->begin, DT_DATE1) . '~' . formatTime($overtime->end, DT_DATE1);
  19. ?>
  20. <?php include $app->getModuleRoot() . 'common/view/mail.header.html.php';?>
  21. <tr>
  22. <td>
  23. <table cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
  24. <tr>
  25. <td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'>
  26. <?php echo $mailTitle;?>
  27. </td>
  28. </tr>
  29. </table>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td style='padding: 10px; border: none;'>
  34. <fieldset style='border: 1px solid #e5e5e5'>
  35. <legend style='color: #114f8e'><?php echo $lang->overtime->common;?></legend>
  36. <div style='padding:5px;'>
  37. <p><?php echo $lang->overtime->createdBy . ':' . zget($users, $overtime->createdBy)?></p>
  38. <p><?php echo $lang->overtime->status . ':' . zget($lang->overtime->statusList, $overtime->status)?></p>
  39. <p><?php echo $lang->overtime->type . ':' . zget($lang->overtime->typeList, $overtime->type)?></p>
  40. <p><?php echo $lang->overtime->date . ':' . formatTime($overtime->begin . ' ' . $overtime->start, DT_DATETIME2) . '~' . formatTime($overtime->end . ' ' . $overtime->finish, DT_DATETIME2);?></p>
  41. <p><?php echo $lang->overtime->desc?></p>
  42. <p><?php echo $overtime->desc?></p>
  43. </div>
  44. </fieldset>
  45. </td>
  46. </tr>
  47. <?php include $app->getModuleRoot() . 'common/view/mail.footer.html.php';?>