array("","draft", "new", "pending", "done", "archived", "error", "debug" ), 1 => array(_("choisir")." ".__("state"),__("draft"), __("new"), __("pending"), __("done"), __("archived"), __("error"), __("debug"), ), ); $args_stream = array( // 0 => array("", "input", "output"), 1 => array(_("choisir")." ".__("stream"), __("input"), __("output")), ); $advsearch_fields= array( // 'task' => array( 'colonne' => 'task', 'table' => 'task', 'libelle' => __("task"), 'type' => 'text', 'taille' => '', 'max' => '', ), 'type' => array( 'colonne' => 'type', 'table' => 'task', 'libelle' => __("type"), 'type' => 'text', 'taille' => '', 'max' => '', ), 'state' => array( 'colonne' => 'state', 'table' => 'task', 'libelle' => __("state"), 'type' => 'select', 'subtype' => 'manualselect', 'args' => $args_state ), 'object_id' => array( 'colonne' => 'object_id', 'table' => 'task', 'libelle' => __("object_id"), 'type' => 'text', 'taille' => '', 'max' => '', ), 'dossier' => array( 'colonne' => 'dossier', 'table' => 'task', 'libelle' => __("dossier"), 'type' => 'text', 'taille' => '', 'max' => '', ), 'stream' => array( 'colonne' => 'stream', 'table' => 'task', 'libelle' => __("stream"), 'type' => 'select', 'subtype' => 'manualselect', 'args' => $args_stream ), ); // advsearch -> options $options[] = array( 'type' => 'search', 'display' => true, 'advanced' => $advsearch_fields, 'absolute_object' => 'dossier', ); $tri="ORDER BY task.task ASC NULLS LAST";