Subversion Repositories SmartDukaan

Rev

Rev 4106 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html>
<html>
<head>
        <title>Phone Price Comparison</title>
        <link rel="stylesheet" type="text/css" href="/static/chart.css" />
</head>
<body>
        <h2>Phone Price Comparison Chart</h2>
{% if len(data) > 0 %}
        <table>
        <thead>
                <tr>
                        <th width="264">&nbsp;</th>
                        <th width="131">Saholic</th>
                        <th width="131">AdexMart</th>
                        <th width="131">Flipkart</th>
                        <th width="131">HomeShop18</th>
                        <th width="131">Infibeam</th>
                        <th width="131">Let's Buy</th>
                        <th width="131">Sulekha</th>
                        <th width="131">Tradus</th>
                        <th>Max-Min<br />difference</th>
                </tr>
        </thead>
        </table>
<div id="datatable-container">
        <table id="datatable">
        <tbody>
        {% for phone in data %}
                <tr id="{{ phone['entity_id'] }}">
                        <td class="name">{{ phone['name'] }}</td>
                        <td class="price">{{ phone['saholic']['price'] }}</td>
                        <td class="price">
                        {% if 'adexmart' in phone %}
                                <a href="{{ phone['adexmart']['url'] }}" target="_blank">{{ phone['adexmart']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['adexmart']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                        <td class="price">
                        {% if 'flipkart' in phone %}
                                <a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['flipkart']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                        <td class="price">
                        {% if 'homeshop18' in phone %}
                                <a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['homeshop18']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                        <td class="price">
                        {% if 'infibeam' in phone %}
                                <a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['infibeam']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                        <td class="price">
                        {% if 'letsbuy' in phone %}
                                <a href="{{ phone['letsbuy']['url'] }}" target="_blank">{{ phone['letsbuy']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['letsbuy']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                        <td class="price">
                        {% if 'sulekha' in phone %}
                                <a href="{{ phone['sulekha']['url'] }}" target="_blank">{{ phone['sulekha']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['sulekha']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                        <td class="price">
                        {% if 'tradus' in phone %}
                                <a href="{{ phone['tradus']['url'] }}" target="_blank">{{ phone['tradus']['price'] }}</a>
                        {% else %}
                                <a href="{{ phone['tradus']['url'] }}" target="_blank">Not Found</a>
                        {% end %}
                        </td>
                </tr>
        {% end %}
        </tbody>
        </table>
</div>
{% end %}
        <script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="/static/mspchart.js"></script>
</body>
</html>