コード例 #1
0
            $ticket_editor .= user_print_autocomplete_input($params_assigned);
        } else {
            $ticket_editor .= print_label(__('Owner'), 'id_user', '', true, '<div id="plain-id_user">' . dame_nombre_real($owner) . '</div>');
        }
        $ticket_editor .= "</td>";
        $ticket_editor .= "</tr>";
        $ticket_editor .= "<tr>";
        $ticket_editor .= "<td>";
        if ($has_im) {
            $ticket_editor .= combo_incident_resolution($resolution, false, true, false, "");
        } else {
            $ticket_editor .= print_label(__('Resolution'), '', '', true, render_resolution($resolution));
        }
        $ticket_editor .= "</td>";
        $ticket_editor .= "<td>";
        $ticket_editor .= combo_incident_status($status, false, 0, true, false, "");
        $ticket_editor .= "</td>";
        $ticket_editor .= "<td>";
        $img = print_image("images/accept.png", true, array("title" => __("Update")));
        $ticket_editor .= "<a onfocus='JavaScript: this.blur()' href='javascript: setParams({$id});'>" . $img . "</a>";
        $ticket_editor .= "</td>";
        $ticket_editor .= "</tr>";
        $ticket_editor .= "</table>";
        $right_side .= print_container('ticket_editor', __('Quick edit'), $ticket_editor);
    }
}
// Incident dates
if ($incident["cierre"] == "0000-00-00 00:00:00") {
    $close_text = __("Not yet");
} else {
    $close_text = $incident["cierre"];
コード例 #2
0
$table->data[1][0] .= '&nbsp;' . print_priority_flag_image($priority, true);
if (!$create_incident) {
    if ($incident["estado"] != STATUS_CLOSED) {
        $table->data[1][1] = "<div id='div_incident_resolution' style='display: none;'>";
    } else {
        $table->data[1][1] = "<div id='div_incident_resolution'>";
    }
    if ($has_im) {
        $table->data[1][1] .= combo_incident_resolution($resolution, $blocked_incident, true);
    } else {
        $table->data[1][1] .= print_label(__('Resolution'), '', '', true, render_resolution($resolution));
        $table->data[1][1] .= print_input_hidden('incident_resolution', $resolution, true);
    }
    $table->data[1][1] .= "</div>";
}
$table->data[1][2] = combo_incident_status($estado, $blocked_incident, 0, true, false, '', '', 0);
if ($incident["estado"] != STATUS_CLOSED) {
    $table->data[1][3] = "<div id='div_incident_block' style='display: none;'>";
} else {
    $table->data[1][3] = "<div id='div_incident_block'>";
}
$table->data[1][3] .= print_checkbox("blocked", 1, $blocked, true, __('Blocked'), $blocked_incident);
$table->data[1][3] .= "</div>";
//If IW creator enabled flag is enabled, the user can change the creator
if ($has_im || $has_iw && $config['iw_creator_enabled']) {
    $disabled_creator = false;
    if (!$config["change_creator_owner"] || $blocked_incident) {
        $disabled_creator = true;
    }
    $params_creator['input_id'] = 'text-id_creator';
    $params_creator['input_name'] = 'id_creator';
コード例 #3
0
echo "</form>";

//Store serialize filter
serialize_in_temp($filter, $config["id_user"]);
$resolution = 0;
$parent_name = 0;
$id_parent = 0;

$table = new StdClass();
$table->class = 'search-table-button';
$table->width = '100%';
$table->id = 'incident_massive';
$table->data = array();
$table->style = array ();

$table->data[0][0] = combo_incident_status (-1, 0, 0, true, true);
$table->data[0][1] = print_select (get_priorities (),'mass_priority', -1, '', __('Select'), -1, true, 0, true, __('Priority'), false, 'min-width: 70px;');
$table->data[0][2] = combo_incident_resolution ($resolution, false, true, true);
$table->data[0][3] = print_select_from_sql('SELECT id_usuario, nombre_real FROM tusuario;', 'mass_assigned_user', '0', '', __('Select'), -1, true, false, true, __('Owner'));

//Task
$table->data[1][0] = combo_task_user (0, $config["id_user"], 0, 0, true);
//Groups
$table->data[1][1] =  print_select_from_sql('SELECT id_grupo, nombre FROM tgrupo;', 'mass_groups', '0', '', __('Select'), -1, true, false, true, __('Groups'));

if ($has_im) {
	//Parent ticket
	$table->data[1][2] = print_input_text ('search_parent', $parent_name, '', 10, 100, true, __('Parent ticket'));
	$table->data[1][2] .= print_input_hidden ('id_parent', $id_parent, true);
	$table->data[1][2] .= print_image("images/cross.png", true, array("onclick" => "clean_parent_field()", "style" => "cursor: pointer"));
	//Delete tickets