extranet/includes/infogreffe/infogreffe_fichier.php
2010-12-30 15:29:20 +00:00

29 lines
999 B
PHP

<?php
$error = '';
switch ($vue) {
case 'actes':
if (!INFOGREFFE_DEBUG) {
require_once 'scoresws/scoresws-int.php';
scoresws_setLog('greffe_'.$vue, $siren, 0, $ref);
}
$info = unserialize(urldecode($_REQUEST['info']));
$message .= '<br/><a href="./pdf/acte-'.$siren.'-'.$ref.
'.pdf" target="_blank">Ouvrir le fichier '.$info['type_lib'].' </a>';
break;
case 'bilans':
if (!INFOGREFFE_DEBUG) {
require_once 'scoresws/scoresws-int.php';
scoresws_setLog('greffe_'.$vue, $siren, 0, $ref);
}
$info = unserialize(urldecode($_REQUEST['info']));
if (file_exists(PATH_DATA.'/pdf/bilan-'.$siren.'-'.$ref.'.pdf')) {
$suffixe = 'bilan';
} else if (file_exists(PATH_DATA.'/pdf/acte-'.$siren.'-'.$ref.'.pdf')) {
$suffixe = 'acte';
}
$message .= '<br/><a href="./pdf/'.$suffixe.'-'.$siren.'-'.$ref.
'.pdf" target="_blank">Ouvrir le bilan millésime '.$info['type'].'</a>';
break;
}
print $message;