* change UI of mail content for user.

This commit is contained in:
Catouse
2016-02-23 16:55:50 +08:00
parent ae4fd31b3d
commit 334a0b1009
11 changed files with 259 additions and 208 deletions
+19 -22
View File
@@ -10,27 +10,24 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<?php include '../../common/view/mail.css.php';?>
<table width='98%' align='center'>
<tr class='header'>
<td>
BUG #<?php echo $bug->id . "=>{$users[$bug->assignedTo]} " . html::a(common::getSysURL() . $this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title);?>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend><?php echo $lang->bug->legendSteps;?></legend>
<?php $mailTitle = 'BUG #' . $bug->id . ' ' . $bug->title;?>
<?php include '../../common/view/mail.header.html.php';?>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
<tr>
<td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'>BUG #<?php echo $bug->id . ' &nbsp;' . html::a(common::getSysURL() . $this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title, '', "style='color: #333'");?></td>
<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(common::getSysURL() . $this->createLink('bug', 'view', "bugID=$bug->id"), '[+]', 'target="_blank"');?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style='padding: 10px; border: none;'>
<fieldset style='border: 1px solid #e5e5e5'>
<legend style='color: #114f8e'><?php echo $lang->bug->legendSteps;?></legend>
<div class='content'><?php echo $bug->steps;?></div>
</fieldset>
</td>
</tr>
<tr>
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
</td>
</tr>
<?php include '../../common/view/mail.footer.html.php';?>
-10
View File
@@ -1,10 +0,0 @@
<style type='text/css'>
del {background:#fcc}
ins {background:#cfc; text-decoration:none}
table, tr, th, td {border:1px solid gray; font-size:12px; border-collapse:collapse}
tr, th, td {padding:5px}
.history {border:1px solid gray; padding:10px; margin-top:10px; margin-bottom:10px}
.header {background:#efefef}
p{margin:0px}
.w-id {width:45px}
</style>
+28
View File
@@ -0,0 +1,28 @@
<?php if(!empty($action)): ?>
<tr>
<td style='padding: 10px; background-color: #FFF0D5'>
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<?php if(isset($users[$action->actor])) $action->actor = $users[$action->actor];?>
<?php if(isset($users[$action->extra])) $action->extra = $users[$action->extra];?>
<span style='font-size: 16px; color: #F1A325'>●</span> &nbsp;<span><?php $this->action->printAction($action);?></span>
</td>
</tr>
<?php if(!empty($action->comment) or !empty($action->history)):?>
<tr>
<td style='padding: 10px;'>
<div><?php echo $this->action->printChanges($action->objectType, $action->history);?></div>
<?php if(!empty($action->comment)): ?>
<p style='padding: 0; padding-left: 10px; margin: 0; margin-top: 8px; border-left: 4px solid #ddd; color: #666'><?php echo $action->comment;?></p>
<?php endif;?>
</div>
</td>
</tr>
<?php endif;?>
<?php endif;?>
</table>
</td>
</tr>
 </table>
</body>
</html><?php // close tags in mail.header.html.php ?>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
+23
View File
@@ -0,0 +1,23 @@
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
 <head>
  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
  <title><?php echo $mailTitle ?></title>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'/>
 </head>
<body style='background-color: #e5e5e5;'>
 <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;'>
<tr>
<td>
<table align='center' border='0' cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
<tr>
<td style='padding: 10px 0; border: none; vertical-align: middle;'><strong style='font-size: 16px'><?php echo $app->company->name ?></strong></td>
<td style='padding: 10px 0; text-align: right; border: none;'><a href='<?php echo common::getSysURL() ?>' target='_blank'><img width='100' src='<?php echo common::getSysURL() . '/theme/default/images/main/zentao.png'; ?>' /></a></td>
</tr>
</table>
<table align='center' border='0' cellpadding='0' cellspacing='0' width='600' style='border-collapse: collapse; background-color: #fff; border: 1px solid #cfcfcf; box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1); margin-bottom: 20px'>
-11
View File
@@ -1,11 +0,0 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<?php if(isset($users[$action->actor])) $action->actor = $users[$action->actor];?>
<?php if(isset($users[$action->extra])) $action->extra = $users[$action->extra];?>
<span><?php $this->action->printAction($action);?></span>
<?php if(!empty($action->comment) or !empty($action->history)):?>
<div class='history'>
<div><?php echo $this->action->printChanges($action->objectType, $action->history);?></div>
<?php if($action->comment and $action->history) echo '<br />'; echo $action->comment;?>
</div>
<?php endif;?>
<?php include dirname(__FILE__) . '/mail.css.php'?>
+19 -22
View File
@@ -10,27 +10,24 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<?php include '../../common/view/mail.css.php';?>
<table width='98%' align='center'>
<tr class='header'>
<td>
TASK #<?php echo $task->id . "=>$task->assignedTo " . html::a(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), $task->name);?>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend><?php echo $lang->task->legendDesc;?></legend>
<?php $mailTitle = 'TASK #' . $task->id . ' ' . $task->name;?>
<?php include '../../common/view/mail.header.html.php';?>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
<tr>
<td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'><?php echo 'TASK #' . $task->id . ' &nbsp;' . html::a(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), $task->name, '', "style='color: #333; text-decoration: none;'");?></td>
<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(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), '[+]', 'target="_blank"');?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style='padding: 10px; border: none;'>
<fieldset style='border: 1px solid #e5e5e5'>
<legend style='color: #114f8e'><?php echo $lang->task->legendDesc;?></legend>
<div class='content'><?php echo $task->desc;?></div>
</fieldset>
</td>
</tr>
<tr>
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
</td>
</tr>
<?php include '../../common/view/mail.footer.html.php';?>
+5 -3
View File
@@ -187,15 +187,17 @@ class report extends control
/* Reset $this->output. */
$this->clear();
/* Get email content and title.*/
$this->view->mail = $mail;
$mailContent = $this->parse('report', 'dailyreminder');
$mailTitle = $this->lang->report->mailtitle->begin;
$mailTitle .= isset($mail->bugs) ? sprintf($this->lang->report->mailtitle->bug, count($mail->bugs)) : '';
$mailTitle .= isset($mail->tasks) ? sprintf($this->lang->report->mailtitle->task, count($mail->tasks)) : '';
$mailTitle .= isset($mail->todos) ? sprintf($this->lang->report->mailtitle->todo, count($mail->todos)) : '';
$mailTitle .= isset($mail->testTasks) ? sprintf($this->lang->report->mailtitle->testTask, count($mail->testTasks)) : '';
$mailTitle = rtrim($mailTitle, ',');
/* Get email content and title.*/
$this->view->mail = $mail;
$this->view->mailTitle = $mailTitle;
$mailContent = $this->parse('report', 'dailyreminder');
/* Send email.*/
echo date('Y-m-d H:i:s') . " sending to $user, ";
+107 -73
View File
@@ -1,85 +1,119 @@
<?php $url = $this->report->getSysURL();?>
<?php include '../../common/view/mail.css.php'?>
<?php include '../../common/view/mail.header.html.php';?>
<tr>
<td>
<table cellpadding='0' cellspacing='0' style='width: 100%; border: none; border-collapse: collapse;'>
<tr>
<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>
<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(common::getSysURL() . $this->createLink('my', 'index'), '[+]', 'target="_blank"');?></td>
</tr>
</table>
</td>
</tr>
<?php if(isset($mail->bugs)):?>
<table width='66%' align='center'>
<tr class='header'>
<th class='w-id'><?php echo $lang->report->idAB;?></th>
<th><?php echo $lang->report->bugTitle;?></th>
</tr>
<?php foreach($mail->bugs as $bug):?>
<tr>
<td><?php echo $bug->id;?></td>
<td>
<?php
$link = $this->createLink('bug', 'view', "bugID=$bug->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $bug->title);
?>
</td>
</tr>
<?php endforeach;?>
</table>
<tr>
<td style='padding: 10px; border: none;'>
<h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailtitle->bug, count($mail->bugs)), ',') ?></h5>
<table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
<tr>
<th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
<th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->bugTitle;?></th>
</tr>
<?php foreach($mail->bugs as $bug):?>
<tr>
<td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $bug->id;?></td>
<td style='padding: 5px; border: 1px solid #e5e5e5;'>
<?php
$link = $this->createLink('bug', 'view', "bugID=$bug->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $bug->title);
?>
</td>
</tr>
<?php endforeach;?>
</table>
</td>
</tr>
<?php endif;?>
<?php if(isset($mail->tasks)):?>
<table width='66%' align='center'>
<tr class='header'>
<th class='w-id'><?php echo $lang->report->idAB;?></th>
<th><?php echo $lang->report->taskName;?></th>
</tr>
<?php foreach($mail->tasks as $task):?>
<tr>
<td><?php echo $task->id;?></td>
<td>
<?php
$link = $this->createLink('task', 'view', "taskID=$task->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $task->name);
?>
</td>
</tr>
<?php endforeach;?>
</table>
<tr>
<td style='padding: 10px; border: none;'>
<h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailtitle->task, count($mail->tasks)), ',') ?></h5>
<table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
<tr>
<th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
<th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->taskName;?></th>
</tr>
<?php foreach($mail->tasks as $task):?>
<tr>
<td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $task->id;?></td>
<td style='padding: 5px; border: 1px solid #e5e5e5;'>
<?php
$link = $this->createLink('task', 'view', "taskID=$task->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $task->name);
?>
</td>
</tr>
<?php endforeach;?>
</table>
</td>
</tr>
<?php endif;?>
<?php if(isset($mail->todos)):?>
<table width='66%' align='center'>
<tr class='header'>
<th class='w-id'><?php echo $lang->report->idAB;?></th>
<th><?php echo $lang->report->todoName;?></th>
</tr>
<?php foreach($mail->todos as $todo):?>
<tr>
<td><?php echo $todo->id;?></td>
<td>
<?php
$link = $this->createLink('todo', 'view', "todoID=$todo->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $todo->name);
?>
</td>
</tr>
<?php endforeach;?>
</table>
<tr>
<td style='padding: 10px; border: none;'>
<h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailtitle->todo, count($mail->todos)), ',') ?></h5>
<table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
<tr>
<th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
<th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->todoName;?></th>
</tr>
<?php foreach($mail->todos as $todo):?>
<tr>
<td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $todo->id;?></td>
<td style='padding: 5px; border: 1px solid #e5e5e5;'>
<?php
$link = $this->createLink('todo', 'view', "todoID=$todo->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $todo->name);
?>
</td>
</tr>
<?php endforeach;?>
</table>
</td>
</tr>
<?php endif;?>
<?php if(isset($mail->testTasks)):?>
<table width='66%' align='center'>
<tr class='header'>
<th class='w-id'><?php echo $lang->report->idAB;?></th>
<th><?php echo $lang->report->testTaskName;?></th>
</tr>
<?php foreach($mail->testTasks as $testTask):?>
<tr>
<td><?php echo $testTask->id;?></td>
<td>
<?php
$link = $this->createLink('testTask', 'view', "testTask=$testTask->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $testTask->name);
?>
</td>
</tr>
<?php endforeach;?>
</table>
<tr>
<td style='padding: 10px; border: none;'>
<h5 style='margin: 8px 0; font-size: 14px;'><?php echo rtrim(sprintf($lang->report->mailtitle->testTask, count($mail->testTasks)), ',') ?></h5>
<table cellpadding='0' cellspacing='0' style='width: 100%; border: 1px solid #e5e5e5; margin-bottom: 15px; border-collapse: collapse; font-size: 13px;'>
<tr>
<th style='width: 50px; border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->idAB;?></th>
<th style='border: 1px solid #e5e5e5; background-color: #f5f5f5; padding: 5px;'><?php echo $lang->report->testTaskName;?></th>
</tr>
<?php foreach($mail->testTasks as $testTask):?>
<tr>
<td style='padding: 5px; text-align: center; border: 1px solid #e5e5e5;'><?php echo $testTask->id;?></td>
<td style='padding: 5px; border: 1px solid #e5e5e5;'>
<?php
$link = $this->createLink('testTask', 'view', "testTask=$testTask->id");
if($config->requestType == 'GET' and strpos($link, 'ztcli') !== false) $link = str_replace($this->server->php_self, $config->webRoot, $link);
echo html::a($url . $link, $testTask->name);
?>
</td>
</tr>
<?php endforeach;?>
</table>
</td>
</tr>
<?php endif;?>
<?php include '../../common/view/mail.footer.html.php';?>
+19 -22
View File
@@ -10,27 +10,24 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<?php include '../../common/view/mail.css.php';?>
<table width='98%' align='center'>
<tr class='header'>
<td>
STORY #<?php echo $story->id . "=>$story->assignedTo " . html::a(common::getSysURL() . $this->createLink('story', 'view', "storyID=$story->id"), $story->title);?>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend><?php echo $lang->story->legendSpec;?></legend>
<?php $mailTitle = 'STORY #' . $story->id . ' ' . $story->title;?>
<?php include '../../common/view/mail.header.html.php';?>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
<tr>
<td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'><?php echo 'STORY #' . $story->id . ' &nbsp;' . html::a(common::getSysURL() . $this->createLink('story', 'view', "storyID=$story->id"), $story->title, '', "style='color: #333; text-decoration: none;'");?></td>
<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(common::getSysURL() . $this->createLink('story', 'view', "storyID=$story->id"), '[+]', 'target="_blank"');?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style='padding: 10px; border: none;'>
<fieldset style='border: 1px solid #e5e5e5'>
<legend style='color: #114f8e'><?php echo $lang->story->legendSpec;?></legend>
<div class='content'><?php echo $story->spec;?></div>
</fieldset>
</td>
</tr>
<tr>
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
</td>
</tr>
<?php include '../../common/view/mail.footer.html.php';?>
+19 -22
View File
@@ -10,27 +10,24 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<?php include '../../common/view/mail.css.php';?>
<table width='98%' align='center'>
<tr class='header'>
<td>
TASK #<?php echo $task->id . "=>$task->assignedTo " . html::a(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), $task->name);?>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend><?php echo $lang->task->legendDesc;?></legend>
<?php $mailTitle = 'TASK #' . $task->id . ' ' . $task->name;?>
<?php include '../../common/view/mail.header.html.php';?>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
<tr>
<td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'><?php echo 'TASK #' . $task->id . ' &nbsp;' . html::a(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), $task->name, '', "style='color: #333; text-decoration: none;'");?></td>
<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(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), '[+]', 'target="_blank"');?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style='padding: 10px; border: none;'>
<fieldset style='border: 1px solid #e5e5e5'>
<legend style='color: #114f8e'><?php echo $lang->task->legendDesc;?></legend>
<div class='content'><?php echo $task->desc;?></div>
</fieldset>
</td>
</tr>
<tr>
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
</td>
</tr>
<?php include '../../common/view/mail.footer.html.php';?>
+20 -23
View File
@@ -1,6 +1,6 @@
<?php
/**
* The mail file of testtask module of ZenTaoPMS.
* The mail file of testtesttask module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
@@ -10,27 +10,24 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<?php include '../../common/view/mail.css.php';?>
<table width='98%' align='center'>
<tr class='header'>
<td>
TESTTASK #<?php echo $testtask->id . "=>$testtask->owner " . html::a(common::getSysURL() . $this->createLink('testtask', 'view', "testtaskID=$testtask->id"), $testtask->name);?>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend><?php echo $lang->testtask->desc;?></legend>
<?php $mailTitle = 'TESTTASK #' . $testtask->id . ' ' . $testtask->name;?>
<?php include '../../common/view/mail.header.html.php';?>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='600' style='border: none; border-collapse: collapse;'>
<tr>
<td style='padding: 10px; background-color: #F8FAFE; border: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid #e5e5e5;'><?php echo 'TESTTASK #' . $testtask->id . ' &nbsp;' . html::a(common::getSysURL() . $this->createLink('testtask', 'view', "testtaskID=$testtask->id"), $testtask->name, '', "style='color: #333; text-decoration: none;'");?></td>
<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(common::getSysURL() . $this->createLink('testtask', 'view', "testtaskID=$testtask->id"), '[+]', 'target="_blank"');?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style='padding: 10px; border: none;'>
<fieldset style='border: 1px solid #e5e5e5'>
<legend style='color: #114f8e'><?php echo $lang->testtask->desc;?></legend>
<div class='content'><?php echo $testtask->desc;?></div>
</fieldset>
</td>
</tr>
<tr>
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
</td>
</tr>
<?php include '../../common/view/mail.footer.html.php';?>