Subversion Repositories SmartDukaan

Rev

Rev 19106 | Rev 19119 | 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
	}
19106 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";
41
		$('#loadModal').modal('hide');
19100 naman 42
	}
19118 naman 43
	else{
44
		e.value="no";
45
		location.reload();}
46
	}
19038 naman 47
	$(document).ready(function(){
19118 naman 48
		$('#loadModal').modal('show');
49
			$('.notifi a').click(function(){
50
 
51
				$('#loadModal').modal('show');
52
				});
53
// 			$('.notifi').click(function(){
54
// 				if($(this).hasClass('notifi')){
55
// 					$(this).removeClass('unseen');
56
// 				}
19100 naman 57
 
19118 naman 58
// 				 $.ajax({
59
//                      method: "POST",
60
 //                    url:  "<?php //echo $base_url;?>users/sendseen",
61
//                  },'json')
62
//                  .done(function(msg){
63
 
64
// 					});
65
// 			});
66
 
19106 naman 67
			$("#go_back").click(function(){
68
				window.history.back();
69
			});
70
 
19100 naman 71
			if($('.cscrollselector > .card').length>0) {
72
                    $('.cscrollselector').jscroll({
73
                        loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
74
                        autoTriggerUntil: 3,
75
                        padding: 20
76
                    });
77
                }
78
 
19038 naman 79
		});
80
</script>
81
 
19118 naman 82
<div class="modal fade" id="loadModal">
83
  <div class="modal-dialog">
84
    <div class="modal-content">      
85
      <div class="modal-body">
86
        <div class="text-center" id='content-add'>
87
            <img src="/img/ajax-loader.gif" alt="Loading" />
88
        </div>        
89
      </div>      
90
    </div><!-- /.modal-content -->
91
  </div><!-- /.modal-dialog -->
92
</div>
93
 
19100 naman 94
<input type="hidden" id="refreshed" value="no">
19118 naman 95
<div id= "go_back" style="width:100%;z-index:5;top:0px;position:fixed;margin-top: 0px;height:35px;">    
96
    	<span style="padding:5px" class="glyphicon glyphicon-arrow-left"></span> <b>Notifications</b>
19106 naman 97
</div>
19118 naman 98
<div class = "container" style="margin-top: 35px;">
19106 naman 99
 
19100 naman 100
	<div class="row scroll cscrollselector" >
101
		<?php echo $this->element('getnotification');?>	
102
	</div>
103
</div>
104
 
105
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>