Exemplo n.º 1
0
		show_workunit_user ($row['id'], 0, true, true, $id_user, $timestamp_h, $timestamp_l);
}

echo '<div id="show_multiple_edit">';

echo '<h2>'.__('Massive operations over selected items').'</h2>';

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

// Profile or role
if (dame_admin ($config['id_user'])) {
	$table->data[0][0] = combo_roles (false, 'id_profile', __('Role'), true, true, '', true);
}
else {
	$table->data[0][0] = combo_user_task_profile ($id_task, 'id_profile', $id_profile, false, true, true);
}

// Show task combo if none was given.
if (! $id_task) {
	$table->data[0][1] = combo_task_user_participant ($config['id_user'], true, 0, true, __('Task'), false, false, false, '', true);
}
else {
	$table->data[0][1] = combo_task_user_participant ($config['id_user'], true, $id_task, true, __('Task'), false, false, false, true);
}

// Various checkboxes
$have_cost = 0;
Exemplo n.º 2
0
$table->class = 'search-table-button';
$table->width = '100%';
$table->data = array ();
$table->colspan = array ();
$table->colspan[6][0] = 3;

if (!isset($start_date))
	$start_date = substr ($now, 0, 10);

$table->data[0][0] = print_input_text ('start_date', $start_date, '', 10, 20,
	true, __('Date'));

// Profile or role
if (dame_admin ($config['id_user'])) {
	$table->colspan[1][0] = 3;
	$table->data[1][0] = combo_roles (true, 'id_profile', __('Role'), true, true, $id_profile);
	//$table->data[0][1] = combo_roles_people_task ($id_task, $config['id_user'], __('Role'));
}
else {
	$table->colspan[1][0] = 3;
	$table->data[1][0] = combo_user_task_profile ($id_task, 'id_profile',
		$id_profile, false, true);
}

// Show task combo if none was given.
if (! $id_task) {
	$table->data[0][1] = combo_task_user_participant ($wu_user,
		true, 0, true, __('Task'));
}
else {
	$table->data[0][1] = combo_task_user_participant ($wu_user,
Exemplo n.º 3
0
    $params['return'] = false;
    $params['return_help'] = false;
    user_print_autocomplete_input($params);
    echo "<tr><td colspan=4>";
    echo "<input type=submit class='sub next' value='" . __('Update') . "'>";
    echo "</table>";
} else {
    // PROYECT PEOPLE MANAGER editor
    // ===============================
    echo "<h3>" . __('Project role assignment') . "</h3>";
    echo "<form id='form-people_manager' method='post' action='index.php?sec=projects&sec2=operation/projects/people_manager&id_project={$id_project}&id_task={$id_task}&action=insert'>";
    echo "<table width=99% class='search-table-button'>";
    echo "<tr><td valign='top' class='datos2'>";
    echo __('Role');
    echo "<td valign='top' class='datos2'>";
    echo combo_roles();
    echo "<td valign='top' class='datos2'>";
    echo __('User  ');
    $params['input_id'] = 'text-user';
    $params['input_name'] = 'user';
    $params['return'] = false;
    $params['return_help'] = false;
    user_print_autocomplete_input($params);
    echo "<tr><td colspan=4>";
    echo "<input type=submit class='sub next' value='" . __('Update') . "'>";
    echo "</table>";
}
// Role informational table
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$roles = "<table cellpadding=0 cellspacing=0 width=99% class='listing'>";
$roles .= "<th>" . __('Name');
Exemplo n.º 4
0
$table->class = 'integria_form';
$table->colspan = array();
$table->colspan[1][0] = 6;
$table->colspan[2][0] = 6;
$table->data = array();
$table->size = array();
$table->style = array();
$table->style[0] = 'vertical-align: top; padding-top: 10px;';
$table->style[1] = 'vertical-align: top; padding-top: 10px;';
$table->style[2] = 'vertical-align: top;';
$table->style[3] = 'vertical-align: top;';
$table->style[4] = 'vertical-align: top;';
$table->style[5] = 'vertical-align: top;';
$table->data[0][0] = print_image('images/calendar_orange.png', true) . '&nbsp' . print_mysql_timestamp(0, "Y-m-d");
$table->data[0][1] = print_image('images/clock_orange.png', true) . '&nbsp' . print_mysql_timestamp(0, "H:i:s");
$table->data[0][2] = combo_roles(1, 'work_profile', __('Profile'), true);
$table->data[0][3] = print_input_text("duration", $config["iwu_defaultime"], '', 7, 10, true, __('Time used'));
$table->data[0][4] = print_checkbox('have_cost', 1, false, true, __('Have cost'));
$table->data[0][5] = print_checkbox('public', 1, true, true, __('Public'));
$table->data[1][0] = print_textarea('nota', 10, 70, '', "style='resize:none;'", true, __('Description'));
$button = '<div style="width: 100%; text-align: right;">';
$button .= '<span id="sending_data" style="display: none;">' . __('Sending data...') . '<img src="images/spinner.gif" /></span>';
$button .= print_submit_button(__('Add'), 'addnote', false, 'class="sub create"', true);
$button .= print_input_hidden('insert_workunit', 1, true);
$button .= print_input_hidden('id', $id_incident, true);
$button .= '</div>';
$table->data[2][0] = $button;
if (!$clean_output) {
    echo '<form id="form-add-workunit" method="post" action="index.php?sec=incidents&sec2=operation/incidents/incident_dashboard_detail&id=' . $id_incident . '&tab=workunits#incident-operations">';
    echo "<div style='width: 98%;'>";
    print_table($table);
Exemplo n.º 5
0
function workunits_print_table_massive_edition($id_task = 0, $id_profile = 0)
{
    global $config;
    echo '<br><h2>' . __('Massive operations over selected items') . '</h2>';
    $table = new StdClass();
    $table->class = 'search-table-button';
    $table->width = '99%';
    $table->data = array();
    $table->colspan = array();
    // Profile or role
    if (dame_admin($config['id_user'])) {
        $table->data[0][0] = combo_roles(false, 'id_profile', __('Role'), true, true, '', true);
    } else {
        $table->data[0][0] = combo_user_task_profile($id_task, 'id_profile', $id_profile, false, true, true);
    }
    // Show task combo if none was given.
    if (!$id_task) {
        $table->data[0][1] = combo_task_user_participant($config['id_user'], true, 0, true, __('Task'), false, false, false, '', true);
    } else {
        $table->data[0][1] = combo_task_user_participant($config['id_user'], true, $id_task, true, __('Task'), false, false, false, true);
    }
    // Various checkboxes
    $table->data[2][0] = print_checkbox('have_cost', 1, '', true, __('Have cost'));
    $table->data[2][1] = print_checkbox('keep_cost', 1, '', true, __('Keep cost'));
    $table->data[3][0] = print_checkbox('public', 1, '', true, __('Public'));
    $table->data[3][1] = print_checkbox('keep_public', 1, '', true, __('Keep public'));
    $table->colspan[5][0] = 2;
    $table->data[5][0] = print_submit_button(__('Update'), 'update_btn', false, 'class="sub upd"', true);
    $table->data[5][0] .= print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"', true);
    print_table($table);
}
Exemplo n.º 6
0
$table->data[0][0] = print_input_text_extended('id_user', $id_user, 'text-id_user', '', 15, 30, false, '', '', true, '') . print_help_tip(__("Type at least two characters to search"), true);
$table->data[0][0] .= print_submit_button(__('Go'), 'sub_btn', false, 'class="next sub"', true);
print_table($table);
unset($table);
echo "</form>";
// Form to give project/task access
echo "<form name='form-access' method=post action='index.php?sec=projects&sec2=operation/projects/role_user_global&add=1&id_user={$id_user}'>";
$table->id = "cost_form";
$table->width = "99%";
$table->class = "search-table";
$table->data = array();
$table->data[0][0] = combo_task_user_manager($config['id_user'], 0, true, __('Tasks'), 'tasks[]', '', true);
if (dame_admin($config['id_user'])) {
    $table->data[0][1] = combo_roles(false, "roles", __('Role'), true);
} else {
    $table->data[0][1] = combo_roles(false, "roles", __('Role'), true, false);
}
$table->data[0][1] .= integria_help("project_roles", true);
$table->data[0][2] = print_submit_button(__('Add'), 'sub_btn', false, 'class="create sub"; style="margin-top:25px"', true);
print_table($table);
echo "</form>";
echo "<table class='listing' width='99%'>";
echo "<th>" . __("Project");
echo "<th>" . __("Task");
echo "<th>" . __("Role");
echo "<th>" . __("WU");
echo "<th>" . __("WU/Tsk");
echo "<th align='center'>" . __("Delete") . "</th>";
$sql = get_projects_query($id_user, "", 0, true);
$new = true;
$color = 1;
Exemplo n.º 7
0
	echo "</form>";
	// Form to give project/task access
	echo "<form name='form-access' method=post action='index.php?sec=projects&sec2=operation/projects/role_user_global&add=1&id_user=$id_user'>";
		$table = new stdClass;
		$table->id = "cost_form";
		$table->width = "99%";
		$table->class = "search-table";
		$table->data = array ();
		$table->data[0][0] = '<b>'.__('Tasks').'</b>';
		$table->data[1][0] = combo_task_user_manager ($config['id_user'], 0, true, '', 'tasks[]', '', true);
		if (dame_admin($config['id_user'])) {
			$table->data[2][0] = '<b>'.__('Role').'</b>';
			$table->data[3][0] = combo_roles (false, "roles", '', true);
		} else {
			$table->data[2][0] = '<b>'.__('Role').'</b>';
			$table->data[3][0] = combo_roles (false, "roles", '', true, false);
		}
		$table->data[2][0] .= integria_help ("project_roles", true);
		$table->data[4][0] = print_submit_button (__('Add'), 'sub_btn', false, '', true);
		print_table ($table);
	echo "</form>";
echo "</div>";
// Table
echo "<div class='divresult'>";
	echo "<table class='listing'>";
		echo "<th>".__("Project");
		echo "<th>".__("Task");
		echo "<th>".__("Role");
		echo "<th>".__("WU");
		echo "<th>".__("WU/Tsk");
		echo "<th align='center'>".__("Delete")."</th>";