Skip to content
Snippets Groups Projects
Commit abe67d8e authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12510 TIME 0:20 removed print files

parent db3ed55d
No related branches found
No related tags found
No related merge requests found
<?php
require_once('core/class/PrintControler.php');
if (isset($_REQUEST['id']) && $_REQUEST['id'] <> '') {
$print = new PrintControler($_REQUEST['id']);
} else {
$print = new PrintControler();
}
if (!empty($_SESSION['error'])) {
?>
<script language="javascript" >
window.opener.location.reload();
window.close();
</script>
<?php
} else {
if (
file_exists($_SESSION['config']['tmppath'] . $_SESSION['print']['filename'])
&& $_SESSION['print']['filename'] <> ''
) {
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
//header('Cache-Control: public');
//header('Content-Description: File Transfer');
header('Content-Type: application/pdf');
header('Content-Disposition: inline; filename=print_maarch.pdf;');
//header('Content-Transfer-Encoding: binary');
readfile($_SESSION['config']['tmppath'] . $_SESSION['print']['filename']);
unlink($_SESSION['config']['tmppath'] . $_SESSION['print']['filename']);
} else {
echo _NO_DOC_OR_NO_RIGHTS;
}
exit;
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<!--
letterbox_coll
-->
<letterbox_coll>
<FIELD>
<LIBELLE>Num GED</LIBELLE>
<DATABASE_FIELD>res_view_letterbox.res_id</DATABASE_FIELD>
</FIELD>
<!-- line 1 -->
<FIELD>
<LIBELLE>Catégorie du courrier</LIBELLE>
<DATABASE_FIELD>category_id</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Priorité</LIBELLE>
<DATABASE_FIELD>priority</DATABASE_FIELD>
</FIELD>
<!-- line 2 -->
<FIELD>
<LIBELLE>Date d'arrivée</LIBELLE>
<DATABASE_FIELD>admission_date</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Date limite de traitement</LIBELLE>
<DATABASE_FIELD>process_limit_date</DATABASE_FIELD>
</FIELD>
<!-- line 3 -->
<FIELD>
<LIBELLE>Date de création</LIBELLE>
<DATABASE_FIELD>creation_date</DATABASE_FIELD>
</FIELD>
<!-- line 4 -->
<FIELD>
<LIBELLE>Date du document</LIBELLE>
<DATABASE_FIELD>doc_date</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Type de courrier</LIBELLE>
<DATABASE_FIELD>type_label</DATABASE_FIELD>
</FIELD>
<!-- line 5 -->
<FIELD>
<LIBELLE>Dossier</LIBELLE>
<DATABASE_FIELD>folder_name</DATABASE_FIELD>
</FIELD>
<!-- line 6 -->
<FIELD>
<LIBELLE>Statut</LIBELLE>
<DATABASE_FIELD>status</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Num chrono</LIBELLE>
<DATABASE_FIELD>alt_identifier</DATABASE_FIELD>
</FIELD>
<!-- other infos-->
<FIELD>
<LIBELLE>Nom de l'entité primaire de l'utilisateur ayant enregistré le courrier</LIBELLE>
<DATABASE_FIELD>initiator</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>ID de l'expéditeur</LIBELLE>
<DATABASE_FIELD>contact_id</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Prénom de l'expéditeur</LIBELLE>
<DATABASE_FIELD>contact_firstname</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Nom de l'expéditeur</LIBELLE>
<DATABASE_FIELD>contact_lastname</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Société de l'expéditeur</LIBELLE>
<DATABASE_FIELD>contact_society</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Nom du contact interne</LIBELLE>
<DATABASE_FIELD>user_lastname</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Prénom du contact interne</LIBELLE>
<DATABASE_FIELD>user_firstname</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Service destinataire</LIBELLE>
<DATABASE_FIELD>entity_label</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Destinataire principal</LIBELLE>
<DATABASE_FIELD>dest_user</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Objet</LIBELLE>
<DATABASE_FIELD>subject</DATABASE_FIELD>
</FIELD>
<FIELD>
<LIBELLE>Responsable de versement</LIBELLE>
<DATABASE_FIELD>typist</DATABASE_FIELD>
</FIELD>
<FUNCTIONS>
<FUNCTION>
<LIBELLE>Contacts multiples</LIBELLE>
<CALL>retrieve_multi_contacts</CALL>
</FUNCTION>
<FUNCTION>
<LIBELLE>Services en copie</LIBELLE>
<CALL>retrieve_copies</CALL>
</FUNCTION>
<FUNCTION>
<LIBELLE>Notes libres</LIBELLE>
<CALL>free_notes</CALL>
</FUNCTION>
<FUNCTION>
<LIBELLE>Notes</LIBELLE>
<CALL>retrieve_notes</CALL>
</FUNCTION>
<FUNCTION>
<LIBELLE>Circuit visa</LIBELLE>
<CALL>retrieve_VisaWorkflow</CALL>
</FUNCTION>
</FUNCTIONS>
</letterbox_coll>
</ROOT>
This diff is collapsed.
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