Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
fulleditdsearch.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* Full Text Search document
9
*
10
* @author Anakeen 2007
11
* @version $Id: fulleditdsearch.php,v 1.1 2007/10/17 14:27:28 marc Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage GED
15
*/
16
/**
17
*/
18
19
include_once (
"FDL/Class.Dir.php"
);
20
include_once (
"FDL/Lib.Dir.php"
);
21
include_once (
"FDL/freedom_util.php"
);
22
/**
23
* Interface Fulltext Detailled Search document
24
* @param Action &$action current action
25
* @global keyword Http var : word to search in any values
26
* @global famid Http var : restrict to this family identioficator
27
* @global start Http var : page number
28
* @global dirid Http var : search identificator
29
*/
30
function
fulleditdsearch
(&
$action
)
31
{
32
33
$famid
=
$action
->getArgument(
"famid"
, 0);
34
$substitute = (
$action
->getArgument(
"substitute"
) ==
"yes"
);
35
36
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
37
if
(!is_numeric(
$famid
))
$famid
=
getFamIdFromName
(
$dbaccess
,
$famid
);
38
if
(
$famid
== 0)
$famid
= 7;
// FILE family
39
$action
->lay->set(
"searchtitle"
, _(
"detailled search"
));
40
$action
->lay->set(
"substitute"
, $substitute);
41
42
$tclassdoc =
GetClassesDoc
(
$dbaccess
,
$action
->user->id, array(
43
1,
44
2
45
) ,
"TABLE"
);
46
foreach
($tclassdoc as $k => $cdoc) {
47
$selectclass[$k][
"idcdoc"
] = $cdoc[
"initid"
];
48
$selectclass[$k][
"classname"
] = $cdoc[
"title"
];
49
$selectclass[$k][
"famselect"
] = ($cdoc[
"initid"
] ==
$famid
) ?
"selected"
:
""
;
50
}
51
$action
->lay->SetBlockData(
"SELECTFAM"
, $selectclass);
52
53
if
(
$famid
> 0) {
54
$search =
createTmpDoc
(
$dbaccess
, 16);
55
56
$search->setValue(
"se_famid"
,
$famid
);
57
$search->setValue(
"se_latest"
,
"yes"
);
58
$search->lay =
$action
->lay;
59
$search->editdsearch();
60
61
$fdoc
= new_doc(
$dbaccess
,
$famid
);
62
$action
->lay->set(
"famicon"
,
$fdoc
->getIcon());
63
$action
->lay->set(
"famid"
,
$fdoc
->id);
64
}
65
}
66
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase