[Weberp-svn] SF.net SVN: weberp:[7539] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-08-06 21:45:09
|
Revision: 7539 http://weberp.svn.sourceforge.net/weberp/?rev=7539&view=rev Author: tim_schofield Date: 2011-08-06 21:45:03 +0000 (Sat, 06 Aug 2011) Log Message: ----------- XHTML corrections to code Modified Paths: -------------- trunk/StockStatus.php trunk/Stocks.php Modified: trunk/StockStatus.php =================================================================== --- trunk/StockStatus.php 2011-08-06 21:44:51 UTC (rev 7538) +++ trunk/StockStatus.php 2011-08-06 21:45:03 UTC (rev 7539) @@ -39,8 +39,8 @@ $Serialised = $myrow[4]; $Controlled = $myrow[5]; -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . - '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['0'] . ' : ' . _('in units of') . ' : ' . $myrow[1] . '</b></p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . '" alt="" /> + <b>' . ' ' . $StockID . ' - ' . $myrow['0'] . ' : ' . _('in units of') . ' : ' . $myrow[1] . '</b></p>'; $Its_A_KitSet_Assembly_Or_Dummy =False; if ($myrow[2]=='K'){ Modified: trunk/Stocks.php =================================================================== --- trunk/Stocks.php 2011-08-06 21:44:51 UTC (rev 7538) +++ trunk/Stocks.php 2011-08-06 21:45:03 UTC (rev 7539) @@ -33,8 +33,7 @@ echo '<a href="' . $rootpath . '/SelectProduct.php">' . _('Back to Items') . '</a><br />' . "\n"; -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' - . _('Stock') . '" alt="" />' . ' ' . $title . '</p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Stock') . '" alt="" />' . ' ' . $title . '</p>'; if (isset($_FILES['ItemPicture']) AND $_FILES['ItemPicture']['name'] !='') { @@ -584,8 +583,8 @@ $StockID=''; } if ($New==1) { - echo '<tr><td>'. _('Item Code'). ':</td><td><input ' . (in_array('StockID',$Errors) ? 'class="inputerror"' : '' ) .' type="text" - value="'.$StockID.'" name="StockID" size="21" maxlength="20" /></td></tr>'. "\n"; + echo '<tr><td>'. _('Item Code'). ':</td> + <td><input ' . (in_array('StockID',$Errors) ? 'class="inputerror"' : '' ) .' type="text" value="'.$StockID.'" name="StockID" size="21" maxlength="20" /></td></tr>'. "\n"; } else { echo '<tr><td>'. _('Item Code'). ':</td><td>'.$StockID.'</td></tr>'. "\n"; echo '<input type="hidden" name ="StockID" value="'.$StockID.'" />'; @@ -654,7 +653,8 @@ } else { $Description =''; } -echo '<tr><td>' . _('Part Description') . ' (' . _('short') . '):</td><td><input ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="Description" size="52" maxlength="50" value="' . $Description . '" /></td></tr>'."\n"; +echo '<tr><td>' . _('Part Description') . ' (' . _('short') . '):</td> + <td><input ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="Description" size="52" maxlength="50" value="' . $Description . '" /></td></tr>'."\n"; if (isset($_POST['LongDescription'])) { $LongDescription = AddCarriageReturns($_POST['LongDescription']); @@ -711,12 +711,7 @@ echo '<tr><td>'. _('Image File (.jpg)') . ':</td><td><input type="file" id="ItemPicture" name="ItemPicture" /></td>'; if (function_exists('imagecreatefromjpg')){ - $StockImgLink = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC'. - '&StockID='.urlencode($StockID). - '&text='. - '&width=64'. - '&height=64'. - '" />'; + $StockImgLink = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID='.urlencode($StockID).'&text=&width=64&height=64" />'; } else { if( isset($StockID) and file_exists($_SESSION['part_pics_dir'] . '/' .$StockID.'.jpg') ) { $StockImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/' .$StockID.'.jpg" />'; @@ -1028,11 +1023,11 @@ echo '</select>'; break; case 2; //checkbox - echo '<input type="checkbox" name="PropValue' . $PropertyCounter . '"'; if ($PropertyValue==1){ - echo ' checked="True"'; + echo '<input type="checkbox" name="PropValue' . $PropertyCounter . '" checked="True" />'; + } else { + echo '<input type="checkbox" name="PropValue' . $PropertyCounter . '" />'; } - echo ' />'; break; } //end switch echo '<input type="hidden" name="PropType' . $PropertyCounter .'" value="' . $PropertyRow['controltype'] . '" />'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |