Subversion Repositories SmartDukaan

Rev

Rev 23013 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23010 amit.gupta 1
<style>
2
td.cell div {
3
	width: 100%;
4
	height: 100%;
5
	overflow: scroll;
6
}
7
 
8
td.cell {
9
	height: 100px;
10
}
11
</style>
12
 
13
<script type="text/javascript">
14
$(function(){
15
 
16
});
17
</script>
18
<div class="container">
19
	<div class="row">
20
		<div class="col-lg-3">
21
		<?php echo $this->Element('adminactions');?>
22
		</div>
23
		<div class="col-lg-9">
24
			<h2>Banners</h2>
25
			<a href="banners/add">Add new</a>
26
			<table class="table table-striped">
27
				<tr>
28
					<th>Rank</th>
29
					<th>Link</th>
23014 amit.gupta 30
					<th>Img Url</th>
23010 amit.gupta 31
					<th>Action</th>
32
				</tr>
33
				<?php foreach ($result as $row): ?>
34
				<tr>
35
					<td><?php echo $row['rank'] ?></td>
36
					<td><?php echo $row['link'] ?></td>
37
					<td><a target="_blank" href="<?php echo $row['imgUrl'] ?>"><?php echo $row['imgUrl'] ?>
38
 
39
					</td>
40
					<td><a href="<?php echo 'banners/remove/'.$row['_id']['$oid']?>"
23012 amit.gupta 41
						onclick="confirm('Are your sure?')">Remove</a>
23010 amit.gupta 42
					</td>
43
 
44
 
45
				<tr>
46
				<?php endforeach;?>
47
		</div>
48
	</div>
49
</div>