visualfail: English interface
Change-Id: I4ebe88ce8621bcef30d84065b8e6525239283863
This commit is contained in:
@ -6,12 +6,12 @@ set_time_limit(60*10);
|
||||
|
||||
//Datenbankverbindung aufbauen
|
||||
$verbindung = mysql_connect ($host,$username, $password)
|
||||
or die ("keine Verbindung möglich. Benutzername oder Passwort sind falsch");
|
||||
or die ("MySQL connection failed.");
|
||||
|
||||
mysql_select_db($database) or die ("Die Datenbank existiert nicht.");
|
||||
mysql_select_db($database) or die ("Cannot select database '$database'.");
|
||||
|
||||
//Kommande lesen
|
||||
switch ($_GET['kommando']) {
|
||||
// identify command
|
||||
switch ($_GET['cmd']) {
|
||||
case "dbTest" : dbTest();break;
|
||||
case "getAsmCode" : getAsmCode();break;
|
||||
case "asmToSourceFile" : asmToSourceFile();break;
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<div class="container">
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="#">Rückabbildung</a></li>
|
||||
<li class="active"><a href="#">Result Mapping</a></li>
|
||||
<li><a href="#about">Aggregation</a></li>
|
||||
<!--
|
||||
<li class="dropdown">
|
||||
@ -65,12 +65,12 @@
|
||||
<div class="col-md-2">
|
||||
<!-- Main component for a primary marketing message or call to action -->
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Färbung</div>
|
||||
<div class="panel-heading">Coloring</div>
|
||||
<div class="panel-body">
|
||||
<select class="form-control" id="faerbung">
|
||||
<option value="onlyRightEdge">Rechter Rand(trace.instr2)</option>
|
||||
<option value="latestip">Letzte Instruktion(result.latest_ip)</option>
|
||||
<option value="normal">Äquivalenzklassen</option>
|
||||
<option value="onlyRightEdge">Right margin (trace.instr2)</option>
|
||||
<option value="latestip">Last instruction (result.latest_ip)</option>
|
||||
<option value="normal">Equivalence classes</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -85,13 +85,13 @@
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Variante</div>
|
||||
<div class="panel-heading">Variant</div>
|
||||
<div class="panel-body">
|
||||
<select class="form-control" id="variant">
|
||||
<option></option>
|
||||
</select>
|
||||
<div class="text-center">
|
||||
<button type="button" class="btn btn-default btn-lg" id="analyse">Analyse</button>
|
||||
<button type="button" class="btn btn-default btn-lg" id="analyse">Analysis</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -52,7 +52,7 @@ $('body').popover({
|
||||
var ausgabe = '';
|
||||
var caller = $(this);
|
||||
|
||||
$.getJSON("core.php", {kommando: 'getResultTypes'}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getResultTypes'}, function(data) {
|
||||
$.each(data, function(key, val) {
|
||||
ausgabe = ausgabe + val +': ' + caller.attr(val) + '<br>';
|
||||
});
|
||||
@ -74,7 +74,7 @@ $('body').popover({
|
||||
$(document).ready(function() {
|
||||
|
||||
//DB check
|
||||
$.getJSON("core.php", {kommando: 'dbTest'}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'dbTest'}, function(data) {
|
||||
|
||||
if(data != "ok") {
|
||||
$('html').html(data);
|
||||
@ -82,7 +82,7 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
//Holen der Binarys, die in der DB in der Tabelle Variant vorkommen
|
||||
$.getJSON("core.php", {kommando: 'getBinarys'}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getBinarys'}, function(data) {
|
||||
$.each(data, function(key, val) {
|
||||
$('#binary').append('<option value="' + val + '">' + val + '</option>');
|
||||
});
|
||||
@ -91,7 +91,7 @@ $(document).ready(function() {
|
||||
//Auswahl eines Eintrages aus den Source-Files für die Darstellung des Hochsprachencode
|
||||
$('#sourceFiles').change(function() {
|
||||
if($(this).val() != 'none') {
|
||||
$.getJSON("core.php", {kommando: 'getHighlevelCode', variant_id: $('#variant').val(), file_id: $(this).val(), version: $('#faerbung').val()}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getHighlevelCode', variant_id: $('#variant').val(), file_id: $(this).val(), version: $('#faerbung').val()}, function(data) {
|
||||
|
||||
$('#hcode').html(data);
|
||||
|
||||
@ -148,7 +148,7 @@ $(document).ready(function() {
|
||||
$('#binary').change(function() {
|
||||
if($(this).val() != 'none') {
|
||||
$('#variant').html('<option value="none" selected="selected"></option>');
|
||||
$.getJSON("core.php", {kommando: 'getVariants', datei: $(this).val()}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getVariants', datei: $(this).val()}, function(data) {
|
||||
$.each(data, function(key, val) {
|
||||
$('#variant').append('<option value="' + key + '">' + val + '</option>');
|
||||
});
|
||||
@ -159,17 +159,17 @@ $(document).ready(function() {
|
||||
//Analyse Button wird gedrueckt
|
||||
$('#analyse').button().click( function () {
|
||||
|
||||
$.getJSON("core.php", {kommando: 'getAsmCode', variant_id: $('#variant').val(), version: $('#faerbung').val()}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getAsmCode', variant_id: $('#variant').val(), version: $('#faerbung').val()}, function(data) {
|
||||
$('#asm').html(data);
|
||||
});
|
||||
|
||||
$.getJSON("core.php", {kommando: 'getSourceFiles', variant: $('#variant').val()}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getSourceFiles', variant: $('#variant').val()}, function(data) {
|
||||
$.each(data, function(key, val) {
|
||||
$('#sourceFiles').append('<option value="' + key + '">' + val + '</option>');
|
||||
});
|
||||
});
|
||||
|
||||
$.getJSON("core.php", {kommando: 'getResultTypes'}, function(data) {
|
||||
$.getJSON("core.php", {cmd: 'getResultTypes'}, function(data) {
|
||||
|
||||
$('#fehlertypenset').html('');
|
||||
$.each(data, function(key, val) {
|
||||
|
||||
Reference in New Issue
Block a user