17 include_once (
'FREEDOM/freedom_view.php');
18 include_once (
'FREEDOM/Lib.portfolio.php');
28 $dirid = GetHttpVars(
"dirid");
29 $folioid = GetHttpVars(
"folioid");
30 $refreshtab = (GetHttpVars(
"refreshtab",
"N") ==
"Y");
31 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/resizeimg.js");
34 if ((
$dirid == $folioid) || ($folioid == 0)) {
39 if ((
$dir->doctype ==
'S')) {
40 if (
$dir->usefor ==
'G') {
46 $dir->setValue(
"SE_IDFLD", $folioid);
47 $dir->setValue(
"SE_SUBLEVEL",
"1");
48 $dir->setValue(
"SE_ORDERBY",
"title");
59 if (($folioid > 0) && (
$dir->getRawValue(
"SE_IDCFLD") != $folioid)) {
60 $dir->setValue(
"SE_IDCFLD", $folioid);
61 $dir->setValue(
"SE_ORDERBY",
"title");
73 $action->lay->set(
"LISTICON", $pfctx[
'listtype'] ==
'icon');
79 $action->lay->set(
"docid",
$dir->initid);
81 $action->lay->set(
"FRAMELISTWIDTH",
'180');
82 if (isset($pfctx[
'framelistwidth'])) {
83 $action->lay->set(
"FRAMELISTWIDTH", $pfctx[
'framelistwidth']);
86 setHttpVar(
"sqlorder",
"title");
87 $action->parent->SetVolatileParam(
"FREEDOM_VIEW",
"icon");
89 if ($nbdoc > 1) $action->lay->set(
"docs", _(
"documents"));
90 else $action->lay->set(
"docs", _(
"document"));
92 $action->lay->set(
"refreshtab", $refreshtab);
portfolio_get_context($doc)
viewfolder(Action &$action, $with_abstract=false, $with_popup=true, $column=false, $slice="-", $sqlfilters=array(), $famid="", $paginationType="none")
new_Doc($dbaccess, $id= '', $latest=false)
foliolist(Action &$action)