extranet/www/pages/main.php

113 lines
3.2 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)){
$page2='recherche.php';
$vueRecherche = 'ent';
}
require_once(realpath(dirname(__FILE__).'/../../includes/siren.php'));
?>
<html>
<head>
<title>Extranet Scores &amp; D&eacute;cisions - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="./css/infogreffe_base.css" />
<link rel="stylesheet" type="text/css" href="./css/infogreffe.css" />
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/menu.css" />
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete.css" />
<?php
if($sortie!='prt'){
?>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="./js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="./js/menu.js"></script>
<script type="text/javascript" src="./js/dropDownOverlapping.js"></script>
<script type="text/javascript" src="./js/scripts.js"></script>
<?php
//Ajout script ajax pour la saisie
if($page2=='saisie.php'){
?>
<script type="text/javascript" src="./js/saisieajax.js"></script>
<script type="text/javascript" src="./js/thickbox.js"></script>
<link rel="stylesheet" href="./css/saisie.css" type="text/css" media="screen" />
<link rel="stylesheet" href="./css/thickbox.css" type="text/css" media="screen" />
<?php
}
}
?>
</head>
<?php
if ($sortie!='prt')
{
?>
<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" />-->&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 {
?>
<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">
&copy; 2006-<?=date('Y')?> Scores &amp; D&eacute;cisions SAS -
Tous droits r&eacute;serv&eacute;s - <a href="<?=SITEINST_URL2?>mentions.htm" target="_blank">Mentions l&eacute;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>