lisy
2023-06-16 28b988ca5dc4b51de34c6ebf996579723b2db414
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
    @layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <input hidden id="language" value="${language}">
            <div class="ibox-title">
                @if(language==1){
                <h5>加盟商管理</h5>
                @}
                @if(language==2){
                <h5>Franchisee management</h5>
                @}
                @if(language==3){
                <h5>Manajemen franchisee</h5>
                @}
 
 
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                @if(language==1){
                                <#NameCon id="name" name="加盟商名称" />
                                @}
                                @if(language==2){
                                <#NameCon id="name" name="Franchisee name" />
                                @}
                                @if(language==3){
                                <#NameCon id="name" name="Nama franchisee" />
                                @}
 
 
                            </div>
                            <div class="col-sm-3">
                                @if(language==1){
                                <#NameCon id="account" name="账号" />
                                @}
                                @if(language==2){
                                <#NameCon id="account" name="Account" />
                                @}
                                @if(language==3){
                                <#NameCon id="account" name="Nomor Akun" />
                                @}
 
                            </div>
                            <div class="col-sm-3">
                                @if(language==1){
                                <#NameCon id="principalName" name="联系人" />
                                @}
                                @if(language==2){
                                <#NameCon id="principalName" name="Contacts" />
                                @}
                                @if(language==3){
                                <#NameCon id="principalName" name="Kontak" />
                                @}
 
                            </div>
                            <div class="col-sm-3">
                                @if(language==1){
                                <#NameCon id="principalPhone" name="联系电话" />
                                @}
                                @if(language==2){
                                <#NameCon id="principalPhone" name="Contact number" />
                                @}
                                @if(language==3){
                                <#NameCon id="principalPhone" name="Nomor kontak" />
                                @}
 
                            </div>
                            <div class="col-sm-3">
                                @if(language==1){
                                <#NameCon id="serviceStr" name="经营业务" />
                                @}
                                @if(language==2){
                                <#NameCon id="serviceStr" name="Operation business" />
                                @}
                                @if(language==3){
                                <#NameCon id="serviceStr" name="Bisnis" />
                                @}
 
                            </div>
 
                            <div class="col-sm-3">
 
                                @if(language==1){
                                <#SelectCon id="state" name="状态" >
                                <option value="">全部</option>
                                <option value="2">正常</option>
                                <option value="1">禁用</option>
                            </#SelectCon>
                                @}
                                @if(language==2){
                            <#SelectCon id="state" name="State" >
                            <option value="">All</option>
                            <option value="2">Normal</option>
                            <option value="1">Disable</option>
                        </#SelectCon>
                                @}
                                @if(language==3){
                        <#SelectCon id="state" name="Status" >
                        <option value="">Semua</option>
                        <option value="2">normal</option>
                        <option value="1">matikan</option>
                    </#SelectCon>
                                @}
 
                            </div>
                            <div class="col-sm-3">
 
                                @if(language==1){
                                <#button name="搜索" icon="fa-search" clickFun="Franchisee.search()"/>
                                <#button name="重置" icon="fa-trash" clickFun="Franchisee.resetSearch()" space="true"/>
                                @}
                                @if(language==2){
                                <#button name="Search" icon="fa-search" clickFun="Franchisee.search()"/>
                                <#button name="Reset" icon="fa-trash" clickFun="Franchisee.resetSearch()" space="true"/>
                                @}
                                @if(language==3){
                                <#button name="Pencarian" icon="fa-search" clickFun="Franchisee.search()"/>
                                <#button name="Mengatur ulang" icon="fa-trash" clickFun="Franchisee.resetSearch()" space="true"/>
                                @}
 
                            </div>
                        </div>
                        <div class="hidden-xs" id="FranchiseeTableToolbar" role="group">
                            @if(language==1){
                            @if(shiro.hasPermission("/tCompany/addFranchisee")){
                            <#button name="添加" icon="fa-plus" clickFun="Franchisee.addFranchisee()"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/updateFranchisee")){
                            <#button name="修改" icon="fa-edit" clickFun="Franchisee.updateFranchisee()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/deleteFranchisee")){
                            <#button name="删除" icon="fa-remove" clickFun="Franchisee.deleteFranchisee()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/detailFranchisee")){
                            <#button name="查看详情" icon="fa-remove" clickFun="Franchisee.detailFranchisee()" space="true"/>
                            @}
                            @}
                            @if(language==2){
                            @if(shiro.hasPermission("/tCompany/addFranchisee")){
                            <#button name="Add" icon="fa-plus" clickFun="Franchisee.addFranchisee()"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/updateFranchisee")){
                            <#button name="Update" icon="fa-edit" clickFun="Franchisee.updateFranchisee()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/deleteFranchisee")){
                            <#button name="Delete" icon="fa-remove" clickFun="Franchisee.deleteFranchisee()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/detailFranchisee")){
                            <#button name="View details" icon="fa-remove" clickFun="Franchisee.detailFranchisee()" space="true"/>
                            @}
                            @}
                            @if(language==3){
                            @if(shiro.hasPermission("/tCompany/addFranchisee")){
                            <#button name="Tambah" icon="fa-plus" clickFun="Franchisee.addFranchisee()"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/updateFranchisee")){
                            <#button name="Sunting" icon="fa-edit" clickFun="Franchisee.updateFranchisee()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/deleteFranchisee")){
                            <#button name="Hapus" icon="fa-remove" clickFun="Franchisee.deleteFranchisee()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tCompany/detailFranchisee")){
                            <#button name="Melihat rincian" icon="fa-remove" clickFun="Franchisee.detailFranchisee()" space="true"/>
                            @}
                            @}
 
                        </div>
                        <#table id="FranchiseeTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/modular/system/tCompany/franchisee.js"></script>
<script>
    laydate.render({
        elem: '#insertTime'
        ,range: true
    });
</script>
@}