| 5074 |
amit.gupta |
1 |
<!DOCTYPE html PUBLIC
|
|
|
2 |
"-//W3C//DTD XHTML 1.1 Transitional//EN"
|
|
|
3 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
4 |
|
|
|
5 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
6 |
<head>
|
|
|
7 |
<title>Synonyms</title>
|
|
|
8 |
<link rel="stylesheet" href="css/colorbox.css" type="text/css" />
|
|
|
9 |
<link rel="stylesheet" href="css/datatable.css" type="text/css" />
|
|
|
10 |
<link type="text/css" href="jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
|
|
|
11 |
<style type="text/css">
|
|
|
12 |
|
|
|
13 |
* { font-family: Verdana; font-size: 96%; }
|
|
|
14 |
fieldset.label { width: 10em; float: left; }
|
|
|
15 |
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
|
|
|
16 |
p { clear: both; }
|
|
|
17 |
.submit { margin-left: 12em; }
|
|
|
18 |
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
|
|
|
19 |
|
|
|
20 |
table {
|
|
|
21 |
background-color: white;
|
|
|
22 |
border-collapse: separate;
|
|
|
23 |
border-color: gray;
|
|
|
24 |
border-spacing: 2px;
|
|
|
25 |
border-style: outset;
|
|
|
26 |
border-width: 1px;
|
|
|
27 |
}
|
|
|
28 |
th {
|
|
|
29 |
background-color: white;
|
|
|
30 |
border-color: gray;
|
|
|
31 |
border-radius: 0 0 0 0;
|
|
|
32 |
border-style: inset;
|
|
|
33 |
border-width: 1px;
|
|
|
34 |
padding: 1px;
|
|
|
35 |
}
|
|
|
36 |
td {
|
|
|
37 |
background-color: white;
|
|
|
38 |
border-color: gray;
|
|
|
39 |
border-radius: 0 0 0 0;
|
|
|
40 |
border-style: inset;
|
|
|
41 |
border-width: 1px;
|
|
|
42 |
padding: 1px;
|
|
|
43 |
}
|
|
|
44 |
</style>
|
|
|
45 |
<script type="text/javascript" src="jquery/jquery-1.4.2.js"></script>
|
|
|
46 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.core.js"></script>
|
|
|
47 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.widget.js"></script>
|
|
|
48 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.position.js"></script>
|
|
|
49 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.autocomplete.js"></script>
|
|
|
50 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.dialog.js"></script>
|
|
|
51 |
<script type="text/javascript" src="jquery/validation/jquery.validate.js"></script>
|
|
|
52 |
|
|
|
53 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.mouse.js"></script>
|
|
|
54 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.draggable.js"></script>
|
|
|
55 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.ui.resizable.js"></script>
|
|
|
56 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.effects.core.js"></script>
|
|
|
57 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.effects.blind.js"></script>
|
|
|
58 |
<script type="text/javascript" src="jquery/jqueryui/ui/jquery.effects.drop.js"></script>
|
|
|
59 |
<script type="text/javascript" src="jquery/jquery.chained.js"></script>
|
|
|
60 |
<script type="text/javascript" src="jquery/jquery.tablesorter.js"></script>
|
|
|
61 |
<script type="text/javascript" src="jquery/thirdparty/jquery.colorbox-min.js"></script>
|
|
|
62 |
<script type="text/javascript" src="js/common.js"></script>
|
|
|
63 |
<script type="text/javascript" src="js/events.js"></script>
|
|
|
64 |
<script type="text/javascript" src="js/synonym-index.js"></script>
|
|
|
65 |
<body>
|
|
|
66 |
<div>
|
|
|
67 |
<span align="right"> Welcome $action.getUsername() <a href="$request.contextPath/logout">logout</a></span>
|
|
|
68 |
</div>
|
|
|
69 |
<div>
|
|
|
70 |
<h1>Synonyms</h1>
|
|
|
71 |
</div>
|
|
|
72 |
<label for="type">Select Type</label>
|
|
|
73 |
<select id="type">
|
|
|
74 |
<option value="brand">Brand</option>
|
|
|
75 |
<option value="subcategory">Sub Category</option>
|
|
|
76 |
</select>
|
|
|
77 |
<div id="brand">
|
|
|
78 |
#drawAllSynonyms($synonymmap.get("brand") $brands)
|
|
|
79 |
</div>
|
|
|
80 |
<div id="category" style="display:none">
|
|
|
81 |
#drawAllSynonyms($synonymmap.get("subcategory") $leafcategories.values())
|
|
|
82 |
</div>
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
</div>
|
|
|
86 |
|
|
|
87 |
</body>
|
|
|
88 |
</html>
|
|
|
89 |
</body>
|
|
|
90 |
|
|
|
91 |
#macro (drawAllSynonyms $synonymMap $typeList)
|
|
|
92 |
<table style="width:100%" border cellspacing=1>
|
|
|
93 |
<thead>
|
|
|
94 |
<tr>
|
|
|
95 |
<th style="width:17%">Name</th>
|
|
|
96 |
<th style="width:65%">Synonyms</th>
|
|
|
97 |
<th style="width:8%">Action</th>
|
|
|
98 |
</tr>
|
|
|
99 |
</thead>
|
|
|
100 |
<tbody>
|
|
|
101 |
#set( $count = 0)
|
|
|
102 |
#foreach ( $type in $typeList )
|
|
|
103 |
#set($count = $count + 1)
|
|
|
104 |
<tr>
|
|
|
105 |
<td class="key">$type</td>
|
|
|
106 |
<td class="synonyms">#if($synonymMap.get($type))$synonymMap.get($type)#end</td>
|
|
|
107 |
<td><a class="edit-link" href="#">edit</a>
|
|
|
108 |
<a class="edit-cancel" style="display:none" href="#">cancel</a></td>
|
|
|
109 |
</tr>
|
|
|
110 |
#end
|
|
|
111 |
</tbody>
|
|
|
112 |
</table>
|
|
|
113 |
#end
|