Data['id'] > 1 ){ $EID = intval( $_POST['DID'] ); $TPL =<< 0 ){ Ext.getCmp('ra_ra_vap').setValue( n / cmm ); } else { Ext.getCmp('ra_ra_vap').setValue( 0 ); }; } } },{ xtype: 'numberfield', id: 'ra_ra_vap', fieldLabel: 'Range [%]', hideLabel: false, disabled: true, minValue: 1, maxValue: 100, width: 60, listeners:{ change: function( t, n, o ){ var cmm = Ext.getCmp('node_range').getValue() / 100; if( cmm > 0 ){ Ext.getCmp('ra_ra_vam').setValue( n * cmm ); } else { Ext.getCmp('ra_ra_vam').setValue( 0 ); }; } } },{ xtype: 'numberfield', id: 'wi_wi_va', fieldLabel: 'Width [%]', width: 60, minValue: 1, maxValue: 5000, value: 100 }] }, bbar:[{ text: 'Cancel', handler: function(){ wiwin.close(); } },{ text: 'Add', handler: function(){ var CT = Ext.getCmp('ra_ty_me').getValue(); if( CT ){ var CV = Ext.getCmp('ra_ra_vam').getValue(); } else { var CV = Ext.getCmp('ra_ra_vap').getValue(); }; var CW = Ext.getCmp('wi_wi_va').getValue(); Ext.Ajax.request({ url: '/lib/controller/addWidthTableRow.php', params: { UID: {$UserID}, SID: '{$Session}', NID: {$EID}, SBM: CT, RNG: CV, WDZ: CW }, success: function( response, opts ){ //get DS and reload! }, failure: failureAJAXFunction }); } }] }); wiwin.show(); var cmm = Ext.getCmp('node_range').getValue(); Ext.getCmp('ra_ra_vam').setRawValue( cmm ); Ext.getCmp('ra_ra_vap').setRawValue( 100 ); } },{ text: 'Remove Row', handler: function(){ } },{ text: 'Clear Table', handler: function(){ } }] } EFUFU; $TPL = str_ireplace( '%%%NAME%%%', $R_name, $TPL ); $TPL = str_ireplace( '%%%INFO%%%', $R_dev, $TPL ); $TPL = str_ireplace( '%%%SPD%%%', $Labels->GetLabel('UART_COM_SPEED'), $TPL ); $TPL = str_ireplace( '%%%SPD_VAL%%%', $Z['speed'], $TPL ); $TPL = str_ireplace( '%%%BITS_VAL%%%',$Z['bit'], $TPL ); $TPL = str_ireplace( '%%%PARITY_VAL%%%',$Z['parity'], $TPL ); $TPL = str_ireplace( '%%%STOPS_VAL%%%',$Z['stop_bit'], $TPL ); $TPL = str_ireplace( '%%%%RES_ID%%%',$EID, $TPL ); $TPL = str_ireplace( '%%%USER_ID%%%',$UserID, $TPL ); $TPL = str_ireplace( '%%%SESSION%%%',$Session, $TPL ); echo $TPL; } else { header('location: /'); }; ?>