-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ptl
81 lines (78 loc) · 3.16 KB
/
test.ptl
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(content-wrapper){
SetTitle("Export")
Div(breadcrumb){
Span(Class: text-muted, Body: "Select the application which do you want to export and proceed to the payload generation process.")
}
Include(export_link)
DBFind(buffer_data, src_buffer).Columns("value->app_id,value->app_name,value->menu_name,value->menu_id,value->count_menu").Where("key='export' and member_id=#key_id#").Vars(buffer)
If(#buffer_value_app_id# > 0){
If(#res_type#=="pages"){
DBFind(pages, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("app_id = #buffer_value_app_id#").Order("id")
}
If(#res_type#=="blocks"){
DBFind(blocks, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("app_id = #buffer_value_app_id#").Order("id")
}
If(#res_type#=="menu"){
DBFind(menu, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("id in (#buffer_value_menu_id#)").Order("id")
}
If(#res_type#=="parameters"){
DBFind(app_params, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("app_id = #buffer_value_app_id#").Order("id")
}
If(#res_type#=="languages"){
DBFind(languages, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("app_id = #buffer_value_app_id#").Order("id")
}
If(#res_type#=="contracts"){
DBFind(contracts, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("app_id = #buffer_value_app_id#").Order("id")
}
If(#res_type#=="tables"){
DBFind(tables, src).Custom(cbox){
Input(Name: cbox, Type: checkbox, Value: true, Disabled: 1)
}.Where("app_id = #buffer_value_app_id#").Order("id")
}
}
Div(row){
Div(col-md-9 col-md-offset-0){
Table(src, "ID=id,Name=name,=cbox").Style(
tbody > tr:nth-of-type(odd) {
background-color: #fafbfc;
}
tbody > tr > td {
word-break: break-all;
padding: 8px 20px !important;
font-weight: 400;
font-size: 13px;
color: #666;
border-top: 1px solid #eee;
vertical-align: middle;
}
tr > *:first-child {
padding-left:20px;
width: 100px;
}
tr > *:last-child {
text-align:right;
padding-right:20px;
width: 50px;
}
thead {
background-color: #eee;
}
)
}
Div(col-md-3 col-md-offset-0){
Include(export_info)
}
}
}