コード例 #1
0
ファイル: listGoals.php プロジェクト: noikiy/owaspbwa
    echo "<table class='datatable'>\n";
    echo "\t<thead>\n";
    echo "\t\t<td>ID</td>\n";
    echo "\t\t<td>Goal</td>\n";
    echo "\t\t<td>Project</td>\n";
    echo "\t\t<td>Type</td>\n";
    echo "\t\t<td>Date Created</td>\n";
    echo "\t\t<td>Deadline</td>\n";
    echo "\t\t<td>Completed</td>\n";
    echo "\t</tead>\n";
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        echo "\t<tr>\n";
        $naId = $row['id'];
        echo '		<td align = "left">';
        echo '<a href = "editGoal.php?goalId=' . $naId . '">' . $row['id'] . "</a></td>\n";
        echo "\t\t<td>" . stripslashes($row['goal']) . "</td>\n";
        $pname = projectName($row['projectId']);
        echo "\t\t<td>" . stripslashes($pname) . "</td>\n";
        echo "\t\t<td>" . $row['type'] . "</td>\n";
        echo "\t\t<td>" . $row['created'] . "</td>\n";
        echo "\t\t<td>" . $row['deadline'] . "</td>\n";
        echo "\t\t<td>" . $row['completed'] . "</td>\n";
        echo "\t</tr>\n";
    }
    echo "</table>\n";
} else {
    echo "<h4>No completed goals have been found.</h4>\n";
}
mysql_free_result($result);
mysql_close($connection);
include_once 'footer.php';
コード例 #2
0
ファイル: upload.php プロジェクト: janvonde/pregos-files
</a>
    </div>
    <!--ul class="nav navbar-nav navbar-right">
      <li><a href="upload.php?logout">Logout</a></li>
    </ul-->
  </div>
</nav>


<div class="container-fluid">
  <div class="row">
    <div class="col-md-2"></div>
    <div class="col-md-8">

      <h1><?php 
        echo projectName();
        ?>
 Backend</h1>

<?php 
        // show error or success messages
        if (isset($_SESSION['message']['type']) && $_SESSION['message']['type'] != "") {
            echo "    <div class=\"alert-messages\">";
            echo "      <div class=\"alert alert-dismissible alert-" . $_SESSION['message']['type'] . "\">";
            echo "        <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>";
            echo "        <h4>";
            if ($_SESSION['message']['type'] == "danger") {
                echo "Error";
            }
            if ($_SESSION['message']['type'] == "success") {
                echo "Success";