Subversion Repositories SmartDukaan

Rev

Rev 27823 | 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">
                                <thead></thead>
                                <tbody>
                                #if(!$notifications.isEmpty())
                                        #foreach( $notificationsModel in $notifications )
                                        <tr class="notifications" data="$notificationsModel.getCid()">
                                                #if($notificationsModel.getMessageType()=="announcement")
                                        <td style="width:32px;"><i class="fa fa-bullhorn "></i></td>
                                                #elseif($notificationsModel.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;">$notificationsModel.getDate().format($dateTimeFormatter)</div>
                                                        <span><b>$notificationsModel.getTitle()</b></span>
                                                        <br>
                                                        <span style="font-size:13px;"> $notificationsModel.getMessage()</span>
                                                        <div style="float:right">
                                                                #if($notificationsModel.getDocumentId())
                                                        <a 
                                                href="javascript:void(0)"  style="color:#337ab7;"
                                                                onclick="downloadNotifyDocument($notificationsModel.getDocumentId(),$notificationsModel.getCid(), `$notificationsModel.getDocumentName()`)">
                                                                $notificationsModel.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>