86 lines
2.1 KiB
PHP
86 lines
2.1 KiB
PHP
<?php
|
|
if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
|
|
|
|
//Affectation de valeur par défaut pour arriver sur la page de recherche
|
|
if (!isset($page2)){
|
|
$title='Recherche';
|
|
$page2='recherche.php';
|
|
$vueRecherche = 'ent';
|
|
}
|
|
require_once 'siren.php';
|
|
?>
|
|
<html>
|
|
<head>
|
|
<title>Extranet Scores & Décisions - <?=$title?></title>
|
|
<?php require_once 'includeheader.php'; ?>
|
|
</head>
|
|
<?php
|
|
if ($sortie!='prt' || $sortie !='pdf') {
|
|
?>
|
|
<body onResize="JSFX_FloatTopDiv()">
|
|
<?php
|
|
} elseif ($sortie=='prt') {
|
|
?>
|
|
<body onLoad="window.print();window.close();">
|
|
<?php
|
|
}
|
|
?>
|
|
<center>
|
|
<table border="0" width="800" height="600">
|
|
<tr>
|
|
<?php
|
|
if ($sortie!='pdf' && $sortie!='prt') {
|
|
?>
|
|
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />--> </td>
|
|
<td width="580">
|
|
<table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%">
|
|
<tr>
|
|
<td valign="top">
|
|
<?include($page2)?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<?php
|
|
} else {
|
|
?>
|
|
<td width="800">
|
|
<table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%">
|
|
<tr>
|
|
<td valign="top">
|
|
<?include($page2)?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
</table><br/>
|
|
<font size="1" face="Arial, Helvetica, sans-serif">
|
|
© 2006-<?=date('Y')?> Scores & Décisions SAS -
|
|
Tous droits réservés - <a href="<?=SITEINST_URL2?>mentions.php" target="_blank">Mentions légales</a>
|
|
<?
|
|
if ($sortie!='prt') {
|
|
if ($page=='recherche'){
|
|
if ($_REQUEST['vue']=='list' ) $_SERVER['REQUEST_URI'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['REQUEST_URI']);
|
|
}
|
|
|
|
$printUrl = $_SERVER['REQUEST_URI'];
|
|
if ($page=='bilans' && isset($_REQUEST['type']) && $_REQUEST['type']!=''){
|
|
$printUrl.= '&type='.$_REQUEST['type'];
|
|
}
|
|
?>
|
|
- <a href="<?=$printUrl;?>&sortie=prt" target="_blank"><img src="./img/icone_print.png"/></a>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</font>
|
|
</center>
|
|
<?php
|
|
if ($sortie!='pdf' && $sortie!='prt') {
|
|
require_once('menu.php');
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|