17 include_once (
"FDL/Lib.Dir.php");
22 $famid = GetHttpVars(
"famid");
26 $famid = $action->GetParam(
"DEFAULT_FAMILY", 1);
29 $action->parent->SetVolatileParam(
"DEFAULT_FAMILY",
$famid);
43 if ($fdoc->dfldid > 0)
return $fdoc->dfldid;
51 $pu = $action->GetParam(
"GENERIC_USORT");
53 $tu = explode(
"|", $pu);
55 foreach ($tu as $k => $v) {
56 list($afamid, $aorder, $sqlorder) = explode(
":", $v);
57 if (!is_numeric($afamid)) {
71 $pu = $action->GetParam(
"GENE_LATESTTXTSEARCH");
73 $tu = explode(
"|", $pu);
74 foreach ($tu as $k => $v) {
75 list($afamid, $aorder) = explode(
":", $v);
76 if ($afamid ==
$famid)
return $aorder;
96 $pu = $action->GetParam(
"GENE_LATESTTXTSEARCH");
100 $tu = explode(
"|", $pu);
102 foreach ($tu as $k => $v) {
103 list($afamid, $uk) = explode(
":", $v);
107 if (trim($key) ==
"") unset($tr[
$famid]);
111 foreach ($tr as $k => $v) {
115 return implode(
"|", $tu);
207 $tu = explode(
",", $pu);
208 foreach ($tu as $k => $v) {
209 list($afamid, $aorder) = explode(
"|", $v);
210 $t[$afamid] = $aorder;
226 $tu = explode(
",", $pu);
227 foreach ($tu as $v) {
228 if (strpos($v,
'|') !==
false) {
229 list($afamid, $aorder) = explode(
"|", $v);
230 if (!is_numeric($afamid)) {
246 $tmode = explode(
",", $action->
getParam($attrid));
248 foreach ($tmode as $k => $v) {
249 $values = explode(
"|", $v);
250 $fid = isset($values[0]) ? $values[0] :
"";
251 $val = isset($values[1]) ? $values[1] :
"";
254 if ((!isset($tview[
$famid])) || $tview[$famid] !=
$value) {
258 foreach ($tview as $k => $v) {
259 if ($k > 0) $tmode[] =
"$k|$v";
261 $pmode = implode(
",", $tmode);
270 $tmode = explode(
",", $action->
getParam($attrid));
273 foreach ($tmode as $k => $v) {
274 list($fid, $val) = explode(
"|", $v);
277 if (isset($tview[
$famid]) && $tview[$famid]) {
278 unset($tview[$famid]);
281 foreach ($tview as $k => $v) {
282 if ($k > 0) $tmode[] =
"$k|$v";
284 $pmode = implode(
",", $tmode);
297 if ($level <= $maxlevel) {
300 if (count(
$ldir) > 0) {
302 foreach (
$ldir as $k => $v) {
303 $ltree[$v[
"id"]] = array(
304 "level" => $level * 20,
306 "doctype" => $v[
"doctype"],
307 "fromid" => $v[
"fromid"],
308 "title" => $v[
"title"]
311 if ($v[
"doctype"] ==
"D") $ltree = $ltree +
getChildCatg($v[
"id"], $level + 1, $notfldsearch, $maxlevel);
322 $child = $fdoc->GetChildFam();
325 ) , array_keys($fdoc->GetChildFam())) ,
"fromid");
getSplitMode(Action &$action, $famid="")
setSplitMode(Action &$action, $famid, $split)
getDefUSort(Action &$action, $def="-revdate", $famid="")
getSqlFrom($dbaccess, $docid)
getDefFld(Action &$action)
setViewMode(&$action, $famid, $view)
getDefFam(Action &$action)
getFamilyParameters(&$action, $key)
getViewMode(Action &$action, $famid="")
deleteFamilyParameter(Action &$action, $famid, $attrid)
getChildDir($dbaccess, $userid, $dirid, $notfldsearch=false, $restype="LIST")
setTabLetter(&$action, $famid, $letter)
getTabLetter(Action &$action, $famid="")
getChildCatg($docid, $level, $notfldsearch=false, $maxlevel=2)
getFamIdFromName($dbaccess, $name)
new_Doc($dbaccess, $id= '', $latest=false)
setUkey(Action &$action, $famid, $key)
getFamilyParameter(&$action, $famid, $key, $def="")
GetSqlCond($Table, $column, $integer=false)
getDefU(Action &$action, $key)
getDefUKey(Action &$action)
getIdFromName($dbaccess, $name)
setInherit(&$action, $famid, $inherit)
getInherit(Action &$action, $famid="")
setFamilyParameter(Action &$action, $famid, $attrid, $value)