[Openfirst-cvscommit] projects projects.php,1.12,1.13
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-23 21:46:44
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv27119 Modified Files: projects.php Log Message: Fix whitepace/indenting issues, replace include() with include_once() where appropriate. Index: projects.php =================================================================== RCS file: /cvsroot/openfirst/projects/projects.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** projects.php 13 Oct 2003 03:32:33 -0000 1.12 --- projects.php 23 Oct 2003 13:46:25 -0000 1.13 *************** *** 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['assign'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 43,47 ---- if(! isset($_POST['assign'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 64,68 **** Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Project created! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 64,68 ---- Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Project created! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 73,77 **** if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the project was denied because you have not confirmed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 73,77 ---- if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the project was denied because you have not confirmed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 81,85 **** ofirst_dbquery("DELETE FROM ofirst_projects_tasks WHERE ProjectID = '".$_POST['project']."'") or die(ofirst_dberror()); echo "<br><br>Project removed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 81,85 ---- ofirst_dbquery("DELETE FROM ofirst_projects_tasks WHERE ProjectID = '".$_POST['project']."'") or die(ofirst_dberror()); echo "<br><br>Project removed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 110,114 **** <td class="sub" width="10%">Completion</td> <td class="sub" width="35%">Description</td> ! <td width="27%" class="sub">Assigned To Project </td> <?php if($user->membertype == "administrator"){ ?> <td class="sub" width="6%">Admin</td> --- 110,114 ---- <td class="sub" width="10%">Completion</td> <td class="sub" width="35%">Description</td> ! <td width="27%" class="sub">Assigned To Project </td> <?php if($user->membertype == "administrator"){ ?> <td class="sub" width="6%">Admin</td> *************** *** 162,173 **** </td> <td> ! <?php ! if(! $pend){ ! echo '<a href="tasks.php?GroupID='.$projects->GroupID.'&ProjectID='.$projects->ID.'">'.$projects->ProjectName.'</a>'; ! }else{ ! echo $projects->ProjectName; ! } ! ?> ! </td> <td> <?php --- 162,173 ---- </td> <td> ! <?php ! if(! $pend){ ! echo '<a href="tasks.php?GroupID='.$projects->GroupID.'&ProjectID='.$projects->ID.'">'.$projects->ProjectName.'</a>'; ! } else { ! echo $projects->ProjectName; ! } ! ?> ! </td> <td> <?php *************** *** 180,184 **** </td> <td><?php echo $projects->Description; ?></td> ! <td><?php echo str_replace(",",", ",$projects->Assigned); ?></td> <?php if($user->membertype == "administrator"){ ?><td id="adminmenu" background="/openfirst/images/back-admin.png"><div align="center"><a href="admin/editprojects.php?ProjectID=<?php echo $projects->ID; ?>">Edit</a></div></td> <?php } ?> --- 180,184 ---- </td> <td><?php echo $projects->Description; ?></td> ! <td><?php echo str_replace(",",", ",$projects->Assigned); ?></td> <?php if($user->membertype == "administrator"){ ?><td id="adminmenu" background="/openfirst/images/back-admin.png"><div align="center"><a href="admin/editprojects.php?ProjectID=<?php echo $projects->ID; ?>">Edit</a></div></td> <?php } ?> *************** *** 332,336 **** } ! include($footer); ?> --- 332,336 ---- } ! include_once($footer); ?> |