Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7286 amit.gupta 1
<!DOCTYPE html>
2
 
3
<html lang="en-US">
4
<head>
5
<title>Create Expert Review</title>
6
<script type="text/javascript" src="../jquery/jquery-1.4.2.js"></script>
7
<script type="text/javascript" src="../js/common.js"></script>
8
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.core.js"></script>
9
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.widget.js"></script>
10
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.dialog.js"></script>
11
<script type="text/javascript" src="../js/events.js"></script>
12
<script type="text/javascript" src="../js/tinymce/tinymce.min.js"></script>
13
<link type="text/css" href="../jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
14
<style type="text/css">
15
 
16
* { font-family: Verdana; font-size: 96%; }
17
fieldset.label { width: 10em; float: left; }
18
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
19
p { clear: both; }
20
.submit { margin-left: 12em; }
21
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
22
 
23
table {
24
    border-width: 1px 1px 1px 1px;
25
    border-spacing: 0px;
26
    border-color: gray gray gray gray;
27
    border-collapse: separate;
28
    border-style: solid;
29
    background-color: white;
30
}
31
th {
32
    border-width: 1px 1px 1px 1px;
33
    border-style: solid;
34
    padding: 1px 1px 1px 1px;
35
    border-color: gray gray gray gray;
36
    background-color: white;
37
    -moz-border-radius: 0px 0px 0px 0px;
38
}
39
td {
40
    border-style: solid;
41
    border-width: 1px 1px 1px 1px;
42
    padding: 1px 1px 1px 1px;
43
    border-color: gray gray gray gray;
44
    background-color: white;
45
    -moz-border-radius: 0px 0px 0px 0px;
46
}
47
div.dialog {
48
    padding:12px;
49
    font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";
50
}
51
</style>
52
 
53
</head>
54
<body>
55
<div>
56
	<span align="right"> Welcome $action.getUsername()   <a href="$request.contextPath/logout">logout</a></span>
57
</div>
58
<div>
59
	<h2>Add New Source</h2>
60
	<form method="POST" action="/content/expert-review-source">
61
		<fieldset style="width:800px">
62
			<legend>Create Source</legend>
63
			<label for="entityId">Source label</label>:<input type="text" name="id" id="label" />&nbsp;&nbsp;
64
			<label for="url">Source Url</label>:<input type="text" name="url" id="url" />&nbsp;&nbsp;
65
			<input type="submit" value="Create" name="submit"></input>
66
		</fieldset>
67
	</form>
68
	<h2>All Sources</h2>
69
	<table>
70
		<tr>
71
			<th>Source Label</td>
72
			<th>Source Url</td>
73
			<th>Actions</th>
74
		</tr>
75
		#foreach($source in $sources)
76
			<tr>
77
			<td>$source.getSource()</a></td>
78
			<td>$source.getSourceUrl()</td>
79
			<td><a href="expert-review-source/$source.getSource()?_method=delete" onclick="return confirm('Are you Sure?');">Delete</a></td>
80
		#end
81
		</tr>
82
		</tr>
83
	</table>
84
</div>
85
</body>
86
</html>