Task lit to assign when entering timesheet is on top. This is more
convenient and save spaces.
This commit is contained in:
parent
274caf61eb
commit
93903b7330
@ -294,7 +294,7 @@ if (empty($user->societe_id))
|
||||
$text=$langs->trans($titres[$key]);
|
||||
print '<a href="'.$links[$key].'" class="boxstatsindicator thumbstat nobold nounderline">';
|
||||
print '<div class="boxstats">';
|
||||
print img_object("",$icons[$key]).' '.$text.'<br>';
|
||||
print '<span class="boxstatstext">'.img_object("",$icons[$key]).' '.$text.'</span><br>';
|
||||
print '<span class="boxstatsindicator">'.$board->nb[$val].'</span>';
|
||||
print '</div>';
|
||||
print '</a>';
|
||||
|
||||
@ -87,8 +87,10 @@ if (GETPOST('submitdateselect'))
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'assign')
|
||||
if ($action == 'addtime' && GETPOST('assigntask'))
|
||||
{
|
||||
$action = 'assigntask';
|
||||
|
||||
if ($taskid > 0)
|
||||
{
|
||||
$result = $object->fetch($taskid, $ref);
|
||||
@ -322,7 +324,24 @@ print "\n";
|
||||
*/
|
||||
|
||||
|
||||
print '<div align="right">'.$nav.'</div>';
|
||||
// Add a new project/task
|
||||
//print '<br>';
|
||||
//print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
//print '<input type="hidden" name="action" value="assigntask">';
|
||||
//print '<input type="hidden" name="mode" value="'.$mode.'">';
|
||||
//print '<input type="hidden" name="year" value="'.$year.'">';
|
||||
//print '<input type="hidden" name="month" value="'.$month.'">';
|
||||
//print '<input type="hidden" name="day" value="'.$day.'">';
|
||||
print '<div class="float">';
|
||||
print $langs->trans("AssignTaskToMe").'<br>';
|
||||
$formproject->selectTasks($socid?$socid:-1, $taskid, 'taskid', 32, 0, 1, 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 0);
|
||||
print '<input type="submit" class="button" name="assigntask" value="'.$langs->trans("AssignTask").'">';
|
||||
//print '</form>';
|
||||
print '</div>';
|
||||
|
||||
print '<div class="floatright">'.$nav.'</div>';
|
||||
print '<div class="clearboth" style="padding-bottom: 8px;"></div>';
|
||||
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
@ -369,21 +388,6 @@ print "});";
|
||||
print '</script>';
|
||||
|
||||
|
||||
// Add a new project/task
|
||||
print '<br>';
|
||||
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
print '<input type="hidden" name="action" value="assign">';
|
||||
print '<input type="hidden" name="mode" value="'.$mode.'">';
|
||||
print '<input type="hidden" name="year" value="'.$year.'">';
|
||||
print '<input type="hidden" name="month" value="'.$month.'">';
|
||||
print '<input type="hidden" name="day" value="'.$day.'">';
|
||||
print $langs->trans("AssignTaskToMe").'<br>';
|
||||
$formproject->selectTasks($socid?$socid:-1, $taskid, 'taskid', 32, 0, 1, 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 0);
|
||||
print '<input type="submit" class="button" name="submit" value="'.$langs->trans("AssignTask").'">';
|
||||
print '</form>';
|
||||
|
||||
|
||||
llxFooter();
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -100,8 +100,10 @@ if (GETPOST('submitdateselect'))
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if ($action == 'assign')
|
||||
if ($action == 'addtime' && GETPOST('assigntask'))
|
||||
{
|
||||
$action = 'assigntask';
|
||||
|
||||
if ($taskid > 0)
|
||||
{
|
||||
$result = $object->fetch($taskid, $ref);
|
||||
@ -298,7 +300,24 @@ print "\n";
|
||||
*/
|
||||
|
||||
|
||||
print '<div align="right">'.$nav.'</div>';
|
||||
// Add a new project/task
|
||||
//print '<br>';
|
||||
//print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
//print '<input type="hidden" name="action" value="assigntask">';
|
||||
//print '<input type="hidden" name="mode" value="'.$mode.'">';
|
||||
//print '<input type="hidden" name="year" value="'.$year.'">';
|
||||
//print '<input type="hidden" name="month" value="'.$month.'">';
|
||||
//print '<input type="hidden" name="day" value="'.$day.'">';
|
||||
print '<div class="float">';
|
||||
print $langs->trans("AssignTaskToMe").'<br>';
|
||||
$formproject->selectTasks($socid?$socid:-1, $taskid, 'taskid', 32, 0, 1, 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 0);
|
||||
print '<input type="submit" class="button" name="assigntask" value="'.$langs->trans("AssignTask").'">';
|
||||
//print '</form>';
|
||||
print '</div>';
|
||||
|
||||
print '<div class="floatright">'.$nav.'</div>';
|
||||
print '<div class="clearboth" style="padding-bottom: 8px;"></div>';
|
||||
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
@ -378,22 +397,6 @@ print "});";
|
||||
print '</script>';
|
||||
|
||||
|
||||
// Add a new project/task
|
||||
print '<br>';
|
||||
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
print '<input type="hidden" name="action" value="assign">';
|
||||
print '<input type="hidden" name="mode" value="'.$mode.'">';
|
||||
print '<input type="hidden" name="year" value="'.$year.'">';
|
||||
print '<input type="hidden" name="month" value="'.$month.'">';
|
||||
print '<input type="hidden" name="day" value="'.$day.'">';
|
||||
print $langs->trans("AssignTaskToMe").'<br>';
|
||||
$formproject->selectTasks($socid?$socid:-1, $taskid, 'taskid', 32, 0, 1, 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 0);
|
||||
print '<input type="submit" class="button" name="submit" value="'.$langs->trans("AssignTask").'">';
|
||||
print '</form>';
|
||||
|
||||
|
||||
|
||||
llxFooter();
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -2547,6 +2547,10 @@ div.tabBar .noborder {
|
||||
background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?>;
|
||||
<?php } ?>
|
||||
}
|
||||
span.boxstatstext {
|
||||
opacity: 0.8;
|
||||
line-height: 18px;
|
||||
}
|
||||
span.boxstatsindicator {
|
||||
font-size: 110%;
|
||||
font-weight: normal;
|
||||
|
||||
@ -2374,6 +2374,10 @@ div.tabBar .noborder {
|
||||
background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?>;
|
||||
<?php } ?>
|
||||
}
|
||||
span.boxstatstext {
|
||||
opacity: 0.8;
|
||||
line-height: 18px;
|
||||
}
|
||||
span.boxstatsindicator {
|
||||
font-size: 110%;
|
||||
font-weight: normal;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user