You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php require_once('../ajax_asm.php'); if( $CUser->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: '<table width=\"100%\" border=0><tr><td rowspan=3 width=\"256px\">"; echo "<img id=\"res_info_image\" src=\"/style/assets/unnamed.png\"></td>"; echo "<td>{$R_name}</td></tr>"; echo "<tr><td>{$R_dev}</td></tr>"; echo "<tr><td>{$R_nfo}</td></tr>"; echo "</table>'}"; } else { echo '{ xtype: \'panel\', html: \'Node '.$_POST['NODE'].' Loadded\'}'; }; } else { header('location: /'); };?>
|