4028 |
26 Jul 16 |
nicklas |
1 |
<%@ page |
4028 |
26 Jul 16 |
nicklas |
2 |
pageEncoding="UTF-8" |
4028 |
26 Jul 16 |
nicklas |
3 |
session="false" |
4028 |
26 Jul 16 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
4028 |
26 Jul 16 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
4028 |
26 Jul 16 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
4028 |
26 Jul 16 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
4028 |
26 Jul 16 |
nicklas |
8 |
import="net.sf.basedb.util.formatter.DateFormatter" |
4028 |
26 Jul 16 |
nicklas |
9 |
import="net.sf.basedb.util.formatter.Formatter" |
4028 |
26 Jul 16 |
nicklas |
10 |
import="net.sf.basedb.clients.web.Base" |
4028 |
26 Jul 16 |
nicklas |
11 |
import="net.sf.basedb.clients.web.util.HTML" |
4028 |
26 Jul 16 |
nicklas |
12 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4028 |
26 Jul 16 |
nicklas |
13 |
import="net.sf.basedb.util.Values" |
4028 |
26 Jul 16 |
nicklas |
14 |
import="java.util.Date" |
4028 |
26 Jul 16 |
nicklas |
15 |
%> |
4028 |
26 Jul 16 |
nicklas |
16 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4028 |
26 Jul 16 |
nicklas |
17 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4028 |
26 Jul 16 |
nicklas |
18 |
<% |
4028 |
26 Jul 16 |
nicklas |
19 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
4028 |
26 Jul 16 |
nicklas |
20 |
final String ID = sc.getId(); |
4028 |
26 Jul 16 |
nicklas |
21 |
final float scale = Base.getScale(sc); |
4028 |
26 Jul 16 |
nicklas |
22 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
4028 |
26 Jul 16 |
nicklas |
23 |
DbControl dc = null; |
4028 |
26 Jul 16 |
nicklas |
24 |
try |
4028 |
26 Jul 16 |
nicklas |
25 |
{ |
4028 |
26 Jul 16 |
nicklas |
26 |
dc = sc.newDbControl(); |
4028 |
26 Jul 16 |
nicklas |
27 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
4028 |
26 Jul 16 |
nicklas |
28 |
int numSelected = Values.getInt(request.getParameter("numSelected")); |
4993 |
02 Oct 18 |
nicklas |
29 |
int numDoNotUse = Values.getInt(request.getParameter("numDoNotUse")); |
4028 |
26 Jul 16 |
nicklas |
30 |
final Formatter dateFormat = new DateFormatter("yyyyMMdd"); |
4028 |
26 Jul 16 |
nicklas |
31 |
%> |
4028 |
26 Jul 16 |
nicklas |
32 |
<base:page type="popup" title="Publish for delivery"> |
4028 |
26 Jul 16 |
nicklas |
33 |
<base:head |
4028 |
26 Jul 16 |
nicklas |
34 |
scripts="~publish-for-delivery.js,~../reggie-2.js" |
4028 |
26 Jul 16 |
nicklas |
35 |
styles="~../css/reggie-2.css" |
4028 |
26 Jul 16 |
nicklas |
36 |
/> |
4028 |
26 Jul 16 |
nicklas |
37 |
<base:body> |
4028 |
26 Jul 16 |
nicklas |
38 |
<h1>Publish <%=numSelected%> reports for delivery</h1> |
4028 |
26 Jul 16 |
nicklas |
39 |
|
4028 |
26 Jul 16 |
nicklas |
40 |
<form name="options" id="wizard" class="wizard"> |
4028 |
26 Jul 16 |
nicklas |
41 |
<div class="content bottomborder"> |
4028 |
26 Jul 16 |
nicklas |
42 |
|
4028 |
26 Jul 16 |
nicklas |
43 |
<table class="fullform input100"> |
4028 |
26 Jul 16 |
nicklas |
44 |
<tr> |
4028 |
26 Jul 16 |
nicklas |
45 |
<th>Completed date</th> |
4028 |
26 Jul 16 |
nicklas |
46 |
<td> |
4028 |
26 Jul 16 |
nicklas |
47 |
<input type="text" name="completedDate" id="completedDate" |
4028 |
26 Jul 16 |
nicklas |
48 |
class="required auto-init" data-auto-init="focus-select" |
4028 |
26 Jul 16 |
nicklas |
49 |
value="<%=dateFormat.format(new Date())%>" |
4028 |
26 Jul 16 |
nicklas |
50 |
style="width: 12em;" maxlength="10" |
4028 |
26 Jul 16 |
nicklas |
51 |
title="Enter completed date in YYYYMMDD format"> |
4028 |
26 Jul 16 |
nicklas |
52 |
<base:icon |
4028 |
26 Jul 16 |
nicklas |
53 |
id="completedDateCalendar" |
4028 |
26 Jul 16 |
nicklas |
54 |
subclass="auto-init" |
4028 |
26 Jul 16 |
nicklas |
55 |
data-auto-init="calendar" |
4028 |
26 Jul 16 |
nicklas |
56 |
data-textarea-id="completedDate" |
4028 |
26 Jul 16 |
nicklas |
57 |
data-date-format="yyyyMMdd" |
4028 |
26 Jul 16 |
nicklas |
58 |
data-title="Completed date" |
4028 |
26 Jul 16 |
nicklas |
59 |
image="calendar.png" |
4028 |
26 Jul 16 |
nicklas |
60 |
tooltip="Select a date from a calendar" |
4028 |
26 Jul 16 |
nicklas |
61 |
tabindex="-1" |
4028 |
26 Jul 16 |
nicklas |
62 |
/> |
4028 |
26 Jul 16 |
nicklas |
63 |
</td> |
4028 |
26 Jul 16 |
nicklas |
64 |
</tr> |
4993 |
02 Oct 18 |
nicklas |
65 |
<% |
4993 |
02 Oct 18 |
nicklas |
66 |
if (numDoNotUse > 0) |
4993 |
02 Oct 18 |
nicklas |
67 |
{ |
4993 |
02 Oct 18 |
nicklas |
68 |
%> |
4993 |
02 Oct 18 |
nicklas |
69 |
<tr> |
4993 |
02 Oct 18 |
nicklas |
70 |
<th>DoNotUse</th> |
4993 |
02 Oct 18 |
nicklas |
71 |
<td><label><input type="checkbox" name="acceptDoNotUse" id="acceptDoNotUse">Accept DoNotUse items</label></td> |
4993 |
02 Oct 18 |
nicklas |
72 |
</tr> |
4993 |
02 Oct 18 |
nicklas |
73 |
<% |
4993 |
02 Oct 18 |
nicklas |
74 |
} |
4993 |
02 Oct 18 |
nicklas |
75 |
%> |
4028 |
26 Jul 16 |
nicklas |
76 |
<tr class="dynamic"> |
4028 |
26 Jul 16 |
nicklas |
77 |
<th></th> |
4993 |
02 Oct 18 |
nicklas |
78 |
<td> |
4993 |
02 Oct 18 |
nicklas |
79 |
<% |
4993 |
02 Oct 18 |
nicklas |
80 |
if (numDoNotUse > 0) |
4993 |
02 Oct 18 |
nicklas |
81 |
{ |
4993 |
02 Oct 18 |
nicklas |
82 |
%> |
4993 |
02 Oct 18 |
nicklas |
83 |
<div class="messagecontainer note"> |
4993 |
02 Oct 18 |
nicklas |
84 |
There are <%=numDoNotUse%> items marked as DoNotUse. Please verify the publication of the report for those items. |
4993 |
02 Oct 18 |
nicklas |
85 |
</div> |
4993 |
02 Oct 18 |
nicklas |
86 |
<% |
4993 |
02 Oct 18 |
nicklas |
87 |
} |
4993 |
02 Oct 18 |
nicklas |
88 |
%> |
4993 |
02 Oct 18 |
nicklas |
89 |
</td> |
4028 |
26 Jul 16 |
nicklas |
90 |
</tr> |
4028 |
26 Jul 16 |
nicklas |
91 |
</table> |
4028 |
26 Jul 16 |
nicklas |
92 |
|
4028 |
26 Jul 16 |
nicklas |
93 |
</div> |
4028 |
26 Jul 16 |
nicklas |
94 |
</form> |
4028 |
26 Jul 16 |
nicklas |
95 |
|
4028 |
26 Jul 16 |
nicklas |
96 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
4028 |
26 Jul 16 |
nicklas |
97 |
<base:button id="btnOk" title="Ok" /> |
4028 |
26 Jul 16 |
nicklas |
98 |
<base:button id="close" title="Cancel" /> |
4028 |
26 Jul 16 |
nicklas |
99 |
</base:buttongroup> |
4028 |
26 Jul 16 |
nicklas |
100 |
</base:body> |
4028 |
26 Jul 16 |
nicklas |
101 |
</base:page> |
4028 |
26 Jul 16 |
nicklas |
102 |
<% |
4028 |
26 Jul 16 |
nicklas |
103 |
} |
4028 |
26 Jul 16 |
nicklas |
104 |
finally |
4028 |
26 Jul 16 |
nicklas |
105 |
{ |
4028 |
26 Jul 16 |
nicklas |
106 |
if (dc != null) dc.close(); |
4028 |
26 Jul 16 |
nicklas |
107 |
} |
4028 |
26 Jul 16 |
nicklas |
108 |
%> |