static function AjaxForDomContainer($itemtype, $items_id, $type = "dom", $subtype = "") { //retieve dom containers associated to this itemtype $c_id = PluginFieldsContainer::findContainer($itemtype, $items_id, $type, $subtype); if (is_array($c_id)) { $condition = "plugin_fields_containers_id IN (" . implode(", ", $c_id) . ")"; } else { $condition = "plugin_fields_containers_id = {$c_id}"; } if ($c_id === false) { $condition = "1=0"; } //get fields for this container $field_obj = new self(); $fields = $field_obj->find($condition . " AND is_active = 1", "ranking"); if ($subtype == 'TicketTask$1') { echo "<table>"; } else { echo "<table class='tab_cadre_fixe'>"; } echo "<input type='hidden' name='_plugin_fields_type' value='{$type}' />"; // echo $html_fields = str_replace("\n", "", self::prepareHtmlFields($fields, $items_id)); echo self::prepareHtmlFields($fields, $items_id); echo "</table>"; }