source: cows/branches/migrate-py26-pylons10/cows/pylons/project_templates/cows_server/+package+/templates/demo.html @ 7492

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/branches/migrate-py26-pylons10/cows/pylons/project_templates/cows_server/+package+/templates/demo.html@7492
Revision 7492, 1.0 KB checked in by astephen, 9 years ago (diff)

Replaced use of "routes.url_for" function with the global "pylons.url"
function for compatibility with pylons 1.0.

Line 
1<?xml version="1.0"?>
2
3<html xmlns:py="http://genshi.edgewall.org/" 
4      xmlns="http://www.w3.org/1999/xhtml">
5
6<?python
7
8import pylons
9
10?>
11
12<head>
13<title>Demo Map page for ${c.fcName}</title>
14
15<script src="http://www.openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
16
17<script src="${pylons.url('/demo.js', qualified=True)}" type="text/javascript"></script>
18
19<script type="text/javascript">
20var fcURL = "${pylons.url(controller='csmlwms', fileoruri=c.fcName)}";
21</script>
22
23<style type="text/css">
24
25DIV#map {
26    width: 520px;
27    height: 260px;
28    background=color: white;
29    margin: 1px;
30    border: 1px solid #222277;
31}
32
33DIV#panel {
34    border: 2px solid red;
35}
36
37</style>
38
39</head>
40
41<body onload="init()">
42 
43  <h1>Demo Map page for ${c.fcName}</h1>
44 
45
46  <div id="map"/>
47  <div id="panel"/>
48
49  <h2>Features Available</h2>
50 
51  <select name="feature" onchange="setLayer(this.value)">
52    <option value="">Unset</option>
53    <option py:for="f_id in c.featureCollection.getFeatureList()">${f_id}</option>
54  </select>
55</body>
56
57</html>
Note: See TracBrowser for help on using the repository browser.