From: <ex...@us...> - 2013-08-16 03:39:51
|
Revision: 6235 http://sourceforge.net/p/web-erp/reponame/6235 Author: exsonqu Date: 2013-08-16 03:39:48 +0000 (Fri, 16 Aug 2013) Log Message: ----------- 16/08/2013 Exson: Fixed the account code max length in SuppTransGLAnalysis.php and make it html5 compatible. Modified Paths: -------------- trunk/SuppTransGLAnalysis.php Modified: trunk/SuppTransGLAnalysis.php =================================================================== --- trunk/SuppTransGLAnalysis.php 2013-08-15 13:48:50 UTC (rev 6234) +++ trunk/SuppTransGLAnalysis.php 2013-08-16 03:39:48 UTC (rev 6235) @@ -187,7 +187,7 @@ echo '<tr> <td>' . _('Account Code') . ':</td> - <td><input type="text" name="GLCode" size="12" maxlength="11" value="' . $_POST['GLCode'] . '" /> + <td><input type="integer" pattern="[1-9][\d]{0,20}" title="'._('The input must be positive integer').'" placeholder="'._('Integer less than 20 digits').'" name="GLCode" size="21" maxlength="20" value="' . $_POST['GLCode'] . '" /> <input type="hidden" name="JobRef" value="" /></td> </tr>'; echo '<tr> @@ -217,7 +217,7 @@ } echo '<tr> <td>' . _('Amount') . ':</td> - <td><input type="text" class="number" name="Amount" size="12" maxlength="11" value="' . locale_number_format($_POST['Amount'],$_SESSION['SuppTrans']->CurrDecimalPlaces) . '" /></td> + <td><input type="text" class="number" required="required" pattern="(?!^[-]?0[.,]0*$).{1,11}" title="'._('The amount must be numeric and cannot be zero').'" name="Amount" size="12" placeholder="'._('No zero numeric').'" maxlength="11" value="' . locale_number_format($_POST['Amount'],$_SESSION['SuppTrans']->CurrDecimalPlaces) . '" /></td> </tr>'; if (!isset($_POST['Narrative'])) { @@ -237,4 +237,4 @@ echo '</div> </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> |