[evolvis-commits] r8652: www/pm/ is now valid XHTML 1.0 Transitonal. ↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 16:48:10 CET 2011


Author: mirabilos
Date: 2011-02-24 16:48:10 +0100 (Thu, 24 Feb 2011)
New Revision: 8652

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/HTML_Graphs.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/add_task.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/browse_task.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/ganttpage.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/include/ProjectGroupHTML.class
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/index.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/mod_task.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php
Log:
www/pm/ is now valid XHTML 1.0 Transitonal.


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog	2011-02-24 15:48:10 UTC (rev 8652)
@@ -1,6 +1,37 @@
+2003-04-06  Ryan T. Sammartino  <ryants at shaw.ca>
+
+	* www/include/html.php: HTML-ify special chars in select boxes.
+
+	* www/include/languages/Base.tab(pm_reporting:report_note) Fix
+	HTML.
+	(pm_reporting:error_min_name_length,error_min_desc_length): Fix
+	tabification.
+	(pm_admin_projects:change_project_intro): Remove extraneous <p>.
+	(pm_admin_projects:no_projects_fount): Fix HTML.
+
+	* www/pm/index.php: valid XHTML 1.0 Transitional.
+
+	* www/pm/include/ProjectGroupHTML.class: ditto.
+
+	* www/pm/browse_task.php: ditto.
+
+	* www/pm/add_task.php: ditto.
+
+	* www/pm/mod_task.php: ditto.
+
+	* www/pm/ganttpage.php: ditto.
+
+	* www/pm/reporting/index.php: ditto.
+
+	* www/include/HTML_Graphs.php: ditto.
+
+	* www/include/tool_reports.php: ditto.
+
+	* www/pm/admin/index.php: ditto.
+
 2003-03-16  Christian Bayle  <bayle at debian.org>
 
-	* add unix_box and cvs_box argument to the create funtion 
+	* add unix_box and cvs_box argument to the create funtion
 	in Group.class
 
 2003-03-16  Christian Bayle  <bayle at debian.org>
@@ -8,7 +39,7 @@
 	* Uncommented display CVS write in project/admin/userperms.php
 
 2003-03-14  Reinhard Spisser  <reinhard at spisser.it>
-	
+
 	* common/pm/ProjectTask.class:
 	Fix bug # 231: Assignee not registered
 
@@ -16,16 +47,16 @@
 	Translations
 
 	* www/include/html.php
-	Added a parameter pos_100 to  html_build_select_box_from_arrays, 
-	so that you can decide if you wish to have the 'none' 
+	Added a parameter pos_100 to  html_build_select_box_from_arrays,
+	so that you can decide if you wish to have the 'none'
 	on the top (default) or at the bottom of the list
-	
+
 	* www/pm/browse_task.php:
 	Fix bug # 216: Category: missing "None"
-	
+
 	* www/survey/admin/show_results_aggregate.php:
 	Fix bug # 244: survey: pg_atoi_error
-	
+
 2003-03-12  Roland Mas  <lolando at debian.org>
 
 	* db/20030312.sql: New file: the start_date of a task is now
@@ -36,11 +67,11 @@
 
 	* www/include/languages/SimplifiedChinese.tab:
 	Committing Simon Lei's translations to Chines
-	
+
 	* www/include/languages/Italian.tab
 	translations
-	
 
+
 2003-03-08  Ryan T. Sammartino  <ryants at shaw.ca>
 
 	* www/people/index.php: valid XHTML 1.0 Transitional.

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/HTML_Graphs.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/HTML_Graphs.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/HTML_Graphs.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -7,6 +7,9 @@
  * @author		Tim Perdue <tperdue at valnux.com>
  * @version		$Id$
  * @date		$Date$
+ *
+ * Ryan T. Sammartino made several changes to make the output XHTML 1.0
+ * Transitional.
  */
 
 /*
@@ -48,7 +51,7 @@
 #     *  http://www.pobox.com/~pdavis/
 #     *
 #
-#     (C) Copyright 1998 
+#     (C) Copyright 1998
 #         Phil Davis
 #         Printed in the United States of America
 #
@@ -110,32 +113,32 @@
 #  the same.  The arrays that must be set up consist of:
 #
 #       * A names array containing column/row identifiers ($names)
-#       * One or two values arrays containg corresponding 
+#       * One or two values arrays containg corresponding
 #         values to the column/row names ($values & $dvalues)
 #       * One or two bars array which also corresponds to the names
 #         array.  The values in these arrays are URLS to graphics
 #         or color codes starting with a # which will be used to
 #         generate the graph bar.  Color codes and graphics may
-#         be mixed in the same chart, although color codes can't 
+#         be mixed in the same chart, although color codes can't
 #         be used on Vertical charts. ($bars & $dbars)
-#       * The heart of customization... a vals array.  If this 
-#         array isn't created then html_graphs will use all 
+#       * The heart of customization... a vals array.  If this
+#         array isn't created then html_graphs will use all
 #         default values for the chart.  Items that are customizable
-#         include font styles & colors, backgrounds, graphics, 
+#         include font styles & colors, backgrounds, graphics,
 #         labels, cellspacing, cellpadding, borders, anotations
 #         and scaling factor. ($vals)
 #
 #######################################################################
 #
 #  Known Bugs:
-# 
-#  * Currently the $vals["background"] tag element doesn't 
+#
+#  * Currently the $vals["background"] tag element doesn't
 #    work in Netscape.
 #
 #######################################################################
-# 
-#  To Do: 
-# 
+#
+#  To Do:
+#
 #  * Would like to make the $vals array to html_graph() completely
 #    optional.  Currently it has to at least be an empty array.
 #
@@ -150,8 +153,8 @@
 #
 # Contact:
 #
-# If you have questions, suggestions, bugs, bug fixes, or enhancements 
-# please send them to pdavis at pobox.com so that they may be wrapped into 
+# If you have questions, suggestions, bugs, bug fixes, or enhancements
+# please send them to pdavis at pobox.com so that they may be wrapped into
 # future versions of HTML_Graph.
 #
 #######################################################################
@@ -166,20 +169,20 @@
 /*
 #######################################################################
 #
-#  Function:  html_graph($names, $values, $bars, $vals[, $dvalues, $dbars]) 
+#  Function:  html_graph($names, $values, $bars, $vals[, $dvalues, $dbars])
 #
 #   Purpose:  Calls routines to initialize defaults, set up table
 #             print data, and close table.
 #
-# Arguments: 
+# Arguments:
 #                   $names - Array of element names.
 #                  $values - Array of corresponding values for elements.
-#                    $bars - Array of corresponding graphic image names 
+#                    $bars - Array of corresponding graphic image names
 #                            or color codes (begining with a #) for elements.
 #                            Color codes can't be used on vertical charts.
 #                 $dvalues - Array of corresponding values for elements.
 #                            This set is required only in the double graph.
-#                   $dbars - Array of corresponding graphic image names 
+#                   $dbars - Array of corresponding graphic image names
 #                            or color codes (begining with a #) for elements.
 #                            This set is required only in the double graph.
 #
@@ -213,11 +216,11 @@
 #                            default is NUL
 #                   hlabel - Horizontal Label to apply
 #                            default is NUL
-#                     type - Type of graph 
+#                     type - Type of graph
 #                            0 = horizontal
 #                            1 = vertical
 #                            2 = double horizontal
-#                            3 = double vertical 
+#                            3 = double vertical
 #                            default is 0
 #              cellpadding - Padding for the overall table
 #                            default is 0
@@ -242,9 +245,9 @@
 #                            Not used if background is set
 #                            default is #FFFFFF
 #                  vfstyle - Vertical label font style
-#                            default is NUL 
+#                            default is NUL
 #                  hfstyle - Horizontal label font style
-#                            default is NUL 
+#                            default is NUL
 #               noshowvals - Don't show numeric value at end of graphic
 #                            Boolean value, default is FALSE
 #                    scale - Scale values by some number.
@@ -260,15 +263,15 @@
 #              valuefcolor - Color code for font of value element
 #                            default is "#000000"
 #               namefstyle - Style code for font of name element
-#                            default is NUL 
+#                            default is NUL
 #              valuefstyle - Style code for font of value element
-#                            default is NUL 
+#                            default is NUL
 #             doublefcolor - Color code for font of second element value
 #                            default is "#886666"
 #
 #######################################################################
 */
-function html_graph($names, $values, $bars, $vals, $dvalues=0, $dbars=0) 
+function html_graph($names, $values, $bars, $vals, $dvalues=0, $dbars=0)
    {
     // Set the error level on entry and exit so as not to interfear
     // with anyone elses error checking.
@@ -298,22 +301,22 @@
     end_graph();
 
     // Set the error level back to where it was.
-    error_reporting($er);  
+    error_reporting($er);
    }
 
 /*
-####################################################################### 
+#######################################################################
 #
 #  Function:  html_graph_init()
 #
-#   Purpose:  Sets up the $vals array by initializing all values to 
+#   Purpose:  Sets up the $vals array by initializing all values to
 #             null.  Used to avoid warnings from error_reporting being
-#             set high.  This routine only needs to be called if you 
+#             set high.  This routine only needs to be called if you
 #             are woried about using uninitialized variables.
-#           
+#
 #   Returns:  The initialized $vals array
-# 
-####################################################################### 
+#
+#######################################################################
 */
 function html_graph_init()
    {
@@ -344,13 +347,13 @@
     return($vals);
    }
 /*
-####################################################################### 
+#######################################################################
 #
 #  Function:  start_graph($vals, $names)
 #
 #   Purpose:  Prints out the table header and graph labels.
 #
-####################################################################### 
+#######################################################################
 */
 function start_graph($vals, $names)
    {
@@ -367,14 +370,14 @@
     if (($vals["vlabel"]) || ($vals["hlabel"]))
        {
         if (($vals["type"] == 0) || ($vals["type"] == 2 ))// horizontal chart
-           { 
-            $rowspan = SizeOf($names) + 1; 
-            $colspan = 3; 
+           {
+            $rowspan = SizeOf($names) + 1;
+            $colspan = 3;
            }
         elseif ($vals["type"] == 1 || ($vals["type"] == 3 )) // vertical chart
            {
             $rowspan = 3;
-            $colspan = SizeOf($names) + 1; 
+            $colspan = SizeOf($names) + 1;
            }
 
         print '<tr><td align="center" valign="center" ';
@@ -400,13 +403,13 @@
    }
 
 /*
-####################################################################### 
+#######################################################################
 #
 #  Function:  end_graph()
 #
 #   Purpose:  Prints out the table footer.
 #
-####################################################################### 
+#######################################################################
 */
 function end_graph()
    {
@@ -414,13 +417,13 @@
    }
 
 /*
-####################################################################### 
+#######################################################################
 #
 #  Function:  hv_graph_defaults($vals)
 #
-#   Purpose:  Sets the default values for the $vals array 
+#   Purpose:  Sets the default values for the $vals array
 #
-####################################################################### 
+#######################################################################
 */
 function hv_graph_defaults($vals)
    {
@@ -442,18 +445,18 @@
    }
 
 /*
-####################################################################### 
+#######################################################################
 #
-#  Function:  horizontal_graph($names, $values, $bars, $vals) 
+#  Function:  horizontal_graph($names, $values, $bars, $vals)
 #
-#   Purpose:  Prints out the actual data for the horizontal chart. 
+#   Purpose:  Prints out the actual data for the horizontal chart.
 #
-####################################################################### 
+#######################################################################
 */
-function horizontal_graph($names, $values, $bars, $vals) 
+function horizontal_graph($names, $values, $bars, $vals)
    {
     for( $i=0;$i<SizeOf($values);$i++ )
-       { 
+       {
 ?>
 
 	<tr>
@@ -461,7 +464,7 @@
         // If a background was choosen don't print cell BGCOLOR
         if (! $vals["background"]) { print ' style="background-color:' . $vals["namebgcolor"] . '"'; }
 ?>>
-		<span style="font-size: -1;color:"<?php
+		<span style="font-size: -1;color:<?php
 			echo $vals["namefcolor"];
 		?>;<?php
 			echo $vals["namefstyle"];
@@ -478,7 +481,7 @@
 
         // Decide if the value in bar is a color code or image.
         if (ereg("^#", $bars[$i]))
-           { 
+           {
 ?>
 
 		<table align="left" cellpadding="0" cellspacing="0" style="background-color:<?php echo $bars[$i] ?>" width="<?php echo $values[$i] * $vals["scale"] ?>">
@@ -508,20 +511,20 @@
    } // end horizontal_graph
 
 /*
-####################################################################### 
+#######################################################################
 #
-#  Function:  vertical_graph($names, $values, $bars, $vals) 
+#  Function:  vertical_graph($names, $values, $bars, $vals)
 #
-#   Purpose:  Prints out the actual data for the vertical chart. 
+#   Purpose:  Prints out the actual data for the vertical chart.
 #
-####################################################################### 
+#######################################################################
 */
-function vertical_graph($names, $values, $bars, $vals) 
+function vertical_graph($names, $values, $bars, $vals)
    {
     print "<tr>";
 
     for( $i=0;$i<SizeOf($values);$i++ )
-       { 
+       {
 
         print '<td  align="center" valign="bottom" ';
 
@@ -539,17 +542,17 @@
 
          <img src="<?php echo $bars[$i] ?>" width="5" height="<?php
 
-        // Values of zero are displayed wrong because a image height of zero 
-        // gives a strange behavior in Netscape. For this reason the height 
+        // Values of zero are displayed wrong because a image height of zero
+        // gives a strange behavior in Netscape. For this reason the height
         // is set at 1 pixel if the value is zero. - Jan Diepens
         if ($values[$i] != 0)
            {
             echo $values[$i] * $vals["scale"];
-           } 
-        else 
-           { 
+           }
+        else
+           {
             echo "1";
-           } 
+           }
 ?>" alt="" />
 
          </td>
@@ -559,7 +562,7 @@
     print "</tr><tr>";
 
     for( $i=0;$i<SizeOf($values);$i++ )
-       { 
+       {
 ?>
         <td align="center" valign="top"
 
@@ -575,22 +578,22 @@
 <?php
        } // endfor
 
-   } // end vertical_graph 
+   } // end vertical_graph
 
 /*
-####################################################################### 
+#######################################################################
 #
-#  Function:  double_horizontal_graph($names, $values, $bars, 
-#                                     $vals, $dvalues, $dbars) 
+#  Function:  double_horizontal_graph($names, $values, $bars,
+#                                     $vals, $dvalues, $dbars)
 #
-#   Purpose:  Prints out the actual data for the double horizontal chart. 
+#   Purpose:  Prints out the actual data for the double horizontal chart.
 #
-####################################################################### 
+#######################################################################
 */
-function double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars) 
+function double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars)
    {
     for( $i=0;$i<SizeOf($values);$i++ )
-       { 
+       {
 ?>
        <tr>
         <td align="right"
@@ -621,7 +624,7 @@
 <?php
         // Decide if the value in bar is a color code or image.
         if (ereg("^#", $bars[$i]))
-           { 
+           {
 ?>
             <table align="left" cellpadding="0" cellspacing="0"
              style="background-color:"<?php echo $bars[$i] ?>"
@@ -634,7 +637,7 @@
             {
              print '<img src="' . $bars[$i] . '"';
              print ' height="10" width="' . $values[$i] * $vals["scale"] . '" alt="" />';
-            }          
+            }
 
         if (! $vals["noshowvals"])
            {
@@ -662,22 +665,22 @@
    } // end double_horizontal_graph
 
 /*
-####################################################################### 
+#######################################################################
 #
-#  Function:  double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars) 
+#  Function:  double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars)
 #
-#   Purpose:  Prints out the actual data for the double vertical chart. 
+#   Purpose:  Prints out the actual data for the double vertical chart.
 #
 #    Author: Jan Diepens
 #
-####################################################################### 
+#######################################################################
 */
-function double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars) 
+function double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars)
    {
    // print "<tr>";
 
     for( $i=0;$i<SizeOf($values);$i++ )
-       { 
+       {
 
         print '<td align="center" valign="bottom" ';
         // If a background was choosen don't print cell BGCOLOR
@@ -726,7 +729,7 @@
     print "</tr><tr>";
 
     for( $i=0;$i<SizeOf($values);$i++ )
-       { 
+       {
 ?>
         <td align="center" valign="top"
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/languages/Base.tab	2011-02-24 15:48:10 UTC (rev 8652)
@@ -816,12 +816,12 @@
 pm_admin_projects	description	Description
 pm_admin_projects	send_updates	Send All Updates To
 pm_admin_projects	change_project_title	Change Project/Task Manager Status
-pm_admin_projects	change_project_intro	You can modify an existing Project using this form. Please note that private projects can still be viewed by members of your project, but not the general public.<p>
+pm_admin_projects	change_project_intro	You can modify an existing Project using this form. Please note that private projects can still be viewed by members of your project, but not the general public.
 pm_admin_projects	add_edit_categories	Add/Edit Categories
 pm_admin_projects	admin_title	Project/Task Manager Administration
 pm_admin_projects	add_project	Add A Project
 pm_admin_projects	add_project_intro	Add a project, which can contain a set of tasks. This is different than creating a new task.
-pm_admin_projects	no_projects_found	<h2>No Projects Found</h2><p>None found for this group. You may add new Projects using the "Add A Project" link above.
+pm_admin_projects	no_projects_found	<h2>No Projects Found</h2><p>None found for this group. You may add new Projects using the "Add A Project" link above.</p>
 pm_admin_projects	edit_update	Edit/Update Project
 pm_admin_projects	project_title	Title
 pm_admin_projects	add_categories_to	Add Categories To
@@ -869,7 +869,7 @@
 pm_reporting	tasks_by_technician	Tasks By Technician
 pm_reporting	open_tasks_by_technician	Open Tasks By Technician
 pm_reporting	all_tasks_by_technician	All Tasks By Technician
-pm_reporting	report_note	Note that same task can be assigned to several technicians. Such task will be counted for each of them.</p>
+pm_reporting	report_note	<p>Note that same task can be assigned to several technicians. Such task will be counted for each of them.</p>
 pm_projectgroup	error_min_name_length	Title Must Be At Least 5 Characters
 pm_projectgroup	error_min_desc_length	Document Description Must Be At Least 10 Characters
 pm_projectgroup	none_found	No ProjectGroups Found

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/tool_reports.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -12,7 +12,7 @@
 
 /**
  * reports_quick_graph() - Show a quick graph of data.
- * 
+ *
  * @param		string	Graph title
  * @param		int		First query resource ID
  * @param		int		Second query resource ID
@@ -50,10 +50,10 @@
 			$props
 		);
 		end_graph();
-		print '<p><br />';
+		print '<p /><br />';
 		print '<table cellspacing="0" border="0"><tr align="center"><td width="15%">'.$Language->getText('include_toolreport','key').':</td><td width="5%">(</td><td width="35%" style="background-color:'.$bar_colors[0].'">'.$Language->getText('include_toolreport','open').'</td>'.
 		      '<td width="5%">/</td><td width="35%" style="background-color:'.$bar_colors[1].'">'.$Language->getText('include_toolreport','all').' </td><td width="5%">)</td></tr></table>';
-		print '</p>';
+		print '<p />';
 //      		GraphResult($result,$title);
 	} else {
 		echo "<h2>".$Language->getText('include_toolreport','no_data')."</h2>";
@@ -63,7 +63,7 @@
 
 /**
  * reports_header() - Show the reports header
- * 
+ *
  * @param		int		The group ID
  * @param		array	Array of select box values
  * @param		string	The select box title
@@ -74,9 +74,10 @@
 	global $period;
 	global $span;
 	global $Language;
-	
-	print "<form method=\"GET\" action=\"$PHP_SELF#b\">";
+	global $PHP_SELF;
 
+	print "<form method=\"get\" action=\"$PHP_SELF#b\">";
+
 	print $html;
 
 	print html_build_select_box_from_arrays ($vals,$titles,

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/add_task.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/add_task.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/add_task.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -20,20 +20,20 @@
 
 ?>
 
-<form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
-<input type="hidden" name="func" value="postaddtask">
-<input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>">
+<form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
+<input type="hidden" name="func" value="postaddtask" />
+<input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
 
 <table border="0" width="100%">
 
 	<tr>
 		<td>
 		<strong><?php echo $Language->getText('pm','category') ?>:</strong><br />
-		<?php echo $pg->categoryBox('category_id'); ?> <a href="/pm/admin/?<?php echo "group_id=$group_id&add_cat=1&group_project_id=$group_project_id"; ?>">(<?php echo $Language->getText('pm','admin') ?>)</a>
+		<?php echo $pg->categoryBox('category_id'); ?> <a href="/pm/admin/?<?php echo "group_id=$group_id&add_cat=1&group_project_id=$group_project_id"; ?>">(<?php echo $Language->getText('pm','admin') ?>)</a>
 		</td>
 
 		<td><font size="-1">
-		<input type="submit" value=<?php echo $Language->getText('general','submit') ?> name="submit"></font>
+		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" /></font>
 		</td>
 	</tr>
 
@@ -51,14 +51,14 @@
   	<tr>
 		<td colspan="2">
 		<strong><?php echo $Language->getText('pm','summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
-		<input type="text" name="summary" size="40" maxlength="65" value="<?php echo $related_artifact_summary; ?>">
+		<input type="text" name="summary" size="40" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
 		</td>
 	</tr>
 
 	<tr>
 		<td colspan="2">
 		<strong><?php echo $Language->getText('pm','details') ?>:</strong><?php echo utils_requiredField(); ?><br />
-		<textarea name="details" rows="5" cols="40" wrap="soft"></textarea></td>
+		<textarea name="details" rows="5" cols="40"></textarea></td>
 	</tr>
 
 	<tr>
@@ -109,16 +109,16 @@
 	<tr>
 		<td>
 		<strong><?php echo $Language->getText('pm','hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
-		<input type="text" name="hours" size="5">
+		<input type="text" name="hours" size="5" />
 		</td>
 
 		<td>
-		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit">
+		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
 		</td>
-		</form>
 	</tr>
 
 </table>
+</form>
 <?php
 
 pm_footer(array());

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/admin/index.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -142,7 +142,7 @@
 		List of possible categories for this ArtifactType
 	*/
 	$result=$pg->getCategories();
-	echo "<p>";
+	echo "<p />";
 	$rows=db_numrows($result);
 	if ($result && $rows > 0) {
 		$title_arr=array();
@@ -154,8 +154,8 @@
 		for ($i=0; $i < $rows; $i++) {
 			echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'.
 				'<td>'.db_result($result, $i, 'category_id').'</td>'.
-				'<td><a href="'.$PHP_SELF.'?update_cat=1&id='.
-					db_result($result, $i, 'category_id').'&group_id='.$group_id.'&group_project_id='. $pg->getID() .'">'.
+				'<td><a href="'.$PHP_SELF.'?update_cat=1&id='.
+					db_result($result, $i, 'category_id').'&group_id='.$group_id.'&group_project_id='. $pg->getID() .'">'.
 					db_result($result, $i, 'category_name').'</a></td></tr>';
 		}
 
@@ -166,16 +166,16 @@
 	}
 
 	?>
-	<p>
+	<p />
 	<form action="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>" method="post">
-	<input type="hidden" name="add_cat" value="y">
-	<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>">
+	<input type="hidden" name="add_cat" value="y" />
+	<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>" />
 	<strong><?php echo $Language->getText('pm_admin_projects','category_name') ?>:</strong><br />
-	<input type="text" name="name" value="" size="15" maxlength="30"><br />
-	<p>
-	<strong><font COLOR="RED"><?php echo $Language->getText('pm_admin_projects','category_note') ?></font></strong>
-	<p>
-	<input type="SUBMIT" name="post_changes" value="<?php echo $Language->getText('general','submit') ?>">
+	<input type="text" name="name" value="" size="15" maxlength="30" /><br />
+	<p />
+	<strong><font color="red"><?php echo $Language->getText('pm_admin_projects','category_note') ?></font></strong>
+	<p />
+	<input type="submit" name="post_changes" value="<?php echo $Language->getText('general','submit') ?>" />
 	</form>
 	<?php
 
@@ -208,18 +208,18 @@
 		$feedback .= $ac->getErrorMessage();
 	} else {
 		?>
-		<p>
-		<form action="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>" method="post">
-		<input type="hidden" name="update_cat" value="y">
-		<input type="hidden" name="id" value="<?php echo $ac->getID(); ?>">
-		<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>">
-		<p>
+		<p />
+		<form action="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>" method="post" />
+		<input type="hidden" name="update_cat" value="y" />
+		<input type="hidden" name="id" value="<?php echo $ac->getID(); ?>" />
+		<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>" />
+		<p />
 		<strong><?php echo $Language->getText('pm_admin_projects','category_name')?>:</strong><br />
-		<input type="text" name="name" value="<?php echo $ac->getName(); ?>">
-		<p>
-		<strong><font COLOR="RED"><?php echo $Language->getText('pm_admin_projects','category_note2')?></font></strong>
-		<p>
-		<input type="SUBMIT" name="post_changes" value="<?php echo $Language->getText('general','submit') ?>">
+		<input type="text" name="name" value="<?php echo $ac->getName(); ?>" />
+		<p />
+		<strong><font color="red"><?php echo $Language->getText('pm_admin_projects','category_note2')?></font></strong>
+		<p />
+		<input type="submit" name="post_changes" value="<?php echo $Language->getText('general','submit') ?>" />
 		</form>
 		<?php
 	}
@@ -238,35 +238,35 @@
 	*/
 	$sql="SELECT group_project_id,project_name FROM project_group_list WHERE group_id='$group_id'";
 	$result=db_query($sql);
-	echo "<p>";
+	echo "<p />";
 	if ($result && db_numrows($result) > 0) {
 		ShowResultSet($result,$Language->getText('pm_admin_projects','existing_subprojects'));
 	} else {
 		echo "\n<h1>".$Language->getText('pm_admin_projects','no_subprojects')."</h1>";
 	}
 	?>
-	<p><?php echo $Language->getText('pm_admin_projects','projects_intro') ?>
+	<p><?php echo $Language->getText('pm_admin_projects','projects_intro') ?></p>
 
-	<p>
+	<p />
 	<form action="<?php echo $PHP_SELF."?group_id=$group_id"; ?>" method="post">
-	<input type="hidden" name="addproject" value="y">
-	<input type="hidden" name="post_changes" value="y">
-	<p>
+	<input type="hidden" name="addproject" value="y" />
+	<input type="hidden" name="post_changes" value="y" />
+	<p />
 	<strong><?php echo $Language->getText('pm_admin_projects','is_public')?></strong><br />
-	<input type="radio" name="is_public" value="1" checked><?php echo $Language->getText('general','yes') ?><br />
-	<input type="radio" name="is_public" value="0"><?php echo $Language->getText('general','no') ?><p>
-	<p>
+	<input type="radio" name="is_public" value="1" checked="checked" /><?php echo $Language->getText('general','yes') ?><br />
+	<input type="radio" name="is_public" value="0" /><?php echo $Language->getText('general','no') ?><p />
+	<p />
 	<h3><?php echo $Language->getText('pm_admin_projects','project_name')?></h3>
-	<p>
-	<input type="text" name="project_name" value="" size="15" maxlength="30">
-	<p>
+	<p />
+	<input type="text" name="project_name" value="" size="15" maxlength="30" />
+	<p />
 	<strong><?php echo $Language->getText('pm_admin_projects','description')?></strong><br />
-	<input type="text" name="description" value="" size="40" maxlength="80">
-	<p>
+	<input type="text" name="description" value="" size="40" maxlength="80" />
+	<p />
 	<strong><?php echo $Language->getText('pm_admin_projects','send_updates')?>:</strong><br />
-	<input type="text" name="send_all_posts_to" value="" size="40" maxlength="80"><br />
-	<p>
-	<input type="SUBMIT" name="SUBMIT" value="<?php echo $Language->getText('general','submit') ?>">
+	<input type="text" name="send_all_posts_to" value="" size="40" maxlength="80" /><br />
+	<p />
+	<input type="submit" name="submit" value="<?php echo $Language->getText('general','submit') ?>" />
 	</form>
 	<?php
 	pm_footer(array());
@@ -284,47 +284,47 @@
 	pm_header(array('title'=>$Language->getText('pm_admin_projects','change_project_title'),'pagename'=>'pm_admin_update_pg','sectionvals'=>$g->getPublicName()));
 
 	?>
-	<p><?php echo $Language->getText('pm_admin_projects','change_project_intro') ?>
-	<p>
+	<p><?php echo $Language->getText('pm_admin_projects','change_project_intro') ?></p>
+	<p />
 
 	<form action="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>" method="post">
-	<input type="hidden" name="post_changes" value="y">
-	<input type="hidden" name="update_pg" value="y">
-	<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>">
+	<input type="hidden" name="post_changes" value="y" />
+	<input type="hidden" name="update_pg" value="y" />
+	<input type="hidden" name="group_project_id" value="<?php echo $pg->getID(); ?>" />
 	<table border="0">
 	<tr>
 		<td>
 			<strong><?php echo $Language->getText('pm_admin_projects','is_public')?></strong><br />
-			<input type="radio" name="is_public" value="1"<?php echo (($pg->isPublic()=='1')?' checked':''); ?>> <?php echo $Language->getText('general','yes') ?><br />
-			<input type="radio" name="is_public" value="0"<?php echo (($pg->isPublic()=='0')?' checked':''); ?>> <?php echo $Language->getText('general','no') ?><br />
-			<input type="radio" name="is_public" value="9"<?php echo (($pg->isPublic()=='9')?' checked':''); ?>> <?php echo $Language->getText('general','deleted')?><br />
+			<input type="radio" name="is_public" value="1"<?php echo (($pg->isPublic()=='1')?' checked="checked"':''); ?> /> <?php echo $Language->getText('general','yes') ?><br />
+			<input type="radio" name="is_public" value="0"<?php echo (($pg->isPublic()=='0')?' checked="checked"':''); ?> /> <?php echo $Language->getText('general','no') ?><br />
+			<input type="radio" name="is_public" value="9"<?php echo (($pg->isPublic()=='9')?' checked="checked"':''); ?> /> <?php echo $Language->getText('general','deleted')?><br />
 		</td>
 	</tr>
 	<tr>
 		<td><strong><?php echo $Language->getText('pm_admin_projects','project_name')?>:</strong><br />
-			<input type="text" name="project_name" value="<?php echo $pg->getName() ?>">
+			<input type="text" name="project_name" value="<?php echo $pg->getName() ?>" />
 		</td>
 	</tr>
 	<tr>
 		<td>
 			<strong><?php echo $Language->getText('pm_admin_projects','description')?>:</strong><br />
-			<input type="text" name="description" value="<?php echo $pg->getDescription(); ?>" size="40" maxlength="80"><br />
+			<input type="text" name="description" value="<?php echo $pg->getDescription(); ?>" size="40" maxlength="80" /><br />
 		</td>
 	</tr>
 	<tr>
 		<td>
 			<strong><?php echo $Language->getText('pm_admin_projects','send_updates')?>:</strong><br />
-			<input type="text" name="send_all_posts_to" value="<?php echo $pg->getSendAllPostsTo(); ?>" size="40" maxlength="80"><br />
+			<input type="text" name="send_all_posts_to" value="<?php echo $pg->getSendAllPostsTo(); ?>" size="40" maxlength="80" /><br />
 		</td>
 	</tr>
 	<tr>
 		<td>
-			<strong><a href="<?php echo $PHP_SELF."?group_id=$group_id&add_cat=1&group_project_id=".$pg->getID(); ?>"><?php echo $Language->getText('pm_admin_projects','add_edit_categories')?></a></strong><br />
+			<strong><a href="<?php echo $PHP_SELF."?group_id=$group_id&add_cat=1&group_project_id=".$pg->getID(); ?>"><?php echo $Language->getText('pm_admin_projects','add_edit_categories')?></a></strong><br />
 		</td>
 	</tr>
 	<tr>
 		<td>
-			<input type="SUBMIT" name="SUBMIT" value="<?php echo $Language->getText('general','update') ?>">
+			<input type="submit" name="submit" value="<?php echo $Language->getText('general','update') ?>" />
 		</td>
 	</tr>
 	</table>
@@ -341,10 +341,10 @@
 	pm_header(array('title'=>$Language->getText('pm_admin_projects','admin_title'),'pagename'=>'pm_admin','sectionvals'=>group_getname($group_id)));
 
 	?>
-	<p>
-	<a href="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>&addproject=1"><?php echo $Language->getText('pm_admin_projects','add_project') ?></a><br />
+	<p />
+	<a href="<?php echo $PHP_SELF.'?group_id='.$group_id; ?>&addproject=1"><?php echo $Language->getText('pm_admin_projects','add_project') ?></a><br />
 	<?php echo $Language->getText('pm_admin_projects','add_project_intro') ?>
-	<p>
+	<p />
 	<?php
     $pgf = new ProjectGroupFactory($g);
     if (!$pgf || !is_object($pgf)) {
@@ -360,7 +360,7 @@
         echo db_error();
     } else {
 		for ($i=0; $i<count($pg_arr); $i++) {
-			echo '<a href="'. $PHP_SELF.'?group_id='.$group_id.'&group_project_id='.$pg_arr[$i]->getID().'&update_pg=1">'.$Language->getText('pm_admin_projects','edit_update').': <strong>'.$pg_arr[$i]->getName().'</strong></a><p>';
+			echo '<a href="'. $PHP_SELF.'?group_id='.$group_id.'&group_project_id='.$pg_arr[$i]->getID().'&update_pg=1">'.$Language->getText('pm_admin_projects','edit_update').': <strong>'.$pg_arr[$i]->getName().'</strong></a><p />';
 		}
 
 	}

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/browse_task.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/browse_task.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/browse_task.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -100,16 +100,16 @@
 /*
 	Show the new pop-up boxes to select assigned to and/or status
 */
-echo '<table width="10%" border="0">
-	<form action="'. $PHP_SELF .'?group_id='.$group_id.'&group_project_id='.$group_project_id.'" method="post">
-	<input type="hidden" name="set" value="custom">
+echo '	<form action="'. $PHP_SELF .'?group_id='.$group_id.'&group_project_id='.$group_project_id.'" method="post">
+	<input type="hidden" name="set" value="custom" />
+	<table width="10%" border="0">
 	<tr>
-		<td><font size="-1">'.$Language->getText('pm_modtask','assignee').'<br />'. $tech_box .'</td>
-		<td><font size="-1">'.$Language->getText('pm','status').'<br />'. $pg->statusBox('_status',$_status,'Any') .'</td>
-		<td><font size="-1">'.$Language->getText('pm','category').'<br />'. $cat_box .'</td>
-		<td><font size="-1">'.$Language->getText('pm_modtask','sort_on').'<br />'. $order_box .'</td>
-		<td><font size="-1"><input type="SUBMIT" name="SUBMIT" value="'.$Language->getText('pm_browsetask','browse').'"></td>
-	</tr></form></table><p>';
+		<td><font size="-1">'.$Language->getText('pm_modtask','assignee').'<br />'. $tech_box .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm','status').'<br />'. $pg->statusBox('_status',$_status,'Any') .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm','category').'<br />'. $cat_box .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm_modtask','sort_on').'<br />'. $order_box .'</font></td>
+		<td><font size="-1"><input type="submit" name="submit" value="'.$Language->getText('pm_browsetask','browse').'" /></font></td>
+	</tr></table></form><p />';
 
 
 $rows=count($pt_arr);
@@ -117,14 +117,14 @@
 
 	echo '
 		<h1>'.$Language->getText('pm','no_tasks_found').'</h1>
-		<p>
+		<p />
 		<strong>'.$Language->getText('pm','no_tasks_found_text').'</strong>';
 	echo db_error();
 } else {
 
 	//create a new $set string to be used for next/prev button
 	if ($set=='custom') {
-		$set .= '&_assigned_to='.$_assigned_to.'&_status='.$_status;
+		$set .= '&_assigned_to='.$_assigned_to.'&_status='.$_status;
 	}
 
 	/*
@@ -136,14 +136,14 @@
 	$now=time();
 
 	for ($i=0; $i < $rows; $i++) {
-		$url = "/pm/task.php?func=detailtask&project_task_id=".$pt_arr[$i]->getID()."&group_id=".$group_id."&group_project_id=".$group_project_id;
+		$url = "/pm/task.php?func=detailtask&project_task_id=".$pt_arr[$i]->getID()."&group_id=".$group_id."&group_project_id=".$group_project_id;
 		echo '
 			<tr bgcolor="'.html_get_priority_color( $pt_arr[$i]->getPriority() ).'">'.
 			'<td><a href="'.$url.'">'.$pt_arr[$i]->getID() .'</a></td>'.
 			'<td><a href="'.$url.'">'.$pt_arr[$i]->getSummary() .'</a></td>'.
 			'<td>'.date('Y-m-d', $pt_arr[$i]->getStartDate() ).'</td>'.
 			'<td>'. (($now>$pt_arr[$i]->getEndDate() )?'<strong>* ':'  ') .
-				date('Y-m-d',$pt_arr[$i]->getEndDate() ).'</td>'.
+				date('Y-m-d',$pt_arr[$i]->getEndDate() ).'</strong></td>'.
 			'<td>'. $pt_arr[$i]->getPercentComplete() .'%</td>'.
 			'<td>'. $pt_arr[$i]->getPriority() .'</td></tr>';
 
@@ -154,8 +154,8 @@
 	*/
 	echo '<tr><td colspan="2">';
 	if ($offset > 0) {
-		echo '<a href="/pm/task.php?func=browse&group_project_id='.
-			$group_project_id.'&group_id='.$group_id.'&offset='.($offset-50).'">
+		echo '<a href="/pm/task.php?func=browse&group_project_id='.
+			$group_project_id.'&group_id='.$group_id.'&offset='.($offset-50).'">
 			<strong>'.$Language->getText('pm_browsetask','previous').'<--</strong></a>';
 	} else {
 		echo ' ';
@@ -163,8 +163,8 @@
 	echo '</td><td> </td><td colspan="2">';
 
 	if ($rows==50) {
-		echo '<a href="/pm/task.php?func=browse&group_project_id='.
-			$group_project_id.'&group_id='.$group_id.'&offset='.($offset+50).
+		echo '<a href="/pm/task.php?func=browse&group_project_id='.
+			$group_project_id.'&group_id='.$group_id.'&offset='.($offset+50).
 			'"><strong>'.$Language->getText('pm_browsetask','next').' --></strong></a>';
 	} else {
 		echo ' ';
@@ -173,7 +173,7 @@
 
 	echo $GLOBALS['HTML']->listTableBottom();
 
-	echo '<p>'.$Language->getText('pm_browsetask','overdue_tasks');
+	echo '<p />'.$Language->getText('pm_browsetask','overdue_tasks');
 	show_priority_colors_key();
 
 }

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/ganttpage.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/ganttpage.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/ganttpage.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -19,8 +19,20 @@
 //pm_header(array('title'=>'Browse Tasks','pagename'=>$pagename,'group_project_id'=>$group_project_id,'sectionvals'=>$g->getPublicName()));
 
 ?>
-<html>
-<body>
+
+<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>
+
+<!DOCTYPE html
+	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en   ">
+
+  <head>
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+	<title><?php echo $Language->getText('pm_include_grouphtml', 'gantt_chart');?></title>
+  </head>
+  <body>
 <?php
 /*
 		creating a custom technician box which includes "any" and "unassigned"
@@ -98,28 +110,28 @@
 /*
 	Show the new pop-up boxes to select assigned to and/or status
 */
-echo '<table width="10%" border="0">
-	<form action="'. $PHP_SELF .'?group_id='.$group_id.'&group_project_id='.$group_project_id.'&func=ganttpage" method="post">
-	<input type="hidden" name="set" value="custom">
+echo '	<form action="'. $PHP_SELF .'?group_id='.$group_id.'&group_project_id='.$group_project_id.'&func=ganttpage" method="post">
+	<input type="hidden" name="set" value="custom" />
+	<table width="10%" border="0">
 	<tr>
-		<td><font size="-1">'.$Language->getText('pm_ganttpage','assignee').':<br />'. $tech_box .'</td>
-		<td><font size="-1">'.$Language->getText('pm','status').':<br />'. $pg->statusBox('_status',$_status,'Any') .'</td>
-		<td><font size="-1">'.$Language->getText('pm','category').':<br />'. $cat_box .'</td>
-		<td><font size="-1">'.$Language->getText('pm_ganttpage','sort_on').':<br />'. $order_box .'</td>
-		<td><font size="-1">'.$Language->getText('pm_ganttpage','resolution').':<br />'. $dispres_box .'</td>
-		<td><font size="-1">'.$Language->getText('pm_ganttpage','size').':<br />'. $size_box .'</td>
-		<td><font size="-1"><input type="SUBMIT" name="SUBMIT" value="'.$Language->getText('general','browse').'"></td>
-	</tr></form></table>';
+		<td><font size="-1">'.$Language->getText('pm_ganttpage','assignee').':<br />'. $tech_box .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm','status').':<br />'. $pg->statusBox('_status',$_status,'Any') .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm','category').':<br />'. $cat_box .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm_ganttpage','sort_on').':<br />'. $order_box .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm_ganttpage','resolution').':<br />'. $dispres_box .'</font></td>
+		<td><font size="-1">'.$Language->getText('pm_ganttpage','size').':<br />'. $size_box .'</font></td>
+		<td><font size="-1"><input type="submit" name="submit" value="'.$Language->getText('general','browse').'" /></font></td>
+	</tr></table></form>';
 
 echo '<img src="'. $PHP_SELF .
-		'?func=ganttchart&group_id='.$group_id.
-		'&group_project_id='.$group_project_id.
-		'&_assigned_to='.$_assigned_to.
-		'&_order='.$_order.
-		'&_resolution='.$_resolution.
-		'&_category_id='.$_category_id.
-		'&_size='.$_size.
-		'&rand='.time().'">';
+		'?func=ganttchart&group_id='.$group_id.
+		'&group_project_id='.$group_project_id.
+		'&_assigned_to='.$_assigned_to.
+		'&_order='.$_order.
+		'&_resolution='.$_resolution.
+		'&_category_id='.$_category_id.
+		'&_size='.$_size.
+		'&rand='.time().'" alt="'. $Language->getText('pm_include_grouphtml', 'gantt_chart').'" />';
 
 //pm_footer(array());
 ?>

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/include/ProjectGroupHTML.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/include/ProjectGroupHTML.class	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/include/ProjectGroupHTML.class	2011-02-24 15:48:10 UTC (rev 8652)
@@ -29,7 +29,7 @@
 	$project =& group_get_object($group_id);
 	if (!$project || !is_object($project)) {
 		exit_no_group();
-	}   
+	}
 
 	if (!$project->usesPm()) {
 		exit_error($Language->getText('general','error'),$Language->getText('pm_include_grouphtml','error_disabled'));
@@ -44,14 +44,14 @@
 
 	if ($group_project_id) {
 		if (session_loggedin()) {
-			echo "<a href=\"/pm/task.php?group_id=$group_id&group_project_id=$group_project_id&func=addtask\">".$Language->getText('pm_include_grouphtml','add_task')."</a> | ";
+			echo "<a href=\"/pm/task.php?group_id=$group_id&group_project_id=$group_project_id&func=addtask\">".$Language->getText('pm_include_grouphtml','add_task')."</a> | ";
 		}
-		echo "<a href=\"/pm/task.php?group_id=$group_id&group_project_id=$group_project_id&func=browse\">".$Language->getText('pm_include_grouphtml','browse_task')."</a> | ";
-		echo "<a href=\"/pm/task.php?group_id=$group_id&group_project_id=$group_project_id&func=ganttpage\" target=\"_blank\">".$Language->getText('pm_include_grouphtml','gantt_chart')."</a> | ";
+		echo "<a href=\"/pm/task.php?group_id=$group_id&group_project_id=$group_project_id&func=browse\">".$Language->getText('pm_include_grouphtml','browse_task')."</a> | ";
+		echo "<a href=\"/pm/task.php?group_id=$group_id&group_project_id=$group_project_id&func=ganttpage\" target=\"_blank\">".$Language->getText('pm_include_grouphtml','gantt_chart')."</a> | ";
 	}
 	echo '
-		<a href="/pm/reporting/?group_id='.$group_id.'">'.$Language->getText('pm_include_grouphtml','reporting').'</a> | 
-		<a href="/pm/admin/?group_id='.$group_id.'">'.$Language->getText('pm_include_grouphtml','admin').'</a> </strong>';
+		<a href="/pm/reporting/?group_id='.$group_id.'">'.$Language->getText('pm_include_grouphtml','reporting').'</a> |
+		<a href="/pm/admin/?group_id='.$group_id.'">'.$Language->getText('pm_include_grouphtml','admin').'</a> </strong></p>';
 }
 
 function pm_footer($params) {
@@ -81,14 +81,14 @@
 		echo '
 		<select name="'.$name.'">';
 		echo '
-		<option value="0">'.$Language->getText('pm_include_grouphtml','not_started');
+		<option value="0">'.$Language->getText('pm_include_grouphtml','not_started'). '</option>';
 		for ($i=5; $i<101; $i+=5) {
 			echo '
 			<option value="'.$i.'"';
 			if ($i==$selected) {
-				echo ' SELECTED';
-			}	
-			echo '>'.$i.'%';
+				echo ' selected="selected"';
+			}
+			echo '>'.$i.'%</option>';
 		}
 		echo '
 		</select>';
@@ -115,14 +115,14 @@
 		for ($i=1; $i<=count($monthlist); $i++) {
 			if ($i == $select_month) {
 				echo '
-				<option selected value="'.$i.'">'.$monthlist[$i];
+				<option selected="selected" value="'.$i.'">'.$monthlist[$i].'</option>';
 			} else {
 				echo '
-				<option value="'.$i.'">'.$monthlist[$i];
+				<option value="'.$i.'">'.$monthlist[$i].'</option>';
 			}
 		}
 		echo '
-		</SELECT>';
+		</select>';
 	}
 
 	function showDayBox($name,$day=1) {
@@ -131,10 +131,10 @@
 		for ($i=1; $i<=31; $i++) {
 			if ($i == $day) {
 				echo '
-				<option selected value="'.$i.'">'.$i;
+				<option selected="selected" value="'.$i.'">'.$i.'</option>';
 			} else {
 				echo '
-				<option value="'.$i.'">'.$i;
+				<option value="'.$i.'">'.$i.'</option>';
 			}
 		}
 		echo '
@@ -147,10 +147,10 @@
 		for ($i=1999; $i<=2013; $i++) {
 			if ($i == $year) {
 				echo '
-				<option selected value="'.$i.'">'.$i;
+				<option selected="selected" value="'.$i.'">'.$i.'</option>';
 			} else {
 				echo '
-				<option value="'.$i.'">'.$i;
+				<option value="'.$i.'">'.$i.'</option>';
 			}
 		}
 		echo '
@@ -164,10 +164,10 @@
 		for ($i=0; $i<=23; $i++) {
 			if ($i == $hour) {
 				echo '
-				<option selected value="'.$i.'">'.$i;
+				<option selected="selected" value="'.$i.'">'.$i.'</option>';
 			} else {
 				echo '
-				<option value="'.$i.'">'.$i;
+				<option value="'.$i.'">'.$i.'</option>';
 			}
 		}
 		echo '
@@ -178,10 +178,10 @@
 		echo '	<select name="'.$name.'" size="1">';
 		for ($i=0; $i<=45; $i=$i+15) {
 			if ($i == $minute) {
-				echo '	<option selected value="'.$i.'">'.$i;
+				echo '	<option selected="selected" value="'.$i.'">'.$i.'</option>';
 			} else {
 				echo '
-				<option value="'.$i.'">'.$i;
+				<option value="'.$i.'">'.$i.'</option>';
 			}
 		}
 		echo '
@@ -200,22 +200,22 @@
 		$title_arr[] = $Language->getText('pm','start_date');
 		$title_arr[] = $Language->getText('pm','end_date');
 		$title_arr[] = $Language->getText('pm','percent_complete');
-		
 
+
 		$rows=count($pt_arr);
 		echo $GLOBALS['HTML']->listTableTop ($title_arr);
 		$now=time();
 
 		for ( $i = 0; $i < $rows; $i++ ) {
 
-			
-		
+
+
 			echo '
 			<tr bgcolor="'.html_get_priority_color( $pt_arr[$i]->getPriority() ).'">'.
 			'<td><a href="/pm/task.php?func=detailtask'.
-			'&project_task_id='. $pt_arr[$i]->getID() .
-			'&group_id='.$group_id.
-			'&group_project_id='. $group_project_id .'">'.
+			'&project_task_id='. $pt_arr[$i]->getID() .
+			'&group_id='.$group_id.
+			'&group_project_id='. $group_project_id .'">'.
 			$pt_arr[$i]->getID() .'</a></td>'.
 			'<td>'. $pt_arr[$i]->getSummary() .'</td>'.
 			'<td>'.date('Y-m-d', $pt_arr[$i]->getStartDate() ).'</td>'.
@@ -223,16 +223,16 @@
 				date('Y-m-d',$pt_arr[$i]->getEndDate() ).'</td>'.
 			'<td>'. $pt_arr[$i]->getPercentComplete() .'%</td></tr>';
 
-		       
-			
+
+
 		}
-		
+
 		echo $GLOBALS['HTML']->listTableBottom();
 
-	
 
 
 
+
 	}
 
 }

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/index.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/index.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -46,30 +46,29 @@
 pm_header(array('title'=>$Language->getText('pm','title'). $g->getPublicName(),'pagename'=>'pm','sectionvals'=>$g->getPublicName()));
 
 if (count($pg_arr) < 1 || $pg_arr == false) {
-	echo '<p>'.$Language->getText('pm','noprj');
+	echo '<p>'.$Language->getText('pm','noprj').'</p>';
 } else {
 	echo '
-	<p>'.$Language->getText('pm','intro').'
-	<p>';
+	<p>'.$Language->getText('pm','intro').'</p>';
 
 	/*
 		Put the result set (list of projects for this group) into a column with folders
 	*/
 
-	for ($j = 0; $j < count($pg_arr); $j++) { 
+	for ($j = 0; $j < count($pg_arr); $j++) {
 		if ($pg_arr[$j]->isError()) {
 			echo $pg_arr[$j]->getErrorMessage();
 		}
 		echo '
-		<a href="/pm/task.php?group_project_id='. $pg_arr[$j]->getID().
-		'&group_id='.$group_id.'&func=browse">' .
+		<p><a href="/pm/task.php?group_project_id='. $pg_arr[$j]->getID().
+		'&group_id='.$group_id.'&func=browse">' .
 		html_image("ic/taskman20w.png","20","20",array("border"=>"0")) . '  '.
 		$pg_arr[$j]->getName() .'</a><br />'.
-		$pg_arr[$j]->getDescription() .'<p>';
+		$pg_arr[$j]->getDescription() .'</p>';
 	}
 
 }
 
-pm_footer(array()); 
+pm_footer(array());
 
 ?>

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/mod_task.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/mod_task.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/mod_task.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -20,9 +20,9 @@
 
 ?>
 
-<form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
-<input type="hidden" name="func" value="postmodtask">
-<input type="hidden" name="project_task_id" value="<?php echo $project_task_id; ?>">
+<form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
+<input type="hidden" name="func" value="postmodtask" />
+<input type="hidden" name="project_task_id" value="<?php echo $project_task_id; ?>" />
 
 <table border="0" width="100%">
 
@@ -30,14 +30,14 @@
 		<td><strong><?php echo $Language->getText('pm_modtask','submitted_by') ?>:</strong><br /><?php echo $pt->getSubmittedRealName(); ?> (<?php echo $pt->getSubmittedUnixName(); ?>)</td>
 	</tr>
 
-	<tr>	
+	<tr>
 		<td>
 		<strong><?php echo $Language->getText('pm','category') ?>:</strong><br />
-		<?php echo $pg->categoryBox('category_id',$pt->getCategoryID()); ?> <a href="/pm/admin/?<?php echo "group_id=$group_id&add_cat=1&group_project_id=$group_project_id"; ?>">(admin)</a>
+		<?php echo $pg->categoryBox('category_id',$pt->getCategoryID()); ?> <a href="/pm/admin/?<?php echo "group_id=$group_id&add_cat=1&group_project_id=$group_project_id"; ?>">(admin)</a>
 		</td>
 
 		<td>
-		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit">
+		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
 		</td>
 	</tr>
 
@@ -59,7 +59,7 @@
   	<tr>
 		<td colspan="2">
 		<strong><?php echo $Language->getText('pm','summary') ?>:</strong><br />
-		<input type="text" name="summary" size="40" MAXLENGTH="65" value="<?php echo $pt->getSummary(); ?>">
+		<input type="text" name="summary" size="40" maxlength="65" value="<?php echo $pt->getSummary(); ?>" />
 		</td>
 	</tr>
 
@@ -67,9 +67,9 @@
 		<td colspan="2">
 		<strong><?php echo $Language->getText('pm_modtask','original_comment') ?>:</strong><br />
 		<?php echo nl2br( $pt->getDetails() ); ?>
-		<p>
+		<p />
 		<strong><?php echo $Language->getText('pm_modtask','add_comment') ?>:</strong><br />
-		<textarea name="details" rows="5" cols="40" wrap="soft"></textarea>
+		<textarea name="details" rows="5" cols="40"></textarea>
 		</td>
 	</tr>
 
@@ -81,7 +81,7 @@
 		echo $pg->showDayBox ('start_day',date('d', $pt->getStartDate()));
 		echo $pg->showYearBox ('start_year',date('Y', $pt->getStartDate()));
 		echo $pg->showHourBox ('start_hour',date('G', $pt->getStartDate()));
-		echo $pg->showMinuteBox ('start_minute',date('i',$pt->getStartDate())); 
+		echo $pg->showMinuteBox ('start_minute',date('i',$pt->getStartDate()));
 		?><br /><?php echo $Language->getText('pm','date_note') ?>
 		<br /><a href="calendar.php?group_id=<?php echo $group_id; ?>&group_project_id=<?php echo $group_project_id; ?>" target="_blank"><?php echo $Language->getText('pm','view_calendar') ?></a>
 		</td>
@@ -127,7 +127,7 @@
 	<tr>
 		<td>
 		<strong><?php echo $Language->getText('pm','hours') ?>:</strong><br />
-		<input type="text" name="hours" size="5" value="<?php echo $pt->getHours(); ?>">
+		<input type="text" name="hours" size="5" value="<?php echo $pt->getHours(); ?>" />
 		</td>
 
 		<td>
@@ -163,13 +163,13 @@
 	</tr>
 
 	<tr>
-		<td colspan="2" align="MIDDLE">
-		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit">
+		<td colspan="2" align="center">
+		<input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
 		</td>
-		</form>
 	</tr>
 
 </table>
+</form>
 <?php
 
 pm_footer(array());

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php	2011-02-24 15:48:06 UTC (rev 8651)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/reporting/index.php	2011-02-24 15:48:10 UTC (rev 8652)
@@ -121,7 +121,7 @@
 
 		GraphIt($names, $values, $Language->getText('pm_reporting','average_duration'));
 
-		echo "<p>";
+		echo "<p />";
 
 		for ($counter=1; $counter<=$span; $counter++) {
 
@@ -143,7 +143,7 @@
 
 		GraphIt($names, $values, $Language->getText('pm_reporting','started_tasks'));
 
-		echo "<p>";
+		echo "<p />";
 
 		for ($counter=1; $counter<=$span; $counter++) {
 
@@ -165,7 +165,7 @@
 
 		GraphIt($names, $values, $Language->getText('pm_reporting','not_completed'));
 
-		echo "<p>";
+		echo "<p />";
 
 		pm_footer(array());
 
@@ -218,7 +218,7 @@
 		  $Language->getText('pm_reporting','open_tasks_by_technician'),$sql1,
 		  $Language->getText('pm_reporting','all_tasks_by_technician'),$sql2,
 		  $Language->getText('pm_reporting','report_note'));
-		  
+
 	} else {
 		exit_missing_param();
 	}



More information about the evolvis-commits mailing list