<?php /** * $Id$ * * @category Forms * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ * @link http://www.mediboard.org */ $list_id = CValue::get("list_id"); $list = new CExList(); $list->load($list_id); $list->loadRefItems(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("list", $list); $smarty->display("inc_ex_list_info.tpl");
$spec_type = CValue::get("_spec_type"); $form_name = CValue::get("form_name"); $context_guid = CValue::get("context_guid"); $ex_concept_id = CValue::get("ex_concept_id"); // Cas du choix d'une liste $concept_type = CValue::get("_concept_type"); $ex_list_id = CValue::get("ex_list_id"); $multiple = CValue::get("_multiple"); /** @var CExListItemsOwner $context */ $context = CMbObject::loadFromGuid($context_guid); $context->loadView(); $list_owner = $context->getRealListOwner(); $list_owner->loadView(); if ($concept_type == "list" && !$ex_concept_id && $context instanceof CExConcept) { $ex_list = new CExList(); $ex_list->load($ex_list_id); $ex_list_items = $ex_list->loadRefItems(); $prop = ($multiple ? "set" : "enum") . " list|" . implode("|", CMbArray::pluck($ex_list_items, "_id")); } $prop = stripslashes($prop); $prop_type = explode(" ", $prop); $prop_type = reset($prop_type); if ($spec_type) { if (!array_key_exists($prop_type, CMbFieldSpecFact::$classes)) { $prop = "{$spec_type} {$prop}"; } else { if (strpos($prop, " ") !== false) { $prop = $spec_type . " " . substr($prop, strpos($prop, " ") + 1); } else { $prop = $spec_type; }