17 include_once (
"FDL/Class.Doc.php");
28 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/resizeimg.js");
30 if (!
$doc->isAlive()) {
36 $timers =
$doc->getAttachedTimers();
37 foreach ($timers as $k => $v) {
41 $timer = new_doc(
$dbaccess, $v[
"timerid"]);
42 if ($timer->isAlive()) {
43 $iprev = $timer->getPrevisions($v[
"attachdate"], $v[
"tododate"], $v[
"level"]);
44 foreach ($iprev as $pk => $pv) {
45 $iprev[$pk][
"timerid"] = $timer->id;
46 $iprev[$pk][
"timertitle"] = $timer->getHTMLTitle();
48 $prev = array_merge($prev, $iprev);
52 foreach ($prev as $k => $v) {
53 $prev[$k][
"tmaila"] =
"";
54 $prev[$k][
"state"] =
"";
55 $prev[$k][
"method"] =
"";
56 if ($v[
"actions"][
"state"]) $prev[$k][
"state"] = htmlspecialchars(_($v[
"actions"][
"state"]) , ENT_QUOTES);
57 else $prev[$k][
"state"] =
false;
58 if ($v[
"actions"][
"tmail"]) {
59 $prev[$k][
"tmail"] =
true;
60 $prev[$k][
"tmaila"] = $timer->getHtmlValue($timer->getAttribute(
"tm_tmail") , $v[
"actions"][
"tmail"]);
61 }
else $prev[$k][
"tmail"] =
false;
62 if ($v[
"actions"][
"method"]) $prev[$k][
"method"] = htmlspecialchars(($v[
"actions"][
"method"]) , ENT_QUOTES);
63 else $prev[$k][
"method"] =
false;
64 $prev[$k][
"hdelay"] = htmlspecialchars(
humandelay($v[
"execdelay"]) , ENT_QUOTES);
65 $prev[$k][
"oddoreven"] = htmlspecialchars((($k % 2 == 0) ?
"even" :
"odd") , ENT_QUOTES);
68 usort($prev,
"sortprevision");
69 $action->lay->setBlockData(
"PREV", $prev);
70 $action->lay->rSet(
"docid",
$doc->id);
71 $action->lay->eSet(
"iconsrc",
$doc->getIcon());
72 $action->lay->eSet(
"doctitle",
$doc->getTitle());
73 $action->lay->rSet(
"szone", $szone);
78 if (
$a[
"execdelay"] > $b[
"execdelay"])
return 1;
79 elseif (
$a[
"execdelay"] < $b[
"execdelay"])
return -1;
88 if ($j > 1)
$s.= sprintf(_(
"%d days") , $j);
89 else $s.= sprintf(_(
"%d day") , $j);
97 if ($j > 1)
$s.= sprintf(_(
"%d hours") , $j);
98 else $s.= sprintf(_(
"%d hour") , $j);
105 if ($j > 1)
$s.= sprintf(_(
"%d minutes") , $j);
106 else $s.= sprintf(_(
"%d minute") , $j);
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
exitError($texterr, $exit=true, $code="")
getHttpVars($name, $def="", $scope="all")
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err