17 include_once (
"FDL/Class.Doc.php");
23 $dirid = GetHttpVars(
"dirid");
24 $folioid = GetHttpVars(
"folioid");
29 if (
$dir->locked == - 1) {
30 $ldocid =
$dir->getLatestId();
34 include_once (
"FDL/popup_util.php");
45 Popupinvisible(
'popupfolio', $kdiv,
'insertbasket');
46 Popupinvisible(
'popupfolio', $kdiv,
'searchinsert');
47 Popupinvisible(
'popupfolio', $kdiv,
'newdoc');
48 Popupinvisible(
'popupfolio', $kdiv,
'newgc');
49 Popupinvisible(
'popupfolio', $kdiv,
'newsgc');
51 if (
$dir->doctype ==
"D") {
55 Popupactive(
'popupfolio', $kdiv,
'newdoc');
56 if (
$dir->control(
"modify") ==
"") {
57 Popupactive(
'popupfolio', $kdiv,
'insertbasket');
58 Popupactive(
'popupfolio', $kdiv,
'searchinsert');
60 if (!$action->
getParam(
"FREEDOM_IDBASKET")) Popupinvisible(
'popupfolio', $kdiv,
'insertbasket');
62 if (
$dir->usefor !=
"G") {
63 $sub =
$dir->getAuthorizedFamilies();
67 if (!
$dir->hasNoRestriction()) {
68 $keys = array_keys($sub);
70 $insertgc = (in_array(18, $keys));
71 $insertsgc = (in_array(19, $keys));
73 if ($insertgc) popupactive(
'popupfolio', $kdiv,
'newgc');
74 if ($insertsgc) popupactive(
'popupfolio', $kdiv,
'newsgc');
79 if (
$dir->doctype ==
'S') $action->lay->eset(
"dirid", $folioid);
80 else $action->lay->eset(
"dirid",
$dirid);
new_Doc($dbaccess, $id= '', $latest=false)
setFamidInLayout(Action &$action)