Subversion Repositories SmartDukaan

Rev

Rev 19119 | Rev 19127 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19038 naman 1
<style>
2
	.unseen {
19100 naman 3
/* 		background:#D9FACF; */
19103 naman 4
/* 		color:#54D199; */
19038 naman 5
	}
19106 naman 6
	.seen {
19100 naman 7
/* 		background:#f8f8f8; */
19106 naman 8
		color:#828181;
19038 naman 9
	}
19106 naman 10
	.expired{
11
		color:#BBB9B9;
12
	}
19038 naman 13
	.text{
14
		font-weight : bold;
15
	}
16
	.expiredtext{
17
		font-size : 10px;
19106 naman 18
/* 		color : red; */
19038 naman 19
	}
19100 naman 20
	.notirow{
21
		background-color: white;
22
		margin: 5px 0 0 0;
23
		padding: 5px 5px 0 5px;
24
		position:relative;
25
		min-height: 30px;
26
	}
19120 naman 27
/* 	#go_back{ */
28
/*     margin: 2px auto; */
29
/*     height: 30px; */
30
/*     color: #555; */
31
/*     background-color: #f5f5f5; */
32
/*     padding:4px; */
33
/* } */
19038 naman 34
</style>
35
 
36
<script>
19100 naman 37
onload=function(){
38
	var e=document.getElementById("refreshed");
19118 naman 39
	if(e.value=="no"){
40
		e.value="yes";
19119 naman 41
		$('.notilist').removeClass('hidden');
19118 naman 42
		$('#loadModal').modal('hide');
19100 naman 43
	}
19118 naman 44
	else{
45
		e.value="no";
46
		location.reload();}
47
	}
19038 naman 48
	$(document).ready(function(){
19118 naman 49
		$('#loadModal').modal('show');
50
			$('.notifi a').click(function(){
51
 
52
				$('#loadModal').modal('show');
53
				});
54
// 			$('.notifi').click(function(){
55
// 				if($(this).hasClass('notifi')){
56
// 					$(this).removeClass('unseen');
57
// 				}
19100 naman 58
 
19118 naman 59
// 				 $.ajax({
60
//                      method: "POST",
61
 //                    url:  "<?php //echo $base_url;?>users/sendseen",
62
//                  },'json')
63
//                  .done(function(msg){
64
 
65
// 					});
66
// 			});
67
 
19106 naman 68
			$("#go_back").click(function(){
69
				window.history.back();
70
			});
71
 
19100 naman 72
			if($('.cscrollselector > .card').length>0) {
73
                    $('.cscrollselector').jscroll({
74
                        loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
75
                        autoTriggerUntil: 3,
76
                        padding: 20
77
                    });
78
                }
79
 
19038 naman 80
		});
81
</script>
82
 
19118 naman 83
<div class="modal fade" id="loadModal">
84
  <div class="modal-dialog">
85
    <div class="modal-content">      
86
      <div class="modal-body">
87
        <div class="text-center" id='content-add'>
88
            <img src="/img/ajax-loader.gif" alt="Loading" />
89
        </div>        
90
      </div>      
91
    </div><!-- /.modal-content -->
92
  </div><!-- /.modal-dialog -->
93
</div>
94
 
19100 naman 95
<input type="hidden" id="refreshed" value="no">
19120 naman 96
<div id= "go_back" class= "cartpagedetails" style="width:100%;z-index:5;top:0px;position:fixed;margin-top: 0px;height:35px;padding:5px;">    
19119 naman 97
    	<span style="padding:3px" class="glyphicon glyphicon-arrow-left"></span> <b>Notifications</b>
19106 naman 98
</div>
19119 naman 99
<div class = "container notilist hidden" style="margin-top: 35px;">
19106 naman 100
 
19100 naman 101
	<div class="row scroll cscrollselector" >
102
		<?php echo $this->element('getnotification');?>	
103
	</div>
104
</div>
105
 
106
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>