コード例 #1
0
ファイル: task_detail.php プロジェクト: dsyman2/integriaims
$table->colspan = array();
$table->style = array();
$table->style[0] = 'vertical-align: top; width: 30%';
$table->style[1] = 'vertical-align: top; width: 30%';
$table->style[2] = 'vertical-align: top; width: 30%';
$table->data = array();
$table->cellspacing = 2;
$table->cellpadding = 2;
$table->data[0][0] = print_input_text('name', $name, '', 60, 240, true, __('Name'));
$table->data[0][1] = print_select(get_priorities(), 'priority', $priority, '', '', '', true, false, false, __('Priority'));
if ($project_permission['manage'] || $operation == "view") {
    $combo_none = __('None');
} else {
    $combo_none = false;
}
$table->data[0][2] = combo_task_user_manager($config['id_user'], $parent, true, __('Parent'), 'parent', $combo_none, false, $id_project, $id_task);
$table->data[1][0] = print_input_text('start_date', $start, '', 15, 15, true, __('Start'));
$table->data[1][1] = print_input_text('end_date', $end, '', 15, 15, true, __('End'));
$table->data[1][2] = print_select(get_periodicities(), 'periodicity', $periodicity, '', __('None'), 'none', true, false, false, __('Recurrence'));
$table->data[2][0] = print_input_text('hours', $hours, '', 5, 5, true, __('Estimated hours'));
$table->data[2][0] .= "&nbsp;&nbsp;<a href='javascript: show_calculation();'>" . print_image('images/play.gif', true, array('title' => __('Calculate hours'))) . "</a>";
$table->data[2][1] = print_input_text('estimated_cost', $estimated_cost, '', 7, 11, true, __('Estimated cost'));
$table->data[2][1] .= ' ' . $config['currency'];
$table->data[2][2] = print_checkbox_extended('count_hours', 1, $count_hours, false, '', '', true, __('Completion based on hours')) . print_help_tip(__("Calculated task completion using workunits inserted by project members, if not it uses Completion field of this form"), true);
$table->data[3][0] = print_input_text('cc', $cc, '', 60, 240, true, __('CC') . print_help_tip(__("Email to notify changes in workunits"), true));
$table->colspan[4][0] = 3;
$completion_label = __('Completion') . " <em>(<span id=completion>" . $completion . "%</span>)</em>";
$table->data[4][0] = print_label($completion_label, '', '', true, '<div id="slider" style="margin-top: 5px;"><div class="ui-slider-handle"></div></div>');
$table->data[4][0] .= print_input_hidden('completion', $completion, true);
//////TABLA ADVANCED
$table_advanced->width = '98%';
コード例 #2
0
ファイル: task_planning.php プロジェクト: dsyman2/integriaims
}
//Hidden div for task creation. Only for PM flag
echo "<div id='createTaskmass' style='display:none;padding:5px;'>";
//Form for task creation
echo "<form id='form-new_tasks' method='post' action='index.php?sec=projects&sec2=operation/projects/task_planning&id_project=" . $id_project . "'>";
echo "<table class='search-table-button' style='width: 99%'><tr><td colspan=4>";
echo "<strong>" . __('Put taskname in each line') . "</strong><br>";
print_textarea('tasklist', 5, 40);
echo "<tr>";
// User assigned by default
echo "<td>";
print_select($users, "dueno", $config['id_user'], '', '', 0, false, 0, false, __("Owner"));
echo "</td>";
//Task parent combo
echo "<td style='width:60'>";
combo_task_user_manager($config['id_user'], 0, false, __('Parent'), 'padre', __('None'), false, $id_project);
echo "</td>";
echo "<tr>";
//Start date
echo "<td>";
$start = date("Y-m-d");
print_input_text_extended("start_date2", $start, "start_date", '', 7, 15, 0, '', "", false, false, __('Start date'));
echo "</td>";
//End date)
echo "<td>";
$end = date("Y-m-d");
print_input_text_extended("end_date2", $end, "end_date", '', 7, 15, 0, '', "", false, false, __('End date'));
echo "</td>";
echo "<tr><td colspan=4 align=right>";
echo "<br>";
//Create button
コード例 #3
0
$table->id = "cost_form";
$table->width = "250px";
$table->class = "search-table";
$table->data = array();
$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");