extranet/www/pages/main.php

86 lines
2.0 KiB
PHP
Raw Normal View History

2009-03-11 07:51:18 +00:00
<?php
if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
2009-03-04 16:46:29 +00:00
//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';
2009-02-26 17:16:11 +00:00
?>
<html>
<head>
<title>Extranet Scores &amp; D&eacute;cisions - <?=$title?></title>
<?php require_once 'includeheader.php'; ?>
</head>
2009-05-28 07:42:54 +00:00
<?php
if ($sortie!='prt') {
2009-05-28 07:42:54 +00:00
?>
<body onResize="JSFX_FloatTopDiv()">
2009-03-11 07:51:18 +00:00
<?php
} elseif ($sortie=='prt') {
2009-03-11 07:51:18 +00:00
?>
<body onLoad="window.print();window.close();">
<?php
}
?>
<center>
<table border="0" width="800" height="600">
<tr>
<?php
if ($sortie<>'pdf' && $sortie<>'prt') {
?>
2009-03-11 07:51:18 +00:00
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />-->&nbsp;</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 {
?>
2009-03-11 07:51:18 +00:00
<td width="800">
<table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%">
<tr>
<td valign="top">
<?include($page2)?>
</td>
</tr>
2009-03-11 07:51:18 +00:00
</table>
</td>
<?php } ?>
</tr>
</table><br/>
<font size="1" face="Arial, Helvetica, sans-serif">
&copy; 2006-<?=date('Y')?> Scores &amp; D&eacute;cisions SAS -
Tous droits r&eacute;serv&eacute;s - <a href="<?=SITEINST_URL2?>mentions.php" target="_blank">Mentions l&eacute;gales</a>
<?
if ($sortie!='prt') {
2009-03-06 17:12:26 +00:00
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
}
2009-03-06 16:20:20 +00:00
?>
</font>
</center>
<?php
if ($sortie!='pdf' && $sortie!='prt') {
2009-05-28 07:42:54 +00:00
require_once('menu.php');
}
?>
</body>
</html>