<%@ page language="java" %>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Bookstore Administration Console</title>
</head>

<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" bgcolor="#990000" text="#FFFFFF">

<center>
<h3>Bookstore Administration Console</h3>
<i>With great power comes great responsibility...</i>
</center>
<hr/>

<h2>Add a new book</h2>
<form method="POST" name="addBook" action="<%=request.getContextPath()%>/services/catalog">
    <table>
        <tr>
            <td>Title: </td>
            <td><input type="text" name="title"/></td>
        </tr>
        <tr>
            <td>Author: </td>
            <td><input type="text" name="author"/></td>
        </tr>
        <tr>
            <td>Price: </td>
            <td><input type="text" name="price"/></td>
        </tr>
    </table>
    <input type="submit" name="submit" value="Add book" />
</form>

<h2>Get latest statistics from Data Warehouse</h2>
<form method="GET" name="getStats" action="<%=request.getContextPath()%>/services/stats">
    <input type="submit" name="submit" value="Get stats" />
</form>

<hr/>
<center><i>
For more information about the Bookstore example go <a target="_blank" href="http://www.mulesoft.org/documentation/display/MULE3EXAMPLES/Bookstore+Example">here</a>.
</i></center>
</body>
</html>
