Project

General

Profile

« Previous | Next » 

Revision 3405

reformatted only

View differences:

lib/style/skins/sanparks/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>
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
7
		import="edu.ucsb.nceas.metacat.clientview.ClientView" />
8
	<jsp:directive.page
9
		import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper" />
10
	<jsp:directive.page
11
		import="edu.ucsb.nceas.metacat.clientview.ClientHtmlHelper" />
12

  
13
	<jsp:declaration>
11 14
        private ClientViewHelper            clientViewHelper = null;
12 15
    </jsp:declaration>
13
    
14
    
15
    <html xmlns="http://www.w3.org/1999/xhtml">
16
        <head>
17
            
18
            <script type="text/javascript">
16

  
17

  
18
	<html xmlns="http://www.w3.org/1999/xhtml">
19
	<head>
20

  
21
	<script type="text/javascript">
19 22
                
20 23
                function allowSubmit(formObj) {
21 24
                    var     result = true;
......
47 50
		function trim(stringToTrim) {
48 51
			return(stringToTrim.replace(/^\s+|\s+$/g,""));
49 52
		}
50
                
51
            </script>
52
            
53
            <title>SANParks - Kruger National Park Data Repository</title>
54
            <link href="sanparks.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>
53
    </script>
54

  
55
	<title>SANParks - Kruger National Park Data Repository</title>
56
	<link href="sanparks.css" rel="stylesheet" type="text/css" />
57

  
58
	</head>
59
	<body>
60
	<div class="templatecontentareaclass"><jsp:useBean
61
		id="clientViewBean" scope="session"
62
		class="edu.ucsb.nceas.metacat.clientview.ClientView" /> <jsp:setProperty
63
		name="clientViewBean" property="*" /> <jsp:scriptlet>
64 64
                        clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
65 65
                        clientViewHelper.clientRequest(request, response);
66 66
                    </jsp:scriptlet>
67
                    
68
                    <li>Search for SANParks Data
69
                        <form name="searchform" method="post" action="../../../metacat" target="_top">
70
                            <jsp:include page="SimpleSearchMetacatPostFields.html"/>
71
                            <jsp:element name="input">
67

  
68
	<li>Search for SANParks Data
69
	<form name="searchform" method="post" action="../../../metacat"
70
		target="_top"><jsp:include
71
		page="SimpleSearchMetacatPostFields.html" /> <jsp:element name="input">
72 72
                                <jsp:attribute name="name">sessionid</jsp:attribute>
73 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 SANParks 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">
74
                                <jsp:attribute name="value"><jsp:getProperty
75
				name="clientViewBean" property="sessionid" /></jsp:attribute>
76
                            </jsp:element> <br />
77
	<p class="regtext"><input name="anyfield" value="" type="text"
78
		size="14" /> <input name="action" value="query" type="submit" /> all
79
	fields, including author, title, abstract, keywords, and other
80
	documentation. Use a '%' symbol as a wildcard (e.g., '%biodiversity%').
81
	</p>
82
	</form>
83
	<br />
84
	</li>
85

  
86
	<li>Browse SANParks data sets
87

  
88
	<form name="browseform" method="post" action="../../../metacat"
89
		target="_top"><jsp:include
90
		page="SimpleSearchMetacatPostFields.html" /> <input name="anyfield"
91
		type="hidden" value="%" /> <jsp:element name="input">
93 92
                                <jsp:attribute name="name">sessionid</jsp:attribute>
94 93
                                <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>
94
                                <jsp:attribute name="value"><jsp:getProperty
95
				name="clientViewBean" property="sessionid" /></jsp:attribute>
96
                            </jsp:element> <br />
97
	<p class="regtext"><input name="action" value="query" type="submit" />
98
	Browse all existing data sets by title. This operation can be slow.</p>
99
	</form>
100
	<br />
101
	</li>
102

  
103
	<jsp:scriptlet>
107 104
                        if (!clientViewHelper.isLoggedIn()) {
108 105
                    </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="sanparks"/>
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>
106
	<li>Login
107
	<form name="loginForm" method="post" action="SaeonLogin.jspx"
108
		onsubmit="return allowSubmit(this)"><input name="qformat"
109
		type="hidden" value="sanparks" />
110
	<table>
111
		<tr>
112
			<td><span class="required">User name</span></td>
113
			<td><input name="username" type="text" value=""
114
				style="width: 140" /></td>
115
			<td rowspan="3" class="regtext" align="right" valign="top"
116
				style="width: 160">
117
			<div><!-- TODO: Config param follows --> <a
118
				href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi"
119
				target="_parent">create a new account</a></div>
120
			</td>
121
		</tr>
122
		<tr>
123
			<td><span class="required">Organization</span></td>
124
			<td><select name="organization" style="width: 140">
125
				<option value="SANParks" selected="">SANParks</option>
126
				<option value="SAEON">SAEON</option>
127
				<option value="NCEAS">NCEAS</option>
128
				<option value="unaffiliated">unaffiliated</option>
129
			</select></td>
130
		</tr>
131
		<tr>
132
			<td><span class="required">Password</span></td>
133
			<td><input name="password" value="" type="password"
134
				style="width: 140" maxlength="50" /></td>
135
		</tr>
136
		<tr>
137
			<td colspan="2" align="center"><input name="action"
138
				value="Login" type="submit" class="button_login" /></td>
139
		</tr>
140
	</table>
141
	</form>
142
	<jsp:scriptlet>
156 143
                            } else {
157 144
                        </jsp:scriptlet>
158
                        <form name="logoutForm" method="post" action="SaeonLogin.jspx">
159
                            <input name="qformat" value="sanparks" 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>
145
	<form name="logoutForm" method="post" action="SaeonLogin.jspx">
146
	<input name="qformat" value="sanparks" type="hidden" />
147
	<table>
148
		<tr>
149
			<td>
150
			<p class="regtext">Account: <jsp:expression>clientViewBean.getMessage(ClientView.LOGIN_MESSAGE)</jsp:expression></p>
151
			</td>
152
			<td rowspan="2" class="regtext" align="right" valign="top"
153
				style="width: 160">
154
			<div><!-- TODO: Config param follows --> <a
155
				href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=resetpass"
156
				target="_parent">reset your password</a></div>
157
			<div><!-- TODO: Config param follows --> <a
158
				href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=changepass"
159
				target="_parent">change your password</a></div>
160
			</td>
161
		</tr>
162
		<tr>
163
			<td align="center"><input name="action" type="submit"
164
				value="Logout" class="button_login" /></td>
165
		</tr>
166
	</table>
167
	</form>
168
	<jsp:scriptlet>
184 169
                            }
185
                        </jsp:scriptlet>
186
                        
187
                        <!-- File Upload Form -->
188
                        <br/>
189
                        <jsp:scriptlet>
170
                        </jsp:scriptlet> <!-- File Upload Form --> <br />
171
	<jsp:scriptlet>
190 172
                            if (clientViewHelper.isLoggedIn()) {
191 173
                        </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>
174
	<form action="SaeonUpload.jspx">
175
	<li>Data Package Upload <input name="action" type="submit"
176
		value="Go" class="button_login" /></li>
177
	</form>
178
	<jsp:scriptlet>
196 179
                            } else {
197 180
                        </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>
181
	</li>
182
	<li>Data Package Upload <br />
183
	<p class="regtext">You must be logged into your user account before
184
	uploading a data set.</p>
185
	</li>
186
	<jsp:scriptlet>
206 187
                        }
207 188
                    </jsp:scriptlet>
208
                </div>
209
        </body>
210
    </html>
189
	</div>
190
	</body>
191
	</html>
211 192
</jsp:root>

Also available in: Unified diff