21 lines
806 B
PHP
21 lines
806 B
PHP
<?php
|
|
$error = '';
|
|
switch($vue)
|
|
{
|
|
case 'actes':
|
|
if(!INFOGREFFE_DEBUG) $client->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) $client->setLog('greffe_'.$vue, $siren, 0, $ref);
|
|
$info = unserialize(urldecode($_REQUEST['info']));
|
|
if(file_exists(PATH_DATA.'/pdf/bilan-'.$siren.'-'.$ref.'.pdf')){
|
|
$suffixe = 'bilan';
|
|
}elseif(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;
|
|
}
|
|
echo $message; |