Subversion Repositories bacoAlunos

Rev

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

Rev 1312 Rev 1350
Line 23... Line 23...
23
            $('.row-offcanvas').toggleClass('active');
23
            $('.row-offcanvas').toggleClass('active');
24
        });
24
        });
25
    });
25
    });
26
</script>
26
</script>
27
 
27
 
-
 
28
 
-
 
29
 
-
 
30
 
-
 
31
<%
-
 
32
 
-
 
33
    IServiceManager sm = ServiceManager.getInstance();
-
 
34
    String subTarget = null;
-
 
35
    String[] names = new String[]{};
-
 
36
    Object[] args = new Object[]{Globals.ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS, subTarget,5};
-
 
37
    List<AnnouncementView> announcementViews = (List<AnnouncementView>) sm.execute(RequestUtils.getRequester(request, response), "LoadTypeAnnouncements", args, names);
-
 
38
    request.setAttribute("Banners", announcementViews);
-
 
39
 
-
 
40
if(announcementViews.size() > 0)
-
 
41
{
-
 
42
 
-
 
43
 
-
 
44
%>
-
 
45
 
28
<div class="row row-offcanvas row-offcanvas-left hidden-xs">
46
<div class="row row-offcanvas row-offcanvas-left hidden-xs">
29
 
47
 
30
 
48
 
31
    <div class="col-xs-12 col-sm-12">
49
    <div class="col-xs-12 col-sm-12">
32
        <div class="container" style="padding-left: 0;padding-right: 0">
50
        <div class="container" style="padding-left: 0;padding-right: 0">
33
            <!--<p class="pull-left visible-xs">
51
            <!--<p class="pull-left visible-xs">
34
                <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Menu</button>
52
                <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Menu</button>
35
            </p>-->
53
            </p>-->
36
 
54
 
37
            <div id="myCarousel" class="carousel" data-ride="carousel" data-interval="100000">
55
            <div id="myCarousel" class="carousel" data-ride="carousel" data-interval="2000">
38
                <!-- Indicators -->
56
                <!-- Indicators -->
39
                <ol class="carousel-indicators">
57
                <ol class="carousel-indicators">
-
 
58
                    <%
-
 
59
                        int i = 0;
-
 
60
                    %>
40
                    <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
61
                    <logic:iterate id="banner" name="Banners" type="pt.estgp.estgweb.domain.views.AnnouncementView">
41
                    <li data-target="#myCarousel" data-slide-to="1"></li>
62
                        <li data-target="#myCarousel" data-slide-to="<%=i%>" <%=i==0?"class=\"active\"":""%>></li>
-
 
63
                        <%
-
 
64
                        i++;
-
 
65
                        %>
42
                    <li data-target="#myCarousel" data-slide-to="2"></li>
66
                    </logic:iterate>
43
                </ol>
67
                </ol>
44
 
68
 
45
 
69
 
46
                <!-- Wrapper for slides -->
70
                <!-- Wrapper for slides -->
47
                <div class="carousel-inner" role="listbox">
71
                <div class="carousel-inner" role="listbox">
48
 
-
 
-
 
72
                    <%
-
 
73
                        i = 0;
-
 
74
                    %>
-
 
75
                    <logic:iterate id="banner" name="Banners" type="pt.estgp.estgweb.domain.views.AnnouncementView">
49
                    <div class="item active">
76
                        <div class="item <%=i==0?"active":""%>">
50
                        <a href="www.estgp.pt"><img src="<%=request.getContextPath()%>/imgs/testes/bannerTesteEstg.jpg" alt="Chania" height="100%" width="100%"></a>
77
                            <a href="${banner.url}"><img src="<%=request.getContextPath()%>/imageStream/${banner.bigImageId}" alt="${banner.title}" height="100%" width="100%"></a>
-
 
78
                            <baco:isOwner name="banner">
51
                        <div class="carousel-caption">
79
                                <div class="carousel-caption">
-
 
80
                                    <a href="<%=request.getContextPath()%>/startLoadAnnouncement.do?id=${banner.id}" class="btn btn-default">EDITAR</a>
-
 
81
                                </div>
52
                            <h3>Chania</h3>
82
                            </baco:isOwner>
-
 
83
                            <baco:isNotOwner name="banner">
53
                            <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
84
                                <baco:hasRole role="admin,all,services">
-
 
85
                                    <div class="carousel-caption">
-
 
86
                                        <a href="<%=request.getContextPath()%>/startLoadAnnouncement.do?id=${banner.id}" class="btn btn-default">EDITAR</a>
-
 
87
                                    </div>
-
 
88
                                </baco:hasRole>
-
 
89
                            </baco:isNotOwner>
54
                        </div>
90
                        </div>
55
                    </div>
91
                        <%
56
 
-
 
57
                    <div class="item">
-
 
58
                        <a href="www.estgp.pt"><img src="<%=request.getContextPath()%>/imgs/testes/bannerTesteEstg.jpg" alt="Chania" height="100%" width="100%"></a>
-
 
59
                        <div class="carousel-caption">
-
 
60
                            <h3>Chania</h3>
-
 
61
                            <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
-
 
62
                        </div>
92
                        i++;
63
                    </div>
-
 
64
 
-
 
65
 
-
 
66
                    <div class="item">
-
 
67
                        <img src="<%=request.getContextPath()%>/imgs/testes/transferir.jpeg" alt="Chania" height="100%" width="100%">
-
 
68
                        <div class="carousel-caption">
-
 
69
                            <h3>Chania</h3>
-
 
70
                            <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
-
 
71
                        </div>
93
                         %>
72
                    </div>
94
                    </logic:iterate>
73
 
-
 
74
 
-
 
75
 
95
 
76
                </div>
96
                </div>
77
 
97
 
78
                <!-- Left and right controls -->
98
                <!-- Left and right controls -->
79
                <!--
99
                <!--
Line 98... Line 118...
98
    </div><!--/.col-xs-12.col-sm-12-->
118
    </div><!--/.col-xs-12.col-sm-12-->
99
 
119
 
100
 
120
 
101
</div><!--/row-->
121
</div><!--/row-->
102
 
122
 
-
 
123
<%
-
 
124
    }
103
 
125
%>
104
        <%---
126
        <%---
105
        #####
127
        #####
106
        #####    NOTICIAS
128
        #####    NOTICIAS
107
        #####
129
        #####
108
        #####
130
        #####