优化工单系统(新邮件皮肤)

revert-735ad282
maxitio 7 years ago
parent 0128ee95d1
commit 8ff3ad2f0c

@ -52,23 +52,19 @@ class TicketController extends AdminController
$ticket_main = Ticket::where('id', '=', $id)->where('rootid', '=', 0)->first();
//if($status==1&&$ticket_main->status!=$status)
{
$adminUser = User::where('id', '=', $ticket_main->userid)->get();
foreach ($adminUser as $user) {
$subject = Config::get('appName') . '-工单被回复';
$to = $user->email;
$text = '您好,有人回复了<a href="' . Config::get('baseUrl') . '/user/ticket/' . $ticket_main->id . '/view">工单</a>,请您查看。';
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
} catch (Exception $e) {
echo $e->getMessage();
}
}
$user = User::where('id','=', $ticket_main->userid)->first();
$ticket_url = Config::get('baseUrl') . '/user/ticket/' . $ticket_main->id . '/view';
$subject = '您提出的工单已被回复';
$to = $user->email;
$text = '管理员已回复您提出的工单';
try {
Mail::send($to, $subject, 'ticket/ticket_reply.tpl', [
'user' => $user, 'text' => $text, 'content' => $content, 'title' => $ticket_main->title, 'ticket_url' => $ticket_url
], [
]);
} catch (Exception $e) {
echo $e->getMessage();
}
$antiXss = new AntiXSS();

@ -1298,15 +1298,18 @@ class UserController extends BaseController
$ticket->datetime = time();
$ticket->save();
if (Config::get('mail_ticket') == 'true' && $markdown != '') {
$new_ticket = Ticket::where('userid', $this->user->id)->where('title', $ticket->title)->orderBy('id','desc')->first();
$ticket_url = Config::get('baseUrl').'/admin/ticket/'.$new_ticket->id.'/view';
if (Config::get('mail_ticket') == 'true') {
$adminUser = User::where('is_admin', '=', '1')->get();
foreach ($adminUser as $user) {
$subject = Config::get('appName') . '-新工单被开启';
$subject = '新工单被开启';
$to = $user->email;
$text = '管理员,有人开启了新的工单,请您及时处理。';
$text = '有新工单需要您处理';
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
Mail::send($to, $subject, 'ticket/new_ticket.tpl', [
'user' => $user, 'text' => $text, 'title' => $title, 'content' => $content, 'ticket_url' =>$ticket_url
], [
]);
} catch (Exception $e) {
@ -1315,7 +1318,7 @@ class UserController extends BaseController
}
}
if (Config::get('useScFtqq') == 'true' && $markdown != '') {
if (Config::get('useScFtqq') == 'true') {
$ScFtqq_SCKEY = Config::get('ScFtqq_SCKEY');
$postdata = http_build_query(
array(
@ -1364,76 +1367,80 @@ class UserController extends BaseController
return $newResponse;
}
if ($status == 1 && $ticket_main->status != $status) {
if (Config::get('mail_ticket') == 'true' && $markdown != '') {
$adminUser = User::where('is_admin', '=', '1')->get();
foreach ($adminUser as $user) {
$subject = Config::get('appName') . '-工单被重新开启';
$to = $user->email;
$text = '管理员,有人重新开启了<a href="' . Config::get('baseUrl') . '/admin/ticket/' . $ticket_main->id . '/view">工单</a>,请您及时处理。';
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
} catch (Exception $e) {
echo $e->getMessage();
if ($content != '这条工单已被关闭') {
if ($status == 1 && $ticket_main->status != $status) {
if (Config::get('mail_ticket') == 'true') {
$adminUser = User::where('is_admin', '=', '1')->get();
foreach ($adminUser as $user) {
$subject = Config::get('appName') . '-工单被重新开启';
$to = $user->email;
$text = '管理员,有人重新开启了<a href="' . Config::get('baseUrl') . '/admin/ticket/' . $ticket_main->id . '/view">工单</a>,请您及时处理。';
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
} catch (Exception $e) {
echo $e->getMessage();
}
}
}
}
if (Config::get('useScFtqq') == 'true' && $markdown != '') {
$ScFtqq_SCKEY = Config::get('ScFtqq_SCKEY');
$postdata = http_build_query(
array(
'text' => Config::get('appName') . '-工单被重新开启',
'desp' => $markdown
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
$useScFtqq = Config::get('ScFtqq_SCKEY');
}
} else {
if (Config::get('mail_ticket') == 'true' && $markdown != '') {
$adminUser = User::where('is_admin', '=', '1')->get();
foreach ($adminUser as $user) {
$subject = Config::get('appName') . '-工单被回复';
$to = $user->email;
$text = '管理员,有人回复了<a href="' . Config::get('baseUrl') . '/admin/ticket/' . $ticket_main->id . '/view">工单</a>,请您及时处理。';
try {
Mail::send($to, $subject, 'news/warn.tpl', [
'user' => $user, 'text' => $text
], [
]);
} catch (Exception $e) {
echo $e->getMessage();
if (Config::get('useScFtqq') == 'true') {
$ScFtqq_SCKEY = Config::get('ScFtqq_SCKEY');
$postdata = http_build_query(
array(
'text' => Config::get('appName') . '-工单被重新开启',
'desp' => $markdown
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
$useScFtqq = Config::get('ScFtqq_SCKEY');
}
} else {
if (Config::get('mail_ticket') == 'true') {
$adminUser = User::where('is_admin', '=', '1')->get();
$ticket_url = Config::get('baseUrl') . '/admin/ticket/' . $ticket_main->id . '/view';
foreach ($adminUser as $user) {
$subject = '工单被回复';
$to = $user->email;
$text = '有人回复了工单,请您及时处理';
try {
Mail::send($to, $subject, 'ticket/ticket_replay_admin.tpl', [
'user' => $user, 'text' => $text, 'ticket_url' => $ticket_url, 'content' => $content, 'title' => $ticket_main->title
], [
]);
} catch (Exception $e) {
echo $e->getMessage();
}
}
}
}
if (Config::get('useScFtqq') == 'true' && $markdown != '') {
$ScFtqq_SCKEY = Config::get('ScFtqq_SCKEY');
$postdata = http_build_query(
array(
'text' => Config::get('appName') . '-工单被回复',
'desp' => $markdown
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
if (Config::get('useScFtqq') == 'true') {
$ScFtqq_SCKEY = Config::get('ScFtqq_SCKEY');
$postdata = http_build_query(
array(
'text' => Config::get('appName') . '-工单被回复',
'desp' => $markdown
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
));
$context = stream_context_create($opts);
file_get_contents('https://sc.ftqq.com/' . $ScFtqq_SCKEY . '.send', false, $context);
}
}
}
$antiXss = new AntiXSS();

@ -123,7 +123,7 @@
<tr>
<td align="left" valign="top">
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">Hi, New Friend</span>
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">Hi, Friend</span>
</font>
<div style="height: 33px; line-height: 33px; font-size: 31px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#585858" style="font-size: 24px; line-height: 32px;">

@ -143,7 +143,7 @@
<td align="center" valign="top">
<div style="height:12px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#868686" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #868686; font-size: 17px; line-height: 20px;">2019 © Malio. All&nbsp;Rights&nbsp;Reserved.</span>
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #868686; font-size: 17px; line-height: 20px;">2019 © {$config['appName']}. All&nbsp;Rights&nbsp;Reserved.</span>
</font>
<div style="height: 3px; line-height: 3px; font-size: 1px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 17px; line-height: 20px;">

@ -0,0 +1,221 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Malio</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap" rel="stylesheet">
<style type="text/css">
html {
-webkit-text-size-adjust: none;
-ms-text-size-adjust: none;
}
@media only screen and (min-device-width: 750px) {
.table750 {
width: 750px !important;
}
}
@media only screen and (max-device-width: 750px),
only screen and (max-width: 750px) {
table[class="table750"] {
width: 100% !important;
}
.mob_b {
width: 93% !important;
max-width: 93% !important;
min-width: 93% !important;
}
.mob_b1 {
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
}
.mob_left {
text-align: left !important;
}
.mob_soc {
width: 50% !important;
max-width: 50% !important;
min-width: 50% !important;
}
.mob_menu {
width: 50% !important;
max-width: 50% !important;
min-width: 50% !important;
box-shadow: inset -1px -1px 0 0 rgba(255, 255, 255, 0.2);
}
.mob_center {
text-align: center !important;
}
.top_pad {
height: 15px !important;
max-height: 15px !important;
min-height: 15px !important;
}
.mob_pad {
width: 15px !important;
max-width: 15px !important;
min-width: 15px !important;
}
.mob_div {
display: block !important;
}
}
@media only screen and (max-device-width: 550px),
only screen and (max-width: 550px) {
.mod_div {
display: block !important;
}
}
.table750 {
width: 750px;
}
p {
font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #101010; font-size: 16px; line-height: 22px; font-weight: 300; letter-spacing: -1px;
}
</style>
</head>
<body style="margin: 0; padding: 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background: #f3f3f3; min-width: 350px; font-size: 1px; line-height: normal;">
<tr>
<td align="center" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="750" class="table750" style="width: 100%; max-width: 750px; min-width: 350px; background: #f3f3f3;">
<tr>
<td class="mob_pad" width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
<td align="center" valign="top" style="background: #ffffff;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f3f3f3;">
<tr>
<td align="right" valign="top">
<div class="top_pad" style="height: 25px; line-height: 25px; font-size: 23px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="left" valign="top">
<div style="height: 39px; line-height: 39px; font-size: 37px;">&nbsp;</div>
<font class="mob_title1" face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 55px; font-weight: 300; letter-spacing: -1.5px;">
<a href="{$config['baseUrl']}" style="text-decoration:none"><span class="mob_title1" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #6777ef; font-size: 48px; line-height: 55px; font-weight: 700; letter-spacing: -1.5px;">{$config['appName']}</span></a>
</font>
<div style="height: 73px; line-height: 73px; font-size: 71px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="left" valign="top">
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">Hi, 管理员</span>
</font>
<div style="height: 33px; line-height: 33px; font-size: 31px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#585858" style="font-size: 24px; line-height: 32px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #585858; font-size: 24px; line-height: 32px;">{$text}</span>
</font>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%;">
<tbody>
<tr>
<td align="left" valign="top">
<div class="mob_btn" style="display: inline-block; vertical-align: top; width: 100%;">
<table class="mob_card" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td align="left" valign="top">
<div style="height: 35px; line-height: 35px; font-size: 33px;">&nbsp;</div>
<div style="height: 22px; line-height: 22px; font-size: 20px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#ff9800" style="font-size: 16px; line-height: 22px; font-weight: 700;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #ff9800; font-size: 16px; line-height: 22px; font-weight: 700;">{$user->user_name}: {$title}</span>
</font>
<div style="height: 12px; line-height: 12px; font-size: 10px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#101010" style="font-size: 26px; line-height: 33px; font-weight: 300; letter-spacing: -1px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #101010; font-size: 16px; line-height: 22px; font-weight: 300; letter-spacing: -1px;">{$content}</span>
</font>
<div style="height: 8px; line-height: 8px; font-size: 6px;">&nbsp;</div>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td></tr>
</table><![endif]-->
</td>
</tr>
</tbody>
</table>
<div style="height: 26px; line-height: 26px; font-size: 31px;">&nbsp;</div>
<table class="mob_btn" cellpadding="0" cellspacing="0" border="0" style="background: #6777ef; border-radius: 200px;">
<tr>
<td align="center" valign="top">
<span style="display: block; border: 1px solid #6777ef; border-radius: 200px; padding: 8px 24px 6px 24px;; font-family: 'Nunito', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
<font face="'Nunito', sans-serif" color="#ffffff" style="font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
<a href="{$ticket_url}" style="font-family: 'Nunito', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">回复工单</a>
</font>
</span>
</td>
</tr>
</table>
<div style="height: 75px; line-height: 75px; font-size: 73px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f3f3f3;">
<tr>
<td align="center" valign="top">
<div style="height: 34px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="center" valign="top">
<div style="height:12px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#868686" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #868686; font-size: 17px; line-height: 20px;">2019 © {$config['appName']}. All&nbsp;Rights&nbsp;Reserved.</span>
</font>
<div style="height: 3px; line-height: 3px; font-size: 1px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px;"><a href="{$config['baseUrl']}" target="_blank" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px; text-decoration: none;">访问官网</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="{$config['baseUrl']}/user/" target="_blank" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px; text-decoration: none;">用户中心</a></span>
</font>
<div style="height: 35px; line-height: 35px; font-size: 33px;">&nbsp;</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="mob_pad" width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,221 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Malio</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap" rel="stylesheet">
<style type="text/css">
html {
-webkit-text-size-adjust: none;
-ms-text-size-adjust: none;
}
@media only screen and (min-device-width: 750px) {
.table750 {
width: 750px !important;
}
}
@media only screen and (max-device-width: 750px),
only screen and (max-width: 750px) {
table[class="table750"] {
width: 100% !important;
}
.mob_b {
width: 93% !important;
max-width: 93% !important;
min-width: 93% !important;
}
.mob_b1 {
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
}
.mob_left {
text-align: left !important;
}
.mob_soc {
width: 50% !important;
max-width: 50% !important;
min-width: 50% !important;
}
.mob_menu {
width: 50% !important;
max-width: 50% !important;
min-width: 50% !important;
box-shadow: inset -1px -1px 0 0 rgba(255, 255, 255, 0.2);
}
.mob_center {
text-align: center !important;
}
.top_pad {
height: 15px !important;
max-height: 15px !important;
min-height: 15px !important;
}
.mob_pad {
width: 15px !important;
max-width: 15px !important;
min-width: 15px !important;
}
.mob_div {
display: block !important;
}
}
@media only screen and (max-device-width: 550px),
only screen and (max-width: 550px) {
.mod_div {
display: block !important;
}
}
.table750 {
width: 750px;
}
p {
font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #101010; font-size: 16px; line-height: 22px; font-weight: 300; letter-spacing: -1px;
}
</style>
</head>
<body style="margin: 0; padding: 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background: #f3f3f3; min-width: 350px; font-size: 1px; line-height: normal;">
<tr>
<td align="center" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="750" class="table750" style="width: 100%; max-width: 750px; min-width: 350px; background: #f3f3f3;">
<tr>
<td class="mob_pad" width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
<td align="center" valign="top" style="background: #ffffff;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f3f3f3;">
<tr>
<td align="right" valign="top">
<div class="top_pad" style="height: 25px; line-height: 25px; font-size: 23px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="left" valign="top">
<div style="height: 39px; line-height: 39px; font-size: 37px;">&nbsp;</div>
<font class="mob_title1" face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 55px; font-weight: 300; letter-spacing: -1.5px;">
<a href="{$config['baseUrl']}" style="text-decoration:none"><span class="mob_title1" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #6777ef; font-size: 48px; line-height: 55px; font-weight: 700; letter-spacing: -1.5px;">{$config['appName']}</span></a>
</font>
<div style="height: 73px; line-height: 73px; font-size: 71px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="left" valign="top">
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">Hi, 管理员</span>
</font>
<div style="height: 33px; line-height: 33px; font-size: 31px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#585858" style="font-size: 24px; line-height: 32px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #585858; font-size: 24px; line-height: 32px;">{$text}</span>
</font>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%;">
<tbody>
<tr>
<td align="left" valign="top">
<div class="mob_btn" style="display: inline-block; vertical-align: top; width: 100%;">
<table class="mob_card" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td align="left" valign="top">
<div style="height: 35px; line-height: 35px; font-size: 33px;">&nbsp;</div>
<div style="height: 22px; line-height: 22px; font-size: 20px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#ff9800" style="font-size: 16px; line-height: 22px; font-weight: 700;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #ff9800; font-size: 16px; line-height: 22px; font-weight: 700;">{$user->user_name}: {$title}</span>
</font>
<div style="height: 12px; line-height: 12px; font-size: 10px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#101010" style="font-size: 26px; line-height: 33px; font-weight: 300; letter-spacing: -1px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #101010; font-size: 16px; line-height: 22px; font-weight: 300; letter-spacing: -1px;">{$content}</span>
</font>
<div style="height: 8px; line-height: 8px; font-size: 6px;">&nbsp;</div>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td></tr>
</table><![endif]-->
</td>
</tr>
</tbody>
</table>
<div style="height: 26px; line-height: 26px; font-size: 31px;">&nbsp;</div>
<table class="mob_btn" cellpadding="0" cellspacing="0" border="0" style="background: #6777ef; border-radius: 200px;">
<tr>
<td align="center" valign="top">
<span style="display: block; border: 1px solid #6777ef; border-radius: 200px; padding: 8px 24px 6px 24px;; font-family: 'Nunito', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
<font face="'Nunito', sans-serif" color="#ffffff" style="font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
<a href="{$ticket_url}" style="font-family: 'Nunito', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">查看工单</a>
</font>
</span>
</td>
</tr>
</table>
<div style="height: 75px; line-height: 75px; font-size: 73px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f3f3f3;">
<tr>
<td align="center" valign="top">
<div style="height: 34px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="center" valign="top">
<div style="height:12px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#868686" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #868686; font-size: 17px; line-height: 20px;">2019 © {$config['appName']}. All&nbsp;Rights&nbsp;Reserved.</span>
</font>
<div style="height: 3px; line-height: 3px; font-size: 1px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px;"><a href="{$config['baseUrl']}" target="_blank" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px; text-decoration: none;">访问官网</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="{$config['baseUrl']}/user/" target="_blank" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px; text-decoration: none;">用户中心</a></span>
</font>
<div style="height: 35px; line-height: 35px; font-size: 33px;">&nbsp;</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="mob_pad" width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,221 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Malio</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap" rel="stylesheet">
<style type="text/css">
html {
-webkit-text-size-adjust: none;
-ms-text-size-adjust: none;
}
@media only screen and (min-device-width: 750px) {
.table750 {
width: 750px !important;
}
}
@media only screen and (max-device-width: 750px),
only screen and (max-width: 750px) {
table[class="table750"] {
width: 100% !important;
}
.mob_b {
width: 93% !important;
max-width: 93% !important;
min-width: 93% !important;
}
.mob_b1 {
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
}
.mob_left {
text-align: left !important;
}
.mob_soc {
width: 50% !important;
max-width: 50% !important;
min-width: 50% !important;
}
.mob_menu {
width: 50% !important;
max-width: 50% !important;
min-width: 50% !important;
box-shadow: inset -1px -1px 0 0 rgba(255, 255, 255, 0.2);
}
.mob_center {
text-align: center !important;
}
.top_pad {
height: 15px !important;
max-height: 15px !important;
min-height: 15px !important;
}
.mob_pad {
width: 15px !important;
max-width: 15px !important;
min-width: 15px !important;
}
.mob_div {
display: block !important;
}
}
@media only screen and (max-device-width: 550px),
only screen and (max-width: 550px) {
.mod_div {
display: block !important;
}
}
.table750 {
width: 750px;
}
p {
font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #101010; font-size: 16px; line-height: 22px; font-weight: 300; letter-spacing: -1px;
}
</style>
</head>
<body style="margin: 0; padding: 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background: #f3f3f3; min-width: 350px; font-size: 1px; line-height: normal;">
<tr>
<td align="center" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="750" class="table750" style="width: 100%; max-width: 750px; min-width: 350px; background: #f3f3f3;">
<tr>
<td class="mob_pad" width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
<td align="center" valign="top" style="background: #ffffff;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f3f3f3;">
<tr>
<td align="right" valign="top">
<div class="top_pad" style="height: 25px; line-height: 25px; font-size: 23px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="left" valign="top">
<div style="height: 39px; line-height: 39px; font-size: 37px;">&nbsp;</div>
<font class="mob_title1" face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 55px; font-weight: 300; letter-spacing: -1.5px;">
<a href="{$config['baseUrl']}" style="text-decoration:none"><span class="mob_title1" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #6777ef; font-size: 48px; line-height: 55px; font-weight: 700; letter-spacing: -1.5px;">{$config['appName']}</span></a>
</font>
<div style="height: 73px; line-height: 73px; font-size: 71px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="left" valign="top">
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -1.5px;">Hi, {$user->user_name}</span>
</font>
<div style="height: 33px; line-height: 33px; font-size: 31px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#585858" style="font-size: 24px; line-height: 32px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #585858; font-size: 24px; line-height: 32px;">{$text}</span>
</font>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%;">
<tbody>
<tr>
<td align="left" valign="top">
<div class="mob_btn" style="display: inline-block; vertical-align: top; width: 100%;">
<table class="mob_card" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td align="left" valign="top">
<div style="height: 35px; line-height: 35px; font-size: 33px;">&nbsp;</div>
<div style="height: 22px; line-height: 22px; font-size: 20px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#ff9800" style="font-size: 16px; line-height: 22px; font-weight: 700;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #ff9800; font-size: 16px; line-height: 22px; font-weight: 700;">标题: {$title}</span>
</font>
<div style="height: 12px; line-height: 12px; font-size: 10px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#101010" style="font-size: 26px; line-height: 33px; font-weight: 300; letter-spacing: -1px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #101010; font-size: 16px; line-height: 22px; font-weight: 300; letter-spacing: -1px;">{$content}</span>
</font>
<div style="height: 8px; line-height: 8px; font-size: 6px;">&nbsp;</div>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td></tr>
</table><![endif]-->
</td>
</tr>
</tbody>
</table>
<div style="height: 26px; line-height: 26px; font-size: 31px;">&nbsp;</div>
<table class="mob_btn" cellpadding="0" cellspacing="0" border="0" style="background: #6777ef; border-radius: 200px;">
<tr>
<td align="center" valign="top">
<span style="display: block; border: 1px solid #6777ef; border-radius: 200px; padding: 8px 24px 6px 24px;; font-family: 'Nunito', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
<font face="'Nunito', sans-serif" color="#ffffff" style="font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
<a href="{$ticket_url}" style="font-family: 'Nunito', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 20px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">查看工单</a>
</font>
</span>
</td>
</tr>
</table>
<div style="height: 75px; line-height: 75px; font-size: 73px;">&nbsp;</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f3f3f3;">
<tr>
<td align="center" valign="top">
<div style="height: 34px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
<tr>
<td align="center" valign="top">
<div style="height:12px; line-height: 34px; font-size: 32px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#868686" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #868686; font-size: 17px; line-height: 20px;">2019 © {$config['appName']}. All&nbsp;Rights&nbsp;Reserved.</span>
</font>
<div style="height: 3px; line-height: 3px; font-size: 1px;">&nbsp;</div>
<font face="'Nunito', sans-serif" color="#1a1a1a" style="font-size: 17px; line-height: 20px;">
<span style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px;"><a href="{$config['baseUrl']}" target="_blank" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px; text-decoration: none;">访问官网</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="{$config['baseUrl']}/user/" target="_blank" style="font-family: 'Nunito', Arial, Tahoma, Geneva, sans-serif; color: #1a1a1a; font-size: 17px; line-height: 20px; text-decoration: none;">用户中心</a></span>
</font>
<div style="height: 35px; line-height: 35px; font-size: 33px;">&nbsp;</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="mob_pad" width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

@ -13,7 +13,6 @@
<!-- Template CSS -->
<link rel="stylesheet" href="/theme/malio/assets/css/style.css">
<link rel="stylesheet" href="/theme/malio/assets/css/components.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.7.2/animate.min.css">
{if $malio_config['enable_crisp'] == true && $malio_config['enable_crisp_outside'] == true}
{include file='crisp.tpl'}
@ -312,9 +311,7 @@
if (data.ret == 1) {
window.location.assign('/user')
} else if(data.ret == 2) {
$('.login-form-item').addClass('animated fadeOut faster')
$('.login-form-item').hide('300');
$('.login-form-item').hide('500');
$('form').removeClass('was-validated');
$('#2fa-form').show('fast');
{if $geetest_html != null}
@ -330,7 +327,11 @@
{if $recaptcha_sitekey != null}
grecaptcha.reset();
{/if}
swal('出错了', '密码或邮箱不正确', 'error');
var errorMsg = '密码或邮箱不正确';
if (twoFA == true) {
errorMsg = '两步验证码错误'
}
swal('出错了', errorMsg, 'error');
}
}
});

@ -196,8 +196,11 @@
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" name="agree" class="custom-control-input" id="agree" checked="checked">
<input type="checkbox" name="agree" class="custom-control-input" id="agree" checked="checked" required>
<label class="custom-control-label" for="agree">注册即代表同意 <a href="/tos" target="blank">服务条款</a></label>
<div class="invalid-feedback">
请阅读服务条款并勾选
</div>
</div>
</div>

@ -54,7 +54,7 @@
<div class="form-group row mb-4">
<label class="col-form-label text-md-right col-12 col-md-3 col-lg-3"></label>
<div class="col-sm-12 col-md-7">
<button class="btn btn-primary" onclick="createTicket()">提交工单</button>
<button id="create-ticket" class="btn btn-primary" onclick="createTicket()">提交工单</button>
</div>
</div>
</div>

Loading…
Cancel
Save