Project

General

Profile

1
<%@ taglib prefix="s" uri="/struts-tags"%>
2
<%@ page contentType="text/html; charset=UTF-8"%>
3

    
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
    <head>
8
        <title>DRIVER My Saved Queries</title>
9

    
10
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
11
		
12
        <link href='<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/<s:property value="#application['webInterfaceLayoutManager'].cssFileName" />' rel="stylesheet" type="text/css" />
13
        <link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
14

    
15
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3-core.js"></script>
16
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3.1-more.js"></script>
17
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
18
        <script type="text/javascript">
19
            function equalize(tag) {
20
                var columns = $$(tag);
21
                var max_height = 0;
22
	
23
                columns.each(function(item) {
24
                    max_height = Math.max(max_height, item.getSize().y);
25
                });
26
	
27
                columns.setStyle('height', max_height);
28
            }
29

    
30
            window.addEvent('domready', function(){equalize('.equalize')});
31
            window.addEvent('domready', function(){equalize('.equalize2')});
32
        </script>
33
    </head>
34

    
35
    <body>
36
        <div id="center">
37
            <div id="wrapper">
38
                <div class="wrapper_shadowleft">
39
                    <div class="wrapper_shadowright">
40
                        <div id="container">
41
                            <jsp:include page="/pages/banner.jsp" />
42
                            <jsp:include page="/pages/menu.jsp" />
43
                            <div id="leftcolumn">
44
                                <b class="curved_top">
45
                                    <b class="curved_t1"></b>
46
                                    <b class="curved_t2"></b>
47
                                    <b class="curved_t3"></b>
48
                                    <b class="curved_t4"></b>
49
                                </b>
50
                                <div class="curved_container clearfix">
51
                                <jsp:include page="/pages/optionMenu.jsp" />
52
                                </div>
53
                                <b class="curved_bottom">
54
                                    <b class="curved_b4"></b>
55
                                    <b class="curved_b3"></b>
56
                                    <b class="curved_b2"></b>
57
                                    <b class="curved_b1"></b>
58
                                </b>
59
                            </div>
60

    
61
                            <div id="maincolumn2">
62
                                <div id="myPage">
63
                                    <b class="curved_top"> <b class="curved_t1"></b> <b class="curved_t2"></b> <b class="curved_t3"></b> <b class="curved_t4"></b> </b>
64
                                    <!-- this is the plain search area -->
65
                                    <div class="curved_container equalize2 clearfix" >
66
                                        <div class="featured_top myPage_top">
67
                                            <img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/query.png" alt="Saved Queries" class="absmiddle" height="16" width="16" />
68
                                            Saved Queries
69
                                            <!--
70
                                            <s:property	value="#session.user.firstname" /> <s:property value="#session.user.lastname" />
71
                                            -->
72
                                        </div>
73
                                        <div class="mydriveritem col1">
74
                                            <s:if test="#request.queries.isEmpty()">
75

    
76
                                                <h2>You have not saved any queries.</h2>
77
                                            </s:if> 
78
                                            <s:else>
79
                                                <table class="myPagetbl" style="width:100%">
80

    
81
                                                    <s:iterator value="#request.queries" id="query" status="itStatus">
82
                                                        <tr align="left">
83
                                                            <td class="myPageField" width=""><s:property /></td>
84
                                                            <td class="myPageField" width="90">
85
                                                                <s:url action="RemoveQuery" id="removeQuery">
86
                                                                    <s:param name="indexOfSavedQuery" value="#itStatus.index" />
87
                                                                </s:url>
88
                                                                <s:a href="%{removeQuery}" cssClass="button" theme="simple">Remove Query</s:a>
89
                                                                <s:url action="QueryAlert" id="alertQuery">
90
                                                                    <s:param name="indexOfSavedQuery" value="#itStatus.index" />
91
                                                                </s:url></td>
92
                                                            <td class="myPageField" width="40">
93
                                                                <s:url action="QueryAlert" id="alertQuery">
94
                                                                    <s:param name="indexOfSavedQuery" value="#itStatus.index" />
95
                                                                </s:url>
96
                                                                <s:a href="%{alertQuery}" cssClass="button" theme="simple">
97
                                                                    <s:if test="%{#request.savedQueries.get(#itStatus.index).isAlertOnChange()}">
98
                                                                        Disable Alert
99
                                                                    </s:if>
100
                                                                    <s:else> Alert </s:else>
101
                                                            	</s:a>
102
                                                            </td>
103
                                                            <td class="myPageField" width="20">
104
                                                            	<s:url action="showResults" id="showResults">
105
																	<s:param name="query" value="#request['queryParams'][#itStatus.index]"/>
106
								                                	<s:param name="refine" value="#request['refineParams'][#itStatus.index]"/>
107
                                									<s:param name="page" value="1" />
108
                                									<s:param name="size" value="10" />
109
                                									<s:param name="history" value="false" />
110
                                									<s:param name="referer" value="showResults" />
111
                                									<s:param name="id" value="#parameters['id']" />
112
                                                            	</s:url>
113
                                                            	<s:a href="%{showResults}" cssClass="button" theme="simple">
114
                                                            		Run                                                            		
115
                                                            	</s:a>
116
                                                            </td>
117
                                                        </tr>
118
                                                        <tr align="center">
119
                                                            <td  colspan="3" class="myPageField">
120
                                                                <img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/sep_results.gif" alt="" width="99%" height="2" /></td>
121
                                                        </tr>
122

    
123
                                                    </s:iterator>
124
                                                </table>
125

    
126
                                            </s:else>
127
                                        </div>
128
                                    </div>
129
                                    <b class="curved_bottom"> <b class="curved_b4"></b> <b class="curved_b3"></b> <b class="curved_b2"></b> <b class="curved_b1"></b> </b>
130
                                </div>
131
                            </div>
132
                            <div id="footer">
133
                            	<s:action name="FooterPage" executeResult="true"/>
134
                            </div>
135
                        </div>
136
                    </div>
137
                </div>
138
            </div>
139
        </div>
140
    </body>
141
</html>
(18-18/25)