'; echo ''; echo ''.__('Sound Events').''; ui_require_css_file('wizard'); ui_require_css_file('discovery'); ?> '; if ($config['style'] === 'pandora_black' && !is_metaconsole()) { echo ''; } else { echo ''; } echo ''; echo ""; echo "

".__('Sound console').'

'; // Connection lost alert. ui_require_css_file('register', 'include/styles/', true); $conn_title = __('Connection with server has been lost'); $conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.'); ui_require_javascript_file('connection_check'); set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); ui_print_message_dialog( $conn_title, $conn_text, 'connection', '/images/error_1.png' ); $inputs = []; // Load filter. $fields = \events_get_event_filter_select(); $inputs[] = [ 'label' => \__('Load filter'), 'class' => 'flex-row', 'arguments' => [ 'type' => 'select', 'fields' => $fields, 'name' => 'filter_id', 'selected' => 0, 'return' => true, 'nothing' => \__('All new events'), 'nothing_value' => 0, 'class' => 'fullwidth', ], ]; $times_interval = [ 10 => '10 '.__('seconds'), 15 => '15 '.__('seconds'), 30 => '30 '.__('seconds'), 60 => '60 '.__('seconds'), ]; $times_sound = [ 2 => '2 '.__('seconds'), 5 => '5 '.__('seconds'), 10 => '10 '.__('seconds'), 15 => '15 '.__('seconds'), 30 => '30 '.__('seconds'), 60 => '60 '.__('seconds'), ]; $inputs[] = [ 'class' => 'flex-row flex-row-center', 'direct' => 1, 'block_content' => [ [ 'label' => __('Interval'), 'arguments' => [ 'type' => 'select', 'fields' => $times_interval, 'name' => 'interval', 'selected' => 10, 'return' => true, ], ], [ 'label' => __('Time Sound'), 'arguments' => [ 'type' => 'select', 'fields' => $times_sound, 'name' => 'time_sound', 'selected' => 10, 'return' => true, ], ], ], ]; $sounds = [ 'aircraftalarm.wav' => 'Air craft alarm', 'air_shock_alarm.wav' => 'Air shock alarm', 'alien_alarm.wav' => 'Alien alarm', 'alien_beacon.wav' => 'Alien beacon', 'bell_school_ringing.wav' => 'Bell school ringing', 'Door_Alarm.wav' => 'Door alarm', 'EAS_beep.wav' => 'EAS beep', 'Firewarner.wav' => 'Fire warner', 'HardPCMAlarm.wav' => 'Hard PCM Alarm', 'negativebeep.wav' => 'Negative beep', 'Star_Trek_emergency_simulation.wav' => 'StarTrek emergency simulation', ]; $inputs[] = [ 'label' => \__('Sounds'), 'class' => 'flex-row', 'arguments' => [ 'type' => 'select', 'fields' => $sounds, 'name' => 'sound_id', 'selected' => 'Star_Trek_emergency_simulation.wav', 'return' => true, 'class' => 'fullwidth', ], ]; // Print form. HTML::printForm( [ 'form' => [ 'action' => '', 'method' => 'POST', ], 'inputs' => $inputs, ], false, true ); $result = '
'; $result .= '
'; echo $result; $table = new StdClass; $table->width = '100%'; $table->class = 'sound_div_background text_center'; $table->data[0][0] = ''; $table->data[0][0] .= html_print_image( 'images/play.button.png', true, ['id' => 'button'] ); $table->data[0][0] .= ''; $table->data[0][1] = ''; $table->data[0][1] .= html_print_image( 'images/ok.button.png', true, ['style' => 'margin-left: 15px;'] ); $table->data[0][1] .= ''; $table->data[0][2] = ''; $table->data[0][2] .= html_print_image( 'images/icono_test.png', true, [ 'id' => 'button_try', 'style' => 'margin-left: 15px;', ] ); $table->data[0][2] .= ''; $table->data[0][3] = html_print_image( 'images/tick_sound_events.png', true, [ 'id' => 'button_status', 'style' => 'margin-left: 15px;', ] ); html_print_table($table); ?> '; while (ob_get_length() > 0) { ob_end_flush(); } echo '';