NEW List of user in agenda view per user show photo thumb
This commit is contained in:
parent
b639849a47
commit
00a658143d
@ -937,7 +937,7 @@ if ($id > 0)
|
|||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Ref
|
// Ref
|
||||||
print '<tr><td width="30%">'.$langs->trans("Ref").'</td><td colspan="3">'.$object->id.'</td></tr>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("Ref").'</td><td colspan="3">'.$object->id.'</td></tr>';
|
||||||
|
|
||||||
// Type of event
|
// Type of event
|
||||||
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE))
|
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE))
|
||||||
@ -951,7 +951,7 @@ if ($id > 0)
|
|||||||
print '<tr><td'.(empty($conf->global->AGENDA_USE_EVENT_TYPE)?' class="fieldrequired"':'').'>'.$langs->trans("Title").'</td><td colspan="3"><input type="text" name="label" size="50" value="'.$object->label.'"></td></tr>';
|
print '<tr><td'.(empty($conf->global->AGENDA_USE_EVENT_TYPE)?' class="fieldrequired"':'').'>'.$langs->trans("Title").'</td><td colspan="3"><input type="text" name="label" size="50" value="'.$object->label.'"></td></tr>';
|
||||||
|
|
||||||
// Full day event
|
// Full day event
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("EventOnFullDay").'</td><td colspan="3"><input type="checkbox" id="fullday" name="fullday" '.($object->fulldayevent?' checked':'').'></td></tr>';
|
print '<tr><td>'.$langs->trans("EventOnFullDay").'</td><td colspan="3"><input type="checkbox" id="fullday" name="fullday" '.($object->fulldayevent?' checked':'').'></td></tr>';
|
||||||
|
|
||||||
// Date start
|
// Date start
|
||||||
print '<tr><td class="nowrap"><span class="fieldrequired">'.$langs->trans("DateActionStart").'</span></td><td colspan="3">';
|
print '<tr><td class="nowrap"><span class="fieldrequired">'.$langs->trans("DateActionStart").'</span></td><td colspan="3">';
|
||||||
@ -1090,7 +1090,7 @@ if ($id > 0)
|
|||||||
// Thirdparty - Contact
|
// Thirdparty - Contact
|
||||||
if ($conf->societe->enabled)
|
if ($conf->societe->enabled)
|
||||||
{
|
{
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("ActionOnCompany").'</td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ActionOnCompany").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print '<div class="maxwidth200onsmartphone">';
|
print '<div class="maxwidth200onsmartphone">';
|
||||||
$events=array();
|
$events=array();
|
||||||
@ -1115,7 +1115,7 @@ if ($id > 0)
|
|||||||
|
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
|
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("Project").'</td><td colspan="3">';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("Project").'</td><td colspan="3">';
|
||||||
$numprojet=$formproject->select_projects($object->socid, $object->fk_project, 'projectid');
|
$numprojet=$formproject->select_projects($object->socid, $object->fk_project, 'projectid');
|
||||||
if ($numprojet==0)
|
if ($numprojet==0)
|
||||||
{
|
{
|
||||||
@ -1125,7 +1125,7 @@ if ($id > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Priority
|
// Priority
|
||||||
print '<tr><td class="titlefield nowrap">'.$langs->trans("Priority").'</td><td colspan="3">';
|
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("Priority").'</td><td colspan="3">';
|
||||||
print '<input type="text" name="priority" value="'.($object->priority?$object->priority:'').'" size="5">';
|
print '<input type="text" name="priority" value="'.($object->priority?$object->priority:'').'" size="5">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@ -360,6 +360,7 @@ $showextcals=$listofextcals;
|
|||||||
|
|
||||||
if (! empty($conf->use_javascript_ajax)) // If javascript on
|
if (! empty($conf->use_javascript_ajax)) // If javascript on
|
||||||
{
|
{
|
||||||
|
$s.='<!-- Div to calendars selectors -->'."\n";
|
||||||
$s.='<script type="text/javascript">' . "\n";
|
$s.='<script type="text/javascript">' . "\n";
|
||||||
$s.='jQuery(document).ready(function () {' . "\n";
|
$s.='jQuery(document).ready(function () {' . "\n";
|
||||||
$s.='jQuery("#check_birthday").click(function() { jQuery(".family_birthday").toggle(); });' . "\n";
|
$s.='jQuery("#check_birthday").click(function() { jQuery(".family_birthday").toggle(); });' . "\n";
|
||||||
@ -373,7 +374,7 @@ if (! empty($conf->use_javascript_ajax)) // If javascript on
|
|||||||
$s.='</script>' . "\n";
|
$s.='</script>' . "\n";
|
||||||
|
|
||||||
// Local calendar
|
// Local calendar
|
||||||
$s.='<div class="nowrap clear float"><input type="checkbox" id="check_mytasks" name="check_mytasks" checked disabled> ' . $langs->trans("LocalAgenda").' </div>';
|
$s.='<div class="nowrap clear float minheight20"><input type="checkbox" id="check_mytasks" name="check_mytasks" checked disabled> ' . $langs->trans("LocalAgenda").' </div>';
|
||||||
|
|
||||||
// External calendars
|
// External calendars
|
||||||
if (is_array($showextcals) && count($showextcals) > 0)
|
if (is_array($showextcals) && count($showextcals) > 0)
|
||||||
|
|||||||
@ -306,10 +306,11 @@ if ($resql)
|
|||||||
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE)) print_liste_field_titre($langs->trans("Type"),$_SERVER["PHP_SELF"],"c.libelle",$param,"","",$sortfield,$sortorder);
|
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE)) print_liste_field_titre($langs->trans("Type"),$_SERVER["PHP_SELF"],"c.libelle",$param,"","",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("DateStart"),$_SERVER["PHP_SELF"],"a.datep",$param,'','align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DateStart"),$_SERVER["PHP_SELF"],"a.datep",$param,'','align="center"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("DateEnd"),$_SERVER["PHP_SELF"],"a.datep2",$param,'','align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DateEnd"),$_SERVER["PHP_SELF"],"a.datep2",$param,'','align="center"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom",$param,"","",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("ThirdParty"),$_SERVER["PHP_SELF"],"s.nom",$param,"","",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Contact"),$_SERVER["PHP_SELF"],"a.fk_contact",$param,"","",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Contact"),$_SERVER["PHP_SELF"],"a.fk_contact",$param,"","",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("ActionsOwnedBy"),$_SERVER["PHP_SELF"],"",$param,"","",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("ActionsOwnedBy"),$_SERVER["PHP_SELF"],"",$param,"","",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"a.percent",$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"a.percent",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
|
print_liste_field_titre("");
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -329,8 +330,11 @@ if ($resql)
|
|||||||
print '<td class="liste_titre"></td>';
|
print '<td class="liste_titre"></td>';
|
||||||
//print '<td class="liste_titre"></td>';
|
//print '<td class="liste_titre"></td>';
|
||||||
print '<td class="liste_titre"></td>';
|
print '<td class="liste_titre"></td>';
|
||||||
print '<td class="liste_titre" align="right"><input class="liste_titre" type="image" src="'.img_picto($langs->trans("Search"),'search.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
print '<td></td>';
|
||||||
print '<input type="image" class="liste_titre" name="button_removefilter" src="'.img_picto($langs->trans("Search"),'searchclear.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'" title="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'">';
|
// Action column
|
||||||
|
print '<td class="liste_titre" align="middle">';
|
||||||
|
$searchpitco=$form->showFilterAndCheckAddButtons(0);
|
||||||
|
print $searchpitco;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -371,7 +375,7 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
$labeltype=$obj->type_code;
|
$labeltype=$obj->type_code;
|
||||||
if (! empty($arraylist[$labeltype])) $labeltype=$arraylist[$labeltype];
|
if (! empty($arraylist[$labeltype])) $labeltype=$arraylist[$labeltype];
|
||||||
print '<td>'.dol_trunc($labeltype,24).'</td>';
|
print '<td>'.dol_trunc($labeltype,28).'</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start date
|
// Start date
|
||||||
@ -397,7 +401,7 @@ if ($resql)
|
|||||||
$societestatic->id=$obj->socid;
|
$societestatic->id=$obj->socid;
|
||||||
$societestatic->client=$obj->client;
|
$societestatic->client=$obj->client;
|
||||||
$societestatic->name=$obj->societe;
|
$societestatic->name=$obj->societe;
|
||||||
print $societestatic->getNomUrl(1,'',10);
|
print $societestatic->getNomUrl(1,'',28);
|
||||||
}
|
}
|
||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -409,7 +413,7 @@ if ($resql)
|
|||||||
$contactstatic->lastname=$obj->lastname;
|
$contactstatic->lastname=$obj->lastname;
|
||||||
$contactstatic->firstname=$obj->firstname;
|
$contactstatic->firstname=$obj->firstname;
|
||||||
$contactstatic->id=$obj->fk_contact;
|
$contactstatic->id=$obj->fk_contact;
|
||||||
print $contactstatic->getNomUrl(1,'',10);
|
print $contactstatic->getNomUrl(1,'',28);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -430,6 +434,8 @@ if ($resql)
|
|||||||
// Status/Percent
|
// Status/Percent
|
||||||
print '<td align="right" class="nowrap">'.$actionstatic->LibStatut($obj->percent,6).'</td>';
|
print '<td align="right" class="nowrap">'.$actionstatic->LibStatut($obj->percent,6).'</td>';
|
||||||
|
|
||||||
|
print '<td></td>';
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -420,7 +420,7 @@ if ($filtert > 0 || $usergroup > 0)
|
|||||||
$sql.= ' ORDER BY fk_user_action, datep'; //fk_user_action
|
$sql.= ' ORDER BY fk_user_action, datep'; //fk_user_action
|
||||||
//print $sql;
|
//print $sql;
|
||||||
|
|
||||||
dol_syslog("comm/action/index.php", LOG_DEBUG);
|
dol_syslog("comm/action/peruser.php", LOG_DEBUG);
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
@ -703,7 +703,9 @@ foreach ($usernames as $username)
|
|||||||
{
|
{
|
||||||
$var = ! $var;
|
$var = ! $var;
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo '<td class="cal_current_month cal_peruserviewname'.($var?' cal_impair':'').'">' . $username->getNomUrl(1). '</td>';
|
echo '<td class="cal_current_month cal_peruserviewname'.($var?' cal_impair':'').'">';
|
||||||
|
print $username->getNomUrl(-1,'',0,0,24,1,'');
|
||||||
|
print '</td>';
|
||||||
$tmpday = $sav;
|
$tmpday = $sav;
|
||||||
|
|
||||||
// Lopp on each day of week
|
// Lopp on each day of week
|
||||||
|
|||||||
@ -65,7 +65,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
print '<div class="fichecenter">';
|
print '<div class="fichecenter">';
|
||||||
|
|
||||||
if (! empty($conf->browser->phone)) print '<div class="fichehalfleft">';
|
if (! empty($conf->browser->phone)) print '<div class="fichehalfleft">';
|
||||||
else print '<table class="nobordernopadding" width="100%"><tr><td class="nowrap borderright">';
|
else print '<table class="nobordernopadding" width="100%"><tr><td class="borderright">';
|
||||||
|
|
||||||
print '<table class="nobordernopadding">';
|
print '<table class="nobordernopadding">';
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
||||||
print $langs->trans("ActionsToDoBy").' ';
|
print $langs->trans("ActionsToDoBy").' ';
|
||||||
print '</td><td class="nowrap maxwidthonsmartphone" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '</td><td class="maxwidthonsmartphone" style="padding-bottom: 2px; padding-right: 4px;">';
|
||||||
print $form->select_dolusers($filtert, 'usertodo', 1, '', ! $canedit, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
|
print $form->select_dolusers($filtert, 'usertodo', 1, '', ! $canedit, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
|
||||||
if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or") . ' '.$langs->trans("ToUserOfGroup").' ';
|
if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or") . ' '.$langs->trans("ToUserOfGroup").' ';
|
||||||
print $form->select_dolgroups($usergroupid, 'usergroup', 1, '', ! $canedit);
|
print $form->select_dolgroups($usergroupid, 'usergroup', 1, '', ! $canedit);
|
||||||
@ -95,14 +95,6 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
}
|
}
|
||||||
print $formactions->select_type_actions($actioncode, "actioncode", $excludetype, (empty($conf->global->AGENDA_USE_EVENT_TYPE)?1:0), 0, $multiselect);
|
print $formactions->select_type_actions($actioncode, "actioncode", $excludetype, (empty($conf->global->AGENDA_USE_EVENT_TYPE)?1:0), 0, $multiselect);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Status
|
|
||||||
print '<tr>';
|
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
|
||||||
print $langs->trans("Status");
|
|
||||||
print ' </td><td class="nowrap maxwidthonsmartphone" style="padding-bottom: 2px; padding-right: 4px;">';
|
|
||||||
$formactions->form_select_status_action('formaction',$status,1,'status',1,2);
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($conf->societe->enabled) && $user->rights->societe->lire)
|
if (! empty($conf->societe->enabled) && $user->rights->societe->lire)
|
||||||
@ -128,6 +120,17 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($canedit)
|
||||||
|
{
|
||||||
|
// Status
|
||||||
|
print '<tr>';
|
||||||
|
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
||||||
|
print $langs->trans("Status");
|
||||||
|
print ' </td><td class="nowrap maxwidthonsmartphone" style="padding-bottom: 2px; padding-right: 4px;">';
|
||||||
|
$formactions->form_select_status_action('formaction',$status,1,'status',1,2);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
if ($canedit && $action == 'show_peruser')
|
if ($canedit && $action == 'show_peruser')
|
||||||
{
|
{
|
||||||
// Filter on hours
|
// Filter on hours
|
||||||
|
|||||||
@ -54,7 +54,9 @@ $userstatic=new User($db);
|
|||||||
<!-- BEGIN PHP TEMPLATE CONTACTS -->
|
<!-- BEGIN PHP TEMPLATE CONTACTS -->
|
||||||
<div class="tagtable centpercent noborder allwidth">
|
<div class="tagtable centpercent noborder allwidth">
|
||||||
|
|
||||||
<?php if ($permission) { ?>
|
<?php
|
||||||
|
if ($permission) {
|
||||||
|
?>
|
||||||
<form class="tagtr liste_titre">
|
<form class="tagtr liste_titre">
|
||||||
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
|
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
|
||||||
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
|
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
|
||||||
@ -132,10 +134,12 @@ $userstatic=new User($db);
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php }
|
<?php
|
||||||
} ?>
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<form class="tagtr liste_titre">
|
<form class="tagtr liste_titre formnoborder">
|
||||||
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
|
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
|
||||||
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
|
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
|
||||||
<div class="tagtd"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
|
<div class="tagtd"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
|
||||||
|
|||||||
@ -582,6 +582,7 @@ div.myavailability {
|
|||||||
.maxwidth400 { max-width: 400px; }
|
.maxwidth400 { max-width: 400px; }
|
||||||
.maxwidth500 { max-width: 500px; }
|
.maxwidth500 { max-width: 500px; }
|
||||||
.minheight20 { min-height: 20px; }
|
.minheight20 { min-height: 20px; }
|
||||||
|
.minheight40 { min-height: 40px; }
|
||||||
.titlefield { width: 25%; }
|
.titlefield { width: 25%; }
|
||||||
.titlefieldcreate { width: 20%; }
|
.titlefieldcreate { width: 20%; }
|
||||||
|
|
||||||
@ -2204,7 +2205,7 @@ table.liste, table.noborder, table.formdoc, div.noborder {
|
|||||||
-webkit-border-radius: 0.2em;
|
-webkit-border-radius: 0.2em;
|
||||||
border-radius: 0.2em;*/
|
border-radius: 0.2em;*/
|
||||||
}
|
}
|
||||||
#tablelines tr.liste_titre td, tr.liste_titre.trnoborder td {
|
#tablelines tr.liste_titre td, form.formnoborder div, tr.liste_titre.trnoborder td {
|
||||||
border-top-width: 1px;
|
border-top-width: 1px;
|
||||||
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
|
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
|
||||||
border-top-style: solid;
|
border-top-style: solid;
|
||||||
|
|||||||
@ -580,6 +580,7 @@ div.myavailability {
|
|||||||
.maxwidth400 { max-width: 400px; }
|
.maxwidth400 { max-width: 400px; }
|
||||||
.maxwidth500 { max-width: 500px; }
|
.maxwidth500 { max-width: 500px; }
|
||||||
.minheight20 { min-height: 20px; }
|
.minheight20 { min-height: 20px; }
|
||||||
|
.minheight40 { min-height: 40px; }
|
||||||
.titlefield { width: 30%; }
|
.titlefield { width: 30%; }
|
||||||
.titlefieldcreate { width: 20%; }
|
.titlefieldcreate { width: 20%; }
|
||||||
|
|
||||||
@ -2074,7 +2075,7 @@ table.liste, table.noborder, table.formdoc, div.noborder {
|
|||||||
-webkit-border-radius: 0.1em;
|
-webkit-border-radius: 0.1em;
|
||||||
border-radius: 0.1em;
|
border-radius: 0.1em;
|
||||||
}
|
}
|
||||||
#tablelines tr.liste_titre td, tr.liste_titre.trnoborder td {
|
#tablelines tr.liste_titre td, form.formnoborder, tr.liste_titre.trnoborder td {
|
||||||
border-top-width: 1px;
|
border-top-width: 1px;
|
||||||
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
|
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
|
||||||
border-top-style: solid;
|
border-top-style: solid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user