Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
stylelist.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: stylelist.php,v 1.3 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: stylelist.php,v 1.3 2003/08/18 15:46:41 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/core/Action/Appmng/stylelist.php,v $
21 // ---------------------------------------------------------------
22 // $Log: stylelist.php,v $
23 // Revision 1.3 2003/08/18 15:46:41 eric
24 // phpdoc
25 //
26 // Revision 1.2 2002/05/27 14:51:30 eric
27 // ajout gestion des styles
28 //
29 // Revision 1.1 2002/01/08 12:41:33 eric
30 // first
31 //
32 // Revision 1.3 2001/10/11 13:59:07 eric
33 // mise à jour pour libwhat 0.4.8
34 //
35 // Revision 1.2 2001/02/26 16:57:14 yannick
36 // remove tablelayout bug
37 //
38 // Revision 1.1 2001/01/29 15:50:59 marianne
39 // prise en compte de la gestion des parametres
40 //
41 // ---------------------------------------------------------------
42 include_once ("Class.Param.php");
43 // -----------------------------------
44 function stylelist(&$action)
45 {
46  // -----------------------------------
47  $styleid = GetHttpVars("styleid");
48 
49  $action->register("PARAM_ACT", "STYLELIST&styleid=$styleid");
50 
51  $query = new QueryDb($action->dbaccess, "Style");
52  $list = $query->Query(0, 0, "TABLE");
53  // select the wanted style
54  while (list($k, $v) = each($list)) {
55  if ($v["name"] == $styleid) $list[$k]["selected"] = "selected";
56  else $list[$k]["selected"] = "";
57  }
58  $action->lay->SetBlockData("SELSTYLE", $list);
59  return;
60 }
61 ?>
← centre documentaire © anakeen - published under CC License - Dynacase