Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<!DOCTYPE html>
    
<html lang="en-US">
<head>
<title>Create Expert Review</title>
<script type="text/javascript" src="../jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="../js/events.js"></script>
<script type="text/javascript" src="../js/tinymce/tinymce.min.js"></script>
<link type="text/css" href="../jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
<style type="text/css">
    
* { font-family: Verdana; font-size: 96%; }
fieldset.label { width: 10em; float: left; }
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
p { clear: both; }
.submit { margin-left: 12em; }
em { font-weight: bold; padding-right: 1em; vertical-align: top; }

table {
    border-width: 1px 1px 1px 1px;
    border-spacing: 0px;
    border-color: gray gray gray gray;
    border-collapse: separate;
    border-style: solid;
    background-color: white;
}
th {
    border-width: 1px 1px 1px 1px;
    border-style: solid;
    padding: 1px 1px 1px 1px;
    border-color: gray gray gray gray;
    background-color: white;
    -moz-border-radius: 0px 0px 0px 0px;
}
td {
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    padding: 1px 1px 1px 1px;
    border-color: gray gray gray gray;
    background-color: white;
    -moz-border-radius: 0px 0px 0px 0px;
}
div.dialog {
    padding:12px;
    font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";
}
</style>

</head>
<body>
<div>
        <span align="right"> Welcome $action.getUsername()   <a href="$request.contextPath/logout">logout</a></span>
</div>
<div>
        <h2>Add New Source</h2>
        <form method="POST" action="/content/expert-review-source">
                <fieldset style="width:800px">
                        <legend>Create Source</legend>
                        <label for="entityId">Source label</label>:<input type="text" name="id" id="label" />&nbsp;&nbsp;
                        <label for="url">Source Url</label>:<input type="text" name="url" id="url" />&nbsp;&nbsp;
                        <input type="submit" value="Create" name="submit"></input>
                </fieldset>
        </form>
        <h2>All Sources</h2>
        <table>
                <tr>
                        <th>Source Label</td>
                        <th>Source Url</td>
                        <th>Actions</th>
                </tr>
                #foreach($source in $sources)
                        <tr>
                        <td>$source.getSource()</a></td>
                        <td>$source.getSourceUrl()</td>
                        <td><a href="expert-review-source/$source.getSource()?_method=delete" onclick="return confirm('Are you Sure?');">Delete</a></td>
                #end
                </tr>
                </tr>
        </table>
</div>
</body>
</html>