34 $tcomment = $this->getTvalue(
"PIT_COM");
35 $tuser = $this->getTvalue(
"PIT_USER");
36 $tdate = $this->getTvalue(
"PIT_DATE");
37 $tcolor = $this->getTvalue(
"PIT_COLOR");
39 $nbcar = strlen($this->getvalue(
"PIT_COM"));
43 $tlaycomment = array();
44 while (list($k, $v) = each($tcomment)) {
45 $tlaycomment[] = array(
49 "color" => $tcolor[$k]
53 $this->lay->set(
"EMPTY", count($tcomment) == 0);
56 $this->lay->SetBlockData(
"TEXT", $tlaycomment);
65 return sprintf(_(
"postit of %s") , $this->
getTitle(
$s));
72 if (intval(
$doc->postitid) == 0) {
73 $doc->disableEditControl();
76 $doc->enableEditControl();
85 $tiduser = $this->
getTValue(
"PIT_IDUSER");
88 foreach ($tcom as $k => $v) {
100 $tcolor[$nk] = $this->
getValue(
"PIT_NCOLOR");
102 $this->setValue(
"PIT_COM", $tcom);
103 $this->setValue(
"PIT_DATE", $tdate);
104 $this->setValue(
"PIT_IDUSER", $tiduser);
105 $this->setValue(
"PIT_COLOR", $tcolor);
106 $this->deleteValue(
"PIT_NCOLOR");
107 $this->deleteValue(
"PIT_NCOM");
117 if (intval(
$doc->postitid) > 0) {
118 $doc->disableEditControl();
121 $doc->enableEditControl();
129 $tcomment = $this->
getValue(
"PIT_NCOM");
130 if ($tcomment ==
"")
return (_(
"no message : post-it creation aborted"));