ChangeSet ID: 31047 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/04/17 18:19:48
Modified files: include : distribution.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com Use html_tr() function in distribution::outputEditor()
Patch: http://cvs.winehq.org/patch.py?id=31047
Old revision New revision Changes Path 1.22 1.23 +15 -7 appdb/include/distribution.php
Index: appdb/include/distribution.php diff -u -p appdb/include/distribution.php:1.22 appdb/include/distribution.php:1.23 --- appdb/include/distribution.php:1.22 17 Apr 2007 23:19:48 -0000 +++ appdb/include/distribution.php 17 Apr 2007 23:19:48 -0000 @@ -346,19 +346,27 @@ class distribution { echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
// Name - echo '<tr valign=top><td class="color1" width="20%"><b>Distribution Name</b></td>',"\n"; - echo '<td class="color0"><input type=text name="sDistribution" value="'.$this->sName.'" size="50"></td></tr>',"\n"; - // Url - echo '<tr valign=top><td class="color1"><b>Distribution Url</b></td>',"\n"; - echo '<td class="color0"><input type=text name="sUrl" value="'.$this->sUrl.'" size="50"></td></tr>',"\n"; + echo html_tr(array( + array("<b>Distribution Name</b>", 'class="color1"'), + array('<input type=text name="sDistribution" value="'.$this->sName. + '" size="50" />', 'class="color0"') + )); + + // URL + echo html_tr(array( + array("<b>Distribution URL</b>", 'class="color1"'), + array('<input type=text name="sUrl" value="'.$this->sUrl. + '" size="50" />', 'class="color0"') + )); + + + echo "</table>\n";
if($this->iDistributionId) { echo '<input type="hidden" name="iDistributionId" '. 'value="'.$this->iDistributionId.'">',"\n"; } - - echo "</table>\n"; }
/* retrieves values from $_REQUEST that were output by outputEditor() */