Subversion Repositories SmartDukaan

Rev

Rev 3313 | Go to most recent revision | 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/facebox.css" />
        <style type="text/css">
body    {       font-size: 12px;        }
.even   {       background-color: #EDEFF4;      }
td      {       padding: 4px; font-size: 12px;  }

.red    {       background-color: #FF9E9E;      }

.best {
        background-image: url(/static/images/best.png);
        background-repeat: no-repeat;
}
        </style>
</head>
<body>
        <h2>Phone Price Comparison Chart</h2>
        <br>
        {% if len(data) > 0 %}
        <table id="datatable">
        <thead>
                <tr>
                        <th></th>
                        <th>Saholic</th>
                        <th>Flipkart</th>
                </tr>
        </thead>
        <tbody>
                {% for phone in data %}
                <tr>
                        <td class="name">{{ phone['product_name'] }}</td>
                        <td width="150" align="center">{{ phone['saholic_price'] }}</td>
                        <td width="150" align="center" class="{{ phone['td_class'] }}" data="{{ phone['data'] }}">
                                <a href="{{ phone['url'] }}" target="_blank">{{ phone['flipkart_price'] }}</a>
                        </td>
                </tr>
                {% end %}
        </tbody>
        </table>
        {% end %}
        <script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="/static/facebox.js"></script>
        <script type="text/javascript" src="/static/chart.js"></script>
</body>
</html>