[Openfirst-cvscommit] projects groups.php,1.13,1.14
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-23 18:45:12
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv21090 Modified Files: groups.php Log Message: Fix indenting/spacing/style issues, convert include() to include_once() where appropriate Index: groups.php =================================================================== RCS file: /cvsroot/openfirst/projects/groups.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** groups.php 13 Oct 2003 23:37:52 -0000 1.13 --- groups.php 23 Oct 2003 13:18:38 -0000 1.14 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); *************** *** 44,48 **** if(! isset($_POST['members'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 44,48 ---- if(! isset($_POST['members'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 50,54 **** if(! isset($_POST['moderators'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 50,54 ---- if(! isset($_POST['moderators'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 75,79 **** Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Group created! [ <a href='groups.php'>Groups</a> ]<br><br>"; ! die(include($footer)); } --- 75,79 ---- Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Group created! [ <a href='groups.php'>Groups</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 98,107 **** <td class="sub" width="7%">Projects</td> <td class="sub" width="62%">Description</td> ! <td class="sub" width="7%">Option</td> <?php if($user->membertype == "administrator"){ ?> ! <td class="sub" width="6%"><div align="center">Admin</div></td> ! <?php ! } ! ?> </tr> <?php --- 98,105 ---- <td class="sub" width="7%">Projects</td> <td class="sub" width="62%">Description</td> ! <td class="sub" width="7%">Option</td> <?php if($user->membertype == "administrator"){ ?> ! <td class="sub" width="6%"><div align="center">Admin</div></td> ! <?php } ?> </tr> <?php *************** *** 109,113 **** // Query the current group values and loop through them $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups GROUP BY ID"); ! while($groups = ofirst_dbfetch_object($query)){ ?> --- 107,111 ---- // Query the current group values and loop through them $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups GROUP BY ID"); ! while($groups = ofirst_dbfetch_object($query)) { ?> *************** *** 115,133 **** <td><div align="center"><a href="projects.php?GroupID=<?php echo $groups->ID; ?>"><img src="../members/icons/apps/kuser.png" width="32" height="32" border="0"></a></div></td> <td><a href='projects.php?GroupID=<?php echo $groups->ID; ?>'><?php echo $groups->GroupName; ?></a></td> ! <?php ! // Display number of related projects in group ! echo "<td>"; ! $projquery = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$groups->ID."'"); echo ofirst_dbnum_rows($projquery); ! echo "</td>"; ! ?> ! <td><?php echo $groups->Description; ?></td> ! <td><a href='viewmembers.php?GroupID=<?php echo $groups->ID; ?>'>Members</a></td> ! <?php ! // If administrator is logged in then show the admin edit option ! if($user->membertype == "administrator"){ ?> ! <td id="adminmenu" background="/openfirst/images/back-admin.png"><p align="center"><a href="admin/editgroups.php?GroupID=<?php echo $groups->ID; ?>">Edit</a></p></td> ! <?php } ! ?> </tr> <?php --- 113,130 ---- <td><div align="center"><a href="projects.php?GroupID=<?php echo $groups->ID; ?>"><img src="../members/icons/apps/kuser.png" width="32" height="32" border="0"></a></div></td> <td><a href='projects.php?GroupID=<?php echo $groups->ID; ?>'><?php echo $groups->GroupName; ?></a></td> ! <?php ! // Display number of related projects in group ! echo "<td>"; ! $projquery = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$groups->ID."'"); echo ofirst_dbnum_rows($projquery); ! echo "</td>"; ! ?> ! <td><?php echo $groups->Description; ?></td> ! <td><a href='viewmembers.php?GroupID=<?php echo $groups->ID; ?>'>Members</a></td> ! <?php ! // If an administrator is logged in then show the administrative edit option ! if($user->membertype == "administrator") { ?> ! <td id="adminmenu" background="/openfirst/images/back-admin.png"><p align="center"><a href="admin/editgroups.php?GroupID=<?php echo $groups->ID; ?>">Edit</a></p></td> ! <?php } ?> </tr> <?php *************** *** 141,145 **** ?> </table> ! </td> </tr> </table> --- 138,142 ---- ?> </table> ! </td> </tr> </table> *************** *** 147,151 **** <?php // Allow to add groups if user is an administrator ! if($user->membertype == "administrator"){ ?> <form action='groups.php' method='POST'> --- 144,148 ---- <?php // Allow to add groups if user is an administrator ! if($user->membertype == "administrator") { ?> <form action='groups.php' method='POST'> *************** *** 196,199 **** <?php } ! } include($footer); ?> --- 193,196 ---- <?php } ! } include_once($footer); ?> |