aboutsummaryrefslogtreecommitdiff
path: root/index.htm.tmpl
blob: 37728debef4d42ac257c76bf44e67de87d04b7ae (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <link rel="stylesheet" type="text/css" href="https://arf20.com/style.css">
        <title>ARFNET</title>
        <style>
.searchform {
    margin-bottom: 2em;
}

.box {
    margin-bottom: 1em;
    width: 50%;
    min-width: 400px;
    display: block;
}

.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.form-inline label {

}

.form-inline input {
    flex-grow: 1;
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid #ddd;
}

.form-inline button {
    border: none;
}

.label {
    display: inline-block;
    width: 200px;
}

.advanced {
    margin-left: 1em;
}

.collapse-title {
    font-weight: bold;
}

.sort-left {
    display: inline-block;
}

.sort-right {
    display: inline-block;
}

.result-header {
    margin-bottom: 1em;
}

.result {
    margin-left: 1em;
    margin-bottom: 1em;
}

.name {
    font-weight: bold;
    font-size: 16pt;
    margin: 0;
}

.mime {
    font-size: 10pt;
    margin-left: 10pt;
}

.path {
    
}

.attrib {
    float: right;
}

.size {

}

.time {
    margin-left: 2em;
}

.sort-name {
    font-size: 16pt;
    margin: 0;
}

.sort-active {
    font-weight: bold;
}
</style>
    </head>

    <body>
        <header><a href="http://arf20.com">
            <img src="http://arf20.com/arfnet_logo.png" width="64"><span class="title"><strong>ARFNET</strong></span>
        </a></header>
        <hr>
        <main>
            <h2 class="center">Search</h2>
            <p>Search all of the ARFNET content fast</p>
            <form class="searchform" action="/search/query" method="get">
                <div class="box form-inline">
                    <input class="input" type="text" name="q" value="%s">
                    <button type="submit">Search</button><br>
                </div>
                <div>
                    <details class="advanced">
                        <summary class="collapse-title">Advanced</summary>
                        <p>
                            <label class="label">Search type</label>
                            <input type="radio" id="substr" name="t" value="s" %s>
                            <label for="substr">substring</label>
                            <input type="radio" id="substr_nocase" name="t" value="i" %s>
                            <label for="substr_nocase">case insensitive substring</label>
                            <input type="radio" id="exact" name="t" value="e" %s>
                            <label for="exact">exact</label>
                            <input type="radio" id="regex" name="t" value="r" %s>
                            <label for="regex">regex</label>
                        </p>
                        <p>
                            <label class="label" for="mtime_start">Timeframe start</label>
                            <input type="date" id="mtime_start" name="ftl" value="%s"><br>
                        </p>
                        <p>
                            <label class="label" for="mtime_end">Timeframe end</label>
                            <input type="date" id="mtime_end" name="fth" value="%s"><br>
                        </p>
                        <p>
                            <label class="label" for="size_start">Size lower bound</label>
                            <input type="text" id="size_start" name="fsl" value="%s"><br>
                        </p>
                        <p>
                            <label class="label" for="size_end">Size upper bound</label>
                            <input type="text" id="size_end" name="fsh" value="%s"><br>
                        </p>
                    </details>
                </div>
            </form>
            <hr>
            %s
            %s
        </main>
    </body>
</html>