Project

General

Profile

« Previous | Next » 

Revision 3396

Added by barteau over 17 years ago

Format modifications to use the knp.css class templatecontentareaclass.

View differences:

lib/style/skins/knp/SaeonLogin.jspx
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
3

  
4
<!-- to change the content type or response encoding change the following line -->
5
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
6
<jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientView"/>
7
<jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper"/>
8
<jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientHtmlHelper"/>
9

  
10
<jsp:declaration>
11
    private ClientViewHelper            clientViewHelper = null;
12
</jsp:declaration>
13

  
14

  
15
<html xmlns="http://www.w3.org/1999/xhtml">
16
<head>
17 3
    
18
    <script type="text/javascript">
4
    <!-- to change the content type or response encoding change the following line -->
5
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
6
    <jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientView"/>
7
    <jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper"/>
8
    <jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientHtmlHelper"/>
9
    
10
    <jsp:declaration>
11
        private ClientViewHelper            clientViewHelper = null;
12
    </jsp:declaration>
13
    
14
    
15
    <html xmlns="http://www.w3.org/1999/xhtml">
16
        <head>
17
            
18
            <script type="text/javascript">
19 19
                
20 20
                function allowSubmit(formObj) {
21 21
                    var     result = true;
......
48 48
			return(stringToTrim.replace(/^\s+|\s+$/g,""));
49 49
		}
50 50
                
51
    </script>
52
    
53
    <title>SANParks - Kruger National Park Data Repository</title>
54
    <link href="knp.css" rel="stylesheet" type="text/css"/>
55
    
56
</head>
57
<body>
58
    <jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/>
59
    <jsp:setProperty name="clientViewBean" property="*"/>
60
    
61
    <jsp:scriptlet>
62
        clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
63
        clientViewHelper.clientRequest(request, response);
64
    </jsp:scriptlet>
65
    
66
    <li>Search for KNP Data
67
        <form name="searchform" method="post" action="../../../metacat" target="_top">
68
            <jsp:include page="SimpleSearchMetacatPostFields.html"/>
69
            <jsp:element name="input">
70
                <jsp:attribute name="name">sessionid</jsp:attribute>
71
                <jsp:attribute name="type">hidden</jsp:attribute>
72
                <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute>
73
            </jsp:element>
74
            <br/>
75
            <p class="regtext">
76
                <input name="anyfield" value="" type="text" size="14"/>
77
                <input name="action" value="query" type="submit"/>
78
                all fields, including author, title, abstract, keywords, and other documentation.
79
                Use a '%' symbol as a wildcard (e.g., '%biodiversity%').
80
            </p>
81
        </form>
82
        <br/>
83
    </li>
84
    
85
    <li>Browse KNP data sets
86
        
87
        <form name="browseform" method="post" action="../../../metacat" target="_top">
88
            <jsp:include page="SimpleSearchMetacatPostFields.html"/>
89
            <input name="anyfield" type="hidden" value="%" />
90
            <jsp:element name="input">
91
                <jsp:attribute name="name">sessionid</jsp:attribute>
92
                <jsp:attribute name="type">hidden</jsp:attribute>
93
                <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute>
94
            </jsp:element>
95
            <br/>
96
            <p class="regtext">
97
                <input name="action" value="query" type="submit"/>
98
                Browse all existing data sets by title.  This operation can be slow.
99
            </p>
100
        </form>
101
        <br/>
102
    </li>
103
    
104
    <jsp:scriptlet>
105
        if (!clientViewHelper.isLoggedIn()) {
106
    </jsp:scriptlet>
107
    <li>Login
108
        <form name="loginForm" method="post" action="SaeonLogin.jspx" onsubmit="return allowSubmit(this)">
109
            <input name="qformat" type="hidden" value="knp"/>
110
            <table>
111
                <tr>
112
                    <td>
113
                        <span class="required">User name</span>
114
                    </td>
115
                    <td>
116
                        <input name="username" type="text" value="" style="width: 140"/>
117
                    </td>
118
                    <td rowspan="3" class="regtext" align="right" valign="top" style="width: 160" >
119
                        <div>
120
                            <!-- TODO: Config param follows -->
121
                            <a href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi" target="_parent">create a new account</a>
122
                        </div>
123
                    </td>
124
                </tr>
125
                <tr>
126
                    <td>
127
                        <span class="required">Organization</span>
128
                    </td>
129
                    <td>
130
                        <select name="organization" style="width: 140">
131
                            <option value="SANParks" selected="">SANParks</option>
132
                            <option value="SAEON">SAEON</option>
133
                            <option value="NCEAS">NCEAS</option>
134
                            <option value="unaffiliated">unaffiliated</option>
135
                        </select>
136
                    </td>
137
                </tr>
138
                <tr>
139
                    <td>
140
                        <span class="required">Password</span>
141
                    </td>
142
                    <td>
143
                        <input name="password" value="" type="password" style="width: 140" maxlength="50"/>
144
                    </td>
145
                </tr>
146
                <tr>
147
                    <td colspan="2" align="center">
148
                        <input name="action" value="Login" type="submit" class="button_login"/>
149
                    </td>
150
                </tr>
151
            </table>
152
        </form>
153
        <jsp:scriptlet>
154
            } else {
155
        </jsp:scriptlet>
156
        <form name="logoutForm" method="post" action="SaeonLogin.jspx">
157
            <input name="qformat" value="knp" type="hidden"/>
158
            <table>
159
                <tr>
160
                    <td>
161
                        <p class="regtext">Account: <jsp:expression>clientViewBean.getMessage(ClientView.LOGIN_MESSAGE)</jsp:expression></p>
162
                    </td>
163
                    <td rowspan="2" class="regtext" align="right" valign="top" style="width: 160" >
164
                        <div>
165
                            <!-- TODO: Config param follows -->
166
                            <a href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=resetpass" target="_parent">reset your password</a>
167
                        </div>
168
                        <div>
169
                            <!-- TODO: Config param follows -->
170
                            <a href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=changepass" target="_parent">change your password</a>
171
                        </div>
172
                    </td>
173
                </tr>
174
                <tr>
175
                    <td align="center">
176
                        <input name="action" type="submit" value="Logout" class="button_login"/>
177
                    </td>
178
                </tr>
179
            </table>
180
        </form>
181
        <jsp:scriptlet>
182
            }
183
        </jsp:scriptlet>
184
        
185
        <!-- File Upload Form -->
186
        <br/>
187
        <jsp:scriptlet>
188
            if (clientViewHelper.isLoggedIn()) {
189
        </jsp:scriptlet>
190
        <form action="SaeonUpload.jspx">
191
            <li>Data Package Upload <input name="action" type="submit" value="Go" class="button_login"/></li>
192
        </form>
193
        <jsp:scriptlet>
194
            } else {
195
        </jsp:scriptlet>
196
    </li>
197
    <li>Data Package Upload
198
    <br/>
199
    <p class="regtext">
200
        You must be logged into your user account before uploading a data set.
201
    </p>
202
    </li>
203
    <jsp:scriptlet>
204
        }
205
    </jsp:scriptlet>
206
</body>
207
</html>
51
            </script>
52
            
53
            <title>SANParks - Kruger National Park Data Repository</title>
54
            <link href="knp.css" rel="stylesheet" type="text/css"/>
55
            
56
        </head>
57
        <body>
58
                <div class="templatecontentareaclass">
59
                    
60
                    <jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/>
61
                    <jsp:setProperty name="clientViewBean" property="*"/>
62
                    
63
                    <jsp:scriptlet>
64
                        clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
65
                        clientViewHelper.clientRequest(request, response);
66
                    </jsp:scriptlet>
67
                    
68
                    <li>Search for KNP Data
69
                        <form name="searchform" method="post" action="../../../metacat" target="_top">
70
                            <jsp:include page="SimpleSearchMetacatPostFields.html"/>
71
                            <jsp:element name="input">
72
                                <jsp:attribute name="name">sessionid</jsp:attribute>
73
                                <jsp:attribute name="type">hidden</jsp:attribute>
74
                                <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute>
75
                            </jsp:element>
76
                            <br/>
77
                            <p class="regtext">
78
                                <input name="anyfield" value="" type="text" size="14"/>
79
                                <input name="action" value="query" type="submit"/>
80
                                all fields, including author, title, abstract, keywords, and other documentation.
81
                                Use a '%' symbol as a wildcard (e.g., '%biodiversity%').
82
                            </p>
83
                        </form>
84
                        <br/>
85
                    </li>
86
                    
87
                    <li>Browse KNP data sets
88
                        
89
                        <form name="browseform" method="post" action="../../../metacat" target="_top">
90
                            <jsp:include page="SimpleSearchMetacatPostFields.html"/>
91
                            <input name="anyfield" type="hidden" value="%" />
92
                            <jsp:element name="input">
93
                                <jsp:attribute name="name">sessionid</jsp:attribute>
94
                                <jsp:attribute name="type">hidden</jsp:attribute>
95
                                <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute>
96
                            </jsp:element>
97
                            <br/>
98
                            <p class="regtext">
99
                                <input name="action" value="query" type="submit"/>
100
                                Browse all existing data sets by title.  This operation can be slow.
101
                            </p>
102
                        </form>
103
                        <br/>
104
                    </li>
105
                    
106
                    <jsp:scriptlet>
107
                        if (!clientViewHelper.isLoggedIn()) {
108
                    </jsp:scriptlet>
109
                    <li>Login
110
                        <form name="loginForm" method="post" action="SaeonLogin.jspx" onsubmit="return allowSubmit(this)">
111
                            <input name="qformat" type="hidden" value="knp"/>
112
                            <table>
113
                                <tr>
114
                                    <td>
115
                                        <span class="required">User name</span>
116
                                    </td>
117
                                    <td>
118
                                        <input name="username" type="text" value="" style="width: 140"/>
119
                                    </td>
120
                                    <td rowspan="3" class="regtext" align="right" valign="top" style="width: 160" >
121
                                        <div>
122
                                            <!-- TODO: Config param follows -->
123
                                            <a href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi" target="_parent">create a new account</a>
124
                                        </div>
125
                                    </td>
126
                                </tr>
127
                                <tr>
128
                                    <td>
129
                                        <span class="required">Organization</span>
130
                                    </td>
131
                                    <td>
132
                                        <select name="organization" style="width: 140">
133
                                            <option value="SANParks" selected="">SANParks</option>
134
                                            <option value="SAEON">SAEON</option>
135
                                            <option value="NCEAS">NCEAS</option>
136
                                            <option value="unaffiliated">unaffiliated</option>
137
                                        </select>
138
                                    </td>
139
                                </tr>
140
                                <tr>
141
                                    <td>
142
                                        <span class="required">Password</span>
143
                                    </td>
144
                                    <td>
145
                                        <input name="password" value="" type="password" style="width: 140" maxlength="50"/>
146
                                    </td>
147
                                </tr>
148
                                <tr>
149
                                    <td colspan="2" align="center">
150
                                        <input name="action" value="Login" type="submit" class="button_login"/>
151
                                    </td>
152
                                </tr>
153
                            </table>
154
                        </form>
155
                        <jsp:scriptlet>
156
                            } else {
157
                        </jsp:scriptlet>
158
                        <form name="logoutForm" method="post" action="SaeonLogin.jspx">
159
                            <input name="qformat" value="knp" type="hidden"/>
160
                            <table>
161
                                <tr>
162
                                    <td>
163
                                        <p class="regtext">Account: <jsp:expression>clientViewBean.getMessage(ClientView.LOGIN_MESSAGE)</jsp:expression></p>
164
                                    </td>
165
                                    <td rowspan="2" class="regtext" align="right" valign="top" style="width: 160" >
166
                                        <div>
167
                                            <!-- TODO: Config param follows -->
168
                                            <a href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=resetpass" target="_parent">reset your password</a>
169
                                        </div>
170
                                        <div>
171
                                            <!-- TODO: Config param follows -->
172
                                            <a href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=changepass" target="_parent">change your password</a>
173
                                        </div>
174
                                    </td>
175
                                </tr>
176
                                <tr>
177
                                    <td align="center">
178
                                        <input name="action" type="submit" value="Logout" class="button_login"/>
179
                                    </td>
180
                                </tr>
181
                            </table>
182
                        </form>
183
                        <jsp:scriptlet>
184
                            }
185
                        </jsp:scriptlet>
186
                        
187
                        <!-- File Upload Form -->
188
                        <br/>
189
                        <jsp:scriptlet>
190
                            if (clientViewHelper.isLoggedIn()) {
191
                        </jsp:scriptlet>
192
                        <form action="SaeonUpload.jspx">
193
                            <li>Data Package Upload <input name="action" type="submit" value="Go" class="button_login"/></li>
194
                        </form>
195
                        <jsp:scriptlet>
196
                            } else {
197
                        </jsp:scriptlet>
198
                    </li>
199
                    <li>Data Package Upload
200
                        <br/>
201
                        <p class="regtext">
202
                            You must be logged into your user account before uploading a data set.
203
                        </p>
204
                    </li>
205
                    <jsp:scriptlet>
206
                        }
207
                    </jsp:scriptlet>
208
                </div>
209
        </body>
210
    </html>
208 211
</jsp:root>

Also available in: Unified diff