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
generic_editchangecatg.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
* Generated Header (not documented yet)
9
*
10
* @author Anakeen 2000
11
* @version $Id: generic_editchangecatg.php,v 1.10 2005/06/28 08:37:46 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage
15
*/
16
/**
17
*/
18
// ---------------------------------------------------------------
19
// $Id: generic_editchangecatg.php,v 1.10 2005/06/28 08:37:46 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Generic/generic_editchangecatg.php,v $
21
// ---------------------------------------------------------------
22
include_once (
"FDL/Class.Dir.php"
);
23
include_once (
"GENERIC/generic_util.php"
);
24
// -----------------------------------
25
function
generic_editchangecatg
(&
$action
)
26
{
27
// -----------------------------------
28
global
$docid
;
29
global
$dbaccess
;
30
31
$docid =
GetHttpVars
(
"id"
);
// the user to change catg
32
$dbaccess =
$action
->GetParam(
"FREEDOM_DB"
);
33
$homefld =
new_Doc
($dbaccess,
getDefFld
(
$action
));
34
35
$doc
=
new_Doc
($dbaccess, $docid);
36
$action
->lay->Set(
"username"
,
$doc
->title);
37
38
$stree =
getChildCatg
($homefld->id, 1,
true
);
39
40
reset($stree);
41
42
while
(list($k, $v) = each($stree)) {
43
if
(
isInDir
($dbaccess, $v[
"id"
],
$doc
->initid)) $checked =
"checked"
;
44
else
$checked =
""
;
45
$stree[$k][
"checked"
] = $checked;
46
}
47
48
$action
->lay->SetBlockData(
"CATG"
, $stree);
49
$action
->lay->Set(
"topdir"
,
getDefFld
(
$action
));
50
$action
->lay->Set(
"docid"
, $docid);
51
}
52
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase