diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 80fd4b5cfb2..3e708f57dab 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -35,6 +35,10 @@ require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); $langs->load("companies"); +$socidp = isset($_GET["socid"])?$_GET["socid"]:$_POST["socid"]; +$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"]; +$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"]; +$page = isset($_GET["page"])?$_GET["page"]:$_POST["page"]; // Sécurité accés client if ($user->societe_id > 0) @@ -43,11 +47,6 @@ if ($user->societe_id > 0) $socidp = $user->societe_id; } - -$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"]; -$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"]; -$page = isset($_GET["page"])?$_GET["page"]:$_POST["page"]; - if ($page == -1) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index bda25d377ea..e44aacf9b20 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -401,7 +401,7 @@ if ($socidp > 0) if ($num > 0) { print '
| '.$langs->trans("LastPropals",($num<=$MAXLIST?"":$MAXLIST)).' | '.$langs->trans("AllPropals").' ('.$num.') |
| '.$langs->trans("LastPropals",($num<=$MAXLIST?"":$MAXLIST)).' | '.$langs->trans("AllPropals").' ('.$num.') |
| '.$langs->trans("LastContracts",($num<=$MAXLIST?"":$MAXLIST)).' | '; - print ''.$langs->trans("AllContracts").' ('.$num.') |
| '.$langs->trans("Firstname").' '.$langs->trans("Lastname").' | '; + print '|||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Name").' | '; print ''.$langs->trans("Poste").' | '.$langs->trans("Tel").' | '; print ''.$langs->trans("Fax").' | '.$langs->trans("EMail").' | '; print ""; @@ -689,7 +690,7 @@ if ($socidp > 0) $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note "; $sql .= " FROM ".MAIN_DB_PREFIX."socpeople as p"; - $sql .= " WHERE p.fk_soc = $objsoc->id"; + $sql .= " WHERE p.fk_soc = ".$objsoc->id; $sql .= " ORDER by p.datec"; $result = $db->query($sql); @@ -747,8 +748,10 @@ if ($socidp > 0) * Listes des actions a faire * */ + print_titre($langs->trans("ActionsOnCompany")); + print ' | ||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsToDo").' | ||||||||||||||
| '.$langs->trans("ActionsToDoShort").' | ||||||||||||||
| | | '; - } - else - { - print ''.strftime("%Y",$obj->dp)." | \n"; - $oldyear = strftime("%Y",$obj->dp); - } - - if ($oldmonth == strftime("%Y%b",$obj->dp) ) - { - print '| | '; - } - else - { - print '' .strftime("%b",$obj->dp)." | \n"; - $oldmonth = strftime("%Y%b",$obj->dp); - } - - print ''.strftime("%d",$obj->dp)." | \n"; - print ''.strftime("%H:%M",$obj->dp).' | '; - - // Picto warning - print ''; - if (date("U",$obj->dp) < time()) print ' '.img_warning("Late"); - else print ' '; - print ' | '; - - // Status/Percent - print ''; - - if ($obj->propalrowid) - { - print ' | '.img_object($langs->trans("ShowAction"),"task"); - $transcode=$langs->trans("Action".$obj->acode); - $libelle=($transcode!="Action".$obj->acode?$transcode:$obj->libelle); - print $libelle; - print ' | '; - } - else - { - print ''.img_object($langs->trans("ShowAction"),"task"); - $transcode=$langs->trans("Action".$obj->acode); - $libelle=($transcode!="Action".$obj->acode?$transcode:$obj->libelle); - print $libelle; - print ' | '; - } - print ''.$obj->label.' | '; - - // Contact pour cette action - if ($obj->fk_contact) { - $contact = new Contact($db); - $contact->fetch($obj->fk_contact); - print ''.img_object($langs->trans("ShowContact"),"contact").' '.$contact->fullname.' | '; - } else { - print ''; - } - - print ' | '.img_object($langs->trans("ShowUser"),"user").' '.$obj->code.' | '; - print "|
| '.$langs->trans("ActionsDone").' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsDoneShort").' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Firstname").' '.$langs->trans("Lastname").' | '; + print '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Name").' | '; print ''.$langs->trans("Poste").' | '.$langs->trans("Tel").' | '; print ''.$langs->trans("Fax").' | '.$langs->trans("EMail").' | '; print ""; @@ -447,8 +448,9 @@ if ($socid > 0) * Listes des actions a faire * */ + print_titre($langs->trans("ActionsOnCompany")); print ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsToDo").' | |||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsToDoShort").' | |||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsDone").' | |||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsDoneShort").' | |||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Firstname").' '.$langs->trans("Lastname").' | '; + print '|||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Name").' | '; print ''.$langs->trans("Poste").' | '.$langs->trans("Tel").' | '; print "".$langs->trans("Fax")." | ".$langs->trans("EMail")." | "; print ""; @@ -359,8 +362,9 @@ if ( $societe->fetch($socid) ) * Listes des actions a faire * */ + print_titre($langs->trans("ActionsOnCompany")); print ' | ||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("ActionsToDo").' | ||||||||||
| '.$langs->trans("ActionsToDoShort").' | ||||||||||
| '.$langs->trans("ActionsDone").' | ||||||||||
| '.$langs->trans("ActionsDoneShort").' |