/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to setups/katrin/modules/katrinfilter.php

  • Committer: Suren A. Chilingaryan
  • Date: 2012-02-07 22:44:15 UTC
  • Revision ID: csa@dside.dyndns.org-20120207224415-sy360wa1ammhd1ph
Use localization subsystem, updated Katrin configs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
// Author: Sebastian Voecking <sebastian.voecking@uni-muenster.de>
3
 
 
4
 
$katrinfilter_title = _("Filter");
5
 
 
6
 
function katrinfilterJS()
7
 
{
8
 
?>
9
 
    date_search = "";
10
 
 
11
 
    function load_dates(search)
12
 
    {
13
 
        props = "target=dates&search=" + search;
14
 
        dates_tree.loadXML(adei.GetServiceURL("katrin", props));
15
 
        dates_tree.setDataMode("xml");
16
 
        date_search = search;
17
 
    }
18
 
 
19
 
    function set_date_search(search)
20
 
    {
21
 
        if (search != date_search) {
22
 
            load_dates(search);
23
 
        }
24
 
    }
25
 
 
26
 
    var dates_tree = new dhtmlXTreeObject("katrin_filter_div", "100%", "100%", 0);
27
 
    load_dates("");
28
 
    dates_tree.enableTreeLines(true);
29
 
    if (adei.cfg.dhtmlx_iconset) {
30
 
    dates_tree.setImagePath(adei.cfg.dhtmlx_iconset);
31
 
    }
32
 
    dates_tree.attachEvent("onSelect", function(id) {adei.SetCustomProperties("page=1&date=" + id);});
33
 
<?php
34
 
}
35
 
 
36
 
function katrinfilterPage()
37
 
{
38
 
?>
39
 
<h4>Filter by parameters</h4>
40
 
<form name="form" onsubmit="return false">
41
 
<input name="filter" type="text" size="30" />
42
 
<input type="submit" value="Apply" onclick="katrin.SetCustomProperties('filter=' + encodeURIComponent(document.form.filter.value))"/>
43
 
</form>
44
 
 
45
 
<h4>Filter by date</h4>
46
 
<div id="katrin_filter_div"></div>
47
 
<?php
48
 
}
49
 
?>
 
 
b'\\ No newline at end of file'