Esempio n. 1
0
					<th>Created on</th>
					<th>Select</th>
				</tr>
			</thead>
			<tbody>

<?php 
    $profiles = fetchAllApplicationProfiles();
    if (!empty($profiles)) {
        foreach ($profiles as $profile) {
            echo "<tr>\n";
            echo "<td>" . $profile["name"] . "</td>\n";
            echo "<td>" . $profile["type"] . "</td>\n";
            echo "<td>" . $profile["createdBy"] . "</td>\n";
            echo "<td>" . $profile["timestamp"] . "</td>\n";
            echo "<td><a href='" . newURL_with_extra_parameter('profile', $profile["id"]) . "' type='button' class='btn btn-success'>Select</a></td>\n";
            echo "</tr>";
        }
    } else {
        echo "<tr colspan=\"5\">\n\t\t\t\t<td>No application profiles in our platform yet. Please add a new profile below.</td>\n\t\t\t   </tr>";
    }
    ?>
			</tbody>
		</table>

		<br/><br/>
	<h4>Create a new application profile:</h4>

	<div class="panel panel-default">
	   <div class="panel-body">
		<form class="form-horizontal" name='adminConfiguration' action=" <?php 
Esempio n. 2
0
			<thead>
				<tr>
					<th>Experiment</th>
					<th>SUT name</th>
					<th>Select</th>
				</tr>
			</thead>
			<tbody>

<?php 
    $exps = get_experiments();
    while (list($key, $value) = each($exps)) {
        echo "<tr>\n";
        echo "<td>{$key}</td>\n";
        echo "<td>" . get_description_of_experiment($key) . "</td>\n";
        echo "<td><a href='" . newURL_with_extra_parameter('experiment', $key) . "' type='button' class='btn btn-success'>Select</a></td>\n";
        echo "</tr>";
    }
    ?>
			</tbody>
		</table>

<!-- ***** PART III ***** -->
<?php 
} else {
    ?>
	<ol class='progtrckr'>
	    <li class='progtrckr-done'>Select database</li><!--
	    --><li class='progtrckr-done'>Select experiment</li><!--
	    --><li class='progtrckr-current'>View metric results</li>
	</ol>