This commit is contained in:
Damien LASSERRE 2011-06-13 12:01:10 +00:00
parent ba784c407f
commit 62a274c35e
2 changed files with 15 additions and 12 deletions

View File

@ -1,6 +1,7 @@
<?php
<?php
if($_REQUEST['upload'])
{
header('Content-type: text/html; charset=UTF-8');
require_once 'print/print.php';
ob_start();
echo '<link rel="stylesheet" href="css/rsynthese.css">';
@ -9,23 +10,23 @@ if($_REQUEST['upload'])
echo '.confidentiel {display:none}';
echo '#center h1{background-color:'.$_POST['couleurh1'].';color:'.$_POST['texth1'].'}';
if($_POST['logo_background'])
echo '#center {background-image:url(./img/customRapport/logo_background.jpg);background-repeat:repeat-y}';
echo '#center {background-image:url(./img/customRapport/logo_background.png);background-repeat:repeat-y}';
echo '#center h2{background-color:'.$_POST['couleurh2'].';color:'.$_POST['texth2'].'}';
echo '</style>';
echo '<img src="./img/customRapport/logo.jpg" width="12%" style="float:'.$_POST['image'].'" />';
echo '<img src="./img/customRapport/logo.jpg" width="12%" /><br />';
echo $_POST['coordonnees'];
echo '<center style="font-size:17px">'.$_POST['societe_name'].' Enquête Financière</center><br />';
$siret = $_GET['siret'];
$siren = substr($_GET['siret'], 0, 9);
$idEntreprise = $_GET['idEntreprise'];
include('pages/rsynthese.php');
echo $_POST['content'];
@include('pages/rsynthese.php');
echo 'Les équipes d\'Order To Cash se tiennent à votre disposition pour vous assister dans l\'interprétation de ces données au 01 47 90 94 31 ou par mail à l\'adresse suivante : contact@ordertocash.fr ';
$content = ob_get_contents();
$file_put = str_replace('<a href', '<a title', $content);
$file_put = str_replace('logo_indiscore.png', '', $file_put);
ob_end_clean();
file_put_contents(PATH_SITE.'/cache/pages/rapport-'.$siren.'.html', $file_put);
wkhtmltopdf(PATH_SITE.'/cache/pages/rapport-'.$siren.'.html');
file_put_contents('../cache/pages/rapport-'.$siren.'.html', utf8_decode($file_put));
wkhtmltopdf('../cache/pages/rapport-'.$siren.'.html');
} else {
?>
<div align="center" style="height:305px;background-image:url('./img/customRapport/logo.jpg');background-repeat:no-repeat;background-position:center">
@ -41,10 +42,10 @@ if($_REQUEST['upload'])
<td><input style="width:377px" type="text" name="coordonnees" value="<b>Order to Cash</b><br /> 70 AVENUE DE LA MARNE <b><br />92600 ASNIERES SUR SEINE</b>"/></td>
</tr>
<tr>
<td valign="top"><b>Contenu diver en fin de rapport</b></td>
<td valign="top"><b>Nom de la société</b></td>
</tr>
<tr>
<td><textarea style="width:377px;height:60px" name="content" value="Entrer un texte..."></textarea></td>
<td><input type="text" name="societe_name" value="Nom de la société." /></td>
</tr>
<tr>
<td><b>Logo en fond ecran : </b><input type="checkbox" name="logo_background" value="true" /></td>
@ -53,7 +54,7 @@ if($_REQUEST['upload'])
<td><b>Logo à :</b> Gauche <input checked="checked" type="radio" name="image" value="left"/> Droite<input value="right" type="radio" name="image" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><b>couleur des grands titres</b></td>

View File

@ -29,9 +29,11 @@ require_once 'scoresws/identite.php';
//=> BLOC IDENTITE
//$etab = scoresws_identite($siret, $siren, $idEntreprise);
?>
<?php if ($_GET['page'] != 'customRapport' && hasModeEdition()): ?>
<?php if($_SESSION['tabInfo']['idClient'] == '110' && hasModeEdition()):?>
<?php if ($_GET['page'] != 'customRapport'): ?>
<a id="customRapport" title="Personnaliser votre rapport" href="./?page=customRapport&siret=<?php echo $_GET['siret'];?>&idEntreprise=<?php echo $_GET['idEntreprise'];?>">Personnaliser votre rapport</a>
<?php endif;?>
<?php endif;?>
<h1>RAPPORT COMPLET</h1>
<p id="rsynthese">SOCI&Eacute;T&Eacute; : <?=$etab['Nom']?></p>