Subversion Repositories SmartDukaan

Rev

Rev 19100 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
19038 naman 1
<style>
2
	.unseen {
3
		background:#D9FACF;
4
	}
5
	.expired {
6
		background:#f8f8f8;
7
	}
8
	.text{
9
		font-weight : bold;
10
	}
11
	.expiredtext{
12
		font-size : 10px;
13
		color : red;
14
	}
15
</style>
16
 
17
<script>
18
	$(document).ready(function(){
19
			$('.notifi').click(function(){
20
				if($(this).hasClass('notifi')){
21
					$(this).removeClass('unseen');
22
				}
23
			});
24
		});
25
</script>
26
<div class = "container">
27
 
28
<?php foreach ($noti as $key => $value):?>
29
	<a href = "<?php if(isset($value["url"])):?><?php echo $base_url."".$value["url"];?><?php endif;?>">
30
		<div style="min-height:40px;" class="notifi row card <?php if($value["seen"] == false && $value['expired'] == false):?>unseen<?php elseif($value["seen"] == false && $value['expired'] == true):?>expired<?php endif;?>" data-urltype= "<?php echo $value["type"];?>" data-url = "<?php echo $value["url"];?>" >
31
			<div class="col-xs-12" >
32
			<?php if(isset($value['text']) && !empty($value['text'])):?>
33
				<div class="text">
34
					<?php echo $value['text'];?>
35
				</div>
36
			<?php endif;?>
37
			<?php if(isset($value['longText']) && !empty($value['longText'])):?>
38
				<div class="longtext">
39
					<?php echo $value['longText'];?>
40
				</div>	
41
			<?php endif;?>
42
			<?php if(isset($value['expired']) && $value['expired'] == true):?>
43
				<div class="expiredtext">
44
					Oops! notification expired...
45
				</div>	
46
			<?php endif;?>
47
			</div>
48
		</div>
49
	</a>
50
<?php endforeach;?>
51
 
52
</div>