Merge des modifications de la branche 1.2
This commit is contained in:
parent
9fd88a8983
commit
5e8511a14d
@ -97,12 +97,15 @@ function wkhtmltopdf($file){
|
||||
$output_file = str_replace('.html', '.pdf', $file);
|
||||
/*
|
||||
* -n, --disable-javascript Do not allow webpages to run javascript.
|
||||
* --user-style-sheet <url> Specify a user style sheet, to load with every page.
|
||||
* --print-media-type Use print media-type instead of screen.
|
||||
*/
|
||||
unlink($output_file);
|
||||
$options = '-n';
|
||||
if (stristr(PHP_OS, 'WIN')) {
|
||||
exec(realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'wkhtmltopdf-0.8.3.exe '.$options.' "'.$file.'" '.$output_file);
|
||||
exec(realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'wkhtmltopdf-0.8.3.exe '.$options.' "'.$file.'" "'.$output_file.'"');
|
||||
} else {
|
||||
exec(realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'wkhtmltopdf '.$options.' "'.$file.'" '.$output_file);
|
||||
exec(realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'wkhtmltopdf '.$options.' "'.$file.'" "'.$output_file.'"');
|
||||
}
|
||||
return $output_file;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ function recherche_save($form)
|
||||
if( isset($_SESSION['recherche']['list']) ) $recherche_list = $_SESSION['recherche']['list'];
|
||||
$recherche_list[] = serialize($form);
|
||||
//On supprime la première recherche soit la plus ancienne si le tableau à un taille supérieure au maximum
|
||||
if(count($recherche_list)>RECHERCHE_MAX) $recherche_list = array_shift($recherche_list);
|
||||
if(count($recherche_list)>RECHERCHE_MAX) $item_shift = array_shift($recherche_list);
|
||||
$_SESSION['recherche']['list'] = $recherche_list;
|
||||
}
|
||||
|
||||
|
@ -14,5 +14,4 @@ $tabStyles = array(
|
||||
'pages' => array('international_recherche', 'international_identite', 'international_identitec'),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
@ -2,34 +2,42 @@
|
||||
require_once 'includecss.php';
|
||||
if($sortie!='prt') require_once 'includejs.php';
|
||||
|
||||
$force = false;
|
||||
$compressoff = false;
|
||||
|
||||
$firephp->log($sortie, 'sortie');
|
||||
|
||||
/* == Traitement des feuilles de styles == */
|
||||
|
||||
if(isset($tabStyles) && count($tabStyles)>0){
|
||||
foreach($tabStyles as $name => $group){
|
||||
if( in_array('all', $group['pages']) || in_array($page, $group['pages']) ){
|
||||
if(ENVIRONNEMENT == 'DEV' && !$force){
|
||||
if( ENVIRONNEMENT == 'DEV' || $sortie=='pdf' || $compressoff ){
|
||||
foreach($group['list'] as $style){
|
||||
print '<link rel="stylesheet" type="text/css" href="./css/'.$style.'" />';
|
||||
print '<link rel="stylesheet" type="text/css" media="all" href="./css/'.$path_css.$style.'" />';
|
||||
print "\n";
|
||||
}
|
||||
}else{
|
||||
print '<link rel="stylesheet" type="text/css" href="./min/?g='.$name.'"/>';
|
||||
print '<link rel="stylesheet" type="text/css" media="all" href="'.EXTRANET_URL.'min/?g='.$name.'"/>';
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* == Traitement des scripts javascripts == */
|
||||
|
||||
$compressoff = false;
|
||||
|
||||
if(isset($tabScripts) && count($tabScripts)>0){
|
||||
foreach($tabScripts as $name => $group){
|
||||
if(in_array('all', $group['pages']) || in_array($page, $group['pages'])){
|
||||
if(ENVIRONNEMENT == 'DEV' && !$force){
|
||||
if( ENVIRONNEMENT == 'DEV' || $compressoff){
|
||||
foreach($group['list'] as $script){
|
||||
print '<script type="text/javascript" src="./js/'.$script.'"></script>';
|
||||
print "\n";
|
||||
}
|
||||
}else{
|
||||
print '<script type="text/javascript" src="./min/?g='.$name.'"></script>';
|
||||
print '<script type="text/javascript" src="'.EXTRANET_URL.'min/?g='.$name.'"></script>';
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ switch ($page) {
|
||||
include('./pages/main.php');
|
||||
break;
|
||||
case 'identite':
|
||||
$title='Identité - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
|
||||
$title='Identité - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
|
||||
$page2='identite.php';
|
||||
include('./pages/main.php');
|
||||
break;
|
||||
@ -245,6 +245,8 @@ switch ($page) {
|
||||
logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST));
|
||||
|
||||
if($sortie=='pdf'){
|
||||
if(isset($siret)) $page.='-'.$siret;
|
||||
if(isset($idEntreprise)) $page.='-'.$idEntreprise;
|
||||
print_page($page);
|
||||
}
|
||||
?>
|
@ -430,7 +430,7 @@ if($dateImmat!=''){
|
||||
<?php
|
||||
//Zones prioritaires
|
||||
//if (@$etab['GeoInfos']['ZUS']<>'NON' || @$etab['GeoInfos']['ZFU']<>'NON' || @$etab['GeoInfos']['ZRU']<>'NON' || @$etab['GeoInfos']['CUCS']<>'NON') {/* && trim(@$etab['GeoInfos']['NCUCS'])<>'')) {*/
|
||||
if (@$etab['GeoInfos']['ZUS']=='OUI' || @$etab['GeoInfos']['ZFU']=='OUI' || @$etab['GeoInfos']['ZRU']=='OUI' || @$etab['GeoInfos']['CUCS']=='OUI')
|
||||
if (@$etab['GeoInfos']['ZUS']=='OUI' || @$etab['GeoInfos']['ZFU']=='OUI' || @$etab['GeoInfos']['ZRU']=='OUI' || @$etab['GeoInfos']['CUCS']=='OUI' || @$etab['GeoInfos']['ZRR']=='OUI' || @$etab['GeoInfos']['AFR']=='OUI')
|
||||
{
|
||||
/*[GeoInfos] => Array
|
||||
(
|
||||
@ -452,6 +452,9 @@ if (@$etab['GeoInfos']['ZUS']=='OUI' || @$etab['GeoInfos']['ZFU']=='OUI' || @$et
|
||||
if ($etab['GeoInfos']['ZFU']=='OUI') echo '<a href="http://sig.ville.gouv.fr/Territoire/'.$etab['GeoInfos']['NZFU'].'" target="_blank">ZFU n°'.$etab['GeoInfos']['NZFU'].'</a><br/>';
|
||||
//elseif ($etab['GeoInfos']['ZFU']=='NSP') echo 'Implantation en ZFU à vérifier<br/>';
|
||||
if ($etab['GeoInfos']['ZRU']=='OUI') echo '<a href="http://sig.ville.gouv.fr/Territoire/'.$etab['GeoInfos']['NZRU'].'" target="_blank">ZRU n°'.$etab['GeoInfos']['NZRU'].'</a><br/>';
|
||||
|
||||
if ($etab['GeoInfos']['ZRR']=='OUI') echo '<a href="http://www.diact.gouv.fr/IMG/Fichiers/Rural%20/ZRR/carte_zrr_20090409.pdf" target="_blank">ZRR n°'.$etab['GeoInfos']['NZRR'].'</a><br/>';
|
||||
if ($etab['GeoInfos']['AFR']=='OUI') echo '<a href="http://www.diact.gouv.fr/fr_1/amenagement_du_territoire_44/aides_aux_entreprises_626/aides_finalite_regionale_afr_719/zonage_afr_2007_2013_1478.html" target="_blank">AFR n°'.$etab['GeoInfos']['NAFR'].'</a><br/>';
|
||||
//elseif ($etab['GeoInfos']['ZRU']=='NSP') echo 'Implantation en ZRU à vérifier<br/>';
|
||||
if ($etab['GeoInfos']['CUCS']=='OUI') echo '<a href="http://sig.ville.gouv.fr/Territoire/'.$etab['GeoInfos']['NCUCS'].'" target="_blank">CUCS n°'.$etab['GeoInfos']['NCUCS'];
|
||||
//elseif ($etab['GeoInfos']['CUCS']=='NSP') echo 'Implantation en CUCS à vérifier';
|
||||
|
@ -70,6 +70,17 @@ if($ajax===TRUE){
|
||||
exit;
|
||||
}
|
||||
|
||||
//Envoi d'un mail de demande de reception de kbis par mail
|
||||
if(isset($_REQUEST['mailkbis']) && $_REQUEST['mailkbis']=='Ok')
|
||||
{
|
||||
mail( 'support@scores-decisions.com',"Demande de kbis par email",
|
||||
'Demande pour recevoir le kbis de siren : '.$_REQUEST['siren'].EOL.
|
||||
'pour login '.$_REQUEST['login'].'('.$_REQUEST['mail'].')'
|
||||
);
|
||||
$message = 'Votre demande de reception de Kbis par email à été prise en compte';
|
||||
}
|
||||
|
||||
|
||||
if (!$_SESSION['connected'])
|
||||
echo ('Vous devez être connecté afin de pouvoir utiliser cette fonctionnalité');
|
||||
elseif ( !preg_match('/KBIS/i', $_SESSION['tabInfo']['droits']))
|
||||
@ -126,27 +137,28 @@ else {
|
||||
|
||||
if ($errCJ || $errDep || $errNum) {
|
||||
?>
|
||||
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
|
||||
<tr>
|
||||
<td colspan="3" align="center"><img src="./img/rub_pieces.png" width="577" height="36" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<div id="center">
|
||||
<h1>PIECES OFFICIELLES</h1>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><img src="./img/srub_actes.png" width="576" height="27" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2>Actes & Status</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<h3>
|
||||
@ -157,21 +169,92 @@ else {
|
||||
?>
|
||||
</h3>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
} else {
|
||||
?>
|
||||
<script src="./js/jqueryprogressbar.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
<script src="./js/jqueryprogressbar.js" type="text/javascript"></script>
|
||||
<div id="center">
|
||||
<h1>PIECES OFFICIELLES</h1>
|
||||
<table>
|
||||
<?php
|
||||
if ($message<>'') {
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData"><h3><?=$message;?></h3></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
|
||||
</tr>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
</table>
|
||||
<h2>Actes & Status</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="100"> </td>
|
||||
<td width="380">
|
||||
<div id="result"><div id="progressbar"></div></div>
|
||||
|
||||
<span id="msgretry" style="display:none">
|
||||
<br/>ou faire la demande pour recevoir le kbis par mail <input type="checkbox" name="sendmail" value="1"/>
|
||||
</span>
|
||||
|
||||
<span id="formMail" style="display:none">
|
||||
<form name="mailkbis" method="post" action="./?page=kbis2&siret=<?=$siret?>">
|
||||
<input type="hidden" name="login" value="<?=$_SESSION['tabInfo']['login']?>">
|
||||
<input type="hidden" name="siren" value="<?=$siren?>">
|
||||
<label>Votre Email : </label>
|
||||
<input type="text" name="mail" value="<?=$_SESSION['tabInfo']['email']?>">
|
||||
<input type="submit" name="mailkbis" value="Ok">
|
||||
</form>
|
||||
</span>
|
||||
</td>
|
||||
<td width="100"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
if( !(isset($_REQUEST['mailkbis']) && $_REQUEST['mailkbis']=='Ok') )
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
$('input[type=checkbox][name=sendmail]').click(function(){
|
||||
if($(this).attr('checked')== true){
|
||||
$('#formMail').css('display', 'block');
|
||||
}
|
||||
});
|
||||
var start = <?=$start?>;
|
||||
var pct = 0;
|
||||
var prec = 0;
|
||||
var checkInterval = 5;
|
||||
var url = '';
|
||||
var message = 'Le temps maximum d"attente a été atteint. Merci de réssayez en cliquant <a href="./?page=kbis2&siret=<?=$siren?>&start=<?=$start+1?>">ici</a>';
|
||||
|
||||
function checkKbis(start)
|
||||
{
|
||||
if(start>=1){
|
||||
$.post( 'pages/kbis2.php', { ajax: 'true', start: start, siret: '<?=$siren?>' },
|
||||
$.post( 'pages/kbis2.php', { ajax: 'true', start: start, siret: <?=$siren?> },
|
||||
function (data, textStatus) { url = data; }
|
||||
);
|
||||
}else{
|
||||
$.post( 'pages/kbis2.php', { ajax: 'true', start: 0, url: url, siret: '<?=$siren?>' },
|
||||
$.post( 'pages/kbis2.php', { ajax: 'true', start: 0, url: url, siret: <?=$siren?> },
|
||||
function (data, textStatus) { if( data!='' && data!='FALSE' ){ updateInfo(data); } }
|
||||
);
|
||||
}
|
||||
@ -179,9 +262,9 @@ else {
|
||||
|
||||
function update()
|
||||
{
|
||||
$("#progressbar").reportprogress(++pct);
|
||||
$('#progressbar').reportprogress(++pct);
|
||||
if(pct==100){
|
||||
updateInfo('Le temps maximum d\'attente a été atteint. Merci de réssayez en cliquant <a href="/?page=kbis2&siret=<?=$siren?>&start=<?$start+1?>">ici</a>');
|
||||
updateInfo(message);
|
||||
pct=0;
|
||||
}
|
||||
if(Math.floor(pct/checkInterval)!=prec){
|
||||
@ -191,60 +274,16 @@ else {
|
||||
}
|
||||
|
||||
function updateInfo(html){
|
||||
$("#result").html(html);
|
||||
$('#result').html(html);
|
||||
if(start>1){ $('#msgretry').css('display', 'block'); }
|
||||
clearInterval(holdTheInterval);
|
||||
}
|
||||
|
||||
var pct=0;
|
||||
var prec=0;
|
||||
var checkInterval = 5;
|
||||
var url = '';
|
||||
checkKbis(<?=$start?>);
|
||||
var holdTheInterval = setInterval(update, 900);
|
||||
$("#progressbar").reportprogress(0);
|
||||
});
|
||||
</script>
|
||||
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
|
||||
<?php
|
||||
if ($message<>'') {
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData"><h3><?=$message;?></h3></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3" align="center"><img src="./img/rub_pieces.png" width="577" height="36" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><img src="./img/srub_actes.png" width="576" height="27" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<div id="result">
|
||||
<div id="progressbar"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?
|
||||
checkKbis(start);
|
||||
var holdTheInterval = setInterval(update, 1200);
|
||||
$('#progressbar').reportprogress(0);
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
@ -24,7 +24,7 @@ $(document).ready(function(){
|
||||
var tribunal = $("#tribunal option:selected").val();
|
||||
var idMandataire = data[1];
|
||||
$("[name=jugement[admin]]").val(idMandataire);
|
||||
$('#lienAdministrateurEdit').attr('href','./pages_saisie/mandataire.php?width=650&height=520&tribunal='+tribunal+'&id='+idMandataire);
|
||||
$('#lienAdministrateurEdit').attr('href','./pages_saisie/mandataire.php?width=650&height=500&tribunal='+tribunal+'&id='+idMandataire);
|
||||
});
|
||||
|
||||
function formatItem(row) { return row[0] + " (id: " + row[1] + ")"; }
|
||||
|
@ -5,7 +5,7 @@ $tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
|
||||
<input type="text" name="mand" value="">
|
||||
<input type="hidden" name="jugement[mand]" value="">
|
||||
<span class="left"><a id="lienMandataireEdit" title="Editer le mandataire" class="thickbox" href="./pages_saisie/mandataire.php"><img src="../img/edit1.gif" alt="Edition mandataire"/></a></span>
|
||||
<p><a id="lienMandataireAdd" href="./pages_saisie/mandataire.php?width=650&height=520&tribunal=<?php print $tribunal; ?>" title="Ajouter un mandataire" class="thickbox">Ajouter un mandataire</a></p>
|
||||
<p><a id="lienMandataireAdd" href="./pages_saisie/mandataire.php?width=650&height=500&tribunal=<?php print $tribunal; ?>" title="Ajouter un mandataire" class="thickbox">Ajouter un mandataire</a></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
@ -24,7 +24,7 @@ $(document).ready(function(){
|
||||
var tribunal = $("#tribunal option:selected").val();
|
||||
var idMandataire = data[1];
|
||||
$("[name=jugement[mand]]").val(idMandataire);
|
||||
$('#lienMandataireEdit').attr('href','./pages_saisie/mandataire.php?width=650&height=520&tribunal='+tribunal+'&id='+idMandataire);
|
||||
$('#lienMandataireEdit').attr('href','./pages_saisie/mandataire.php?width=650&height=500&tribunal='+tribunal+'&id='+idMandataire);
|
||||
});
|
||||
|
||||
function formatItem(row) { return row[0] + " (id: " + row[1] + ")"; }
|
||||
|
@ -5,7 +5,7 @@ $tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
|
||||
<input type="text" name="oppo" value="">
|
||||
<input type="hidden" name="jugement[oppo]" value="">
|
||||
<span class="left"><a id="lienOppositionEdit" title="Editer le mandataire" class="thickbox" href="./pages_saisie/mandataire.php"><img src="../img/edit1.gif" alt="Edition mandataire"/></a></span>
|
||||
<p><a id="lienOppositionAdd" href="./pages_saisie/mandataire.php?width=650&height=520&tribunal=<?php print $tribunal; ?>" title="Ajouter un mandataire" class="thickbox">Ajouter un mandataire</a></p>
|
||||
<p><a id="lienOppositionAdd" href="./pages_saisie/mandataire.php?width=650&height=500&tribunal=<?php print $tribunal; ?>" title="Ajouter un mandataire" class="thickbox">Ajouter un mandataire</a></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
@ -24,7 +24,7 @@ $(document).ready(function(){
|
||||
var tribunal = $("#tribunal option:selected").val();
|
||||
var idMandataire = data[1];
|
||||
$("[name=jugement[oppo]]").val(idMandataire);
|
||||
$('#lienOppositionEdit').attr('href','./pages_saisie/mandataire.php?width=650&height=520&tribunal='+tribunal+'&id='+idMandataire);
|
||||
$('#lienOppositionEdit').attr('href','./pages_saisie/mandataire.php?width=650&height=500&tribunal='+tribunal+'&id='+idMandataire);
|
||||
});
|
||||
|
||||
function formatItem(row) { return row[0] + " (id: " + row[1] + ")"; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user