23 function viewpostit($target =
"_self", $ulink =
true, $abstract =
false)
32 if ($nbcar < 60) $fontsize = 120;
33 elseif ($nbcar < 200) $fontsize = 100;
35 $tlaycomment = array();
36 foreach ($tcomment as $k => $v) {
37 $tlaycomment[] = array(
39 "user" => str_replace(array(
45 ) , htmlspecialchars($tuser[$k], ENT_QUOTES)) ,
47 "color" => htmlspecialchars($tcolor[$k], ENT_QUOTES)
51 $this->lay->rSet(
"EMPTY", (
bool)(count($tcomment) == 0));
52 $this->lay->rSet(
"fontsize", (
int)$fontsize);
54 $this->lay->SetBlockData(
"TEXT", $tlaycomment);
67 return sprintf(_(
"postit of %s") , $this->
getTitle(
$s));
74 if (intval(
$doc->postitid) == 0) {
75 $doc->disableEditControl();
78 $doc->enableEditControl();
90 foreach ($tcom as $k => $v) {
100 $tdate[$nk] = $this->
getDate();
105 $this->
setValue(
"PIT_DATE", $tdate);
106 $this->
setValue(
"PIT_IDUSER", $tiduser);
107 $this->
setValue(
"PIT_COLOR", $tcolor);
119 if (intval(
$doc->postitid) > 0) {
120 $doc->disableEditControl();
123 $doc->enableEditControl();
132 if ($tcomment ==
"")
return (_(
"no message : post-it creation aborted"));
& getAttribute($idAttr, &$oa=null, $useMask=true)
static getDate($daydelta=0, $dayhour="", $daymin="", $getlocale=false)
stringDateToLocaleDate($fdate, $format= '')
setValue($attrid, $value, $index=-1, &$kvalue=null)
getMultipleRawValues($idAttr, $def="", $index=-1)
getTitle($id="-1", $def="", $latest=false)
getHtmlValue($oattr, $value, $target="_self", $htmllink=true, $index=-1, $entities=true, $abstract=false)
viewpostit($target="_self", $ulink=true, $abstract=false)
new_Doc($dbaccess, $id= '', $latest=false)
getRawValue($idAttr, $def="")