Project

General

Profile

« Previous | Next » 

Revision 3426

save point before refactoring iframes/index page

View differences:

SaeonDelete.jspx
11 11
    
12 12
    <html xmlns="http://www.w3.org/1999/xhtml">
13 13
        <head>
14
        	<title>SANParks - South African National Park Data Repository</title>
15
        	<link href="sanparks.css" rel="stylesheet" type="text/css" />
14 16
        </head>
15
        <body>
17
        <body style="background: #FFFFFF;">
16 18
            <jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/>
17 19
            <jsp:setProperty name="clientViewBean" property="*"/>
18 20
            
21
            <h2>Delete Data Packages</h2>
22
            
19 23
            <jsp:scriptlet>
20 24
                clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
21 25
                clientViewHelper.clientRequest(request, response);
22 26
                if (clientViewHelper.isLoggedIn()) {
23 27
            </jsp:scriptlet>
24
            <br/>
25
            <table bgcolor="WhiteSmoke">
28
            
29
            <table>
26 30
                <tr>
27 31
                    <td colspan="3">
28
                        
32
                        <h3>Search</h3>
33
                        <p class="regtext">
34
                        	Retrieve a list of existing FGDC data packages for a specified scope.
35
                        </p>	
29 36
                        <form name="scopeForm" method="post" action="SaeonDelete.jspx">
30 37
                            <input name="returnfield" type="hidden" value="distinfo/stdorder/digform/digtopt/onlinopt/computer/networka/networkr"/>
31 38
                            <input name="pathExpr" type="hidden" value="/metadata/distinfo/resdesc"/>
32 39
                            <jsp:element name="input">
33 40
                                <jsp:attribute name="name">sessionid</jsp:attribute>
34 41
                                <jsp:attribute name="type">hidden</jsp:attribute>
35
                                <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute>
42
                                <jsp:attribute name="value">
43
                                	<jsp:getProperty name="clientViewBean" property="sessionid"/>
44
                                </jsp:attribute>
36 45
                            </jsp:element>
37 46
                            <p class="regtext">
38 47
                                <!-- Set the pathValue to the username (the scope) -->
39 48
                                <jsp:element name="input">
40 49
                                    <jsp:attribute name="name">pathValue</jsp:attribute>
41 50
                                    <jsp:attribute name="type">text</jsp:attribute>
42
                                    <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="username"/></jsp:attribute>
51
                                    <jsp:attribute name="value">
52
                                    	<jsp:getProperty name="clientViewBean" property="username"/>
53
                                    </jsp:attribute>
43 54
                                    <jsp:attribute name="size">14</jsp:attribute>
44 55
                                </jsp:element>
45 56
                                <input name="action" value="Scope" type="submit" class="button_login"/>
46
                                &#xa0;&#xa0;Get a list of existing FGDC data packages for a specified scope.&#xa0;&#xa0;
47 57
                            </p>
48 58
                        </form>
49 59
                        
......
53 63
                <jsp:scriptlet>
54 64
                    if (clientViewBean.getMessage(ClientView.SELECT_MESSAGE) != null) {
55 65
                </jsp:scriptlet>
66
                 <tr>
67
                    <td>
68
                    	<h3>Delete</h3>
69
                        <p class="regtext">
70
                            Caution: Removes records from metacat server and, if a metadata Doc Id, any associated Doc Id records.
71
                        </p>
72
                    </td>
73
				</tr>
56 74
                <tr>
57
                    <td rowspan="3">
75
                    <td>
58 76
                        <form name="deleteForm" method="post" action="SaeonDelete.jspx">
59 77
                            <jsp:element name="input">
60 78
                                <jsp:attribute name="name">sessionid</jsp:attribute>
61 79
                                <jsp:attribute name="type">hidden</jsp:attribute>
62
                                <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute>
80
                                <jsp:attribute name="value">
81
                                	<jsp:getProperty name="clientViewBean" property="sessionid"/>
82
                                </jsp:attribute>
63 83
                            </jsp:element>
64 84
                            <jsp:expression>clientViewBean.getMessage(ClientView.SELECT_MESSAGE)</jsp:expression>
65
                            <br/>
85
                            
66 86
                            <input name="action" type="submit" value="Delete" class="button_login"/>
67 87
                        </form>
68 88
                        
69 89
                    </td>
70
                    <td>
71
                        <p class="regtext">
72
                            Caution: Removes records from metacat server and, if a metadata Doc Id, any associated Doc Id records.
73
                        </p>
74
                    </td>
75 90
                </tr>
76 91
                <tr>
77 92
                    <td>
78 93
                        <p class="regtext">
79 94
                            <jsp:scriptlet>if (clientViewBean.getMessage(ClientView.DELETE_MESSAGE) != null) {</jsp:scriptlet>
80
                            <jsp:expression>clientViewBean.getMessage(ClientView.DELETE_MESSAGE)</jsp:expression>
95
								<jsp:expression>clientViewBean.getMessage(ClientView.DELETE_MESSAGE)</jsp:expression>
81 96
                            <jsp:scriptlet>}</jsp:scriptlet>
82 97
                        </p>
83 98
                    </td>
......
90 105
            <jsp:scriptlet>
91 106
                } else {
92 107
            </jsp:scriptlet>
93
            <span class="regtext">
94
                You must be logged into your user account before deleting a data set.
95
            </span>
108
	            <span class="regtext">
109
	                You must be logged into your user account before deleting a data set.
110
	            </span>
96 111
            <jsp:scriptlet>
97 112
                }
98 113
            </jsp:scriptlet>
114
            
99 115
            <p class="regtext">
100 116
                <form action="SaeonLogin.jspx">
101
                    <input name="action" type="submit" value="Go Back" class="button_login"/>
117
                    <input name="action" type="submit" value="Back" class="button_login"/>
102 118
                </form>
103 119
            </p>
120
            
104 121
            <br/>DEBUG<br/>
105 122
            action = <jsp:getProperty name="clientViewBean" property="action"/><br/>
106 123
            qformat = <jsp:getProperty name="clientViewBean" property="qformat"/><br/>

Also available in: Unified diff