/webportal/src/main/webapp/WEB-INF/zul/AddSpecies.zul

http://alageospatialportal.googlecode.com/ · Unknown · 100 lines · 96 code · 4 blank · 0 comment · 0 complexity · 00dbdb976a44110f40e24537a1c1c368 MD5 · raw file

  1. <?variable-resolver class="org.zkoss.spring.DelegatingVariableResolver"?>
  2. <zk>
  3. <window id="addspecieswindow" use="org.ala.spatial.analysis.web.AddSpeciesController"
  4. apply="org.ala.spatial.analysis.web.AddSpeciesController" width="620px" height="700px" xmlns:n="http://www.zkoss.org/2005/zk/native">
  5. <n:div class="fancybox-bg" id="fancybox-bg-ne" />
  6. <n:div class="fancybox-bg" id="fancybox-bg-se" />
  7. <n:div class="fancybox-bg" id="fancybox-bg-sw" />
  8. <n:div class="fancybox-bg" id="fancybox-bg-nw" />
  9. <n:div class="fancybox-bg" id="fancybox-bg-n" />
  10. <n:div class="fancybox-bg" id="fancybox-bg-e" />
  11. <n:div class="fancybox-bg" id="fancybox-bg-s" />
  12. <n:div class="fancybox-bg" id="fancybox-bg-w" />
  13. <a sclass="fancybox-close" onClick="addspecieswindow.onClick$btnCancel(null)" style="display: inline" />
  14. <n:a class="fancybox-help" n:onClick="loadHelp('species-add-to-map')" style="display: inline" />
  15. <caption label="Add species" sclass="caption" />
  16. <separator/>
  17. <div style="margin-left:20px" >
  18. <vbox>
  19. <checkbox id="chkGeoKosherTrue" checked="true" label="Include spatially-valid records" />
  20. <checkbox id="chkGeoKosherFalse" checked="false" label="Include spatially-suspect records" />
  21. </vbox>
  22. <separator/>
  23. <radiogroup id="rgAddSpecies" onOK="addspecieswindow.onClick$btnOk(null)" >
  24. <vbox height="143px">
  25. <radio id ="rAllSpecies" label="All species" />
  26. <radio id="rSearch" label="Search for a species by scientific or common name" />
  27. <vbox id="vboxSearch">
  28. <hbox>
  29. <separator orient="vertical" />
  30. <div id="searchSpeciesACComponent" use="org.ala.spatial.analysis.web.SpeciesAutoCompleteComponent"/>
  31. <!-- <vbox>
  32. <checkbox id="chkUseRawName" checked="false" label="Use the scientific names supplied with the records" />
  33. <combobox id="searchSpeciesAuto" use="org.ala.spatial.analysis.web.SpeciesAutoComplete" autodrop="true"
  34. width="330px" onOK="if(searchSpeciesAuto.getSelectedIndex()>=0)addspecieswindow.onClick$btnOk(null)" focus="true">
  35. <comboitem label=""/>
  36. </combobox>
  37. </vbox> -->
  38. </hbox>
  39. <separator/>
  40. <label sclass="wCaption" value='For example: "Macropus rufus" or "Red Kangaroo"'/>
  41. <separator height="20px"/>
  42. </vbox>
  43. <radio id="rMultiple" label="Create new species list" />
  44. <vbox id="vboxMultiple" visible="false">
  45. <separator />
  46. <label value="Enter scientific names, LSIDs and common names separated by a comma or new line." />
  47. <label value="Use 'Add from search' box to find and add additional species." />
  48. <hbox>
  49. <textbox id="tMultiple" width="380px" height="100px" multiline="true" />
  50. <button id="bMultiple" label="Add"/>
  51. <fileupload label="Upload" id="bSpeciesListUpload" sclass="fUploadButton" />
  52. </hbox>
  53. <separator height="15px"/>
  54. <hbox>
  55. <label value="Add from search" />
  56. <separator orient="vertical" />
  57. <div id="mSearchSpeciesACComponent" use="org.ala.spatial.analysis.web.SpeciesAutoCompleteComponent"/>
  58. <!-- <combobox id="mSearchSpeciesAuto" use="org.ala.spatial.analysis.web.SpeciesAutoComplete" autodrop="true" width="330px" /> -->
  59. </hbox>
  60. <separator />
  61. <separator />
  62. <listbox id="lMultiple" width="590px" height="180px" >
  63. <listhead>
  64. <listheader label="" width="20px" />
  65. <listheader label="scientific name" id="lhSciName" width="250px"/>
  66. <listheader label="family" id="lhFamily" width="100px"></listheader>
  67. <listheader label="kingdom" id="lhKingdom" width="100px" ></listheader>
  68. <listheader label="count" id="lhCount" width="60px" ></listheader>
  69. <listheader label="lsid" id="lhLSID" visible="false"></listheader>
  70. <listheader />
  71. </listhead>
  72. </listbox>
  73. <hbox>
  74. <label id="lblMessage" />
  75. <a id="aMessage" />
  76. </hbox>
  77. <!-- <button id="bAssemblageExport" label="Export set" sclass="goButton" /> -->
  78. <separator height="5px"/>
  79. </vbox>
  80. <radio id ="rUploadLSIDs" label="Use existing species list"/>
  81. <include id="splistbox" src="/WEB-INF/zul/SpeciesListListBox.zul" />
  82. <radio id ="rUploadCoordinates" label="Import points" />
  83. </vbox>
  84. </radiogroup>
  85. <separator height="20px"/>
  86. <checkbox id="chkArea" label="Restrict to an area" visible="false"/>
  87. </div>
  88. <div sclass="wButtons">
  89. <hbox>
  90. <button sclass="goButton" label="Cancel" id="btnCancel"/>
  91. <button sclass="goButton" label="Next" id="btnOk" disabled="true" />
  92. </hbox>
  93. </div>
  94. <separator />
  95. </window>
  96. </zk>