Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
param_ulist.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: param_ulist.php,v 1.2 2003/08/18 15:46:41 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage APPMNG
15  */
16 /**
17  */
18 // ---------------------------------------------------------------
19 // $Id: param_ulist.php,v 1.2 2003/08/18 15:46:41 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/core/Action/Appmng/param_ulist.php,v $
21 // ---------------------------------------------------------------
22 // -----------------------------------
23 function param_ulist(&$action)
24 {
25  // -----------------------------------
26  $userid = GetHttpVars("userid");
27 
28  $action->register("PARAM_ACT", "PARAM_ULIST&userid=$userid");
29  $u = new User();
30  $list = $u->GetUserList("TABLE");
31  // select the wanted user
32  while (list($k, $v) = each($list)) {
33  if ($v["id"] == $userid) $list[$k]["selected"] = "selected";
34  else $list[$k]["selected"] = "";
35  }
36  $action->lay->SetBlockData("SELUSER", $list);
37  return;
38 }
39 ?>
← centre documentaire © anakeen - published under CC License - Dynacase