Subversion Repositories SmartDukaan

Rev

Rev 19038 | Rev 19103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19038 Rev 19100
Line 1... Line 1...
1
<style>
1
<style>
2
	.unseen {
2
	.unseen {
3
		background:#D9FACF;
3
/* 		background:#D9FACF; */
-
 
4
		color:#54D199;
4
	}
5
	}
5
	.expired {
6
	.expired {
6
		background:#f8f8f8;
7
/* 		background:#f8f8f8; */
-
 
8
		color:#707070;
7
	}
9
	}
8
	.text{
10
	.text{
9
		font-weight : bold;
11
		font-weight : bold;
10
	}
12
	}
11
	.expiredtext{
13
	.expiredtext{
12
		font-size : 10px;
14
		font-size : 10px;
13
		color : red;
15
		color : red;
14
	}
16
	}
-
 
17
	.notirow{
-
 
18
		background-color: white;
-
 
19
		margin: 5px 0 0 0;
-
 
20
		padding: 5px 5px 0 5px;
-
 
21
		position:relative;
-
 
22
		min-height: 30px;
-
 
23
	}
15
</style>
24
</style>
16
 
25
 
17
<script>
26
<script>
-
 
27
onload=function(){
-
 
28
	var e=document.getElementById("refreshed");
-
 
29
	if(e.value=="no")e.value="yes";
-
 
30
	else{e.value="no";location.reload();}
-
 
31
	}
18
	$(document).ready(function(){
32
	$(document).ready(function(){
19
			$('.notifi').click(function(){
33
			$('.notifi').click(function(){
20
				if($(this).hasClass('notifi')){
34
				if($(this).hasClass('notifi')){
21
					$(this).removeClass('unseen');
35
					$(this).removeClass('unseen');
22
				}
36
				}
23
			});
37
			});
-
 
38
 
-
 
39
			if($('.cscrollselector > .card').length>0) {
-
 
40
// 				debugger;
-
 
41
//                 if(typeof noscrolling == 'undefined') {
-
 
42
                    $('.cscrollselector').jscroll({
-
 
43
                        loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
-
 
44
                        autoTriggerUntil: 3,
-
 
45
                        padding: 20
-
 
46
                    });
-
 
47
                }
-
 
48
//             }
-
 
49
			
24
		});
50
		});
25
</script>
51
</script>
26
<div class = "container">
-
 
27
 
52
 
28
<?php foreach ($noti as $key => $value):?>
53
<input type="hidden" id="refreshed" value="no">
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"];?>" >
54
 
31
			<div class="col-xs-12" >
55
<div class = "container" style="margin-top: 5px;">
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">
56
	<div class="row scroll cscrollselector" >
39
					<?php echo $value['longText'];?>
57
		<?php echo $this->element('getnotification');?>	
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>
58
	</div>
48
		</div>
59
</div>
49
	</a>
-
 
50
<?php endforeach;?>
-
 
51
 
60
 
52
</div>
-
 
53
61
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>
-
 
62
54
63