コード例 #1
0
                  name="experiment-description"
                  id="experiment-description"
                <?php 
if (!$editable) {
    echo 'disabled';
}
?>
><?php 
echo $experiment->description;
?>
        </textarea>
    </div>
    <div class="form-group">
        <label for="project">Project</label>
        <?php 
create_project_select($experiment->projectID, $editable);
?>
    </div>
    <div class="form-group">
        <label for="application">Application</label>
        <?php 
create_application_select($experiment->applicationId, false);
?>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">Application configuration</div>
        <div class="panel-body">
            <label>Application input</label>
            <div class="well">
                <div class="form-group">
コード例 #2
0
    $echo = '';
    $wrf = '';
}
echo '
        <div class="form-group">
            <label for="experiment-name">Experiment Name</label>
            <input type="text" class="form-control" name="experiment-name" id="experiment-name" placeholder="Enter experiment name" autofocus required' . $disabled . ' value="' . $experimentName . '">
        </div>
        <div class="form-group">
            <label for="experiment-description">Experiment Description</label>
            <textarea class="form-control" name="experiment-description" id="experiment-description" placeholder="Optional: Enter a short description of the experiment"' . $disabled . '>' . $experimentDescription . '</textarea>
        </div>
        <div class="form-group">
            <label for="project">Project</label>
    ';
create_project_select($project, !$disabled);
echo '
        </div>
        <div class="form-group">
            <label for="application">Application</label>';
create_application_select($application, !$disabled);
echo '</div>';
if (!isset($_POST['continue'])) {
    echo '<div class="btn-toolbar">
        <input name="continue" type="submit" class="btn btn-primary" value="Continue">
        <input name="clear" type="reset" class="btn btn-default" value="Reset values">
        </div>
        ';
} else {
    echo '<div class="panel panel-default">
        <div class="panel-heading">Application configuration</div>