Revert "converting CRLF to LF"
[geo.git] / edit_wp5_web_folder / geo / formularis / boxes_form.html
diff --git a/edit_wp5_web_folder/geo/formularis/boxes_form.html b/edit_wp5_web_folder/geo/formularis/boxes_form.html
new file mode 100644 (file)
index 0000000..3ceb410
--- /dev/null
@@ -0,0 +1,104 @@
+<html xmlns="http://www.w3.org/1999/xhtml" >\r
+  <head>       \r
+        <style type="text/css" media="screen">\r
+           <!--\r
+      BODY { margin: 5px; padding: 0; font: 1em "Trebuchet MS", verdana, arial, sans-serif; }\r
+      BODY { font-size: 70%; }\r
+      H1 { margin-bottom: 2px; font-family: Garamond, "Times New Roman", Times, Serif;font-size: 100%; }\r
+      H2{ margin-bottom: 2px; font-family: Garamond, "Times New Roman", Times, Serif;}\r
+      DIV.selHolder { float: left; border: 2px solid #ccc; margin: 5px; padding: 3px;}\r
+      TEXTAREA { width: 50%;}\r
+      FIELDSET { border: 1px solid #ccc; padding: 1em; margin: 0; }\r
+      LEGEND { color: #ccc; font-size: 70%; }\r
+      INPUT, TEXTAREA { font-family: Arial, verdana; font-size: 125%; padding: 7px; border: 1px solid #999; }\r
+      LABEL { display: block; margin-top: 10px; } \r
+      IMG { margin: 5px; }\r
+      SELECT { margin: 10px; width: 120px; }\r
+    -->\r
+    </style>\r
+    <script type="text/javascript" src="jquery.js"></script>\r
+    <script  type="text/javascript" src="symbology_form.js" charset="utf-8"></script>\r
+    <script type="text/javascript">\r
+\r
+ $(document).ready(function() {\r
\r
+cadena=document.location.search;\r
+c=cadena.split('?');\r
+c2=c[1].split('&');\r
+\r
+userid=c2[0].substring(7,c2[0].length);\r
+p=c2[1].split('_');\r
+p1=p[0].substring(2,c2[1].length);;\r
+p2=p[1];\r
+$("#third h2").text(p1);\r
+$("#fourth h2").text(p2);\r
+\r
+        var cat = $('#genusSelect');\r
+        var el = $('#specieSelect');\r
+        var attr = $('#attributeSelect');\r
+       $(cat).click(function () { \r
+//cat2=$('#genusSelect option:selected');\r
+//     cat2.selects({\r
+//edited by james davy september 8 2010 to re-enable the ability to display species once a genus is selected in the draw box tool\r
+       cat.selects({\r
+            target: el,\r
+            url: 'http://edit.africamuseum.be/edit_wp5/geo/selects/select-chain_2sld_s.php?userid='+userid,\r
+                       type: 'post',\r
+            data: { ajax:true}    \r
+       });\r
+           }); \r
+           }); \r
+       $(function () { \r
+        // note that we're assigning in reverse order\r
+        // to allow the chaining change trigger to work\r
+               var cat = $('#genusSelect');\r
+\r
+        var el = $('#specieSelect');\r
+        var attr = $('#attributeSelect');\r
+        cat.selectChain({\r
+            target: cat,\r
+                       \r
+            url: 'http://edit.africamuseum.be/edit_wp5/geo/selects/select-chain_3sld_s.php?userid='+userid,\r
+                       type: 'post',\r
+            data: { ajax:true}\r
+           }).trigger('change');\r
+    });\r
+       </script>\r
+        </head>\r
+        <body>\r
+               <div id="doc">\r
+       \r
+         <div id="genus_div" style="height: 220px;">\r
+            <h2></h2>\r
+                       <form id="g_form">\r
+            <select multiple id="genusSelect" value="genus" name="genus" size="10">\r
+                <option></option>\r
+            </select>\r
+               \r
+                               <li style="position:relative;left: 100px;top:-180;list-style-type: none;">\r
+                       <ul><input id="submit" type="submit" value="Mark it"/>   </ul>\r
+                       <ul><input id="submit_zoom" type="submit" value="Mark it & zoom"/>      </ul>\r
+                       <ul><input id="remove_mark" type="submit" value="Remove current mark" /> </ul>\r
+                         \r
+                       </li>\r
+                       </form>                 \r
+        </div> \r
+                <div id="species_div">\r
+            <h2></h2>\r
+                       <form id="sp_form">\r
+            <select multiple id="specieSelect" name="species" size="5">\r
+                <option></option>\r
+            </select>  \r
+                       <li style="position:relative;left: 100px;top:-90;list-style-type: none;">\r
+                       <ul><input id="submit" type="submit" value="Mark these Species"/></ul>\r
+                       <ul><input id="submit_zoom" type="submit" value="Mark it & zoom"/></ul>\r
+                       <ul><input id="remove_mark" type="submit" value="Remove current mark" /></ul>   \r
+                       </li>\r
+                       </form>\r
+        </div>\r
+\r
+    </div>\r
+       </div>\r
+       </body>\r
+       </html>\r
+       \r