35 foreach ($dids as $k => $v) $max = ($v > $max ? $v : $max);
44 setHttpVar(
"fid", $this->
id);
46 $this->lay->set(
"viewall", (
$start == - 1 ?
true :
false));
48 $action->parent->AddCssRef(
"FDL:forum.css",
true);
49 $action->parent->AddJsRef(
"FDL:forum.js",
true);
50 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FDC/Layout/inserthtml.js");
53 foreach ($entries as $k => $v) {
61 $this->lay->setBlockData(
"entry_list", $el);
62 $this->lay->set(
"title", $this->
getTitle());
63 $this->lay->set(
"opened", $this->
canAnswer());
64 $this->lay->set(
"docid", $this->
getValue(
"forum_docid"));
77 $t_lid = $this->
getTValue(
"forum_d_link");
78 $t_userid = $this->
getTValue(
"forum_d_userid");
79 $t_user = $this->
getTValue(
"forum_d_user");
80 $t_mail = $this->
getTValue(
"forum_d_usermail");
81 $t_text = $this->
getTValue(
"forum_d_text");
82 $t_flag = $this->
getTValue(
"forum_d_flag");
83 $t_date = $this->
getTValue(
"forum_d_date");
85 $this->deleteValue(
"forum_d_id");
86 $this->deleteValue(
"forum_d_link");
87 $this->deleteValue(
"forum_d_userid");
88 $this->deleteValue(
"forum_d_user");
89 $this->deleteValue(
"forum_d_usermail");
90 $this->deleteValue(
"forum_d_text");
91 $this->deleteValue(
"forum_d_flag");
92 $this->deleteValue(
"forum_d_date");
104 foreach ($t_id as $k => $v) {
105 if (!in_array($v, $le)) {
107 $nt_id[$nc] = $t_id[$k];
108 $nt_lid[$nc] = $t_lid[$k];
109 $nt_userid[$nc] = $t_userid[$k];
110 $nt_user[$nc] = $t_user[$k];
111 $nt_mail[$nc] = $t_mail[$k];
112 $nt_text[$nc] = $t_text[$k];
113 $nt_flag[$nc] = $t_flag[$k];
114 $nt_date[$nc] = $t_date[$k];
122 $this->setValue(
"forum_d_id", $nt_id);
123 $this->setValue(
"forum_d_link", $nt_lid);
124 $this->setValue(
"forum_d_userid", $nt_userid);
125 $this->setValue(
"forum_d_user", $nt_user);
126 $this->setValue(
"forum_d_usermail", $nt_usermail);
127 $this->setValue(
"forum_d_text", $nt_text);
128 $this->setValue(
"forum_d_flag", $nt_flag);
129 $this->setValue(
"forum_d_date", $nt_date);
150 foreach ($lentries[$top][
"next"] as $k => $v) {
152 $le[count($le) ] = $v;
161 static $elist =
false;
163 if ($elist !==
false)
return $elist;
169 $t_lid = $this->
getTValue(
"forum_d_link");
170 $t_userid = $this->
getTValue(
"forum_d_userid");
171 $t_user = $this->
getTValue(
"forum_d_user");
172 $t_mail = $this->
getTValue(
"forum_d_usermail");
173 $t_text = $this->
getTValue(
"forum_d_text");
174 $t_flag = $this->
getTValue(
"forum_d_flag");
175 $t_date = $this->
getTValue(
"forum_d_date");
178 foreach ($t_id as $k => $v) {
183 foreach ($t_id as $ki => $vi) {
184 if ($t_lid[$ki] == $v) $next[] = $vi;
185 if ($vi == $t_lid[$k]) $prev = $vi;
193 "whoid" => $t_userid[$k],
194 "who" => $t_user[$k],
195 "mail" => $t_mail[$k],
196 "havemail" => ($t_mail[$k] ==
"" ?
false :
true) ,
197 "content" => nl2br($t_text[$k]) ,
198 "date" => $t_date[$k],
199 "flag" => $t_flag[$k],
200 "editable" => ($this->locked != - 1 && count($next) == 0 && $fopened && $action->user->fid == $t_userid[$k] ?
true :
false) ,
201 "opened" => $fopened,
210 if (
$doc ===
false) {
213 if (intval(
$doc->forumid) < 0)
return false;
214 if ($this->locked != - 1 && (
$doc->Control(
"forum") ==
"" ||
$doc->Control(
"edit") ==
""))
return true;