Пример #1
0
        }
        echo '</select>';
        echo '</td>';
        echo '</tr>';
    }
    if (!$issuesWithSecurityLevelSet) {
        echo '<tr>';
        echo '<td>';
        echo '<div>There are no previous secured issues.</div>';
        echo '</td>';
        echo '</tr>';
    }
} else {
    echo '<tr>';
    echo '<td>';
    $issues = UbirimiContainer::getRepository(Issue::class)->getByParameters(array('project' => $projectId));
    $countIssues = 0;
    if ($issues) {
        $countIssues = $issues->num_rows;
    }
    echo '<div>None (' . $countIssues . ' affected issues)</div>';
    echo '</td>';
    echo '<td>';
    echo '<div><b>Security Levels ' . $selectedScheme['name'] . '</b></div>';
    echo '<div>';
    echo '<select name="new_level_0" class="inputTextCombo">';
    echo '<option value="-1">None</option>';
    while ($level = $selectedSchemeLevels->fetch_array(MYSQLI_ASSOC)) {
        echo '<option value="' . $level['id'] . '">' . $level['name'] . '</option>';
    }
    echo '</select>';