21 lines
846 B
PHP
21 lines
846 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="./datafile.php?q=acte-'.$siren.'-'.$ref.'.pdf&type=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="./datafile.php?q='.$suffixe.'-'.$siren.'-'.$ref.'.pdf&type=pdf" target="_blank">Ouvrir le bilan millésime '.$info['type'].'</a>';
|
||
|
break;
|
||
|
}
|
||
|
echo $message;
|