Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<html>
<head>
        <title>Search Phone Prices</title>
</head>
<body>
        <h2>Search Phone Prices</h2>
        <div>
                <form action="/search" method="get">
                        <input type="text" name="q" size="30">
                        <input type="submit" value="Search">
                </form>
        </div>
        <p><i>{{ phones.__len__() }} phones were found matching "{{ query }}".</i></p>
        <br>
        {% if phones.__len__() > 0 %}
        <table>
                <tr>
                        <th></th>
                        <th>Flipkart</th>
                </tr>
                
                {% for phone in phones %}
                <tr>
                        <td>{{ escape(phone['name']) }}</td>
                        <td width="150" align="center">{{ escape(phone['price']) }}</td>
                <tr>
                {% end %}
        </table>
        {% end %}
</body>
</html>