Add warning grace time notification for LotW certs
这个提交包含在:
父节点
5d2ca03410
当前提交
50190eb4eb
共有 3 个文件被更改,包括 8 次插入 和 3 次删除
|
|
@ -22,6 +22,7 @@ $lang['lotw_status'] = 'Status';
|
|||
$lang['lotw_options'] = 'Options';
|
||||
$lang['lotw_valid'] = 'Valid';
|
||||
$lang['lotw_expired'] = 'Expired';
|
||||
$lang['lotw_expiring'] = 'Expiring';
|
||||
$lang['lotw_not_synced'] = 'Not Synced';
|
||||
|
||||
$lang['lotw_certificate_dxcc'] = 'Certificate DXCC';
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ $lang['lotw_status'] = 'Status';
|
|||
$lang['lotw_options'] = 'Optionen';
|
||||
$lang['lotw_valid'] = 'Gültig';
|
||||
$lang['lotw_expired'] = 'Abgelaufen';
|
||||
$lang['lotw_expiring'] = 'Läuft ab';
|
||||
$lang['lotw_not_synced'] = 'Nicht synchronisiert';
|
||||
|
||||
$lang['lotw_certificate_dxcc'] = 'Zertifikats-DXCC';
|
||||
|
|
|
|||
|
|
@ -76,11 +76,14 @@
|
|||
</td>
|
||||
<td>
|
||||
<?php $current_date = date('Y-m-d H:i:s'); ?>
|
||||
<?php $warning_date = date('Y-m-d H:i:s', strtotime($row->date_expires.'-10 days')); ?>
|
||||
|
||||
<?php if ($current_date <= $row->date_expires) { ?>
|
||||
<span class="badge badge-success"><?php echo $this->lang->line('lotw_valid'); ?></span>
|
||||
<?php } else { ?>
|
||||
<?php if ($current_date > $row->date_expires) { ?>
|
||||
<span class="badge badge-danger"><?php echo $this->lang->line('lotw_expired'); ?></span>
|
||||
<?php } else if ($current_date <= $row->date_expires && $current_date > $warning_date) { ?>
|
||||
<span class="badge badge-warning"><?php echo $this->lang->line('lotw_expiring'); ?></span>
|
||||
<?php } else { ?>
|
||||
<span class="badge badge-success"><?php echo $this->lang->line('lotw_valid'); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row->last_upload) { ?>
|
||||
|
|
|
|||
正在加载…
在新工单中引用