[Weberp-svn] SF.net SVN: weberp:[7161] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-07-27 21:01:27
|
Revision: 7161 http://weberp.svn.sourceforge.net/weberp/?rev=7161&view=rev Author: tim_schofield Date: 2011-07-27 21:01:21 +0000 (Wed, 27 Jul 2011) Log Message: ----------- XHTML corrections to code Modified Paths: -------------- trunk/AddCustomerNotes.php trunk/ConfirmDispatch_Invoice.php Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2011-07-27 21:01:02 UTC (rev 7160) +++ trunk/AddCustomerNotes.php 2011-07-27 21:01:21 UTC (rev 7161) @@ -182,23 +182,23 @@ } echo '<tr><td>'. _('WWW').'</td>'; if (isset($_POST['href'])) { - echo '<td><input type="text" name="href" value="'.$_POST['href'].'" size=35 maxlength=100></td></tr>'; + echo '<td><input type="text" name="href" value="'.$_POST['href'].'" size="35" maxlength="100" /></td></tr>'; } else { - echo '<td><input type="text" name="href" size=35 maxlength=100></td></tr>'; + echo '<td><input type="text" name="href" size="35" maxlength="100" /></td></tr>'; } echo '<tr><td>' . _('Date') .'</td>'; if (isset($_POST['date'])) { - echo '<td><input type="text" name="date" value="'.ConvertSQLDate($_POST['date']).'" size=10 maxlength=10></td></tr>'; + echo '<td><input type="text" name="date" value="'.ConvertSQLDate($_POST['date']).'" size="10" maxlength="10" /></td></tr>'; } else { - echo '<td><input type="text" name="date" size=10 maxlength=10></td></tr>'; + echo '<td><input type="text" name="date" size="10" maxlength="10" /></td></tr>'; } echo '<tr><td>'. _('Priority'). '</td>'; if (isset($_POST['priority'])) { - echo '<td><input type="text" name="priority" value="' .$_POST['priority']. '" size=1 maxlength=3></td></td>'; + echo '<td><input type="text" name="priority" value="' .$_POST['priority']. '" size="1" maxlength="3" /></td></td>'; } else { - echo '<td><input type="text" name="priority" size=1 maxlength=3></td></td>'; + echo '<td><input type="text" name="priority" size="1" maxlength="3"></td></td>'; } - echo '<tr><td colspan=2><div class="centre"><input type="submit" name="submit" value="'._('Enter Information').'"></div></td></tr>'; + echo '<tr><td colspan="2"><div class="centre"><input type="submit" name="submit" value="'._('Enter Information').'"></div></td></tr>'; echo '</table>'; echo '</form>'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2011-07-27 21:01:02 UTC (rev 7160) +++ trunk/ConfirmDispatch_Invoice.php 2011-07-27 21:01:21 UTC (rev 7161) @@ -323,15 +323,15 @@ if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . $LnItm->QtyDispatched . '</td>'; } else { - echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . - $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?LineNo='. $LnItm->LineNumber.'">' .$LnItm->QtyDispatched . '</a></td>'; + echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' .$LnItm->QtyDispatched . '" /> + <a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?LineNo='. $LnItm->LineNumber.'">' .$LnItm->QtyDispatched . '</a></td>'; } } else { if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . $LnItm->QtyDispatched . '</td>'; } else { - echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" name="' . $LnItm->LineNumber . - '_QtyDispatched" maxlength=12 size=12 value="' . $LnItm->QtyDispatched . '"></td>'; + echo '<td class="number"> + <input tabindex="'.$j.'" type="text" class="number" name="' . $LnItm->LineNumber . '_QtyDispatched" maxlength="12" size="12" value="' . $LnItm->QtyDispatched . '" /></td>'; } } $DisplayDiscountPercent = number_format($LnItm->DiscountPercent*100,2) . '%'; @@ -369,7 +369,7 @@ echo $Tax->TaxRate*100; } else { echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . - '_TaxRate" maxlength=4 size=4 value="' . $Tax->TaxRate*100 . '">'; + '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '">'; } $i++; if ($Tax->TaxOnTax ==1){ @@ -405,7 +405,7 @@ echo '</tr>'; if (mb_strlen($LnItm->Narrative)>1){ $narrative=str_replace('\r\n','<br />', $LnItm->Narrative); - echo $RowStarter . '<td colspan=12>' . stripslashes($narrative) . '</td></tr>'; + echo $RowStarter . '<td colspan="12">' . stripslashes($narrative) . '</td></tr>'; } }//end foreach ($line) @@ -1650,19 +1650,19 @@ $j++; echo '<tr> <td>' . _('Consignment Note Ref'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength=15 size=15 name=Consignment value="' . $_POST['Consignment'] . '"></td> + <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> </tr>'; $j++; echo '<tr> <td>'._('Action For Balance'). ':</td> - <td><select tabindex='.$j.' name=BOPolicy> + <td><select tabindex="'.$j.'" name="BOPolicy"> <option selected="True" value="BO">'._('Automatically put balance on back order') . '</option> <option value="CAN">'._('Cancel any quantities not delivered') . '</option>'.'</select></td> </tr>'; $j++; echo '<tr> <td>' ._('Invoice Text'). ':</td> - <td><textarea tabindex="'.$j.'" name="InvoiceText" COLS="31" ROWS="5">' . reverse_escape($_POST['InvoiceText']) . '</textarea></td> + <td><textarea tabindex="'.$j.'" name="InvoiceText" cols="31" rows="5">' . reverse_escape($_POST['InvoiceText']) . '</textarea></td> </tr>'; $j++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |