9 include_once (
"FDL/Class.Doc.php");
10 include_once (
'FREEDOM/Lib.portfolio.php');
17 $docid = GetHttpVars(
"id", 0);
22 if (!$folio->isAffected()) {
25 $action->lay->rSet(
"docid", (
int)$folio->id);
26 $action->lay->eSet(
"title", $folio->getTitle());
29 $savedTab =
$dir->getFamilyParameterValue(
'pfl_savetab');
30 $savedDispo =
$dir->getFamilyParameterValue(
'pfl_savedispo', 1);
33 $action->lay->eSet(
"FRAMELISTWIDTH",
'180');
34 $action->lay->rSet(
"VIEWSTATE", json_encode(2));
35 $action->lay->rSet(
"TABSELECTED", json_encode(
''));
36 $action->lay->eSet(
"FRAME1",
'&app=FDL&action=FDL_CARD&latest=Y&id=' . $folio->initid);
37 $action->lay->eSet(
"FRAME2",
'&app=FREEDOM&action=FREEDOM_LOGO');
38 $action->lay->eSet(
"FRAMELIST",
'&app=FREEDOM&action=FOLIOLIST&dirid=' . $folio->initid);
41 if (isset($pfctx[
'tabselected'])) {
42 $action->lay->rSet(
"TABSELECTED", json_encode($pfctx[
'tabselected']));
44 if (isset($pfctx[
'framelist'])) {
45 $action->lay->eSet(
"FRAMELIST",
'&app=FREEDOM&action=FOLIOLIST&dirid=' . urlencode($pfctx[
'framelist'][
'dirid']) .
'&folioid=' . urlencode($pfctx[
'framelist'][
'folioid']));
50 if (isset($pfctx[
'framelistwidth'])) {
51 $action->lay->eSet(
"FRAMELISTWIDTH", $pfctx[
'framelistwidth']);
54 if (isset($pfctx[
'viewstate'])) {
55 $action->lay->rSet(
"VIEWSTATE", json_encode($pfctx[
'viewstate']));
57 if (isset($pfctx[
'frame1'])) {
59 if ($doc1->isAlive()) {
60 $action->lay->eSet(
"FRAME1",
'&app=FDL&action=FDL_CARD&latest=Y&id=' . urlencode($pfctx[
'frame1']));
63 if (isset($pfctx[
'frame2'])) {
65 if ($doc2->isAlive()) {
66 $action->lay->eSet(
"FRAME2",
'&app=FDL&action=FDL_CARD&latest=Y&id=' . urlencode($pfctx[
'frame2']));
openfolio(Action &$action)
portfolio_get_context($doc)
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)