Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
#set($baseURL = $action.getServletContextPath())
<head>
        <link rel="stylesheet" href="$baseURL/css/community-promotion.css" type="text/css" />
        <script type="text/javascript">
        json = $action.getFBPostedJSON()
    </script>
</head>
<body>
        <div><img src="$baseURL/images/banner-tablets.jpg" width="505" height="79" /></div>
        <div id="top">
                <a class="top-link" id="select-friends">Invite Friends</a>&nbsp;&nbsp;&nbsp;
                <a class="top-link" id="share">Share on my Wall</a>
    </div>
        $action.addDisplayItem("Samsung Galaxy Note N7000", "Rs. 30,999", 1002259)
        $action.addDisplayItem("Samsung Galaxy Tab 750 P7500", "Rs. 32,090 ", 1002096)
        $action.addDisplayItem("Samsung Galaxy Tab P7300", "Rs. 30,330 ", 1002267)
        $action.addDisplayItem("Spice Tab Mi-720", "Rs. 11,799", 1002101)
        $action.addDisplayItem("Apple iPad 2 Wi-Fi+3G 16GB", "Rs. 36,000", 1002233)
        $action.addDisplayItem("Apple iPad 2 Wi-Fi+3G 32GB", "Rs. 41,000", 1002234)
        $action.addDisplayItem("Apple iPad 2 Wi-Fi+3G 64GB", "Rs. 46000", 1002235)
        $action.addDisplayItem("BlackBerry Playbook 32GB", "Rs. 30,583", 1002246)
        $action.addDisplayItem("BlackBerry PlayBook 64GB", "Rs. 35,189", 1001700)
        $action.addDisplayItem("Motorola Xoom MZ601", "Rs. 32,499", 1001702)
        $action.addDisplayItem("HTC Flyer P510e", "Rs. 35,999", 1001701)
        
        #set($displayItems = $action.getDisplayItems())
        #set($classEven = 0)
        <div id="handsets">
                #foreach($displayItem in $displayItems)
                <div class="handset #if($classEven != 0) even #end">
                        <div class="icon"><img src="http://static1.saholic.com/images/media/$displayItem.getEntityId()/icon.jpg"></div>
                        <div class="desc">
                                <div class="name">$displayItem.getName()</div>
                                <div class="price">$displayItem.getPrice()</div>
                                <a href="http://www.saholic.com/entity/$displayItem.getEntityId()" class="buynow" target="_blank">Buy Now</a>
                        </div>
                        <div class="links">
                                <a class="link-tell-a-friend"></a>
                        </div>
                </div>
                        #if($classEven == 0)
                                #set($classEven = 1)
                        #else
                                #set($classEven = 0)
                        #end
                #end
    </div>
        <div id="fb-root"></div>
        <script type="text/javascript" src="$baseURL/js/jquery.js"></script>
        <script type="text/javascript" src="$baseURL/js/community-promotion.js"></script>
</body>
</html>