function getFieldLine($fN) { // n'affiche que si le champ est non vide et <>0 $valret = ""; if ($fN == "author" || $this->internal["currentRow"][$fN] != "" && $this->internal["currentRow"][$fN] != "0") { //&& $this->getFieldContent($fN)!="0" switch ($fN) { case "imagette": if (file_exists($this->upload_doc_folder . '/' . $this->getFieldContent($fN))) { //$size=getimagesize($this->upload_doc_folder.'/'.$this->getFieldContent($fN)); $ConfI["file"] = $this->upload_doc_folder . '/' . $this->getFieldContent($fN); $ConfI["file."]["maxW"] = $this->conf["ImgMaxWidth"]; $valret = str_replace(">", ' align="left">', $this->cObj->IMAGE($ConfI)); //$valret= '<img src="'.$this->upload_doc_folder.'/'.$this->getFieldContent($fN).'" align="left" border="0">'; } break; case "lang": if ($this->conf["langCodeND"] != $this->internal["currentRow"][$fN]) { $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . '</P>'; } break; case "document": if (file_exists($this->upload_doc_folder . '/' . $this->getFieldContent($fN))) { $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . ' <a href="' . $this->upload_doc_folder . '/' . $this->getFieldContent($fN) . '" target="_blank"><img src="' . $this->conf["extCurDir"] . 'b_oeil.gif" border="0" title="' . $this->pi_getLL("download", "[download]") . '"></a> ' . DFSIL($this->upload_doc_folder . '/' . $this->getFieldContent($fN)) . '</P>'; } break; case "author": // renvoie l'auteur et son mail avec une petite enveloppe derrière if ($this->internal["currentRow"]["int_author"] != "") { $fN = "int_author"; $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN); $mail = txRecupLib("fe_users", "uid", "email", $this->internal["currentRow"]["int_author"]); $valret .= ' ' . txMefMail($mail); $valret .= '</P>'; } elseif ($this->internal["currentRow"]["ext_author"] != "") { $fN = "ext_author"; $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . '</P>'; } else { $valret = '<P><b>' . $this->getFieldHeader("int_author") . ':</b> ' . txRecupLib("be_users", "uid", "realName", $this->internal["currentRow"]["cruser_id"]); $mail = txRecupLib("be_users", "uid", "email", $this->internal["currentRow"]["cruser_id"]); $valret .= ' ' . txMefMail($mail); $valret .= '</P>'; } break; default: $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . '</P>'; break; } } return $valret; }
function getFieldLine($fN) { // n'affiche que si le champ est non vide et <>0 $valret = ""; if ($fN == "author" || $this->internal["currentRow"][$fN] != "" && $this->internal["currentRow"][$fN] != "0" || $fN == "imagette") { //&& $this->getFieldContent($fN)!="0" switch ($fN) { case "imagette": $imgsrc = $this->retImagette($this->getFieldContent('imagette'), $this->getFieldContent('document'), false); if (file_exists($this->upload_doc_folder . '/' . $this->getFieldContent("document"))) { $valret .= '<a href="' . $this->upload_doc_folder . '/' . $this->getFieldContent("document") . '" target="_blank">' . $imgsrc . '</a>'; } else { $valret .= $imgsrc; } break; case "lang": if ($this->conf["langCodeND"] != $this->internal["currentRow"][$fN]) { $valret = '<P><span class="descDoc">' . $this->getFieldHeader($fN) . ':</span> ' . $this->getFieldContent($fN) . '</P>'; } break; case "document": if (file_exists($this->upload_doc_folder . '/' . $this->getFieldContent($fN))) { $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . ' <a href="' . $this->upload_doc_folder . '/' . $this->getFieldContent($fN) . '" target="_blank"><img src="' . $this->conf["extCurDir"] . 'telecharger.gif" class="picto" title="' . $this->pi_getLL("download", "[download]") . '"></a> ' . DFSIL($this->upload_doc_folder . '/' . $this->getFieldContent($fN)) . '</P>'; } break; case "author": // renvoie l'auteur et son mail avec une petite enveloppe derri�e if ($this->internal["currentRow"]["int_author"] != "") { $fN = "int_author"; $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN); $mail = txRecupLib("fe_users", "uid", "email", $this->internal["currentRow"]["int_author"]); $valret .= ' ' . txMefMail($mail); $valret .= '</P>'; } elseif ($this->internal["currentRow"]["ext_author"] != "") { $fN = "ext_author"; $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . '</P>'; } else { $valret = '<P><b>' . $this->getFieldHeader("int_author") . ':</b> ' . txRecupLib("be_users", "uid", "realName", $this->internal["currentRow"]["cruser_id"]); $mail = txRecupLib("be_users", "uid", "email", $this->internal["currentRow"]["cruser_id"]); $valret .= ' ' . txMefMail($mail); $valret .= '</P>'; } break; default: $valret = '<P><b>' . $this->getFieldHeader($fN) . ':</b> ' . $this->getFieldContent($fN) . '</P>'; break; } } return $valret; }