17 require_once
"FDL/Lib.Dir.php";
19 require_once
"FDL/freedom_util.php";
20 require_once
"GENERIC/generic_util.php";
21 require_once
"GENERIC/generic_list.php";
26 $dirid = GetHttpVars(
"catg", -1);
27 $tab = GetHttpVars(
"tab", 1);
33 $action->
exitError(_(
"cookies seem to be blocked"));
49 if (!
$dir->isAlive() ||
$dir->control(
"execute") !=
'') {
55 if ($fdoc->cfldid > 0) {
76 if (
$dir->defDoctype ==
'S') {
81 if ((
$err =
$dir->Control($aclctrl)) !=
"") {
85 if ((
$dir->defDoctype ==
'S') && ($tab == 0)) {
87 setHttpVar(
"dirid",
$dir->initid);
88 setHttpVar(
"sapp", $action->
getParam(
"APPNAME",
"GENERIC"));
89 setHttpVar(
"saction", urlencode(
"GENERIC_LIST&famid=$famid"));
90 setHttpVar(
"sid",
"dirid");
91 setHttpVar(
"id",
$dir->initid);
97 if (
$dir->id == $fdoc->dfldid) {
98 $sdoc->title = sprintf(_(
"%s all of %s") , $tabletter[$tab], $fdoc->getHTMLTitle());
102 $sdoc->title = sprintf(
"%s %s ", $tabletter[$tab],
$dir->title);
106 $sdoc->setValue(
'se_famid',
$famid);
110 if ($tabletter[$tab] !=
"") {
111 $sqlfilter[] =
"title ~* '^[" . $tabletter[$tab] .
"].*'";
120 setHttpVar(
"tab", $tab);
121 if (!$emptyfld) setHttpVar(
"dirid", $sdoc->id);
122 setHttpVar(
"catg",
$dirid);
getSqlSearchDoc($dbaccess, $dirid, $fromid, $sqlfilters=array(), $distinct=false, $latest=true, $trash="", $simplesearch=false, $folderRecursiveLevel=2, $join= '', $only="")
generic_tab(Action &$action)
getDefFam(Action &$action)
exitError($texterr, $exit=true, $code="")
getFamIdFromName($dbaccess, $name)
new_Doc($dbaccess, $id= '', $latest=false)
getDefU(Action &$action, $key)
if(($docid!==0)&&(!is_numeric($docid))) $query
getIdFromName($dbaccess, $name)
createTmpDoc($dbaccess, $fromid, $defaultvalue=true)
getInherit(Action &$action, $famid="")
if($file) if($subject==""&&$file) if($subject=="") $err