download-ddr.swp 1.5 KB
<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>
		
	</head>
	<body>
	
		<rhswp:Header />
	
		<h3>Download a Daily Drilling Report</h3>
		<form action="ddrFileDownload">
		
			Well Bore:<br />
			<select size="15">
				<ui:forEach ui:resultSet="{#
						SELECT ?well ?wellName
						WHERE {
							GRAPH &lt;https://www.reportinghub.no/data/npd&gt; {
								?well a npd:Well .
								?well npd:name ?wellName .
							}
						} ORDER BY ?wellName
					}">
					<optgroup label="{= ?wellName }">
						<ui:forEach ui:resultSet="{#
								SELECT ?wellBore ?wellBoreName
								WHERE {
									GRAPH &lt;https://www.reportinghub.no/data/npd&gt; {
										?wellBore npd:partOfWell ?well .
										?wellBore npd:name ?wellBoreName .
									}
								} ORDER By ?wellBoreName
							}">
							<option value="{= xsd:string(?wellBore) }">{= ?wellBoreName }</option>
						</ui:forEach>
					</optgroup>
				</ui:forEach>
			</select>
			<br /><br />
		
			Date: <input type="text" id="datepicker" />
			<script>
				$(function() {
					$("#datepicker").datepicker();
				});
			</script>
			&nbsp;
			<input type="submit" value="Download" />			
		</form>
	</body>
</html>