Subversion Repositories SmartDukaan

Rev

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

<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
        <title>Snippets</title>
</head>
#set($snippetMap = $action.getSnippetMap())
<body>
        <h2>Snippet Info</h2>
        <h3>Latest Mobile Phones</h3>
        <div id="latest">
                <form name="latest-phones" action="/snippets/?type=latest-phones" method="post">
                        #if(!$snippetMap.get('latest-phones'))
                                #foreach( $val in [1..6] )
                                        <input size="10" class="entity" name="entities" type = "text"/>
                                #end
                        #else
                                #foreach($id in $snippetMap.get('latest-phones'))
                                        <input size="10" class="entity" value="$id" name="entities" type = "text"/>
                                #end
                        #end
                        <input type="submit">
                </form>
        </div>
        <h3>Best Sellers</h3>
        <div id="best">
                <form name="best-sellers" action="/snippets/?type=best-sellers" method="post">
                        #if(!$snippetMap.get('best-sellers'))
                                #foreach( $val in [1..6] )
                                        <input size="10" class="entity" name="entities" type = "text"/>
                                #end
                        #else
                                #foreach($id in $snippetMap.get('best-sellers'))
                                        <input size="10" class="entity" value="$id" name="entities" type = "text"/>
                                #end
                        #end
                        <input type="submit">
                </form>
        </div>
        <h3>Best Deals</h3>
        <div id="deals">
                <form name="best-deals" action="/snippets/?type=best-deals" method="post">
                        #if(!$snippetMap.get('best-deals'))
                                #foreach( $val in [1..6] )
                                        <input size="10" class="entity" name="entities" type = "text"/>
                                #end
                        #else
                                #foreach($id in $snippetMap.get('best-deals'))
                                        <input size="10" class="entity" value="$id" name="entities" type = "text"/>
                                #end
                        #end
                        <input type="submit">
                </form>
        </div>
</body>
</html>