Subversion Repositories SmartDukaan

Rev

Rev 208 | Rev 242 | Go to most recent revision | 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>List of Entities</title>
<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%; }
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: 2px;
    border-style: outset outset outset outset;
    border-color: gray gray gray gray;
    border-collapse: separate;
    background-color: white;
}
th {
    border-width: 1px 1px 1px 1px;
    padding: 1px 1px 1px 1px;
    border-style: inset inset inset inset;
    border-color: gray gray gray gray;
    background-color: white;
    -moz-border-radius: 0px 0px 0px 0px;
}
td {
    border-width: 1px 1px 1px 1px;
    padding: 1px 1px 1px 1px;
    border-style: inset inset inset inset;
    border-color: gray gray gray gray;
    background-color: white;
    -moz-border-radius: 0px 0px 0px 0px;
}
</style>
</head>
<body>
<div>
    <h1>Entities</h1>
    <a href="/content/entity/new">Create New</a>
    <p></p>
    <table>
        <thead>
            <tr style="border: 1px">
                <th>#</th>
                <th>Entity ID</th>
                <th>Category</th>
                <th>Brand</th>
                <th>Model Number</th>
                <th>Model Name</th>
            </tr>
        </thead>
        <tbody>
    #set ( $entities = $action.getEntities() )
    #foreach ( $entity in $entities )
            <tr style="border: 1px">
                <td>$velocityCount</td>
                #set ( $entityid = $entity.getID() )
                <td><a href="/content/entity/$entityid/edit">$entityid</a></td>
                <td>$entity.getCategoryID()</td>
                <td>$entity.getBrand()</td>
                <td>$entity.getModelNumber()</td>
                <td>$entity.getModelName()</td>
            </tr>
    #end
        </tbody>
    </table>
</div>
</body>
</html>