Subversion Repositories SmartDukaan

Rev

Rev 3867 | Blame | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>
                        Warehouse Management::Scan In
                </title>
                <script language="JavaScript">

            function disableEnterKey(e)
            {
                 var key;     
                 if(window.event)
                      key = window.event.keyCode; //IE
                 else
                      key = e.which; //firefox     
            
                 return (key != 13);
            }
        </script>
        </head>
        <body>
                <h2>Scan In Item</h2>
                <span style="color:red">
                        $action.getErrorMessage()
                </span>
                
                <form name="newPurchase" action="$action.getServletContextPath()/purchase/$action.getId()" method="post">
                        <input type="hidden" name="_method" value="put"/>
                        <table>
                                <tr>
                                        <td>Item No:</td>
                                        <td>
                                                <input type="text" name="itemNo" onkeypress="return disableEnterKey(event)"/>
                                        </td>
                                </tr>
                                <tr>
                                        <td>IMEI No:</td>
                                        <td>
                                                <input type="text" name="imeiNo" onkeypress="return disableEnterKey(event)"/>
                                        </td>
                                </tr>
                                <tr>
                                        <td align="left">
                                                <a href="$action.getServletContextPath()/purchase/$action.getId()?_method=delete">Close Purchase</a>                                            
                                        </td>
                                        <td align="right">
                                                <input name="submit" type="submit" value="Scan In"/>
                                        </td>
                                </tr>
                        </table>
                </form>
    </body>
</html>