2009-12-04 17:17:09 +00:00
< ? php
/*
2010-02-10 17:27:03 +00:00
* Commande de pièces
2009-12-04 17:17:09 +00:00
*/
2010-02-10 17:27:03 +00:00
//Paramètres
2010-04-27 08:09:23 +00:00
if ( ! page_checkParams ()) die ( 'Paramètres incorrects !' );
2009-12-04 17:17:09 +00:00
2010-01-12 15:32:56 +00:00
function sendCmdMail ( $sujet , $message )
{
2010-03-01 11:47:37 +00:00
require_once 'mail/mail.php' ;
2010-03-15 08:41:52 +00:00
sendMail (
$sujet ,
$message ,
2010-03-01 11:47:37 +00:00
//From
2010-03-15 08:41:52 +00:00
array (
2010-03-01 11:47:37 +00:00
'email' => 'contact@scores-decisions.com' ,
'name' => 'Contact' ,
2010-03-15 08:41:52 +00:00
),
2010-03-01 11:47:37 +00:00
//TO
array (
0 => array (
2010-03-15 08:41:52 +00:00
'email' => 'pieces@scores-decisions.com' ,
2010-03-01 11:47:37 +00:00
'name' => 'Pieces'
)
)
2010-03-15 08:41:52 +00:00
);
2010-01-12 15:32:56 +00:00
};
2010-01-08 10:17:59 +00:00
2009-12-11 15:12:58 +00:00
$firephp -> log ( $_REQUEST );
if ( isset ( $_REQUEST [ 'action' ]))
{
switch ( $_REQUEST [ 'action' ])
{
case 'kbis' :
if ( $_REQUEST [ 'method' ] == 'M' )
{
2010-02-10 17:27:03 +00:00
//Vérification des champs
2009-12-11 15:12:58 +00:00
if ( ! empty ( $_REQUEST [ 'email' ]))
2010-03-15 08:41:52 +00:00
{
2010-05-04 08:28:33 +00:00
//Envoi du mail
2010-01-12 15:32:56 +00:00
sendCmdMail ( '[COMMANDE PIECES] - KBIS par email' ,
2010-03-15 08:41:52 +00:00
'COMMANDE DE PIECES - Demande de kbis par email <br/>' . EOL .
'Demande pour recevoir le KBIS de SIREN :' .
2010-01-18 08:31:52 +00:00
'<a href="' . EXTRANET_URL . '/?page=identite&siret=' . $_REQUEST [ 'siret' ] . '">' .
2010-01-12 15:32:56 +00:00
$_REQUEST [ 'siret' ] . '</a><br/>' . EOL .
'pour login ' . $_SESSION [ 'tabInfo' ][ 'login' ] . '(' . $_REQUEST [ 'email' ] . ')<br/>' . EOL .
2010-02-10 17:27:03 +00:00
'Référence : ' . $_REQUEST [ 'ref' ]);
2010-03-15 08:41:52 +00:00
2010-05-04 08:28:33 +00:00
//Enregistrement dans la bdd
require_once 'dbbootstrap.php' ;
setDbConn ( 'sdv1' );
FB :: log ( $_SESSION , 'SESSION' );
$commandesKbis = new CommandesKbis ();
$commandesKbis -> idUser = $_SESSION [ 'tabInfo' ][ 'id' ];
$commandesKbis -> login = $_SESSION [ 'tabInfo' ][ 'login' ];
$commandesKbis -> email = $_REQUEST [ 'email' ];
$commandesKbis -> societe = '' ;
$commandesKbis -> nom = '' ;
$commandesKbis -> adresse = '' ;
$commandesKbis -> cp = '' ;
$commandesKbis -> ville = '' ;
$commandesKbis -> siren = substr ( $_REQUEST [ 'siret' ], 0 , 9 );
$commandesKbis -> raisonSociale = $raisonSociale ;
$commandesKbis -> type = 'M' ;
$commandesKbis -> dateCommande = date ( 'Y-m-d H:i:s' );
$commandesKbis -> save ();
2010-02-10 17:27:03 +00:00
$message = 'Votre demande de reception de Kbis par email a été prise en compte' ;
2010-01-08 10:17:59 +00:00
$client -> setLog ( 'kbis' , $_REQUEST [ 'siret' ], 0 , 'mail' );
2009-12-11 15:47:11 +00:00
unset ( $_REQUEST [ 'method' ]);
2009-12-11 15:12:58 +00:00
} else {
2010-02-10 17:27:03 +00:00
$message = '<font color="red">Erreur : adresse email non renseignée.</font>' ;
2009-12-11 15:12:58 +00:00
}
}
elseif ( $_REQUEST [ 'method' ] == 'C' )
{
2010-02-10 17:27:03 +00:00
//Vérification des champs
2009-12-11 15:12:58 +00:00
$fields = array ( 'societe' , 'nom' , 'prenom' , 'adresse' , 'cp' , 'ville' );
2010-03-15 08:41:52 +00:00
2009-12-11 15:12:58 +00:00
$error = false ;
foreach ( $fields as $field )
{
if ( empty ( $_REQUEST [ $field ])) $error = true ;
}
2010-01-12 15:32:56 +00:00
if ( ! $error )
{
2010-05-04 08:28:33 +00:00
//Envoi du mail
2010-03-15 08:41:52 +00:00
sendCmdMail ( '[COMMANDE PIECES] - KBIS par courrier' ,
2010-01-12 15:32:56 +00:00
'COMMANDE DE PIECES - Demande de kbis par courrier' . EOL .
'Demande pour recevoir le kbis de siren : ' .
2010-01-18 08:31:52 +00:00
'<a href="' . EXTRANET_URL . '/?page=identite&siret=' . $_REQUEST [ 'siret' ] . '">' .
2010-01-12 15:32:56 +00:00
$_REQUEST [ 'siret' ] . '</a><br/>' . EOL .
2010-03-02 09:49:16 +00:00
'pour login ' . $_SESSION [ 'tabInfo' ][ 'login' ] .
'(' . $_REQUEST [ 'email' ] . ')' . '<br/>' . EOL .
2010-01-12 15:32:56 +00:00
'Societe :' . $_REQUEST [ 'societe' ] . '<br/>' . EOL .
'Nom : ' . $_REQUEST [ 'nom' ] . '<br/>' . EOL .
'Prenom : ' . $_REQUEST [ 'prenom' ] . '<br/>' . EOL .
'Adresse : ' . $_REQUEST [ 'adresse' ] . '<br/>' . EOL .
'CP : ' . $_REQUEST [ 'cp' ] . '<br/>' . EOL .
'Ville : ' . $_REQUEST [ 'ville' ]
2010-03-15 08:41:52 +00:00
);
2010-05-04 08:28:33 +00:00
//Enregistrement dans la bdd
require_once 'dbbootstrap.php' ;
setDbConn ( 'sdv1' );
FB :: log ( $_SESSION , 'SESSION' );
$commandesKbis = new CommandesKbis ();
$commandesKbis -> idUser = $_SESSION [ 'tabInfo' ][ 'id' ];
$commandesKbis -> login = $_SESSION [ 'tabInfo' ][ 'login' ];
$commandesKbis -> email = $_REQUEST [ 'email' ];
$commandesKbis -> societe = $_REQUEST [ 'societe' ];
$commandesKbis -> nom = $_REQUEST [ 'nom' ] . ' ' . $_REQUEST [ 'prenom' ];
$commandesKbis -> adresse = $_REQUEST [ 'adresse' ];
$commandesKbis -> cp = $_REQUEST [ 'cp' ];
$commandesKbis -> ville = $_REQUEST [ 'ville' ];
$commandesKbis -> siren = substr ( $_REQUEST [ 'siret' ], 0 , 9 );
$commandesKbis -> raisonSociale = $raisonSociale ;
$commandesKbis -> type = 'C' ;
$commandesKbis -> dateCommande = date ( 'Y-m-d H:i:s' );
$commandesKbis -> save ();
2010-02-11 16:01:21 +00:00
$message = 'Votre commande à été prise en compte, vous recevrez ce document sous 3/5 jours' ;
2010-01-08 10:17:59 +00:00
$client -> setLog ( 'kbis' , $_REQUEST [ 'siret' ], 0 , 'courrier' );
2009-12-11 15:47:11 +00:00
unset ( $_REQUEST [ 'method' ]);
2009-12-11 15:12:58 +00:00
}
else
{
2010-02-10 17:27:03 +00:00
$message = '<font color="red">Erreur : Tous les champs doivent être renseigner.</font>' ;
2009-12-11 15:12:58 +00:00
}
2010-03-15 08:41:52 +00:00
}
2009-12-11 15:12:58 +00:00
break ;
2010-03-15 08:41:52 +00:00
2009-12-11 15:12:58 +00:00
case 'privileges' :
if ( ! empty ( $_REQUEST [ 'email' ]))
{
2010-07-01 16:35:40 +00:00
if ( in_array ( 'SprivSurv' , $_REQUEST [ 'privileges' ][ 'type' ]) ){
2010-04-02 16:02:20 +00:00
try {
$O = $client -> setSurveillance (
$_REQUEST [ 'siret' ], $_REQUEST [ 'email' ],
2010-04-02 16:45:58 +00:00
$_REQUEST [ 'ref' ], 'privileges' );
2010-04-02 16:02:20 +00:00
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $_SESSION [ 'tabInfo' ]);
}
2010-04-02 17:11:47 +00:00
$privilegesLog = join ( '-' , $_REQUEST [ 'privileges' ][ 'type' ]);
}
$key = array_search ( 'SprivSurv' , $_REQUEST [ 'privileges' ][ 'type' ]);
if ( $key !== FALSE ) unset ( $_REQUEST [ 'privileges' ][ 'type' ][ $key ]);
if ( count ( $_REQUEST [ 'privileges' ][ 'type' ]) > 0 ){
$privileges = join ( ', ' , $_REQUEST [ 'privileges' ][ 'type' ]);
$privilegesLog = join ( '-' , $_REQUEST [ 'privileges' ][ 'type' ]);
sendCmdMail ( " [COMMANDE PIECES] - PRIVILEGES par email " ,
'COMMANDE DE PRIVILEGES - par email<br/>' . EOL .
'Demande pour recevoir (' . $privileges . ') pour SIREN : ' .
'<a href="' . EXTRANET_URL . '/?page=identite&siret=' . $_REQUEST [ 'siret' ] . '">' .
$_REQUEST [ 'siret' ] . '</a><br/>' . EOL .
'pour login ' . $_SESSION [ 'tabInfo' ][ 'login' ] . '(' . $_REQUEST [ 'email' ] . ')<br/>' . EOL .
'Référence : ' . $_REQUEST [ 'ref' ]
);
2010-04-02 16:02:20 +00:00
}
2010-02-10 17:27:03 +00:00
$message = 'Votre commande a bien été prise en compte, vous recevrez ces documents sur votre e-mail.' ;
2010-01-08 10:17:59 +00:00
$client -> setLog ( 'privileges' , $_REQUEST [ 'siret' ], 0 , 'mail:' . $privilegesLog );
2009-12-11 15:47:11 +00:00
unset ( $_REQUEST [ 'privileges' ][ 'type' ]);
2009-12-11 15:12:58 +00:00
} else {
2010-02-10 17:27:03 +00:00
$message = '<font color="red">Erreur : adresse email non renseignée.</font>' ;
2009-12-11 15:12:58 +00:00
}
break ;
2010-03-15 08:41:52 +00:00
}
2009-12-11 15:12:58 +00:00
}
2010-02-08 15:16:29 +00:00
$disponible = true ;
if ( $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'Dept' ] == 67 ||
$_SESSION [ 'tabInfo' ][ 'entrep' ][ 'Dept' ] == 68 ||
$_SESSION [ 'tabInfo' ][ 'entrep' ][ 'Dept' ] == 57 ||
substr ( $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'Dept' ], 0 , 2 ) == 97
)
{
2010-03-15 08:41:52 +00:00
$disponible = false ;
2010-02-08 15:16:29 +00:00
}
2009-12-04 17:17:09 +00:00
?>
< style >
2009-12-23 10:20:29 +00:00
. marge { margin - left : 30 px ;}
2009-12-04 17:17:09 +00:00
#identite { margin-left:30px; }
form { }
form em { color : #FF0000;}
fieldset { border : 0 ; margin : 0 ; padding : 0 ;}
fieldset legend { padding : 0 0 0 10 px ;}
. fieldgrp { clear : both ; margin : 0 0 . 5 em 30 px ; overflow : hidden ;}
. fieldgrp : after { content : " . " ; display : block ; clear : both ; visibility : hidden ; line - height : 0 ; height : 0 ; }
2009-12-11 15:12:58 +00:00
. fieldgrp label { font - weight : bold ; margin - left : 30 px ; width : 80 px ; clear : both ; padding : 0 10 px 0 0 ; line - height : 22 px ; _padding - top : 3 px ; float : left ; display : block ; font - size : 108 % ;}
2009-12-04 17:17:09 +00:00
. fieldgrp label span { font - weight : normal ;}
. fieldgrp label abbr { color : #4B911C; font-size:120%; vertical-align:middle;}
. field { float : left ; padding : 0 10 px 0 0 ; line - height : 22 px ; _padding - top : 3 px ;}
. field . longfield { width : 215 px ;}
. field . longfield - select { width : 220 px ;}
. field . smallfield { width : 95 px ;}
. field . medfield { width : 110 px ;}
. field span { display : block ; }
. field input , . field select { font - size : 110 % ; margin : 2 px 0 ; }
. field input [ type = " radio " ] { margin : 0 5 px 0 5 px ; border : 0 ; }
input [ type = " checkbox " ] { margin : 0 5 px 0 5 px ; border : 0 ; }
. submit { text - align : center ;}
2010-03-15 16:06:00 +00:00
. noborder { border : none ;}
2009-12-11 15:47:11 +00:00
< ? php
if ( ! isset ( $_REQUEST [ 'method' ]) || $_REQUEST [ 'method' ] != 'M' )
{
?>
2009-12-04 17:17:09 +00:00
#kbisM {display:none;}
2010-03-15 08:41:52 +00:00
< ? php
2009-12-11 15:47:11 +00:00
}
if ( ! isset ( $_REQUEST [ 'method' ]) || $_REQUEST [ 'method' ] != 'C' )
{
?>
2009-12-04 17:17:09 +00:00
#kbisC {display:none;}
2010-03-15 08:41:52 +00:00
< ? php
2009-12-11 15:47:11 +00:00
}
if ( empty ( $_REQUEST [ 'privileges' ][ 'type' ]))
{
?>
2009-12-04 17:17:09 +00:00
#privilegesM {display:none;}
2010-03-15 08:41:52 +00:00
< ? php
2009-12-11 15:47:11 +00:00
}
?>
2009-12-11 15:12:58 +00:00
#message {margin:10px 0 10px 30px;}
2009-12-04 17:17:09 +00:00
</ style >
< div id = " center " >
< h1 > COMMMANDES DE PI & Eacute ; CES </ h1 >
< table id = " identite " >
< tr >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro identifiant Siren </ td >
2009-12-11 15:12:58 +00:00
< td class = " StyleInfoData " >< ? = substr ( $siret , 0 , 3 ) . ' ' . substr ( $siret , 3 , 3 ) . ' ' . substr ( $siret , 6 , 3 ) ?> </td>
2009-12-04 17:17:09 +00:00
</ tr >
< tr >
< td width = " 200 " class = " StyleInfoLib " > Raison Sociale </ td >
2010-03-18 14:57:23 +00:00
< td class = " StyleInfoData " >< ? = $raisonSociale ?> </td>
2009-12-04 17:17:09 +00:00
</ tr >
</ table >
2010-03-15 08:41:52 +00:00
< ? php
2009-12-11 15:12:58 +00:00
if ( ! empty ( $message ))
{
?>
< div id = " message " >
< ? = $message ?>
</ div >
2010-03-15 08:41:52 +00:00
< ? php
2009-12-11 15:12:58 +00:00
}
?>
2009-12-04 17:17:09 +00:00
< h2 > EXTRAIT KBIS </ h2 >
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
if ( hasPerm ( 'kbis' ))
{
2009-12-23 10:20:29 +00:00
?>
2009-12-11 15:47:11 +00:00
< form name = " kbis " method = " post " action = " ./?page=pieces&siret=<?= $siret ?> " >
2009-12-11 15:12:58 +00:00
< input type = " hidden " name = " action " value = " kbis " />
2009-12-04 17:17:09 +00:00
< div class = " fieldgrp " >
< div class = " field " >
2010-03-15 08:41:52 +00:00
< ? php
$disable = '' ;
if ( ! $disponible ){ $disable = 'disabled' ; }
2010-02-08 13:07:52 +00:00
?>
2010-06-17 08:37:55 +00:00
< input class = " noborder " type = " radio " name = " method " value = " ./?page=kbis&siret=<?= $siret ?> " < ? = $_REQUEST [ 'method' ] == 'T' ? 'checked' : '' ?> <?=$disable?>/>
2010-03-15 08:41:52 +00:00
Visualiser / Télécharger le kbis
< ? php if ( ! $disponible ){ ?>
( Il n ' est pas possible de télécharger les kbis dans ce département )
< ? php } ?> <br/>
2009-12-11 15:47:11 +00:00
< input class = " noborder " type = " radio " name = " method " value = " M " < ? = $_REQUEST [ 'method' ] == 'M' ? 'checked' : '' ?> />Recevoir le kbis par email<br/>
< input class = " noborder " type = " radio " name = " method " value = " C " < ? = $_REQUEST [ 'method' ] == 'C' ? 'checked' : '' ?> />Recevoir le kbis original par courrier<br/>
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
if ( ! $disponible )
{
?>
2010-02-10 17:27:03 +00:00
< p >< i > Les pièces demandées seront commandées par courrier auprès du greffe . Prévoir un délai de 2 à 3 semaines .</ i ></ p >
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
}
?>
2009-12-04 17:17:09 +00:00
</ div >
</ div >
2009-12-11 15:12:58 +00:00
< div id = " kbisM " >
< div class = " fieldgrp " >
2009-12-04 17:17:09 +00:00
< label > E - mail </ label >
< div class = " field " >
2010-05-04 08:28:33 +00:00
< input type = " text " class = " longfield " name = " email " value = " <?php
if ( $_SESSION [ 'tabInfo' ][ 'login' ] <> 'testreunica' &&
$_SESSION [ 'tabInfo' ][ 'login' ] <> 'reunicacsf' )
echo $_SESSION [ 'tabInfo' ][ 'email' ];
?> ">
2010-02-10 17:27:03 +00:00
< span > Précisez votre e - mail pour recevoir le kbis .</ span >
2009-12-04 17:17:09 +00:00
</ div >
2009-12-11 15:12:58 +00:00
</ div >
2009-12-04 17:17:09 +00:00
2009-12-11 15:12:58 +00:00
< div class = " fieldgrp " >
2010-02-10 17:27:03 +00:00
< label > Référence </ label >
2009-12-11 15:12:58 +00:00
< div class = " field " >
2009-12-11 15:47:11 +00:00
< input type = " text " class = " longfield " name = " ref " value = " <?= $_REQUEST['ref'] ?> " >
2010-02-10 17:27:03 +00:00
< span > Votre référence .</ span >
2009-12-11 15:12:58 +00:00
</ div >
</ div >
< div class = " fieldgrp " >
< label >& nbsp ; </ label >
2010-05-05 13:24:43 +00:00
< div class = " field " >< input type = " submit " class = " button " name = " kbis " value = " Valider " ></ div >
2009-12-11 15:12:58 +00:00
</ div >
2009-12-04 17:17:09 +00:00
</ div >
< div id = " kbisC " >
< div class = " fieldgrp " >
2010-03-02 09:49:16 +00:00
< label > Votre E - mail </ label >
2010-05-04 08:28:33 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " email " value = " <?php
if ( isset ( $_REQUEST [ 'email' ]) && ! empty ( $_REQUEST [ 'email' ]) ){
echo $_REQUEST [ 'email' ];
} elseif ( $_SESSION [ 'tabInfo' ][ 'login' ] <> 'testreunica' &&
$_SESSION [ 'tabInfo' ][ 'login' ] <> 'reunicacsf' ){
echo $_SESSION [ 'tabInfo' ][ 'email' ]; }
?> "/></div>
2010-03-02 09:49:16 +00:00
</ div >
< div class = " fieldgrp " >
< label > Votre Societe </ label >
2009-12-11 15:47:11 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " societe " value = " <?= $_REQUEST['societe'] ?> " /></ div >
2009-12-04 17:17:09 +00:00
</ div >
< div class = " fieldgrp " >
2010-03-02 09:49:16 +00:00
< label > Votre Nom </ label >
2009-12-11 15:47:11 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " nom " value = " <?= $_REQUEST['nom'] ?> " /></ div >
2009-12-04 17:17:09 +00:00
</ div >
< div class = " fieldgrp " >
2010-03-02 09:49:16 +00:00
< label > Votre Prenom </ label >
2009-12-11 15:47:11 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " prenom " value = " <?= $_REQUEST['prenom'] ?> " /></ div >
2009-12-04 17:17:09 +00:00
</ div >
< div class = " fieldgrp " >
2010-03-02 09:49:16 +00:00
< label > Votre Adresse </ label >
2009-12-11 15:47:11 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " adresse " value = " <?= $_REQUEST['adresse'] ?> " /></ div >
2009-12-04 17:17:09 +00:00
</ div >
< div class = " fieldgrp " >
2010-03-02 09:49:16 +00:00
< label > Votre Code Postal </ label >
2009-12-11 15:47:11 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " cp " value = " <?= $_REQUEST['cp'] ?> " /></ div >
2009-12-04 17:17:09 +00:00
</ div >
< div class = " fieldgrp " >
2010-03-02 09:49:16 +00:00
< label > Votre Ville </ label >
2009-12-11 15:47:11 +00:00
< div class = " field " >< input class = " longfield " type = " text " name = " ville " value = " <?= $_REQUEST['ville'] ?> " /></ div >
2009-12-11 15:12:58 +00:00
</ div >
< div class = " fieldgrp " >
< label >& nbsp ; </ label >
2010-05-05 13:24:43 +00:00
< div class = " field " >< input type = " submit " class = " button " name = " kbis " value = " Valider " ></ div >
2009-12-04 17:17:09 +00:00
</ div >
</ div >
2009-12-11 15:12:58 +00:00
</ form >
2010-03-15 08:41:52 +00:00
< ? php
2009-12-23 10:20:29 +00:00
} else {
?>
2010-02-10 17:27:03 +00:00
< p class = " marge " > Vous n 'avez pas les droits d' accès pour cette fonctionalité .</ p >
2010-03-15 08:41:52 +00:00
< ? php
2009-12-23 10:20:29 +00:00
}
?>
2009-12-04 17:17:09 +00:00
< h2 > PRIVIL & Eacute ; GES & amp ; NANTISSEMENTS </ h2 >
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
if ( hasPerm ( 'privileges' ))
{
2009-12-23 10:20:29 +00:00
?>
2009-12-11 15:47:11 +00:00
< form name = " privileges " method = " post " action = " ./?page=pieces&siret=<?= $siret ?> " >
2009-12-11 15:12:58 +00:00
< input type = " hidden " name = " action " value = " privileges " />
2009-12-04 17:17:09 +00:00
< div class = " fieldgrp " >
2010-02-08 15:16:29 +00:00
< ? php
if ( $disponible )
{
2010-04-02 16:02:20 +00:00
if ( hasPerm ( 'survpriv' ) ){
2010-02-08 15:16:29 +00:00
?>
2010-04-02 17:02:32 +00:00
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " SprivSurv " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'SprivSurv' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> /><b>Privilèges de la sécurité sociale et des régimes complémentaires et Trésor Public <br/>(avec surveillance, retour sous 48 à 72h)</b><br/>
2010-04-02 16:02:20 +00:00
< br />
< ? php } ?>
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " privSecu " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'privSecu' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Privilèges de la sécurité sociale et des régimes complémentaires (mail sous 12h ouvrées)<br/>
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " privTres " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'privTres' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Privilèges du Trésor Public (mail sous 12h ouvrées)<br/>
< br />
2009-12-11 15:47:11 +00:00
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " nantFond " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'nantFond' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Nantissements du fonds de commerce ou du fonds artisanal (conventionnels et judiciaires)<br/>
2010-02-10 17:27:03 +00:00
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " nantVend " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'nantVend' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Privilèges du vendeur de fonds de commerce et d'action résolutoire<br/>
2010-04-02 16:02:20 +00:00
2010-02-10 17:27:03 +00:00
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " declCrea " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'declCrea' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Déclarations de créances<br/>
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 15:16:29 +00:00
} else {
2010-03-15 08:41:52 +00:00
?>
2010-02-10 17:27:03 +00:00
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " privSecu " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'privSecu' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Privilèges de la sécurité sociale et des régimes complémentaires<br/>
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " privTres " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'privTres' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Privilèges du Trésor Public<br/>
2010-02-08 15:16:29 +00:00
< input class = " noborder type " type = " checkbox " name = " privileges[type][] " value = " nantCompl " < ? = is_array ( $_REQUEST [ 'privileges' ][ 'type' ]) && in_array ( 'nantCompl' , $_REQUEST [ 'privileges' ][ 'type' ]) ? 'checked' : '' ?> />Etat complet des nantissements<br/>
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 15:16:29 +00:00
}
?>
2010-02-08 13:07:52 +00:00
< br />
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
if ( ! $disponible )
{
?>
2010-02-10 17:27:03 +00:00
< p >< i > Les pièces demandées seront commandées par courrier auprès du greffe . Prévoir un délai de 2 à 3 semaines .</ i ></ p >
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
}
?>
2009-12-04 17:17:09 +00:00
</ div >
2009-12-11 15:12:58 +00:00
< div id = " privilegesM " >
< div class = " fieldgrp " >
2009-12-04 17:17:09 +00:00
< label > E - mail </ label >
< div class = " field " >
2010-01-29 13:05:57 +00:00
< input type = " text " class = " longfield " name = " email " value = " <?php if ( $_SESSION['tabInfo'] ['login']<>'testreunica' && $_SESSION['tabInfo'] ['login']<>'reunicacsf') echo $_SESSION['tabInfo'] ['email']?> " >
2010-02-10 17:27:03 +00:00
< span > Précisez votre e - mail pour recevoir la commande .</ span >
2009-12-04 17:17:09 +00:00
</ div >
2009-12-11 15:12:58 +00:00
</ div >
2009-12-04 17:17:09 +00:00
2009-12-11 15:12:58 +00:00
< div class = " fieldgrp " >
2010-02-10 17:27:03 +00:00
< label > Référence </ label >
2009-12-11 15:12:58 +00:00
< div class = " field " >
2009-12-11 15:47:11 +00:00
< input type = " text " class = " longfield " name = " ref " value = " <?= $_REQUEST['ref'] ?> " >
2010-02-10 17:27:03 +00:00
< span > Votre référence .</ span >
2009-12-11 15:12:58 +00:00
</ div >
</ div >
< div class = " fieldgrp " >
< label >& nbsp ; </ label >
2010-07-01 16:35:40 +00:00
< div class = " field " >< input type = " submit " name = " submit " value = " Valider " class = " button " ></ div >
2009-12-11 15:12:58 +00:00
</ div >
2009-12-04 17:17:09 +00:00
</ div >
</ form >
2010-03-15 08:41:52 +00:00
< ? php
2010-02-08 13:07:52 +00:00
}
else
{
2010-03-15 08:41:52 +00:00
?>
2010-02-10 17:27:03 +00:00
< p class = " marge " > Vous n 'avez pas les droits d' accès pour cette fonctionalité .</ p >
2010-03-15 08:41:52 +00:00
< ? php
2009-12-23 10:20:29 +00:00
}
?>
2009-12-04 17:17:09 +00:00
</ div >