dailyreminder.html.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php $url = $this->report->getSysURL();?>
  2. <?php include '../../common/view/mail.header.html.php';?>
  3. <tr>
  4. <td>
  5. <table cellpadding='0' cellspacing='0' style='width: 100%; border: none; border-collapse: collapse;'>
  6. <tr>
  7. <td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'><?php echo date('Y-m-d') ?></td>
  8. <td style='width: 40px; text-align: right; background-color: #F8FAFE; border: none; vertical-align: top; padding: 10px; border-bottom: 1px solid #e5e5e5;'><?php echo html::a($url . $config->webRoot, $url . $config->webRoot, 'target="_blank"');?></td>
  9. </tr>
  10. </table>
  11. </td>
  12. </tr>
  13. <?php if(isset($mail->bugs)):?>
  14. <tr>
  15. <td style='padding: 10px; border: none;'>
  16. <h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailTitle->bug, count($mail->bugs)), ',') ?></h5>
  17. <table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
  18. <tr>
  19. <th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
  20. <th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->bugTitle;?></th>
  21. <th style='width: 100px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->deadline;?></th>
  22. </tr>
  23. <?php foreach($mail->bugs as $bug):?>
  24. <tr>
  25. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $bug->id;?></td>
  26. <td style='padding: 5px; border: 1px solid #e5e5e5;'>
  27. <?php
  28. $link = $this->createLink('bug', 'view', "bugID=$bug->id");
  29. if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
  30. echo html::a($url . $link, $bug->title);
  31. ?>
  32. </td>
  33. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php if(!helper::isZeroDate($bug->deadline)) echo $bug->deadline;?></td>
  34. </tr>
  35. <?php endforeach;?>
  36. </table>
  37. </td>
  38. </tr>
  39. <?php endif;?>
  40. <?php if(isset($mail->tasks)):?>
  41. <tr>
  42. <td style='padding: 10px; border: none;'>
  43. <h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailTitle->task, count($mail->tasks)), ',') ?></h5>
  44. <table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
  45. <tr>
  46. <th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
  47. <th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->taskName;?></th>
  48. <th style='width: 100px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->deadline;?></th>
  49. </tr>
  50. <?php foreach($mail->tasks as $task):?>
  51. <tr>
  52. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $task->id;?></td>
  53. <td style='padding: 5px; border: 1px solid #e5e5e5;'>
  54. <?php
  55. $link = $this->createLink('task', 'view', "taskID=$task->id");
  56. if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
  57. echo html::a($url . $link, $task->name);
  58. ?>
  59. </td>
  60. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php if(!helper::isZeroDate($task->deadline)) echo $task->deadline;?></td>
  61. </tr>
  62. <?php endforeach;?>
  63. </table>
  64. </td>
  65. </tr>
  66. <?php endif;?>
  67. <?php if(isset($mail->todos)):?>
  68. <tr>
  69. <td style='padding: 10px; border: none;'>
  70. <h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailTitle->todo, count($mail->todos)), ',') ?></h5>
  71. <table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
  72. <tr>
  73. <th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
  74. <th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->todoName;?></th>
  75. </tr>
  76. <?php foreach($mail->todos as $todo):?>
  77. <tr>
  78. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $todo->id;?></td>
  79. <td style='padding: 5px; border: 1px solid #e5e5e5;'>
  80. <?php
  81. $link = $this->createLink('todo', 'view', "todoID=$todo->id");
  82. if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
  83. echo html::a($url . $link, $todo->name);
  84. ?>
  85. </td>
  86. </tr>
  87. <?php endforeach;?>
  88. </table>
  89. </td>
  90. </tr>
  91. <?php endif;?>
  92. <?php if(isset($mail->testTasks)):?>
  93. <tr>
  94. <td style='padding: 10px; border: none;'>
  95. <h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailTitle->testTask, count($mail->testTasks)), ',') ?></h5>
  96. <table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
  97. <tr>
  98. <th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
  99. <th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->testTaskName;?></th>
  100. </tr>
  101. <?php foreach($mail->testTasks as $testTask):?>
  102. <tr>
  103. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $testTask->id;?></td>
  104. <td style='padding: 5px; border: 1px solid #e5e5e5;'>
  105. <?php
  106. $link = $this->createLink('testtask', 'view', "testtask=$testTask->id");
  107. if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
  108. echo html::a($url . $link, $testTask->name);
  109. ?>
  110. </td>
  111. </tr>
  112. <?php endforeach;?>
  113. </table>
  114. </td>
  115. </tr>
  116. <?php endif;?>
  117. <?php if(isset($mail->cards)):?>
  118. <tr>
  119. <td style='padding: 10px; border: none;'>
  120. <h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailTitle->card, count($mail->cards)), ',') ?></h5>
  121. <table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
  122. <tr>
  123. <th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
  124. <th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->cardName;?></th>
  125. <th style='width: 100px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->deadline;?></th>
  126. </tr>
  127. <?php foreach($mail->cards as $card):?>
  128. <tr>
  129. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $card->id;?></td>
  130. <td style='padding: 5px; border: 1px solid #e5e5e5;'>
  131. <?php
  132. $link = $this->createLink('kanban', 'view', "kanbanID=$card->kanban");
  133. if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
  134. echo html::a($url . $link, $card->name);
  135. ?>
  136. </td>
  137. <td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $card->deadline;?></td>
  138. </tr>
  139. <?php endforeach;?>
  140. </table>
  141. </td>
  142. </tr>
  143. <?php endif;?>
  144. <?php include '../../common/view/mail.footer.html.php';?>