Data['id'] > 1 ){ $EID = intval( $_POST['RID'] ); $QS = "SELECT * FROM resources WHERE id = {$EID}"; $Result = $DATABASE->Query( $QS, false ); if( count( $Result ) ){ $CR = $Result[0]; switch( $CR['type'] ){ case 1: //https://bufferwall.com/posts/330881001ji1a/ $QS = "SELECT * FROM uart_settings WHERE id={$CR['aux_id']}"; $Result = $DATABASE->Query( $QS ); $Z = $Result[0]; $R_name = 'UART connected to a Server Appliance'; $R_dev = $CR['device']; $R_nfo = 'Speed: ' . $Z['speed'] . ', Bits: ' . $Z['bit'] . ', Parity: ' . $Z['parity'] . ', Stop Bit: '. $Z['stop_bit']; break; }; echo "{ xtype: 'panel', html: '"; echo ""; echo ""; echo ""; echo "
"; echo "{$R_name}
{$R_dev}
{$R_nfo}
'}"; } else { echo '{ xtype: \'panel\', html: \'Node '.$_POST['NODE'].' Loadded\'}'; }; } else { header('location: /'); }; ?>