Subversion Repositories SmartDukaan

Rev

Rev 20515 | 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>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<style>
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;
        margin-top: 10px;
        width: 90%;
}
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;
        text-align: center;
}
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;
        text-align: center;
}
.actionMessage{
        paddding:0px;
}
.actionError{
        padding:0px;
}
</style>
<title>List of Banners</title>
</head>
<body>
<div>
    <h1>Banner List</h1>

    <a href="/banner/new">Create New Banner</a>
    <div style="color:blue;">
    #sactionmessage()
    </div>
    <div style="color:red;">
    #sactionerror()
    </div>
    <div class="left" style="width: 100%; float: left;">
                #set ($banners = $action.getAllBanners())
                    <table id="bannerTable">
        <thead>
            <tr>
                                <th>Banner Id</th>
                <th>Banner Name</th>
                                <th>Image Map</th>
                <th>Status</th>
                                <th colspan="2">Action</th>
            </tr>
        </thead>
        <tbody>
    #foreach ( $banner in $banners )
                #set($uris = $action.getUriMapping($banner.getBannerName(), $banner.getBannerType()))
            <tr>
                                <td>$banner.get_id()</td>
                <td>$banner.getBannerName()</td>
                                <td>
                                        #if ($banner.getBannerList().size() > 0)
                                                <img style="vertical-align: middle; width: 18px;" src="images/active.ico">
                                        #else
                                                <img style="vertical-align: middle; width: 18px;" src="images/inactive.ico">
                                        #end
                                </td>
                                <td>
                                        #if ($banner.isActive())
                                                <img style="vertical-align: middle; width: 18px;" src="images/active.ico">
                                        #else
                                                <img style="vertical-align: middle; width: 18px;" src="images/inactive.ico">
                                        #end
                                </td>
                                <td><a href="banner/$banner.get_id()/edit">View/Edit</a></td>
                                <td><a href="banner!destroy?id=$banner.get_id()" class="delete">Delete</a></td>
            </tr>
    #end
        </tbody>
    </table>
        </div>
</div>
</body>
</html>