Subversion Repositories SmartDukaan

Rev

Rev 27696 | Rev 27823 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

        <div class="row">
                <div class="col-lg-12" >
                                        
                        <table class="table  table-advance flag" id ="notificationtable">
                                <tbody>
                                #if(!$notifications.isEmpty())
                                #foreach( $request in $notifications )
                                <tr class="notifications" data="$request.getCid()">                                         
                                        #if($request.getMessageType()=="announcement")
                                        <td style="width:32px;"><i class="fa fa-bullhorn "></i></td>
                                        #elseif($request.getMessageType()=="scheme")
                                        <td style="width:32px;"><i class="fa fa-tags"></i></td>
                                                #else
                                                <td style="width:32px;"><i class="fas fa-bell"></i></td>
                                                #end            
                                                <td>
                                                <div style="float:right;font-size:12px;">$request.getDate().format($dateTimeFormatter)</div>
                                                        <span><b>$request.getTitle()</b></span>
                                                        <br> 
                                                        <span style="font-size:13px;"> $request.getMessage()</span>
                                                        <div style="float:right">
                                                        #if($request.getDocumentId())
                                                        <a 
                                                href="javascript:void(0)"  style="color:#337ab7;"  
                                                onclick="downloadNotifyDocument($request.getDocumentId(),$request.getCid(), `$request.getDocumentName()`)">
                                                $request.getDocumentName()&nbsp;
                                            <i class="fa fa-download"></i>
                                                        </a>
                                                        #end
                                                        </div>
                                                </td>
                                        </tr>   
                                        #end
                        #else
                                <tr>
                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                        </tr>
                                #end  
                        </tbody>
                        </table>
                </div>                          
        </div>
        
                <style>
                .flag tr:nth-child(3n+1)
                {
                  background:#FFA500; 
                
                }
                .flag tr:nth-child(3n+2)
                {
                 background:#FFFAFA; 
                
                }
                .flag tr:nth-child(3n+3)
                {
                 background:#32CD32; 
                
                }
                </style>