-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpanel.tpl
80 lines (71 loc) · 2.98 KB
/
cpanel.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{include file="header.tpl" navxz='5' title='我的产品' hostname=$c['网站名称']}{include file="alert.tpl"}
<!-- Breadcrumps -->
<div class="breadcrumbs">
<div class="row">
<div class="col-sm-6">
<h1>{$mlang['我的订单']}</h1>
</div>
</div>
</div>
<style>
@media only screen and (max-width: 767px){
.wdddsj { width: 0px; display: none; }
.wdddsjzt { color: black;background: white;margin: 0;padding: 0; }
}
</style>
<!-- End of Breadcrumps -->
<div class="servers-table">
<div class="row">
<div class="col-sm-12">
<table class="mdui-table">
<thead>
<tr>
<th>{$lang['主域名']}</th>
<th class="wdddsj">产品类型/名称</th>
<th>{$lang['状态']}</th>
<th class="wdddsj">{$lang['开通时间']}</th>
<th>{$lang['到期时间']}</th>
<th>{$mlang['操作']}</th>
</tr>
</thead>
<tbody>
{foreach from=$servers item=server}
<tr>
<td><a href="{$ROOT}/control/invoice/{$server['id']}/">{if $server['域名']=='无需主域名'}{$server['用户名']}{else}{$server['域名']}{/if}</a></td>
<td class="wdddsj">{$server['产品类型']}</td>
<td>
<!-- {if $server['状态']=='激活'} -->
<a class="btn btn-success wdddsjzt">{$lang['激活']}</a>
<!-- {elseif $server['状态']=='等待审核'} -->
<a class="btn btn-info wdddsjzt">{$lang['等待审核']}</a>
<!-- {elseif $server['状态']=='暂停'} -->
<a class="btn btn-warning wdddsjzt">{$lang['暂停']}</a>
<!-- {elseif $server['状态']=='停止'} -->
<a class="btn btn-info wdddsjzt" style="background-color: #b94a48;color: #FFF;">{$lang['停止']}</a>
<!-- {elseif $server['状态']=='驳回'} -->
<a class="btn btn-info wdddsjzt" style="background-color: #333333;color: #FFF;">{$lang['驳回']}</a>
<!-- {elseif $server['状态']=='等待付款'} -->
<a class="btn btn-default wdddsjzt">{$lang['等待付款']}</a>
<!-- {else} -->
<a class="btn btn-info wdddsjzt">{$server['状态']}</a>
<!-- {/if} -->
</td>
<td class="wdddsj">{$server['开通时间']}</td>
<td>{$server['到期时间']}<xh class="wdddsj">({if is_array($server['周期'])}{$server['周期']['名称']}{else}{$server['周期']}{/if})</xh></td>
<td>
<div class="btn-group">
{if $server['状态']=='等待付款'}
<a href="{$ROOT}/control/invoice/{$server['id']}/" class="mdui-btn mdui-btn-primary">{$lang['订单']}</a>
{else}
<a href="{$ROOT}/control/detail/{$server['id']}/" class="mdui-color-pink-accent mdui-btn mdui-btn-{if $server['状态']!='激活' and $server['状态']!='暂停'}default{else}primary{/if} mdui-color-pink-accent">{$lang['管理']}</a>
{/if}
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
{include file="footer.tpl"}