From: <dai...@us...> - 2014-03-03 04:55:32
|
Revision: 6598 http://sourceforge.net/p/web-erp/reponame/6598 Author: daintree Date: 2014-03-03 04:55:30 +0000 (Mon, 03 Mar 2014) Log Message: ----------- use the javascript check for no illegal chars rather than pattern Modified Paths: -------------- trunk/AccountSections.php trunk/WhereUsedInquiry.php Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2014-03-03 02:33:07 UTC (rev 6597) +++ trunk/AccountSections.php 2014-03-03 04:55:30 UTC (rev 6598) @@ -188,8 +188,9 @@ $k++; } - echo '<td>' . $myrow['sectionid'] . '</td><td>' . $myrow['sectionname'] . '</td>'; - echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'] . '?SelectedSectionID=' . urlencode($myrow['sectionid']), ENT_QUOTES, 'UTF-8') . '">' . _('Edit') . '</a></td>'; + echo '<td class="number">' . $myrow['sectionid'] . '</td> + <td>' . $myrow['sectionname'] . '</td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'] . '?SelectedSectionID=' . urlencode($myrow['sectionid']), ENT_QUOTES, 'UTF-8') . '">' . _('Edit') . '</a></td>'; if ( $myrow['sectionid'] == '1' or $myrow['sectionid'] == '2' ) { echo '<td><b>' . _('Restricted') . '</b></td>'; } else { Modified: trunk/WhereUsedInquiry.php =================================================================== --- trunk/WhereUsedInquiry.php 2014-03-03 02:33:07 UTC (rev 6597) +++ trunk/WhereUsedInquiry.php 2014-03-03 04:55:30 UTC (rev 6598) @@ -38,9 +38,9 @@ <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($StockID)) { - echo _('Enter an Item Code') . ': <input type="text" required="required" pattern="[^ +%]{1,}" title="'._('Illegal characters and blank is not allowed').'" name="StockID" autofocus="autofocus" size="21" maxlength="20" value="' . $StockID . '" placeholder="'._('No illegal characters allowed').'" />'; + echo _('Enter an Item Code') . ': <input type="text" required="required" data-type="no-illegal-chars" title="'._('Illegal characters and blank is not allowed').'" name="StockID" autofocus="autofocus" size="21" maxlength="20" value="' . $StockID . '" placeholder="'._('No illegal characters allowed').'" />'; } else { - echo _('Enter an Item Code') . ': <input type="text" required="required" pattern="[^ +%]{1,}" title="'._('Illegal characters and blank is not allowed').'" name="StockID" autofocus="autofocus" size="21" maxlength="20" placeholder="'._('No illegal characters allowed').'" />'; + echo _('Enter an Item Code') . ': <input type="text" required="required" data-type="no-illegal-chars" title="'._('Illegal characters and blank is not allowed').'" name="StockID" autofocus="autofocus" size="21" maxlength="20" placeholder="'._('No illegal characters allowed').'" />'; } echo '<input type="submit" name="ShowWhereUsed" value="' . _('Show Where Used') . '" /> |