adv_search_page

NAML documentation   Watch a video
   Usages of this macro
... in adv_search.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<macro name="adv_search_page" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.catch_exception
Binary
Namespace: BasicNamespace
Parameters: id, do
. id="set-block">
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
                <then>
                    <n.redirect_to
Binary
Namespace: ServletNamespace
Parameters: url
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.>
                        <n.search_path
Macro
Requires: node
Parameters: author, query, days, index_record, sort
>
                            <query>
                                <n.compress
Macro
Parameters: text
.>
                                    <n.set_message_text_contains_group
Macro
/>
                                    <n.set_message_subject_contains_group
Macro
/>
                                    <n.set_author_name_group
Macro
/>
                                    <n.set_any_message_part_contains_group
Macro
/>
                                </n.compress.>
                            </query>
                            <days>
                                <n.get_int
Binary
Namespace: NabbleNamespace
Parameters: exception, default, int
. default="0" exception="days_field_not_integer">
                                    <n.get_parameter
Binary
Namespace: RequestNamespace
Parameters: name
 name="days" />
                                </n.get_int.>
                            </days>
                        </n.search_path>
                    </n.redirect_to.page_node.>
                </then>
            </n.if.is_submitted_form>
        </n.catch_exception.>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <meta name="robots" content="noindex,nofollow"/>
                <n.title
Macro
Parameters: text
.><t>Advanced Search</t></n.title.>
                <style type="text/css">
                    div.group-header {
                        padding: .2em;
                        margin-top:1em;
                        font-size: 120%;
                        font-weight: bold;
                    }
                    td.form-label {
                        white-space: nowrap;
                    }
                </style>
            </head>
            <body>
                <n.adv_search_exceptions
Macro
/>
                <h1><t>Advanced Search</t></h1>
 
                <p><t>Use the options below to precisely specify your search criteria.</t></p>
 
                <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                    <table class="advanced-search-table">
                        <n.message_text_contains_group
Macro
/>
                        <n.message_subject_contains_group
Macro
/>
                        <n.author_name_group
Macro
/>
                        <n.any_message_part_contains_group
Macro
/>
                        <n.message_date_group
Macro
/>
                        <n.submit_button
Macro
/>
                    </table>
                </n.form.>
            </body>
        </n.html>
    </n.node_page.>
</macro>