|
|
|
@ -196,6 +196,47 @@ JOJOKA; |
|
|
|
doPlatformOperation( {$CR['id']}, 7, c, true ); |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
xtype: 'combo', |
|
|
|
fieldLabel: "Platform Type", |
|
|
|
id: 'pl_lay', |
|
|
|
width: 200, |
|
|
|
lazyRender: true, |
|
|
|
mode: 'local', |
|
|
|
forceSelection: true, |
|
|
|
triggerAction: 'all', |
|
|
|
editable: false, |
|
|
|
readOnly: false, |
|
|
|
disableKeyFilter: true, |
|
|
|
tpl:'<tpl for="."><div class="x-combo-list-item"><img width="16px" src="{icon}"/> {name}</div></tpl>', |
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
fields: ['abbr','name','icon'], |
|
|
|
data: [['A','Layout A','/style/assets/pt_layout_A.png'],['B','Layout B','/style/assets/pt_layout_B.png'],['C','Layout C','/style/assets/pt_layout_C.png'],['D','Layout D','/style/assets/pt_layout_D.png'],['E','Layout E','/style/assets/pt_layout_E.png'],['F','Layout F','/style/assets/pt_layout_F.png']] |
|
|
|
}), |
|
|
|
valueField: 'abbr', |
|
|
|
displayField: 'name', |
|
|
|
value: '{$CR['layout']}', |
|
|
|
listeners:{ |
|
|
|
select: function( t, r, i ){ |
|
|
|
t.getEl().setStyle({ |
|
|
|
'background-image': 'url(' + r.data.icon + ')', |
|
|
|
'background-repeat': 'no-repeat', |
|
|
|
'background-position': '3px center', |
|
|
|
'background-size': '16px 16px', |
|
|
|
'padding-left': '25px' |
|
|
|
}); |
|
|
|
doPlatformOperation( {$CR['id']}, 19, r.data.abbr, true ); |
|
|
|
}, |
|
|
|
afterrender: function( t ){ |
|
|
|
t.getEl().setStyle({ |
|
|
|
'background-image': 'url(' + t.store.data.items[t.store.findExact( 'abbr', t.value )].data.icon + ')', |
|
|
|
'background-repeat': 'no-repeat', |
|
|
|
'background-position': '3px center', |
|
|
|
'background-size': '16px 16px', |
|
|
|
'padding-left': '25px' |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
},{$ROUTING}] |
|
|
|
}] |
|
|
|
},{ |
|
|
|
@ -209,6 +250,7 @@ JOJOKA; |
|
|
|
layout: 'hbox', |
|
|
|
items: [{ |
|
|
|
xtype: 'panel', |
|
|
|
width: '40%', |
|
|
|
id: 'scada_container', |
|
|
|
tbar:[{ |
|
|
|
text: "{$Labels->GetLabel( '_ADD_' )}", |
|
|
|
|