~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/dataBrowserForm.vm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<h3>$i18n.getString( "data_browser" )</h3>
 
3
 
 
4
<form method="post" action="searchResult.action" onsubmit="return validate()">
 
5
        
 
6
<table>
 
7
        <tr>
 
8
                <th colspan="2">$i18n.getString( "period_type" )</th>
 
9
        </tr>
 
10
        <tr>
 
11
                <td colspan="2">
 
12
                        <select id="periodTypeId" name="periodTypeId" style="min-width:325px">
 
13
                                <option value="null">[ $i18n.getString( "select_period_type" ) ]</option>
 
14
                                #foreach ( $type in $periodTypes )
 
15
                                        <option value="$type.name"#if( $currentPeriodTypeId == $type.name ) selected="selected"#end>$type.name</option>
 
16
                                #end
 
17
                        </select>
 
18
                </td>
 
19
        </tr>  
 
20
    <tr>
 
21
        <td colspan="2" style="height:10px"></td>
 
22
    </tr>
 
23
        
 
24
        <tr>
 
25
                <th>$i18n.getString( "from_date" )</th>
 
26
                <th>$i18n.getString( "to_date" )</th>
 
27
        </tr>
 
28
        <tr>
 
29
                <td>
 
30
                        <input type="text" id="fromDate" name="fromDate">
 
31
                        <img src="../images/calendar_icon.gif" width="16" height="16" id="getDateFieldFrom" cursor: pointer;" title="$i18n.getString( "date_selector" )" onmouseover="this.style.background='orange';" onmouseout="this.style.background=''">
 
32
                </td>
 
33
                <td>
 
34
                        <input type="text" id="toDate" name="toDate">   
 
35
                        <img src="../images/calendar_icon.gif" width="16" height="16" id="getDateFieldTo" cursor: pointer;" title="$i18n.getString( "date_selector" )" onmouseover="this.style.background='orange';" onmouseout="this.style.background=''">                     
 
36
                </td>
 
37
        </tr>  
 
38
    <tr>
 
39
        <td colspan="2" style="height:10px"></td>
 
40
    </tr>
 
41
        
 
42
        <tr>
 
43
                <th colspan="2">$i18n.getString( "browse_by" )</th>
 
44
        </tr>
 
45
        <tr>
 
46
                <td colspan="2">
 
47
                        <select id="searchOption" name="searchOption" style="min-width:325px" onChange="modeHandler()">
 
48
                                <option value ="null">[ $i18n.getString( "select_mode" ) ]</option>
 
49
                                <option value ="DataSet">$i18n.getString( "data_sets" )</option>
 
50
                                <option value ="OrganisationUnit">$i18n.getString( "organisation_units" )</option>
 
51
                        </select>
 
52
                </td>
 
53
        </tr>   
 
54
</table>
 
55
 
 
56
<div id="treeSection" style="display:none">     
 
57
        <table>         
 
58
            <tr>
 
59
                <td style="height:15px; min-width:325px;"></td>
 
60
            </tr>
 
61
                <tr>
 
62
                        <th>$i18n.getString( "select_parent_organisation_unit" )</th>
 
63
                </tr>
 
64
                <tr>
 
65
                        <td>
 
66
                                #parse( "/dhis-web-commons/ouwt/orgunittree.vm" )
 
67
                        </td>
 
68
                </tr>           
 
69
        </table>
 
70
</div>
 
71
 
 
72
<table>
 
73
        <tr>
 
74
                <td>
 
75
                        <input type="submit" value="$i18n.getString( 'browse' )" style="width:120px">           
 
76
                </td>
 
77
        </tr>
 
78
</table>        
 
79
 
 
80
<span id="message"></span>
 
81
 
 
82
<script type="text/javascript">
 
83
    Calendar.setup({
 
84
        inputField     :    "fromDate",      // id of the input field
 
85
        ifFormat       :    "$i18n.getString("format.date.label")",       // format of the input field
 
86
        button         :    "getDateFieldFrom"   // trigger for the calendar (button ID)
 
87
    });
 
88
</script>
 
89
<script type="text/javascript">
 
90
    Calendar.setup({
 
91
        inputField     :    "toDate",      // id of the input field
 
92
        ifFormat       :    "$i18n.getString("format.date.label")",       // format of the input field
 
93
        button         :    "getDateFieldTo"   // trigger for the calendar (button ID)
 
94
    });
 
95
</script>
 
96
 
 
97
</form>