Example #1
0
</style>
<?php 
include "header_end.php";
include_once "api.php";
//Delete crisis?
if (!is_null($_GET) && key_exists('delete', $_GET)) {
    $deleteID = intval($_GET["delete"]);
    deleteCrisis($deleteID);
}
echo '<h1>Overview</h1>';
echo "<button onclick=\"goto('crisistypes.php')\">Manage crisis types</button>";
echo "<button onclick=\"goto('attributes.php')\">Manage attributes</button>";
echo "<button onclick=\"goto('edit_crisis.php')\">Add new crisis</button>";
echo "<br/><br/>";
$crises = getOverview();
foreach ($crises as $c) {
    echo '<div class="crisis">';
    $id = $c->id;
    $code = $c->crisisCode;
    $name = $c->crisisName;
    echo "<div class=\"crisis-name\">{$name} [{$code}]";
    echo '<span style="float: right">' . "<button onclick=\"goto('crisis.php?id={$id}')\">Details</button>" . "<button onclick=\"goto('edit_crisis.php?id={$id}')\">Edit</button>" . "<button onclick=\"confirmGoto('Deleting [{$code}]: {$name} will permanently delete all its training data and prevent it from being used to improve models in future crises. Do you want to proceed?', '?delete={$id}')\">Delete</button>" . '</div>';
    echo '<div class="table-row table-header model-family">';
    echo '<div class="table-column attribute-name">Classifier name</div>';
    echo '<div class="table-column status">Status</div>';
    echo '<div class="table-column precision">Precision</div>';
    echo '<div class="table-column recall">Recall</div>';
    echo '<div class="table-column evaluation-size">#non-null</div>';
    echo '<div class="table-column training-size">#training</div>';
    echo '<div class="table-column evaluation-size">#eval</div>';
Example #2
0
                    </div>
                </div> 

            </div>
            <div class="col-md-4 col-sm-4">
                <div class="panel panel-default">

                    <div class="panel-body">
                        <h4 class="adjst"><?php 
echo getName($row);
?>
</h4>
                        <p>
                        <div id="overview">
                            <?php 
echo getOverview($row);
?>
                        </div>
                        <div id="credits">
                            <strong>Cast:</strong>
                            <?php 
echo getCredits($row);
?>
                        
                        </div>
                        <div id="director">
                            <strong>Director:</strong>
                            <?php 
echo getDirector($row);
?>
                        </div>
Example #3
0
} elseif ($_GET["seite"] === "auto") {
    ?>
						<div class="autoLabel">
							<?php 
    getAutos($anreise, $abreise, $_SESSION["hinflug"]["flug"], $_SESSION["rueckflug"]["flug"]);
    ?>
						</div>
						<?php 
} elseif ($_GET["seite"] === "overview") {
    ?>
						<div class="overviewLabel">
							<?php 
    endpreisBerechnen();
    ?>
							<?php 
    getOverview($_SESSION["hinflug"]["flug"], $_SESSION["rueckflug"]["flug"], $_SESSION["hotel"], $_SESSION["zimmer"], $_SESSION["versorgung"], $_SESSION["auto"]);
    ?>
							<div style="clear:both;"></div>
						</div>
						<?php 
}
?>
						<div style="clear:both;"></div>
					</div>
					<div style="clear:both;"></div>
				</div>
				<div style="clear:both;"></div>
			</div>

		</form>
		<script type="text/javascript">
Example #4
0
					</div>
				</div> 
			</div>
			<div class="col-3-10">
				<div class="panel">
					<?php 
if (isset($_GET['tzone']) && $_GET['tzone'] != "all") {
    $ts_overview = $_GET['tzone'];
} else {
    $ts_overview = "Alle Einträge";
}
?>
					<div class="panel-head bg-grey"><p>Übersicht: <b><? echo $ts_overview; ?></b></p></div>
					<div class="panel-body">
						<?php 
getOverview();
?>
					</div>
				</div>
				<?php 
if (isset($_GET['show'])) {
    $showid = $_GET['show'];
    ?>
				<div class="panel">
					<div class="panel-head bg-grey"><p>Informationen</p></div>
					<div class="panel-body"></div>
				</div>
				<?php 
}
?>