mail.html.php 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /**
  3. * The mail file of release module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 Shujie Tian <tianshujie@easycorp.ltd>
  8. * @package release
  9. * @version $Id: sendmail.html.php 867 2021-08-12 13:37:58Z $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php $mailTitle = 'RELEASE #' . $release->id . ' ' . $release->name;?>
  14. <?php $module = $this->app->tab == 'product' ? 'release' : 'projectrelease';?>
  15. <?php
  16. $webRoot = $this->app->getWebRoot();
  17. $onlybody = isonlybody() ? true : false;
  18. if($onlybody) $_GET['onlybody'] = 'no';
  19. ?>
  20. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
  21. <html xmlns='http://www.w3.org/1999/xhtml'>
  22.  <head>
  23.   <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
  24.   <title><?php echo $mailTitle ?></title>
  25.   <meta name='viewport' content='width=device-width, initial-scale=1.0'/>
  26. <style>
  27. .content tr {line-height: 30px;}
  28. .content tr:last-child td{border-bottom: 1px solid #D7DBDE;}
  29. .content th, .content td {border-top: 1px solid #D7DBDE; color: #3C4353;}
  30. .content .id {text-align: center; width: 100px;}
  31. .content .title {border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;}
  32. .content-icon {width: 16px; height: 16px; vertical-align: middle;}
  33. </style>
  34.  </head>
  35. <body style='background-color: #FFF;'>
  36.  <table border='0' cellpadding='0' cellspacing='0' width='100%' style='font-size: 13px; color: #333; line-height: 20px; font-family: "Helvetica Neue",Helvetica,"Microsoft Yahei","Hiragino Sans GB","WenQuanYi Micro Hei",Tahoma,Arial,sans-serif;'>
  37. <tr>
  38. <td>
  39. <table align='center' border='0' cellpadding='0' cellspacing='0' width='1080' style='border: none; border-collapse: collapse;'>
  40. <tr>
  41. <td style='padding: 10px 0; border: none; vertical-align: middle;'><strong style='font-size: 18px; color: #1B1F28;'><?php echo $this->app->company->name ?></strong></td>
  42. </tr>
  43. </table>
  44. <table align='center' border='0' cellpadding='0' cellspacing='0' width='1080' style='background-color: #fff; border: 1px solid; border-color: rgba(0, 127, 255, 0.2); margin-bottom: 20px; font-size:13px;'>
  45. <tr>
  46. <td>
  47. <table cellpadding='0' cellspacing='0' width='1080' style='border: none; border-collapse: collapse;'>
  48. <tr>
  49. <td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'>
  50. <?php echo html::a(zget($this->config->mail, 'domain', common::getSysURL()) . helper::createLink($module, 'view', "releaseID=$release->id", 'html'), $mailTitle, '', "style='text-decoration: none; color: #007FFF; font-family: PingFang-SC;''");?>
  51. </td>
  52. </tr>
  53. </table>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class='content-head' style='padding: 15px 10px 15px 40px; border: none;'>
  58. <img src='<?php echo common::getSysURL() . $webRoot . 'theme/default/images/release/story.png';?>' class='content-icon' style='width: 16px; height: 16px; vertical-align: middle;'/>
  59. <span style='vertical-align: middle; font-weight: bold; color: #1B1F28;'><?php echo $this->lang->release->stories . '(' . count($stories) . ')';?></span>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>
  64. <table align='center' cellpadding='0' cellspacing='0' width='1000' class='content' style='background-color: #fff;margin-bottom: 20px; font-size:13px;'>
  65. <thead>
  66. <tr style='background-color: #F4F5F7;'>
  67. <th style='text-align: center; width: 100px;border-top: 1px solid #D7DBDE; color: #3C4353; border-left: 1px solid #D7DBDE;'><?php echo $this->lang->idAB; ?></th>
  68. <th class='title' style='border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;border-top: 1px solid #D7DBDE; color: #3C4353; border-right: 1px solid #D7DBDE;'><?php echo $this->lang->release->storyTitle; ?></th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <?php foreach($stories as $story):?>
  73. <tr>
  74. <td class='id' style='text-align: center; width: 100px;border-top: 1px solid #D7DBDE; color: #3C4353; border-left: 1px solid #D7DBDE;'><?php echo $story->id;?></td>
  75. <td class='title' style='border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;border-top: 1px solid #D7DBDE; color: #3C4353; border-right: 1px solid #D7DBDE;'><?php echo $story->title;?></td>
  76. </tr>
  77. <?php endforeach;?>
  78. </tbody>
  79. </table>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td class='content-head' style='padding: 15px 10px 15px 40px; border: none;'>
  84. <img src='<?php echo common::getSysURL() . $webRoot . 'theme/default/images/release/bug.png';?>' class='content-icon' style='width: 16px; height: 16px; vertical-align: middle;'/>
  85. <span style='vertical-align: middle; font-weight: bold; color: #1B1F28;'><?php echo $this->lang->release->bugs . '(' . count($bugs) . ')';?></span>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td>
  90. <table align='center' cellpadding='0' cellspacing='0' width='1000' class='content' style='background-color: #fff;margin-bottom: 20px; font-size:13px;'>
  91. <thead>
  92. <tr style='background-color: #F4F5F7;'>
  93. <th class='id' style='text-align: center; width: 100px;border-top: 1px solid #D7DBDE; color: #3C4353; border-left: 1px solid #D7DBDE;'><?php echo $this->lang->idAB; ?></th>
  94. <th class='title' style='border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;border-top: 1px solid #D7DBDE; color: #3C4353; border-right: 1px solid #D7DBDE;'><?php echo $this->lang->release->bugTitle; ?></th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. <?php foreach($bugs as $bug):?>
  99. <tr>
  100. <td class='id' style='text-align: center; width: 100px;border-top: 1px solid #D7DBDE; color: #3C4353; border-left: 1px solid #D7DBDE;'><?php echo $bug->id;?></td>
  101. <td class='title' style='border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;border-top: 1px solid #D7DBDE; color: #3C4353; border-right: 1px solid #D7DBDE;'><?php echo $bug->title;?></td>
  102. </tr>
  103. <?php endforeach;?>
  104. </tbody>
  105. </table>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class='content-head' style='padding: 15px 10px 15px 40px; border: none;'>
  110. <img src='<?php echo common::getSysURL() . $webRoot . 'theme/default/images/release/leftbug.png';?>' class='content-icon' style='width: 16px; height: 16px; vertical-align: middle;'/>
  111. <span style='vertical-align: middle; font-weight: bold; color: #1B1F28;'><?php echo $this->lang->release->leftBugs . '(' . count($leftBugs) . ')';?></span>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td>
  116. <table align='center' cellpadding='0' cellspacing='0' width='1000' class='content' style='background-color: #fff;margin-bottom: 20px; font-size:13px;'>
  117. <thead>
  118. <tr style='background-color: #F4F5F7;'>
  119. <th class='id' style='text-align: center; width: 100px;border-top: 1px solid #D7DBDE; color: #3C4353; border-left: 1px solid #D7DBDE;'><?php echo $this->lang->idAB; ?></th>
  120. <th class='title' style='border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;border-top: 1px solid #D7DBDE; color: #3C4353; border-right: 1px solid #D7DBDE;'><?php echo $this->lang->release->bugTitle; ?></th>
  121. </tr>
  122. </thead>
  123. <tbody>
  124. <?php foreach($leftBugs as $bug):?>
  125. <tr>
  126. <td class='id' style='text-align: center; width: 100px;border-top: 1px solid #D7DBDE; color: #3C4353; border-left: 1px solid #D7DBDE;'><?php echo $bug->id;?></td>
  127. <td class='title' style='border-left: 1px solid #D7DBDE; text-align: left; padding-left: 30px;border-top: 1px solid #D7DBDE; color: #3C4353; border-right: 1px solid #D7DBDE;'><?php echo $bug->title;?></td>
  128. </tr>
  129. <?php endforeach;?>
  130. </tbody>
  131. </table>
  132. </td>
  133. </tr>
  134. <?php include $this->app->getModuleRoot() . 'common/view/mail.footer.html.php';?>