コード例 #1
0
<link rel="stylesheet" type="text/css" href="css/side_menu.css" />
<?php 
echo '<div id="sidemenucontainer">';
echo '<ul id="nav" class="drop">';
echo '<li><a title="Practical Agile" href="http://www.practicalagile.co.uk"><img src="images/logo.png"></a></li>';
// global is this a Admin bloke Stuff/readonly
$sql = 'select user.Admin_User from user where user.ID=' . $_SESSION['ID'];
$Res = mysqli_query($DBConn, $sql);
$Usr = mysqli_fetch_assoc($Res);
$isProjectAdmin = projectadmin($_REQUEST['PID']);
$isReadonly = readonly($_REQUEST['PID']);
echo '<script>';
echo '	var JisReadonly=' . $isReadonly . '+0;';
echo '</script>';
// Logged on User Stuff
echo '<li><a href="#" title="' . $_SESSION['Name'] . '">&nbsp;' . $_SESSION['Name'] . '&nbsp;</a><ul>';
echo '<li><a href="project_List.php" title="My Projects">My Projects</a>';
$sql = 'SELECT ID, Category, Name, Velocity, Backlog_ID, Points_Object_ID, Archived FROM project LEFT JOIN user_project ON project.ID = user_project.Project_ID where user_project.User_ID=' . $_SESSION['ID'];
if ($Usr['Admin_User'] == 0) {
    $sql .= ' and project.Archived<>1 ';
}
$sql .= ' order by Category, Name';
$project_Res = mysqli_query($DBConn, $sql);
echo '<ul class="l2">';
if ($project_Row = mysqli_fetch_assoc($project_Res)) {
    do {
        echo '<li><a href="project_Summary.php?PID=' . $project_Row['ID'] . '">&nbsp;- ' . $project_Row['Name'] . '</a></li>';
    } while ($project_Row = mysqli_fetch_assoc($project_Res));
}
echo '</ul></li>';
echo '<li><a href="user_Edit.php?id=' . $_SESSION['ID'] . '" title="Edit My Details">Edit My Details</a></li>';
コード例 #2
0
    echo "<th>link name</th>\n<th>";
    echo "link description</th>\n</tr>\n";
    for ($i = 0; $i < $settings['showlinks']; $i++) {
        //no entry in database? generate empty data!
        if (!isset($links[$i]['linkorder'])) {
            $links[$i]['url'] = "";
            $links[$i]['title'] = "";
            $links[$i]['description'] = "";
        }
        //show the link-forms
        echo "<tr>";
        echo "<td class=\"left\"><input " . readonly($edit_id) . " type=\"text\" value=\"" . $links[$i]['url'];
        echo "\" name=\"linkurl" . $i . "\" /></td>\n";
        echo "<td class=\"center\"><input " . readonly($edit_id) . " type=\"text\" value=\"" . $links[$i]['title'];
        echo "\" name=\"linktit" . $i . "\" /></td>\n";
        echo "<td class=\"right\"><input " . readonly($edit_id) . " type=\"text\" value=\"" . $links[$i]['description'];
        echo "\" name=\"linkdes" . $i . "\" /></td>\n";
        echo "</tr>";
    }
    ?>
</table>

</div>



<!--                                      submit-button  -->
<div class="submit">

<?php 
    if (allowed(1, $edit_id)) {
コード例 #3
0
<?php

include 'include/header.inc.php';
$showForm = true;
if ($_REQUEST['delete']) {
    if (readonly($_REQUEST['PID']) == 0) {
        $sql = 'select count(*) as nums from story where Project_ID=' . $_REQUEST['PID'] . ' and story.Iteration_ID = ' . $_REQUEST['IID'];
        $iteration_Res = mysqli_query($DBConn, $sql);
        $iteration_Row = mysqli_fetch_assoc($iteration_Res);
        if ($iteration_Row['nums'] != 0) {
            if (mysqli_query($DBConn, 'DELETE FROM iteration WHERE ID=' . $_REQUEST['IID'])) {
                $showForm = false;
                $deleted = true;
                $sql = 'delete from points_log where Object_ID=' . $_REQUEST['OID'];
                mysqli_query($DBConn, $sql);
            }
        }
    }
}
if ($_REQUEST['nodelete']) {
    $showForm = false;
    $deleted = false;
}
if ($showForm) {
    echo '<form method="post" action="?"><p><h2>' . Get_Iteration_Name($_REQUEST['IID']) . '</h2><p>' . 'Are you sure you want to delete this Iteration?<br />' . '<input type="hidden" name="IID" value="' . $_REQUEST['IID'] . '">' . '<input type="submit" name="delete" value="Yes, Delete"> &nbsp; ' . '<input type="hidden" name="PID" value="' . $_REQUEST['PID'] . '">' . '<input type="submit" name="nodelete" value="No, Don\'t Delete">' . '</form>';
} else {
    header('Location:iteration_List.php?PID=' . $_REQUEST['PID']);
}
include 'include/footer.inc.php';