|
|
|
@ -79,7 +79,7 @@ JOJOKA; |
|
|
|
}; |
|
|
|
$LINES.='</tr></table>'; |
|
|
|
}; |
|
|
|
$ROUTING = "{ xtype:'panel', width: '100%', layout: 'table', defaults: {margins: {top:10, right:10, bottom:10, left:10},padding:8},baseCls: 'x-plain', layoutConfig: {columns: 2},frame: false,border: false,items:[{xtype:'panel',border:false,frame:false,colspan:2,html:'{$Labels->GetLabel('_SMM_MET_ROUTE_')}'}"; |
|
|
|
$ROUTING = "{ xtype:'panel', width: '100%', layout: 'table', defaults: {margins: {top:10, right:10, bottom:10, left:10},padding:8},baseCls: 'x-plain', layoutConfig: {columns: 2},frame: false,border: false, height: PanelH - 500, items:[{xtype:'panel',border:false,frame:false,colspan:2,html:'{$Labels->GetLabel('_SMM_MET_ROUTE_')}'}"; |
|
|
|
foreach( $Sz as $Z ){ |
|
|
|
$AS = 'false'; |
|
|
|
for( $idx = 0; $idx < $PINFO['INFO_COUNT']; $idx++){ |
|
|
|
@ -93,7 +93,7 @@ JOJOKA; |
|
|
|
}; |
|
|
|
$ROUTING .= "]}"; |
|
|
|
} else { |
|
|
|
$ROUTING = "{xtype:'spacer',height:0}"; |
|
|
|
$ROUTING = "{xtype:'spacer',height: PanelH - 500}"; |
|
|
|
}; |
|
|
|
$TOP ="<td><table width=\"100%\" border=0><tr><td><table border=0 width=\"100%\" style=\"border-collapse: collapse; border-spacing: 5px 5px;\">"; |
|
|
|
if( $PINFO['PREV_IS_MULTI'] ){ |
|
|
|
@ -143,127 +143,160 @@ JOJOKA; |
|
|
|
xtype: 'panel', |
|
|
|
title: '{$Labels->GetLabel('_GENERAL_')}', |
|
|
|
items: [{ |
|
|
|
xtype: 'form', |
|
|
|
height: PanelH - 283, |
|
|
|
labelWidth: 150, |
|
|
|
labelAlign: 'right', |
|
|
|
margins: {top:10, right:10, bottom:10, left:10}, |
|
|
|
padding:8, |
|
|
|
items: [{ |
|
|
|
xtype: 'combo', |
|
|
|
id: 'sens_se', |
|
|
|
fieldLabel: "{$Labels->GetLabel('_STATUS_')}", |
|
|
|
lazyRender: true, |
|
|
|
mode: 'local', |
|
|
|
forceSelection: true, |
|
|
|
triggerAction: 'all', |
|
|
|
editable: false, |
|
|
|
disableKeyFilter: true, |
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
fields: ['mode','mode_txt'], |
|
|
|
data: [ |
|
|
|
['D','{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
['E','{$Labels->GetLabel('___ENABLED__')}'] |
|
|
|
] |
|
|
|
}), |
|
|
|
valueField: 'mode', |
|
|
|
displayField: 'mode_txt', |
|
|
|
value: '{$CR['status']}', |
|
|
|
width: 200, |
|
|
|
listeners:{ |
|
|
|
select: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 2, b, true ); |
|
|
|
xtype: 'panel', |
|
|
|
layout: 'table', |
|
|
|
border: false, |
|
|
|
frame: false, |
|
|
|
width: '100%', |
|
|
|
wdefaults: { bodyStyle:'padding:10px; text-align: center;'}, |
|
|
|
layoutConfig: { columns: 2 }, |
|
|
|
items:[{ |
|
|
|
xtype: 'form', |
|
|
|
height: PanelH - 500, |
|
|
|
labelWidth: 150, |
|
|
|
labelAlign: 'right', |
|
|
|
border: false, |
|
|
|
frame: false, |
|
|
|
margins: {top:10, right:10, bottom:10, left:10}, |
|
|
|
padding:8, |
|
|
|
items: [{ |
|
|
|
xtype: 'combo', |
|
|
|
id: 'sens_se', |
|
|
|
fieldLabel: "{$Labels->GetLabel('_STATUS_')}", |
|
|
|
lazyRender: true, |
|
|
|
mode: 'local', |
|
|
|
forceSelection: true, |
|
|
|
triggerAction: 'all', |
|
|
|
editable: false, |
|
|
|
disableKeyFilter: true, |
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
fields: ['mode','mode_txt'], |
|
|
|
data: [ |
|
|
|
['D','{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
['E','{$Labels->GetLabel('___ENABLED__')}'] |
|
|
|
] |
|
|
|
}), |
|
|
|
valueField: 'mode', |
|
|
|
displayField: 'mode_txt', |
|
|
|
value: '{$CR['status']}', |
|
|
|
width: 200, |
|
|
|
listeners:{ |
|
|
|
select: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 2, b, true ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
xtype: 'textfield', |
|
|
|
id: 'plt_name', |
|
|
|
fieldLabel: '{$Labels->GetLabel('_SMM_PAT_NAME_')}', |
|
|
|
maxlength: 64, |
|
|
|
value: '{$CR['name']}', |
|
|
|
listeners:{ |
|
|
|
change: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 6, c, true ); |
|
|
|
},{ |
|
|
|
xtype: 'textfield', |
|
|
|
id: 'plt_name', |
|
|
|
fieldLabel: '{$Labels->GetLabel('_SMM_PAT_NAME_')}', |
|
|
|
maxlength: 64, |
|
|
|
value: '{$CR['name']}', |
|
|
|
listeners:{ |
|
|
|
change: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 6, c, true ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
xtype: 'textfield', |
|
|
|
id: 'plt_lvl', |
|
|
|
fieldLabel: '{$Labels->GetLabel('_SMM_PAT_LEVEL_')}', |
|
|
|
maxlength: 2, |
|
|
|
value: '{$CR['level']}', |
|
|
|
listeners:{ |
|
|
|
change: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 7, c, true ); |
|
|
|
},{ |
|
|
|
xtype: 'textfield', |
|
|
|
id: 'plt_lvl', |
|
|
|
fieldLabel: '{$Labels->GetLabel('_SMM_PAT_LEVEL_')}', |
|
|
|
maxlength: 2, |
|
|
|
value: '{$CR['level']}', |
|
|
|
listeners:{ |
|
|
|
change: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 7, c, true ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
xtype: 'combo', |
|
|
|
fieldLabel: "Platform Type", |
|
|
|
id: 'pl_lay_A', |
|
|
|
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']}', |
|
|
|
init_value: '{$CR['layout']}', |
|
|
|
listeners:{ |
|
|
|
select: function( t, r, i ){ |
|
|
|
if( r.data.abbr < 'C' && t.init_value > 'B' ){ |
|
|
|
Ext.Msg.show({ |
|
|
|
title:'{$Labels->GetLabel('_REMOVE_PLATFORM_')}?', |
|
|
|
msg: '{$Labels->GetLabel('_REMOVE_PLAT_QUES_')}?', |
|
|
|
buttons: Ext.Msg.OKCANCEL, |
|
|
|
fn: function(btn){ |
|
|
|
if( btn == 'ok' ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 20, r.data.abbr, true ); |
|
|
|
} else { |
|
|
|
t.suspendEvents(); |
|
|
|
t.setValue( t.init_value, true ); |
|
|
|
t.resumeEvents(); |
|
|
|
t.getEl().setStyle({ |
|
|
|
'background-image': 'url(' + t.store.data.items[t.store.findExact( 'abbr', t.init_value )].data.icon + ')', |
|
|
|
'background-repeat': 'no-repeat', |
|
|
|
'background-position': '3px center', |
|
|
|
'background-size': '16px 16px', |
|
|
|
'padding-left': '25px' |
|
|
|
}); |
|
|
|
}; |
|
|
|
}, |
|
|
|
icon: Ext.MessageBox.QUESTION |
|
|
|
}); |
|
|
|
} else { |
|
|
|
},{ |
|
|
|
xtype: 'textfield', |
|
|
|
id: 'plt_lsname', |
|
|
|
fieldLabel: '{$Labels->GetLabel('_SMM_PAT_LSNAME_')}', |
|
|
|
maxlength: 2, |
|
|
|
value: '{$CR['left_side']}', |
|
|
|
listeners:{ |
|
|
|
change: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 25, c, true ); |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
xtype: 'textfield', |
|
|
|
id: 'plt_rsname', |
|
|
|
fieldLabel: '{$Labels->GetLabel('_SMM_PAT_RSNAME_')}', |
|
|
|
maxlength: 2, |
|
|
|
value: '{$CR['right_side']}', |
|
|
|
listeners:{ |
|
|
|
change: function( a, c, b ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 26, c, true ); |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
xtype: 'combo', |
|
|
|
fieldLabel: "Platform Type", |
|
|
|
id: 'pl_lay_A', |
|
|
|
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']}', |
|
|
|
init_value: '{$CR['layout']}', |
|
|
|
listeners:{ |
|
|
|
select: function( t, r, i ){ |
|
|
|
if( r.data.abbr < 'C' && t.init_value > 'B' ){ |
|
|
|
Ext.Msg.show({ |
|
|
|
title:'{$Labels->GetLabel('_REMOVE_PLATFORM_')}?', |
|
|
|
msg: '{$Labels->GetLabel('_REMOVE_PLAT_QUES_')}?', |
|
|
|
buttons: Ext.Msg.OKCANCEL, |
|
|
|
fn: function(btn){ |
|
|
|
if( btn == 'ok' ){ |
|
|
|
doPlatformOperation( {$CR['id']}, 20, r.data.abbr, true ); |
|
|
|
} else { |
|
|
|
t.suspendEvents(); |
|
|
|
t.setValue( t.init_value, true ); |
|
|
|
t.resumeEvents(); |
|
|
|
t.getEl().setStyle({ |
|
|
|
'background-image': 'url(' + t.store.data.items[t.store.findExact( 'abbr', t.init_value )].data.icon + ')', |
|
|
|
'background-repeat': 'no-repeat', |
|
|
|
'background-position': '3px center', |
|
|
|
'background-size': '16px 16px', |
|
|
|
'padding-left': '25px' |
|
|
|
}); |
|
|
|
}; |
|
|
|
}, |
|
|
|
icon: Ext.MessageBox.QUESTION |
|
|
|
}); |
|
|
|
} else { |
|
|
|
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']}, 20, r.data.abbr, true ); |
|
|
|
}; |
|
|
|
}, |
|
|
|
afterrender: function( t ){ |
|
|
|
t.getEl().setStyle({ |
|
|
|
'background-image': 'url(' + r.data.icon + ')', |
|
|
|
'background-repeat': 'no-repeat', |
|
|
|
'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' |
|
|
|
'padding-left': '25px' |
|
|
|
}); |
|
|
|
doPlatformOperation( {$CR['id']}, 20, 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}] |
|
|
|
}] |
|
|
|
},{ |
|
|
|
|