root/geowiki/edit.php

Revision 9, 3.7 kB (checked in by mikel, 3 years ago)

geowiki initial checkin

Line 
1 <?php
2 $title = "Bangalore Geowiki";
3 $height = "450";
4 $width = "600";
5 $wikiUrl = "http://ctrlw.net/geo/wiki.php/Bangalore/";
6 $rssFile = "rss.xml";
7 $state = 'edit';
8 $configFile = $state . ".xml";
9 ?>
10
11 <html>
12 <head>
13     <title><?php echo $title; ?></title>
14     <link rel="stylesheet" type="text/css" href="geowiki.css">
15     <script language="javascript" src="jsrsClient.js"></script>
16     <script language="javascript" src="geowiki.js"></script>
17 </head>
18
19 <body onLoad="loadActions('<?php echo $state; ?>')">
20
21 <form name="formVars">
22     <input type="hidden" name="rssFile" value="<?php echo $rssFile; ?>">
23     <input type="hidden" name="wikiUrl" value="<?php echo $wikiUrl; ?>">
24     <input type="hidden" name="state" value="<?php echo $state; ?>">
25 </form>   
26
27 <table width="100%">
28     <tr>
29         <td>
30             <span class="headline"><nobr><?php echo $title; ?></nobr></span>
31         </td>
32         <td align="right">
33             <a href="index.php">View</a>
34             &nbsp; | &nbsp;
35             <a href="edit.php">Edit</a>
36             &nbsp; | &nbsp;
37             <a href="index.php?state=data">Visualise</a>
38             &nbsp; || &nbsp;
39             <a href="<?php echo $rssFile; ?>">Data</a>
40             &nbsp; | &nbsp;
41             <a href="history.php#end">History</a>
42         </td>
43     </tr>
44     <tr>
45         <td colspan="2">
46             <hr>
47         </td>
48     </tr>
49     <tr>
50         <td valign="top">
51            
52
53 <object id="worldkit" height="<?php echo $height; ?>" width="<?php echo $width; ?>" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
54     <param value="worldkit.swf?confurl=<?php echo $configFile ?>" name="movie">
55     <param value="high" name="quality">
56     <param value="#000000" name="bgcolor">
57
58     <embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swliveconnect="true" align="" name="worldkit" height="<?php echo $height; ?>" width="<?php echo $width; ?>" bgcolor="#000000" quality="high" src="worldkit.swf?confurl=<?php echo $configFile ?>">
59 </object>
60
61         </td>
62         <td valign="top">
63
64             <div id="divEdit">
65             <a name="form"></a>
66             To add locations to the map, fill in the coordinates and data into the form below. Alternatively, clicks on the map will write the respective coordinates into the field. Fill in as much as you like, nothing is required.
67             <form onsubmit="addItemForm();return false;" name="formEdit">
68                 <table>
69                     <tr>
70                         <td colspan="2"><input id="point" name="geoType" type="radio" checked="checked" value="point">Point</td>
71                     </tr>
72                     <tr>
73                         <td colspan="2"><input id="line" name="geoType" type="radio" value="line">Line</td>
74                     </tr>
75                     <tr>
76                         <td colspan="2"><input id="polygon" name="geoType" type="radio" value="polygon">Polygon</td>
77                     </tr>
78                     <tr>
79                         <td>title</td>
80                         <td><input name="title" size="30"></td>
81                     </tr>
82                     <tr>
83                         <td>description</td>
84                         <td><input name="description" size="30"></td>
85                     </tr>
86                     <tr>
87                         <td>coordinates</td>
88                         <td><textarea name="coordinates" cols="30" rows="4"></textarea></td>
89                     </tr>
90                     <tr>
91                         <td>tags</td><td><input name="tags" size="30"></td>
92                     </tr>
93                     <tr>
94                         <td>user</td><td><input name="user" size="30"></td>
95                     </tr>
96                     <tr>
97                         <td colspan=2>
98                             <input name="submit" value="Submit" type="submit">
99                             <input name="delete" type="button" value="Delete" onclick="delItem(document.formVars.rssFile.value, document.formEdit.title.value)">
100                             <input name="cancel" type="reset" value="Cancel">
101 <!--                            <input name="show" type="button" value="Show" onclick="showTempItem(document.formEdit.coordinates.value)">
102 -->
103                         </td>
104                     </tr>
105                 </table>
106             </form>
107             </div>
108
109         </td>
110     </tr>
111 </table>
112
113
114 <center>
115 <a href="http://brainoff.com/worldkit/"><img border="0" src="http://www.brainoff.com/worldkit/poweredbyworldkit.jpg">
116 </a>
117 </center>
118
119 </body>
120 </html>
121
Note: See TracBrowser for help on using the browser.