appdb/include html.php

WineHQ wineowner at wine.codeweavers.com
Wed Jan 3 18:38:06 CST 2007


ChangeSet ID:	30848
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/01/03 18:38:06

Modified files:
	include        : html.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Include the $extra argument in the output HTML.

Patch: http://cvs.winehq.org/patch.py?id=30848

Old revision  New revision  Changes     Path
 1.10          1.11          +8 -1       appdb/include/html.php

Index: appdb/include/html.php
diff -u -p appdb/include/html.php:1.10 appdb/include/html.php:1.11
--- appdb/include/html.php:1.10	4 Jan 2007  0:38: 6 -0000
+++ appdb/include/html.php	4 Jan 2007  0:38: 6 -0000
@@ -23,9 +23,16 @@ function do_html_tr($t, $arr, $class, $e
 	if(strlen($class))
 		$class = " class=\"$class\"";
 
-	$str = do_indent("<tr$class>", 1);
+	/* $extra contains parameters to <tr>, such as valign="top" */
+	if(strlen($extra))
+		$extra = " $extra";
+
+	$str = do_indent("<tr$class$extra>", 1);
 	for($i = 0; $i < sizeof($arr); $i++)
 	{
+		/* If it is not an array, it contains the entire table cell.  If it
+		   is an array, [0] holds the main content and [1] the options like
+		   valign="top" */
 		if(is_array($arr[$i]))
 		{
 			$val = $arr[$i][0];



More information about the wine-cvs mailing list