Skip to content
Snippets Groups Projects
Commit 26111148 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #0000 add aihp type

parent 89c9ae73
No related branches found
No related tags found
No related merge requests found
...@@ -1178,6 +1178,26 @@ abstract class visa_Abstract extends Database ...@@ -1178,6 +1178,26 @@ abstract class visa_Abstract extends Database
$str .= $joined_files[$i]['viewLink'] . "</td></tr>"; $str .= $joined_files[$i]['viewLink'] . "</td></tr>";
} }
// AIHP IF NOT CUSTOM USELESS !
$joined_files = $this->getJoinedFiles($coll_id, $table, $id, true, 'aihp');
if (count ($joined_files) > 0)
$str .= '<tr><td><h3>+ '.$_SESSION['attachment_types']['aihp'].'</h3></td><td></td><td></td><td></td><td></td></tr>';
for($i=0; $i < count($joined_files); $i++) {
//Get data
$id_doc = $joined_files[$i]['id'];
$description = $joined_files[$i]['label'];
$format = $joined_files[$i]['format'];
$contact = $users_tools->get_user($joined_files[$i]['typist']);
$dateFormat = explode(" ",$joined_files[$i]['creation_date']);
$creation_date = $request->dateformat($dateFormat[0]);
if ($joined_files[$i]['pdf_exist']) $check = 'class="check" checked="checked"'; else $check = ' disabled title="' . _NO_PDF_FILE . '"';
//Show data
$str .= '<tr><td></td><td>'.$description.'</td><td>'.$contact['firstname']." ".$contact['lastname']
. '</td><td>'.$creation_date.'</td><td><input id="join_file_'.$id_doc
. '" type="checkbox" name="join_attachment[]" value="'.$id_doc.'" '.$check
. '/>' . $joined_files[$i]['viewLink']. '</td></tr>';
}
// SIMPLE ATTACHMENT // SIMPLE ATTACHMENT
$joined_files = $this->getJoinedFiles($coll_id, $table, $id, true, 'simple_attachment'); $joined_files = $this->getJoinedFiles($coll_id, $table, $id, true, 'simple_attachment');
if (count ($joined_files) > 0) if (count ($joined_files) > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment