-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.zpm
81 lines (77 loc) · 2.47 KB
/
module.zpm
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
81
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
<div class="panel-heading">
<img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">
<div class="zmodule_title">
<@ ModuleName @>
</div>
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
</div>
<!--@ Result @-->
<% if isDeleteLanguage %>
<div class="zform_wrapper alert alert-danger">
<h2><: Delete :>: <@ CurrentLanguage @>?</h2>
<p><: Please confirm that you want to delete this language. :></p>
<form action="./?module=languages&action=DeleteLanguage" method="post">
<table class="none" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="right">
<input type="hidden" name="inDelete" value="<@ CurrentID @>">
<button class="delete btn btn-danger" type="submit" ><: Delete :></button>
<button class="btn btn-default" type="button" onclick="window.location.href='./?module=languages';return false;"><: Cancel :></button>
</td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
<div class="zgrid_wrapper">
<h2><: Current languages :></h2>
<form action="./?module=languages&action=ConfirmDeleteLanguage" method="post">
<table class="table table-striped">
<tr>
<th><: Language code :></th>
<th><: Language name :></th>
<th></th>
<th></th>
</tr>
<tr>
<td>en</td>
<td>English</td>
<td> </td>
</tr>
<% if LocalLangList %>
<% loop LocalLangList %>
<tr>
<td><& code &></td>
<td><& name &></td>
<td><button class="delete btn btn-danger" type="submit" id="button" name="inDelete_<& code &>" id="inDelete_<& code &>" value="inDelete_<& code &>"><: Delete :></button></td>
</tr>
<% endloop %>
<% endif %>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% if isAddLanguage %>
<div class="zform_wrapper">
<h2><: Install a new language :></h2>
<form action="./?module=languages&action=InstallLanguage" method="post">
<table class="table table-striped">
<tr>
<th><: Choose Language :>:</th>
<td>
<select name="inLanguage" id="inLanguage" style="min-width:85px;">
<% loop RemoteLangList %>
<option value="<& language &>" <& selected &>><& language &></option>
<% endloop %>
</select>
</td>
<td><button class="button-loader btn btn-primary" type="submit" name="submit"><: Install! :></button></td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
</div>