printf('<td>%s</td>
<td title="%s">%s</td>
<td>%s</td>
<td class="number">%s</td>
<td class="number">%s</td>
<td class="number">%s</td>
<td class="number">%s</td>
<td><input class="number" ' . ($i==0 ? 'autofocus="autofocus"':'') . ' tabindex="%s" type="text" required="required" size="6" name="OrderQty%s" value="0" />
<input type="hidden" name="StockID%s" value="%s" />
</td>
</tr>',
$myrow['stockid'],
$myrow['longdescription'],
$myrow['description'],
$myrow['units'],
locale_number_format($QOH, $QOHRow['decimalplaces']),
locale_number_format($DemandQty, $QOHRow['decimalplaces']),
locale_number_format($OnOrder, $QOHRow['decimalplaces']),
locale_number_format($Available, $QOHRow['decimalplaces']),
strval($j+7),
$i,
$i,
$myrow['stockid']);