Update of /cvsroot/openfirst/projects/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv22674
Modified Files:
edittasks.php
Log Message:
Fix indenting/spacing/style issues, convert include() to include_once() where appropriate, fix incorrect information in heading comment
Index: edittasks.php
===================================================================
RCS file: /cvsroot/openfirst/projects/admin/edittasks.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** edittasks.php 13 Oct 2003 23:38:34 -0000 1.4
--- edittasks.php 23 Oct 2003 13:26:45 -0000 1.5
***************
*** 1,5 ****
<?php
/*
! * openFIRST.projects - groups.php
*
* Copyright (C) 2003,
--- 1,5 ----
<?php
/*
! * openFIRST.projects - admin/edittasks.php
*
* Copyright (C) 2003,
***************
*** 28,34 ****
// Include globals and set header condense (not coded yet)
! include("../../config/globals.php");
$header_condense = true;
! include($header);
// Check if user is a member
--- 28,34 ----
// Include globals and set header condense (not coded yet)
! include_once("../../config/globals.php");
$header_condense = true;
! include_once($header);
// Check if user is a member
***************
*** 43,47 ****
if(! isset($_POST['confirm'])){
echo "<br><br>Your request to remove the task was denied because you have not confirmed! [ <a href='edittasks.php?GroupID=".$_GET['TaskID']."'>Tasks</a> ]<br><br>";
! die(include($footer));
}
--- 43,47 ----
if(! isset($_POST['confirm'])){
echo "<br><br>Your request to remove the task was denied because you have not confirmed! [ <a href='edittasks.php?GroupID=".$_GET['TaskID']."'>Tasks</a> ]<br><br>";
! die(include_once($footer));
}
***************
*** 51,73 ****
echo "<br><br>Task removed! [ <a href='../groups.php'>Main</a> ]<br><br>";
! die(include($footer));
}
! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'");
! $task = ofirst_dbfetch_object($task_query);
! // Edit assigned members to task
! if(isset($_POST['editmembers'])){
! ofirst_dbquery("UPDATE ofirst_projects_tasks SET Assigned = '".$_POST['members']."' WHERE ID = '".$_GET['TaskID']."';");
! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'");
! $task = ofirst_dbfetch_object($task_query);
!
! echo "<br>Members list has been updated!";
!
! }
?>
--- 51,73 ----
echo "<br><br>Task removed! [ <a href='../groups.php'>Main</a> ]<br><br>";
! die(include_once($footer));
}
! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'");
! $task = ofirst_dbfetch_object($task_query);
! // Edit assigned members to task
! if(isset($_POST['editmembers'])){
! ofirst_dbquery("UPDATE ofirst_projects_tasks SET Assigned = '".$_POST['members']."' WHERE ID = '".$_GET['TaskID']."';");
! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'");
! $task = ofirst_dbfetch_object($task_query);
!
! echo "<br>Members list has been updated!";
!
! }
?>
***************
*** 95,98 ****
</form>
<?php
! } include($footer);
?>
--- 95,98 ----
</form>
<?php
! } include_once($footer);
?>
|