PageRenderTime 8ms CodeModel.GetById 6ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/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                
 22            </vbox>
 23            <separator/>
 24            <radiogroup id="rgAddSpecies" onOK="addspecieswindow.onClick$btnOk(null)" >
 25                <vbox height="143px">
 26                    <radio id ="rAllSpecies" label="All species" />
 27                    <radio id="rSearch" label="Search for a species by scientific or common name" />
 28                    <vbox id="vboxSearch">
 29                        <hbox>
 30                            <separator orient="vertical" />
 31                            <div id="searchSpeciesACComponent" use="org.ala.spatial.analysis.web.SpeciesAutoCompleteComponent"/>
 32                            <!-- <vbox>
 33                                <checkbox id="chkUseRawName" checked="false" label="Use the scientific names supplied with the records" />                                
 34                                <combobox id="searchSpeciesAuto" use="org.ala.spatial.analysis.web.SpeciesAutoComplete" autodrop="true"                             
 35                                width="330px" onOK="if(searchSpeciesAuto.getSelectedIndex()>=0)addspecieswindow.onClick$btnOk(null)" focus="true">
 36                                    <comboitem label=""/>
 37                                </combobox> 
 38                            </vbox> -->
 39                        </hbox>
 40                        <separator/>
 41                        <label sclass="wCaption" value='For example: "Macropus rufus" or "Red Kangaroo"'/>
 42                        <separator height="20px"/>
 43                    </vbox>
 44                    <radio id="rMultiple" label="Create new species list" />
 45                    <vbox id="vboxMultiple" visible="false">
 46                        <separator />
 47                        <label value="Enter scientific names, LSIDs and common names separated by a comma or new line." />
 48                        <label value="Use 'Add from search' box to find and add additional species." />
 49                        <hbox>                                                        
 50                            <textbox id="tMultiple" width="380px" height="100px" multiline="true" />
 51                            <button id="bMultiple" label="Add"/>
 52                            <fileupload label="Upload" id="bSpeciesListUpload" sclass="fUploadButton" />
 53                        </hbox>
 54                        <separator height="15px"/>
 55                        <hbox>
 56                            <label value="Add from search" />
 57                            <separator orient="vertical" />
 58                            <div id="mSearchSpeciesACComponent" use="org.ala.spatial.analysis.web.SpeciesAutoCompleteComponent"/>
 59                            <!-- <combobox id="mSearchSpeciesAuto" use="org.ala.spatial.analysis.web.SpeciesAutoComplete" autodrop="true" width="330px" /> -->
 60                        </hbox>
 61                        <separator />
 62                        <separator />     
 63                        <listbox id="lMultiple" width="590px" height="180px" >
 64                            <listhead>
 65                                <listheader label="" width="20px" />
 66                                <listheader label="scientific name" id="lhSciName" width="250px"/>
 67                                <listheader label="family" id="lhFamily" width="100px"></listheader>
 68                                <listheader label="kingdom" id="lhKingdom" width="100px" ></listheader>
 69                                <listheader label="count" id="lhCount" width="60px" ></listheader>
 70                                <listheader label="lsid" id="lhLSID" visible="false"></listheader>
 71                                <listheader />
 72                            </listhead>
 73                        </listbox>
 74                        <hbox>
 75                        	<label id="lblMessage" />
 76                        	<a id="aMessage" />
 77                        </hbox>
 78                        <!-- <button id="bAssemblageExport" label="Export set" sclass="goButton" /> -->
 79                        <separator height="5px"/>
 80                    </vbox>
 81                    
 82                    <radio id ="rUploadLSIDs" label="Use existing species list"/>
 83                    <include id="splistbox" src="/WEB-INF/zul/SpeciesListListBox.zul" />
 84                   
 85                    
 86                    <radio id ="rUploadCoordinates" label="Import points" />
 87                </vbox>
 88            </radiogroup>
 89            <separator height="20px"/>
 90            <checkbox id="chkArea" label="Restrict to an area" visible="false"/>
 91        </div>
 92        <div sclass="wButtons">
 93            <hbox>
 94                <button sclass="goButton" label="Cancel" id="btnCancel"/>
 95                <button sclass="goButton" label="Next" id="btnOk" disabled="true" />
 96            </hbox>
 97        </div>
 98        <separator />
 99    </window>
100</zk>