Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
freedom_editstate.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Generated Header (not documented yet)
8
*
9
* @author Anakeen
10
* @version $Id: freedom_editstate.php,v 1.5 2005/06/28 08:37:46 eric Exp $
11
* @package FDL
12
* @subpackage GED
13
*/
14
/**
15
*/
16
17
include_once (
"FDL/Class.Doc.php"
);
18
19
function
freedom_editstate
(
Action
&
$action
)
20
{
21
$dbaccess
= $action->dbaccess;
22
$docid
= GetHttpVars(
"id"
, 0);
23
24
$doc
=
new_Doc
(
$dbaccess
,
$docid
);
25
$action->lay->
Set
(
"docid"
,
$doc
->id);
26
$action->lay->
Set
(
"title"
,
$doc
->getHTMLTitle());
27
28
$action->lay->set(
"tablehead"
,
"tableborder"
);
29
30
if
($action->
Read
(
"navigator"
,
""
) ==
"NETSCAPE"
) {
31
if
(preg_match(
"/rv:([0-9.]+).*/"
,
$_SERVER
[
'HTTP_USER_AGENT'
], $reg)) {
32
if
(floatval($reg[1] >= 1.6)) {
33
$action->lay->set(
"tablehead"
,
"tablehead"
);
34
}
35
}
36
}
37
}
$action
global $action
Definition:
accountRefreshGroup.php:16
Action\Set
Set($name, &$parent)
Definition:
Class.Action.php:168
Action
Definition:
Class.Action.php:24
$docid
$docid
Definition:
cleanFamily.php:13
Action\Read
Read($k, $d="")
Definition:
Class.Action.php:234
$_SERVER
global $_SERVER
Definition:
cleanContext.php:41
new_Doc
new_Doc($dbaccess, $id= '', $latest=false)
Definition:
freedom_util.php:119
$dbaccess
$dbaccess
Definition:
checkVault.php:17
$doc
$doc
Definition:
SetDocVaultIndex.php:39
freedom_editstate
freedom_editstate(Action &$action)
Definition:
freedom_editstate.php:19
← centre documentaire
© anakeen