download-ddr.swp
2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<html xmlns:npd="http://www.reportinghub.no/schema/npd#">
<head>
<title>ReportingHub - Download DDR</title>
<link rel="stylesheet" type="text/css" href="lib/rh/rh.css" />
<link rel="stylesheet" type="text/css" href="lib/rh/jquery/jquery-ui.css" />
<script type="text/javascript" src="lib/rh/jquery/jquery.js"></script>
<script type="text/javascript" src="lib/rh/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="lib/rh/js/rh.js"></script>
<script>
function updateWellBores() {
// Updates the content of the well bores list based on selected well
$("#wellSelect option:selected").each(function() {
updateSelect('#wellBoreSelect', '{= rhspin:GetWellBoresOfWell }', { well: $(this).val() });
});
}
</script>
</head>
<body>
<div id="wrapper">
<rhswp:Header />
<div id="content">
<h3>Download a Daily Drilling Report</h3>
<form action="ddrFileDownload">
<table>
<tr>
<td style="vertical-align: top">
<div class="formHeader">1. Select Well:</div>
<select size="10" id="wellSelect" style="width: 200px">
<ui:forEach ui:resultSet="{#
SELECT ?well ?wellName
WHERE {
GRAPH <https://www.reportinghub.no/data/npd> {
?well a npd:Well .
?well npd:name ?wellName .
}
} ORDER BY ?wellName
}">
<option value="{= ?well }">{= ?wellName }</option>
</ui:forEach>
</select>
<script>
$('#wellSelect').change(function() {
updateWellBores();
});
</script>
</td>
<td></td>
<td style="padding-left:20px; vertical-align: top">
<div>
<div class="formHeader">2. Select Well Bore:</div>
<select size="5" id="wellBoreSelect" style="width:200px">
</select>
</div><br />
<div>
<div class="formHeader">3. Select Date:</div><input type="text" id="datepicker" />
<script>
$(function() {
$("#datepicker").datepicker();
});
</script>
<input type="submit" value="Download" />
</div>
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>