20 include_once (
"FDL/Class.Doc.php");
27 $docid = GetHttpVars(
"id");
28 $abstract = (GetHttpVars(
"abstract",
'N') ==
"Y");
29 $headers = (GetHttpVars(
"head",
'no') ==
"yes");
34 $action->lay->
Set(
"id",
$doc->id);
36 include_once (
"FDL/popup_util.php");
51 $clf = (
$doc->CanLockFile() ==
"");
52 $cuf = (
$doc->CanUnLockFile() ==
"");
53 $cud = (
$doc->canEdit() ==
"");
55 Popupactive(
'popupcard', $kdiv,
'cancel');
57 if (
$doc->isLocked()) {
58 if ($cuf)
popupActive(
'popupcard', $kdiv,
'unlockdoc');
66 if (
$doc->locked == - 1) {
74 $action->lay->eSet(
"deltitle",
$doc->getTitle());
88 if (count($wdoc->GetFollowingStates()) > 0)
popupActive(
'popupcard', $kdiv,
'editstate');
93 if ($abstract)
popupActive(
'popupcard', $kdiv,
'properties');
96 else Popupactive(
'popupcard', $kdiv,
'headers');
new_Doc($dbaccess, $id= '', $latest=false)