From 04ed42c8799c9e0858a19452e6af3a76e58cf34f Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Mon, 22 Oct 2018 16:26:35 +0200
Subject: [PATCH] FEAT #8551 update css + new field in result list with
 signatory

---
 .../visa/documents_list_with_signatory.php    | 124 +++++-----
 .../documents_list_with_signatory.html        | 219 +++++++++---------
 2 files changed, 162 insertions(+), 181 deletions(-)

diff --git a/modules/visa/documents_list_with_signatory.php b/modules/visa/documents_list_with_signatory.php
index c886afc5675..87ffe492a4f 100755
--- a/modules/visa/documents_list_with_signatory.php
+++ b/modules/visa/documents_list_with_signatory.php
@@ -92,10 +92,8 @@ $select[$table] = array();
 //Fields
 array_push(
     $select[$table], 'res_id', 'status', 'category_id as category_img',
-    'contact_firstname', 'contact_lastname', 'contact_society', 'user_lastname',
-    'user_firstname', 'priority', 'creation_date', 'modification_date', 'admission_date', 'subject',
-    'process_limit_date', 'recommendation_limit_date', 'entity_label', 'dest_user', 'category_id', 'type_label',
-    'exp_user_id', 'doc_custom_n1 as count_attachment', 'alt_identifier', 'is_multicontacts', 'locker_user_id', 'locker_time', 'address_id', 'res_id as signatory_user'
+    'contact_firstname', 'priority', 'creation_date', 'modification_date', 'admission_date', 'subject',
+    'process_limit_date', 'recommendation_limit_date', 'entity_label', 'dest_user', 'category_id', 'type_label', 'doc_custom_n1 as count_attachment', 'alt_identifier', 'locker_user_id', 'locker_time', 'address_id', 'res_id as signatory_user', 'filename', 'res_id as real_dest'
 );
 
 if ($core_tools->is_module_loaded('cases') == true) {
@@ -304,13 +302,16 @@ for ($i = 0; $i < $tabI; ++$i) {
                 if ($tab[$i][$j]['value'] != '' && ($statusCmp == 'NEW' || $statusCmp == 'COU' || $statusCmp == 'VAL' || $statusCmp == 'RET')) {
                     $compareDate = $core_tools->compare_date($tab[$i][$j]['value'], date('d-m-Y'));
                     if ($compareDate == 'date2') {
-                        $tab[$i][$j]['value'] = "<span style='color:red;'><b>".$tab[$i][$j]['value'].'<br><small>('.$core_tools->nbDaysBetween2Dates($tab[$i][$j]['value'], date('d-m-Y')).' '._DAYS.')<small></b></span>';
+                        $tab[$i][$j]['value'] = "<span style='color:red;'><b>".$tab[$i][$j]['value'].'<br><small>('.$core_tools->nbDaysBetween2Dates($tab[$i][$j]['value'], date('d-m-Y')).' '._DAYS.')</small></b></span>';
                     } elseif ($compareDate == 'date1') {
-                        $tab[$i][$j]['value'] = $tab[$i][$j]['value'].'<br><small>('.$core_tools->nbDaysBetween2Dates(date('d-m-Y'), $tab[$i][$j]['value']).' '._DAYS.')<small>';
+                        $tab[$i][$j]['value'] = $tab[$i][$j]['value'].'<br><small>('.$core_tools->nbDaysBetween2Dates(date('d-m-Y'), $tab[$i][$j]['value']).' '._DAYS.')</small>';
                     } elseif ($compareDate == 'equal') {
-                        $tab[$i][$j]['value'] = "<span style='color:blue;'><b>".$tab[$i][$j]['value'].'<br><small>('._LAST_DAY.')<small></b></span>';
+                        $tab[$i][$j]['value'] = "<span style='color:blue;'><b>".$tab[$i][$j]['value'].'<br><small>('._LAST_DAY.')</small></b></span>';
                     }
                 }
+                if (empty($tab[$i][$j]['value'])) {
+                    $tab[$i][$j]['value'] = '<i style="opacity:0.5;">'._UNDEFINED_DATA.'</i>';
+                }
                 $tab[$i][$j]['label'] = _PROCESS_LIMIT_DATE;
                 $tab[$i][$j]['size'] = '10';
                 $tab[$i][$j]['label_align'] = 'left';
@@ -366,50 +367,6 @@ for ($i = 0; $i < $tabI; ++$i) {
                 $tab[$i][$j]['show'] = true;
                 $tab[$i][$j]['order'] = 'subject';
             }
-            if ($tab[$i][$j][$value] == 'contact_firstname') {
-                $contact_firstname = $tab[$i][$j]['value'];
-                $tab[$i][$j]['show'] = false;
-            }
-            if ($tab[$i][$j][$value] == 'contact_lastname') {
-                $contact_lastname = $tab[$i][$j]['value'];
-                $tab[$i][$j]['show'] = false;
-            }
-            if ($tab[$i][$j][$value] == 'contact_society') {
-                $contact_society = $tab[$i][$j]['value'];
-                $tab[$i][$j]['show'] = false;
-            }
-            if ($tab[$i][$j][$value] == 'user_firstname') {
-                $user_firstname = $tab[$i][$j]['value'];
-                $tab[$i][$j]['show'] = false;
-            }
-            if ($tab[$i][$j][$value] == 'user_lastname') {
-                $user_lastname = $tab[$i][$j]['value'];
-                $tab[$i][$j]['show'] = false;
-            }
-            if ($tab[$i][$j][$value] == 'exp_user_id') {
-                if (empty($contact_lastname) && empty($contact_firstname) && empty($user_lastname) && empty($user_firstname)) {
-                    $query = 'SELECT ca.firstname, ca.lastname FROM contact_addresses ca, res_view_letterbox rvl
-                                WHERE rvl.res_id = ?
-                                AND rvl.address_id = ca.id AND rvl.exp_contact_id = ca.contact_id';
-                    $arrayPDO = array($tab[$i][0]['res_id']);
-                    $stmt2 = $db->query($query, $arrayPDO);
-                    $return_contact = $stmt2->fetchObject();
-                    if (!empty($return_contact)) {
-                        $contact_firstname = $return_contact->firstname;
-                        $contact_lastname = $return_contact->lastname;
-                    }
-                }
-
-                $tab[$i][$j]['label'] = _CONTACT;
-                $tab[$i][$j]['size'] = '10';
-                $tab[$i][$j]['label_align'] = 'left';
-                $tab[$i][$j]['align'] = 'left';
-                $tab[$i][$j]['valign'] = 'bottom';
-                $tab[$i][$j]['show'] = false;
-                $tab[$i][$j]['value_export'] = $tab[$i][$j]['value'];
-                $tab[$i][$j]['value'] = $contact->get_contact_information_from_view($_SESSION['mlb_search_current_category_id'], $contact_lastname, $contact_firstname, $contact_society, $user_lastname, $user_firstname);
-                $tab[$i][$j]['order'] = false;
-            }
             if ($tab[$i][$j][$value] == 'dest_user') {
                 $tab[$i][$j]['label'] = 'dest_user';
                 $tab[$i][$j]['size'] = '10';
@@ -418,27 +375,21 @@ for ($i = 0; $i < $tabI; ++$i) {
                 $tab[$i][$j]['valign'] = 'bottom';
                 $tab[$i][$j]['show'] = false;
                 $tab[$i][$j]['value_export'] = $tab[$i][$j]['value'];
+                if (!empty($tab[$i][$j]['value'])) {
+                    $user = \User\models\UserModel::getByUserId(['userId' => $tab[$i][$j]['value'], 'select' => ['firstname', 'lastname']]);
+                    $dest = $tab[$i][$j]['value'];
+                    $dest = $user['firstname'] . ' ' . $user['lastname'];
+                } else {
+                    $dest = '<i style="opacity:0.5;">'._UNDEFINED_DATA.'</i>';
+                }
+                $tab[$i][$j]["value"]=$dest;
                 if ($tab[$i][15]['value'] == 'outgoing') {
-                    $tab[$i][$j]['value'] = '<b>'._TO_CONTACT_C.'</b>'.$tab[$i][$j]['value'];
+                    $tab[$i][$j]['value'] = '<b>'._WRITTEN_BY.' : </b>'.$tab[$i][$j]['value'];
                 } else {
-                    $tab[$i][$j]['value'] = '<b>'._FOR_CONTACT_C.'</b>'.$tab[$i][$j]['value'];
+                    $tab[$i][$j]['value'] = '<b>'._PROCESSED_BY.' : </b>'.$tab[$i][$j]['value'];
                 }
                 $tab[$i][$j]['order'] = false;
             }
-            if ($tab[$i][$j][$value] == 'is_multicontacts') {
-                if ($tab[$i][$j]['value'] == 'Y') {
-                    $tab[$i][$j]['label'] = _CONTACT;
-                    $tab[$i][$j]['size'] = '10';
-                    $tab[$i][$j]['label_align'] = 'left';
-                    $tab[$i][$j]['align'] = 'left';
-                    $tab[$i][$j]['valign'] = 'bottom';
-                    $tab[$i][$j]['show'] = false;
-                    $tab[$i][$j]['value_export'] = $tab[$i][$j]['value'];
-                    $tab[$i][$j]['value'] = _MULTI_CONTACT;
-                    $tab[$i][$j]['order'] = false;
-                    $tab[$i][$j]['is_multi_contacts'] = 'Y';
-                }
-            }
             if ($tab[$i][$j][$value] == 'type_label') {
                 $tab[$i][$j]['value'] = $request->show_string($tab[$i][$j]['value']);
                 $tab[$i][$j]['label'] = _TYPE;
@@ -453,7 +404,7 @@ for ($i = 0; $i < $tabI; ++$i) {
                 //couleurs des priorités
                 $fakeId = null;
                 foreach ($_SESSION['mail_priorities_id'] as $key => $prioValue) {
-                    if ($prioValue == $tab[$i][8]['value']) {
+                    if ($prioValue == $tab[$i][4]['value']) {
                         $fakeId = $key;
                     }
                 }
@@ -494,7 +445,6 @@ for ($i = 0; $i < $tabI; ++$i) {
                 $arrayPDO = array($tab[$i][0]['res_id'], $_SESSION['collection_id_choice'], $_SESSION['user']['UserId']);
                 $stmt2 = $db->query($query, $arrayPDO);
                 $return_count = $stmt2->fetchObject();
-
                 $tab[$i][$j]['label'] = _ATTACHMENTS;
                 $tab[$i][$j]['size'] = '12';
                 $tab[$i][$j]['label_align'] = 'left';
@@ -551,6 +501,42 @@ for ($i = 0; $i < $tabI; ++$i) {
                 $tab[$i][$j]['show'] = false;
                 $tab[$i][$j]['order'] = '';
             }
+
+            if ($tab[$i][$j][$value] == 'real_dest') {
+                $query = 'SELECT item_id, type FROM resource_contacts WHERE res_id = ?';
+                $arrayPDO = array($tab[$i][$j]['value']);
+                $stmt2 = $db->query($query, $arrayPDO);
+                $return_stmt = $stmt2->fetchObject();
+
+                if ($return_stmt->type == 'contact') {
+                    $query = 'SELECT * FROM view_contacts WHERE ca_id = ?';
+                    $arrayPDO = array($return_stmt->item_id);
+                    $stmt2 = $db->query($query, $arrayPDO);
+                    $return_stmt = $stmt2->fetch(PDO::FETCH_ASSOC);
+                    $formattedContact = \SrcCore\controllers\AutoCompleteController::getFormattedContact(['contact' => $return_stmt]);
+                    $tab[$i][$j]['value'] = $formattedContact['contact']['contact'];
+                } else if ($return_stmt->type == 'entity') {
+                    $query = 'SELECT short_label FROM entities WHERE id = ?';
+                    $arrayPDO = array($return_stmt->item_id);
+                    $stmt2 = $db->query($query, $arrayPDO);
+                    $return_stmt = $stmt2->fetchObject();
+                    $tab[$i][$j]['value'] = $return_stmt->entity_label;
+                } else {
+                    $query = 'SELECT firstname, lastname FROM users WHERE id = ?';
+                    $arrayPDO = array($return_stmt->item_id);
+                    $stmt2 = $db->query($query, $arrayPDO);
+                    $return_stmt = $stmt2->fetchObject();
+                    $tab[$i][$j]['value'] = $return_stmt->firstname.' '. $return_stmt->lastname;
+                }
+                if (empty(trim($tab[$i][$j]['value']))) {
+                    $tab[$i][$j]['value'] = null;
+                } else if ($_SESSION['mlb_search_current_category_id'] == 'outgoing') {
+                    $tab[$i][$j]['value'] = '<b>'._TO_CONTACT_C.'</b>'.$tab[$i][$j]['value'];
+                } else {
+                    $tab[$i][$j]['value'] = '<b>'._FOR_CONTACT_C.'</b>'.$tab[$i][$j]['value'];
+                }
+                $tab[$i][$j]['order'] = false;
+            }
         }
     }
 }
diff --git a/modules/visa/template/documents_list_with_signatory.html b/modules/visa/template/documents_list_with_signatory.html
index 576cfa490b1..7a577fdb311 100755
--- a/modules/visa/template/documents_list_with_signatory.html
+++ b/modules/visa/template/documents_list_with_signatory.html
@@ -1,12 +1,17 @@
 <!--
-* Copyright Maarch since 2008 under licence GPLv3.
-* See LICENCE.txt file at the root folder for more details.
-* This file is part of Maarch software.
 
-* @brief   documents_list_with_signatory template
-* @author  dev <dev@maarch.org>
-* @ingroup visa
+* basket_list and search_adv_list template
 *
+*
+* @package  Maarch LetterBox 3.0
+* @version 3.0
+* @since 10/2005
+* @license GPL
+* @author  Loïc Vinet  <dev@maarch.org>
+*
+
+
+
 
 Parts :
     ##HEAD< : Begining of the head part
@@ -49,123 +54,114 @@ Mods
 
 #!#TABLE
 <!-- ----------------------------------------------------------------------- -->
-    <table border="0" cellspacing="0" class="listing spec  zero_padding" id="extended_list" style ="padding: 0px;">
+    <table border="0" cellspacing="0" class="listing spec  zero_padding listResultContent" id="extended_list" style="display:block;padding: 0px;width:100%;">
 
 #!#HEAD
 <!-- ----------------------------------------------------------------------- -->
-        <thead border ="1">
+        <thead border="1" class="listResultContentHead">
             <tr>
-                <!--<th width="100%" colspan="2">
-                    <div align="center" style="border:1px solid; height:20px;margin-bottom:10px;padding-top:10px;vertical-align:middle;">
-						##checkUncheckAll##&nbsp;
-                        ##defineLang|_SORT_BY## :
-                        ##defineLang|_NUM_GED##            ##sortColumn|res_id##&nbsp;
-                        ##defineLang|_TYPE##               ##sortColumn|type_label##&nbsp;
-                        ##defineLang|_SUBJECT##            ##sortColumn|subject##&nbsp;
-                        ##defineLang|_DEST_USER##          ##sortColumn|dest_user##&nbsp;
-                        ##defineLang|_REG_DATE##           ##sortColumn|creation_date##&nbsp;
-                        ##defineLang|_PROCESS_LIMIT_DATE## ##sortColumn|process_limit_date##&nbsp;
-                        ##defineLang|_ENTITY##             ##sortColumn|entity_label##&nbsp;
-                        ##defineLang|_CATEGORY##           ##sortColumn|category_id##
-                        ##ifStatement|#isModuleLoaded|cases#===true|&nbsp;#defineLang|_CASE# #sortColumn|case_label#| ##
+                <th style="width:150px;text-align:center;">
+                    <span style="text-align:center;">
+                        ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==res_id|<i>#defineLang|_NUM_GED#</i>|## ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==chrono_number|<i>#defineLang|_CHRONO_NUMBER_SHORT#</i>|## / ##defineLang|_STATUS##<br/>##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==res_id|#sortColumn|res_id#|## ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==chrono_number|#sortColumn|alt_identifier#|## / ##sortColumn|status##
+                    </span>
+                </th>
+                <th>
+                    <div style="display:flex;">
+                        <span style="text-align:center;flex:1;">
+                            ##defineLang|_SUBJECT## / ##defineLang|_PRIORITY##<br/>##sortColumn|subject## / ##sortColumn|priority##
+                        </span>
+                        <span style="text-align:center;flex:1;">
+                            ##defineLang|_CATEGORY##<br/>##sortColumn|category_id##
+                        </span>
+                        <span style="text-align:center;flex:1;">
+                            ##defineLang|_CREATION_DATE##<br/>##sortColumn|creation_date##
+                        </span>
+                        <span style="text-align:center;flex:1;">
+                            ##defineLang|_PROCESS_LIMIT_DATE##<br/>##sortColumn|process_limit_date##
+                        </span>
+                        <span style="text-align:center;flex:2;">
+                            ##defineLang|_ASSIGNEE## - ##defineLang|_REDACTOR## / ##defineLang|_ENTITY##<br/>##sortColumn|dest_user## / ##sortColumn|entity_label##
+                        </span>
+                        <span style="text-align:center;flex:1;">
+                            ##defineLang|_TYPE##<br/>##sortColumn|type_label##
+                        </span>
+                        <span style="text-align:center;flex:1;">
+                            ##defineLang|_SIGNATORY##<br/><br/>
+                        </span>
                     </div>
-                </th>-->
-                <th width="120px;">
-                <table width="100%" border="0" cellspacing="0" cellpadding="0" >
-                <tr>
-                    <th style="text-align:center">##checkUncheckAll##<br/>##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==res_id|<i>#defineLang|_NUM_GED#</i>|## ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==chrono_number|<i>#defineLang|_CHRONO_NUMBER_SHORT#</i>|## / ##defineLang|_STATUS##<br/>##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==res_id|#sortColumn|res_id#|## ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==chrono_number|#sortColumn|alt_identifier#|## / ##sortColumn|status##</th>
-                </tr>
-                </table>
                 </th>
-                        <th style="text-align:center" >
-                            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
-                                    <tr>
-                                        
-                                        <th style="font-size:9px;" width ="120px">##defineLang|_SUBJECT## / ##defineLang|_PRIORITY##<br/>##sortColumn|subject## / ##sortColumn|priority##</th>
-                                        <th style="font-size:9px;text-align:left;" width ="130px">##defineLang|_CATEGORY##<br/>##sortColumn|category_id##</th>
-                                        <th style="font-size:9px;" width ="140px" >##defineLang|_CREATION_DATE##<br/>##sortColumn|creation_date##</th>
-                                        <th style="font-size:9px;" width ="185px" >##defineLang|_PROCESS_LIMIT_DATE##<br/>##sortColumn|process_limit_date##</th>
-                                        <th style="font-size:9px;" width ="170px" >##defineLang|_ENTITY##<br/>##sortColumn|entity_label##</th>
-                                        <th style="font-size:9px;" width ="282px" >##defineLang|_TYPE##<br/>##sortColumn|type_label##</th>
-                                        <th style="font-size:9px;" width ="50px" >##defineLang|_SIGNATORY##<br/><span style="visibility:hidden;">##sortColumn|res_id##</span></th>
-                                     
-                                    </tr>                         
-                            </table>
-                        </th>
             </tr>
         </thead>
 
-        <tbody>
+        <tbody class="listResultContentBody">
         
 #!#RESULT
 <!-- ----------------------------------------------------------------------- -->
-                <tr  class="##cssLine|col|white##"  title="##showDefaultAction##">
-
-                    <td width="10%" ##clickOnLine##>
-                        <!--<div align="center"><img src="##load_img|contact_maarch.gif##" alt="##loadValue|status##" title="##loadValue|status##"> </div>-->
-                        <div align="center" style ="color:#135F7F;">##loadValue|status####func_isConfidential##</div>
+            <tr class="##cssLine|col|white##" title="##showDefaultAction##">
+                <td style="width:150px;text-align:center;" ##clickOnLine##>
+                    ##loadValue|status####func_isConfidential##<br/><br/>
+                    <b title="n°##loadValue|res_id##">##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==res_id|#loadValue|res_id#|## ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==chrono_number|#loadValue|alt_identifier#|##</b>
+                    ##func_cadenas|'#loadValue|locker_user_id#'|'#loadValue|locker_time#'##  ##radioButton## ##checkBox##
+                </td>
+                <td style="padding: 10px;">
+                    <span style="display: flex;width: 100%;padding-bottom: 20px;align-items: center;" ##clickOnLine##>
+                        <span style="flex:5;font-weight:bold;padding-left: 10px;font-size:15px;">
+                            ##loadValue|subject##
+                        </span>
+                        <span style="flex:1;text-align: right;">
+                            <span title="##defineLang|_VISA_USER## - ##defineLang|_SIGN_USER##">##loadValue|signatory_user##</span><br/>
+                            ##ifStatement|'#loadValue|real_dest#'!=null|#loadValue|real_dest#|##<br/><br/>
+                            ##ifStatement|'#loadValue|case_label#'!=null|<b>#defineLang|_CASE# : </b>#loadValue|case_label#|##
+                        </span>
+                    </span>
+                    <span style="display: flex;width: 100%;">
+                        <span style="flex:1;" title="##defineLang|_PRIORITY##" ##clickOnLine##>
+                            ##loadValue|priority##
+                        </span>
+                        <span style="flex:1;" title="##defineLang|_CATEGORY##" ##clickOnLine##>
+                            ##loadValue|category_img## ##loadValue|category_id##
+                        </span>
+                        <span style="flex:1;" title="##defineLang|_CREATION_DATE##" ##clickOnLine##>
+                            <i class="fa fa-calendar-alt fa-2x"></i> ##loadValue|creation_date##
+                        </span>
+                        <span style="flex:1;" title="##defineLang|_PROCESS_LIMIT_DATE##" ##clickOnLine##>
+                            <i class="fa fa-bell fa-2x"></i> ##loadValue|process_limit_date##
+                        </span>
+                        <span style="flex:2;" ##clickOnLine##>
+                            <span title="##defineLang|_ASSIGNEE## - ##defineLang|_REDACTOR##">##loadValue|dest_user##</span> <span title="##defineLang|_ENTITY##">(##loadValue|entity_label##)</span>
+                        </span>
+                        <span style="flex:1;" title="##defineLang|_TYPE##" ##clickOnLine##>
+                            <i class="fa fa-file fa-2x"></i> ##loadValue|type_label##
+                        </span>
+                        <span style="flex:1;">
+                            <span class="actionsTool" style="text-align:center;">
+                                ##func_bool_see_notes##
+                                ##showActionFA|#defineLang|_ATTACHMENTS#|paperclip|loadRepList('#loadValue|res_id#', 'FT')|#loadValue|count_attachment# == 0##
+                                ##showActionFA|#defineLang|_WF#|share-alt|loadDiffList('#loadValue|res_id#')##
+                                ##ifStatement|'#loadValue|filename#'!=null|#showIconDocument#|##
+                                ##showIconDetails##
+                            </span>
+                        </span>
+                    </span>
+                   
+                </td>
+            </tr>
+               <tr id="noteList_##loadValue|res_id##" name="noteList_##loadValue|res_id##" style="display: none; border-bottom: solid 1px black; background-color: white;" width="100%">
+                    <td colspan="6" style="background-color: #f2f2f2;">
+                        <div id="divNoteList_##loadValue|res_id##" align="center" style="color: grey;margin:10px;padding:10px;border: 1px dashed #135F7F;">
+                            <i class="fa fa-spinner fa-2x"></i><br />
+                            ##define_lang|_LOADING_INFORMATIONS##
+                        </div>
                     </td>
-                    <td width="90%" align="center" style="padding : 0px; vertical-align:top" ##clickOnLine##>
-                        <table width="100%" border="0" cellspacing="0" cellpadding="0" >
-                                <tr>
-                                    <td width="82.5%"   style="font-size:14px;font-weight:bold;">##loadValue|subject##</td>
-                                    <td width="17.5%">
-                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
-                                            <tr>
-                                                <td style="text-align:right;">##loadValue|signatory_user##</td>
-                                            </tr>
-
-                                            <tr><td> </td><td></td></tr>
-											##ifStatement|'#loadValue|case_label#'!=null|<tr><td style="text-align:right"><b>#defineLang|_CASE# : </b>#loadValue|case_label#</td></tr>|##
-                                        </table>
-                                    </td>
-                                </tr>
-                        </table>
+                </tr>   
+               <tr id="contactsList_##loadValue|res_id##" name="contactsList_##loadValue|res_id##" style="display: none; border-bottom: solid 1px black; background-color: white;" width="100%">
+                    <td colspan="6" style="background-color: #f2f2f2;">
+                        <div id="divContactsList_##loadValue|res_id##" align="center" style="color: grey;margin:10px;padding:10px;border: 1px dashed #135F7F;">
+                            <i class="fa fa-spinner fa-2x"></i><br />
+                            ##define_lang|_LOADING_INFORMATIONS##
+                        </div>
                     </td>
-                </tr>
-                <tr class="##cssLineReload##" title="##showDefaultAction##">
-                        <td title="n°##loadValue|res_id##" style="text-align:center" style="font-size:13px;" >##func_cadenas|'#loadValue|locker_user_id#'|'#loadValue|locker_time#'##  ##radioButton## ##checkBox##<b>##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==res_id|#loadValue|res_id#|## ##ifStatement|'#defineLang|_ID_TO_DISPLAY#'==chrono_number|#loadValue|alt_identifier#|##</b></td>
-                        <td style="text-align:center" >
-                            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
-                                    <tr>
-                                        
-                                        <td style="font-size:10px;" width ="80px">##loadValue|priority##</td>
-                                        <td style="font-size:10px;text-align:right;" width ="30px" alt="##defineLang|_CATEGORY##" title="##defineLang|_CATEGORY##" ##clickOnLine##>##loadValue|category_img##</td>
-                                        <td style="font-size:10px;" width ="100px" >##loadValue|category_id##</td>
-                                        <td style="font-size:10px;text-align:right;" width ="30px" alt="##defineLang|_CREATION_DATE##" title="##defineLang|_CREATION_DATE##" ##clickOnLine##><i class="fa fa-calendar-alt fa-2x"></i> </td>
-                                        <td style="font-size:10px;" width ="100px" >##loadValue|creation_date##</td>
-                                        <td style="font-size:10px;text-align:right;" width ="30px" alt="##defineLang|_PROCESS_LIMIT_DATE##" title="##defineLang|_PROCESS_LIMIT_DATE##" ##clickOnLine##><i class="fa fa-bell  fa-2x"></i> </td>
-                                        <td style="font-size:10px;" width ="100px" >##loadValue|process_limit_date##</td>
-                                        <td style="font-size:10px;text-align:right;" width ="40px" alt="##defineLang|_ENTITY##" title="##defineLang|_ENTITY##" ##clickOnLine##><i class="fa fa-sitemap fa-2x"></i></td>
-                                        <td style="font-size:10px;" width ="110px" > ##loadValue|entity_label##</td>
-                                        <td style="font-size:10px;text-align:right" width ="30px"  alt="##defineLang|_TYPE##" title="##defineLang|_TYPE##" ##clickOnLine##><i class="fa fa-file fa-2x"></i>
-                                        <td style="font-size:10px;text-align:left"  width ="80px" >##loadValue|type_label##</td>
-                                        <td style="font-size:10px;" width ="50px">##func_bool_see_multi_contacts##</td>
-                                        <td style="font-size:10px;" width ="30px">##func_bool_see_notes##</td>
-                                        <td style="font-size:10px;" width ="30px">##showActionFA|#defineLang|_ATTACHMENTS#|paperclip|loadRepList('#loadValue|res_id#')|#loadValue|count_attachment# == 0##</td>
-                                        <td style="font-size:10px;" width ="30px">##showActionFA|#defineLang|_WF#|share-alt|loadDiffList('#loadValue|res_id#')##</td>
-                                        <td style="font-size:10px;" width ="30px" >##showIconDocument##</td>
-                                        <td style="font-size:10px;" width ="30px" >##showIconDetails##</td>
-                                    </tr>                         
-                            </table>
-                        </td>
-                </tr>
-			   <tr id="noteList_##loadValue|res_id##" name="noteList_##loadValue|res_id##" style="display: none; border-bottom: solid 1px black; background-color: white;" width="100%">
-					<td colspan="6" style="background-color: #f2f2f2;">
-						<div id="divNoteList_##loadValue|res_id##" align="center" style="color: grey;margin:10px;padding:10px;border: 1px dashed #135F7F;">
-							<i class="fa fa-spinner fa-2x"></i><br />
-							##define_lang|_LOADING_INFORMATIONS##
-						</div>
-					</td>
-				</tr>	
-			   <tr id="contactsList_##loadValue|res_id##" name="contactsList_##loadValue|res_id##" style="display: none; border-bottom: solid 1px black; background-color: white;" width="100%">
-					<td colspan="6" style="background-color: #f2f2f2;">
-						<div id="divContactsList_##loadValue|res_id##" align="center" style="color: grey;margin:10px;padding:10px;border: 1px dashed #135F7F;">
-							<i class="fa fa-spinner fa-2x"></i><br />
-							##define_lang|_LOADING_INFORMATIONS##
-						</div>
-					</td>
-				</tr>	
+                </tr>   
                 <tr id="repList_##loadValue|res_id##" name="repList_##loadValue|res_id##" style="display: none; border-bottom: solid 1px black; background-color: #FFF;" width="100%">
                     <td colspan="2" style="background-color: #f2f2f2;">
                         <div id="divRepList_##loadValue|res_id##" align="center" style="color: grey;margin:10px;padding:10px;border: 1px dashed #135F7F;">
@@ -181,7 +177,7 @@ Mods
                             ##defineLang|_LOADING_INFORMATIONS##
                         </div>
                     </td>
-                </tr>
+                </tr> 
 
  #!#FOOTER
  <!--   ----------------------------------------------------------------------- -->
@@ -192,6 +188,5 @@ Mods
 <script>
     $j('#container').attr('style', 'width: 90%; min-width: 1000px;');
     $j('#content').attr('style', 'width: auto; min-width: 1000px;');
-    $j('#inner_content').attr('style', 'width: auto; min-width: 1000px;');
     $j('table#extended_list').attr('style', 'width: 100%; min-width: 900px; margin: 0;');
-</script>
\ No newline at end of file
+</script>
-- 
GitLab