17 include_once (
"FDL/Class.Dir.php");
18 include_once (
"FDL/Class.QueryDir.php");
19 include_once (
"FDL/freedom_util.php");
21 include_once (
"FDL/popup_util.php");
27 $nbdoc = GetHttpVars(
"nbdoc");
29 $dirid = GetHttpVars(
"dirid");
30 $target = GetHttpVars(
"target");
35 $action->lay->set(
"wtarget", urlencode($target));
36 $action->lay->set(
"title",
$dir->getHTMLTitle());
37 $action->lay->set(
"pds",
$dir->urlWhatEncodeSpec(
""));
39 if (is_numeric($count) && $count > $nbdoc) {
40 $nbdocMsg = sprintf(_(
"Showing %d of %d documents") , $nbdoc, $count);
42 $nbdocMsg = sprintf(_(
"Showing %d documents") , $nbdoc);
44 $action->lay->set(
"nbdoc", $nbdocMsg);
46 $action->lay->set(
"nbdoc", sprintf(_(
"Showing %d document") , $nbdoc));
49 $action->lay->set(
"dirid", urlencode(
$dirid));
61 if (
$dir->fromname !=
"ARCHIVING") {
62 include_once (
"FDL/Class.SearchDoc.php");
64 $s->setObjectReturn();
65 $s->addFilter(
"arc_status = 'O'");
67 if (
$s->count() > 0) {
69 if (
$archive->control(
"modify") ==
"") {
73 "archtitle" => sprintf(_(
"Insert all into %s archive") ,
$archive->getHTMLTitle())
78 $action->lay->setBlockdata(
"ARCH", $tarch);
88 foreach ($tarch as $arch) {
89 popupActive(
"toolmenu", 1,
"arch" . $arch[
"archid"]);
109 if (
$dir->initid == 10) {
115 if ($action->HasPermission(
"FREEDOM_ADMIN")) {
118 if ($action->HasPermission(
"EXPORT",
"FDL")) {
getHttpVars($name, $def="", $scope="all")
getFamIdFromName($dbaccess, $name)
new_Doc($dbaccess, $id= '', $latest=false)