Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_view.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: freedom_view.php,v 1.12 2006/11/22 11:13:30 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/viewfolder.php');
20 // -----------------------------------
21 // -----------------------------------
23 {
24  // -----------------------------------
25  // redirect layout icon if needed
26  $prefview = getHttpvars("view");
27  if ($prefview == "") $prefview = $action->getParam("FREEDOM_VIEW", "list");
28  switch ($prefview) {
29  case "detail":
30  $action->layout = $action->GetLayoutFile("freedom_listdetail.xml");
31  $action->lay = new Layout($action->layout, $action);
32  viewfolder($action, 2);
33  break;
34 
35  case "icon":
36  $action->layout = $action->GetLayoutFile("freedom_icons.xml");
37  $action->lay = new Layout($action->layout, $action);
38  viewfolder($action, false);
39  break;
40 
41  case "column":
42  $action->layout = $action->GetLayoutFile("freedom_column.xml");
43  $action->lay = new Layout($action->layout, $action);
44  viewfolder($action, false, true, true);
45  break;
46 
47  case "rss":
48  $action->layout = $action->GetLayoutFile("freedom_rss.xml");
49  $action->lay = new Layout($action->layout, $action);
50  setHttpVar("xml", 1);
51  header('Content-type: text/xml; charset=utf-8');
52  $action->lay->setEncoding("utf-8");
53  viewfolder($action, false, false);
54  break;
55 
56  default:
57  $action->layout = $action->GetLayoutFile("freedom_list.xml");
58  $action->lay = new Layout($action->layout, $action);
59  viewfolder($action, false);
60  break;
61  }
62 }
63 ?>
← centre documentaire © anakeen - published under CC License - Dynacase