Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
generic_changecatg.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_changecatg.php,v 1.8 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_changecatg.php,v 1.8 2005/06/28 08:37:46 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Generic/generic_changecatg.php,v $
21 // ---------------------------------------------------------------
22 include_once ("FDL/modcard.php");
23 
24 include_once ("FDL/Class.Dir.php");
25 include_once ("GENERIC/generic_util.php");
26 // -----------------------------------
28 {
29  // -----------------------------------
30  // special for onefam application
31  // Get all the params
32  $dirids = GetHttpVars("dirid", getDefFld($action));
33  $ndirids = GetHttpVars("ndirid"); // catg to deleted
34  $docid = GetHttpVars("docid"); // the user to change catg
35 
36  $dbaccess = $action->GetParam("FREEDOM_DB");
37 
38  if (is_array($dirids)) {
39  while (list($k, $dirid) = each($dirids)) {
40  $fld = new_Doc($dbaccess, $dirid);
41  $fld->AddFile($docid);
42  }
43  }
44  if (is_array($ndirids)) {
45  while (list($k, $dirid) = each($ndirids)) {
46  $fld = new_Doc($dbaccess, $dirid);
47  $err = $fld->DelFile($docid);
48  }
49  }
50 
51  redirect($action, "FDL", "FDL_CARD&id=$docid");
52 }
53 ?>
← centre documentaire © anakeen - published under CC License - Dynacase